<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="top.asp"-->
<% 
post=request("post")
tid=request("tid")
id = Request("id")
id2 = Request("id2")
cs = Request("cs")

  if post="edit1" then
  set rs=server.createobject("adodb.recordset")
  rs.open "select * from com_class where id = "&id&" ",conn,1,3
  rs("bookpicm")=trim(request("bookpicm"))
  rs("bookpic")=trim(request("bookpic"))
  rs("btextcn")=trim(request("btextcn"))
  rs.update
  rs.close
  set rs=nothing
  
  if cs=1 then
  response.Redirect "book_anclass.asp?tid="&tid&""
  response.end
  else
  response.Redirect "book_nclass.asp?tid="&tid&"&id="&id2&""
  response.end
  end if
  End if

set rs=server.CreateObject("adodb.recordset")
sql="select * from com_class where type="&tid&" and id = "&id
rs.open sql,conn,1,1
%>
<div id="container">
<form name="myform" method="post" action="?post=edit1&id=<%=id%>&id2=<%=id2%>&tid=<%=tid%>&cs=<%=cs%>" OnSubmit="return checkkk()" >
<div class="top_but">
 <li class="left">&nbsp;</li>
 <li><a href="javascript:history.back(-1)"><img src="images/but_11.gif" alt="管理"></a></li>
 <li><img src="images/but_8.gif" alt="刷新" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" 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:60px;">分类标题</li>
 <li><%=trim(rs("classnamecn"))%></li>
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:60px;">分类图片</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&filepath=upload_files" frameborder=0 scrolling=no width="200" height="20"></iframe> ? *38 px</li>
</div>
<!--<div class="clear"></div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:60px">链接地址</li>
<li><input name="btextcn" type="text" id="btextcn" style="width:650px;" value="<%=rs("btextcn")%>"></li>
</div> -->
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li><img src="../<%=trim(rs("bookpicm"))%>" /></li>
</div>
<!--<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
 <li style="width:60px;">分类说明</li>
<li style="width:90%;"><textarea id="btextcn" name="textcn" style="width:100%;height:280px;"><%=rs("btextcn")%></textarea></li>
</div>-->
<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:60px;">&nbsp;</li>
 <li><input class="button" type="submit" name="Submit2" value="确认OK，修改" ></li>
</div>

</form>
</div>

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