<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp" -->
<!--#include file="top.asp"-->
<%
tid = int(Request("tid"))

id=request.QueryString("id")
action=request.QueryString("action")
word=request("word")
page=request("page")
xcid=request("xcid")

select case action
case "save"
set rs=server.CreateObject("adodb.recordset")
sql="select * from com_down where id="&id
rs.open sql,conn,1,3

rs("titlecn")=trim(request("titlecn"))
rs("bookpicm")=trim(request("bookpicm"))
rs("bookpic")=trim(request("bookpic"))
rs("picsize")=trim(request("picsize"))

rs.update
rs.close
set rs=nothing

response.Redirect "photo_manage.asp?page="&page&"&word="&word&"&xcid="&xcid&"&tid="&tid&""
response.End
end select
%>
<form name="myform" method="post" action="?action=save&id=<%=id%>&xcid=<%=xcid%>&word=<%=word%>&page=<%=page%>&tid=<%=tid%>" >
 <%
set rs=server.CreateObject("adodb.recordset")
sql="select * from com_down where id="&id
rs.open sql,conn,1,1
%>
<div id="container">
<div class="top_but">
 <li class="left"></li>
 <li><a href="photo_manage.asp?tid=<%=tid%>"><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">名　　称</li>
 <li><input name="titlecn" type="text" value="<%=trim(rs("titlecn"))%>" size="45"></li>
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px">&nbsp;</li>
 <li style="width:100px">小图上传</li>
 <li><input name="bookpicm" type="text" id="bookpicm" size="60" value="<%=trim(rs("bookpicm"))%>"></li>
 <li><iframe ID="UploadFiles" src="update_file.asp?editname=bookpicm&booksize=picsize&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>   
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px">&nbsp;</li>
 <li style="width:100px">大图上传</li>
 <li><input name="bookpic" type="text" id="bookpic" size="60" value="<%=trim(rs("bookpic"))%>"></li>
 <li><iframe ID="UploadFiles" src="update_file.asp?editname=bookpic&booksize=picsize&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe></li>   
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px">&nbsp;</li>
 <li style="width:100px">资料大小</li>
 <li><input name="picsize" type="text" size="10" readonly value="<%=trim(rs("picsize"))%>"> KB</li>
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px">&nbsp;</li>
 <li style="width:100px">&nbsp;</li>
 <li><input class="button" type="submit" name="Submit" value="确认ok，修改" > </li>
</div>
</div>
</form>
<!--#include file="footer.asp"-->