<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp" -->
<!--#include file="top.asp"-->
<!--#include file="inc/htmlconfig.asp"-->
<%
dim id
filename= trim(Request.QueryString("filename"))
action=request.QueryString("action")
id=request.QueryString("tid")

select case action
case "save"
scj=request.form("pic1")
response.Write(id)
set rs=server.CreateObject("adodb.recordset")
sql="select * from xr_ad where id="&id
rs.open sql,conn,1,3
rs("name1")=trim(request("name1"))
rs("name2")=trim(request("name2"))
rs("name3")=trim(request("name3"))
rs("name4")=trim(request("name4"))
rs("name5")=trim(request("name5"))
rs("pic1")=trim(request("pic1"))
rs("pic2")=trim(request("pic2"))
rs("pic3")=trim(request("pic3"))
rs("pic4")=trim(request("pic4"))
rs("pic5")=trim(request("pic5"))
rs("url1")=request("url1")
rs("url2")=request("url2")
rs("url3")=request("url3")
rs("url4")=request("url4")
rs("url5")=request("url5")
rs.update
rs.close
set rs=nothing
response.Redirect "new_picd.asp?tid="&id&""
response.End
end select
%>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from xr_ad where id="&id
rs.open sql,conn,1,1
%>
<form name="myform" method="post" action="?action=save&tid=<%=id%>">
<div id="container">
<div class="top_but">
 <li class="left"></li>
 <!--<li><a href="book_manage.asp?tid=<%=tid%>" onClick="parent.frmleft.bb(0,10,'b')"><img src="images/but_11.gif" alt="管理"></a></li>-->
 <li><img src="images/but_8.gif" alt="刷新" style="cursor:hand" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" style="cursor:hand;" onClick="window.print() "/></li>
</div>
<div class="tableAll titlebgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:700px;">添加新内容</li>
</div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:100px">标题1：</li>
  <li><input name="name1" type="text" id="name1" style="width:168px;" value="<%=rs("name1")%>"></li>
	<li style="width:100px">链接地址1：</li>
  <li><input name="url1" type="text" id="url1" style="width:168px;" value="<%=rs("url1")%>"></li>
</div>


<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:100px;">图片1：</li>
 <li><input name="pic1" type="text" id="pic1" value="<%=trim(rs("pic1"))%>" size="60"></li>
  <li><iframe ID="UploadFiles" src="update_file.asp?editname=pic1&sltname=pic1s&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>
</div>
<input name="picsize" type="hidden" value="">
<div class="tableAll trbgcolor">
  <li><img src="../<%=trim(rs("pic1"))%>"></li>	
</div>
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
   <li style="width:100px">标题2：</li>
  <li><input name="name2" type="text" id="name2" style="width:168px;" value="<%=rs("name2")%>"></li>
  <li style="width:100px">链接地址2：</li>
  <li><input name="url2" type="text" id="url2" style="width:168px;" value="<%=rs("url2")%>"></li>
	
</div>

<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:100px;">图片2：</li>
 <li><input name="pic2" type="text" id="pic2" value="<%=trim(rs("pic2"))%>" size="60"></li>
  <li><iframe ID="UploadFiles" src="update_file.asp?editname=pic2&sltname=pic2s&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>
</div>
<input name="picsize" type="hidden" value="">
<div class="tableAll trbgcolor">
  <li><img src="../<%=trim(rs("pic2"))%>"></li>	
</div><div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
    <li style="width:100px">标题3：</li>
  <li><input name="name3" type="text" id="name3" style="width:168px;" value="<%=rs("name3")%>"></li>
  <li style="width:100px">链接地址3：</li>
  <li><input name="url3" type="text" id="url3" style="width:168px;" value="<%=rs("url3")%>"></li>
	
</div>

<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:100px;">图片3：</li>
 <li><input name="pic3" type="text" id="pic3" value="<%=trim(rs("pic3"))%>" size="60"></li>
  <li><iframe ID="UploadFiles" src="update_file.asp?editname=pic3&sltname=pic3s&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>
</div>
<input name="picsize" type="hidden" value="">
<div class="tableAll trbgcolor">
  <li><img src="../<%=trim(rs("pic3"))%>"></li>	
</div>


<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
    <li style="width:100px">标题4：</li>
  <li><input name="name4" type="text" id="name4" style="width:168px;" value="<%=rs("name4")%>"></li>
  <li style="width:100px">链接地址4：</li>
  <li><input name="url4" type="text" id="url4" style="width:168px;" value="<%=rs("url4")%>"></li>
	
</div>

<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:100px;">图片4：</li>
 <li><input name="pic4" type="text" id="pic4" value="<%=trim(rs("pic4"))%>" size="60"></li>
  <li><iframe ID="UploadFiles" src="update_file.asp?editname=pic4&sltname=pic4s&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>
</div>
<input name="picsize" type="hidden" value="">
<div class="tableAll trbgcolor">
  <li><img src="../<%=trim(rs("pic4"))%>"></li>	
</div><div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
    <li style="width:100px">标题5：</li>
  <li><input name="name5" type="text" id="name5" style="width:168px;" value="<%=rs("name5")%>"></li>
  <li style="width:100px">链接地址5：</li>
  <li><input name="url5" type="text" id="url5" style="width:168px;" value="<%=rs("url5")%>"></li>
	
</div>

<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:100px;">图片5：</li>
 <li><input name="pic5" type="text" id="pic5" value="<%=trim(rs("pic5"))%>" size="60"></li>
  <li><iframe ID="UploadFiles" src="update_file.asp?editname=pic5&sltname=pic5s&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>
</div>
<input name="picsize" type="hidden" value="">
<div class="tableAll trbgcolor">
  <li><img src="../<%=trim(rs("pic5"))%>"></li>	
</div>

<div class="tableAll trbgcolor">
    <li style="width:30px;">&nbsp;</li>
  <li><input class="button" type="submit" name="Submit" value="确认OK，添加" ></li>
</div>

</div>
</form>

<!--#include file="footer.asp"-->