📄 manage_edithonor.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<%if Request.QueryString("mark")="southidc" then
id=request("id")
title=request("title")
img=server.htmlencode(Trim(Request("img")))
imgs=server.htmlencode(Trim(Request("imgs")))
If title="" Then
response.write "SORRY <br>"
response.write "请输入更新内容的标题"
response.end
end if
If img="" Then
response.write "SORRY <br>"
response.write "小图不能为空"
response.end
end if
If imgs="" Then
response.write "SORRY <br>"
response.write "大图不能为空"
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from honor where id="&id
rs.open sql,conn,1,3
rs("title")=title
rs("img")=img
rs("imgs")=imgs
rs.update
rs.close
response.redirect "Manage_honor.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From honor where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br> <table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td class="back_southidc" height="25"> <div align="center"><strong>修改资格证书 <br>
</strong></div></td>
</tr>
<tr>
<form method="post" name="myform" action="Manage_edithonor.asp?mark=southidc">
<input type=hidden name=id value=<%=id%>>
<td><div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#ECF5FF">
<td width="8%" height="25">
<div align="center">证书名称</div></td>
<td width="62%" bgcolor="#ECF5FF">
<input type="text" name="title" maxlength="30" size="25" value="<%=rs("title")%>">
</td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22" bgcolor="#ECF5FF">
<div align="center">证书小图</div></td>
<td>
<input name="img" type="text" class="inputtext" id="img" size="30" maxlength="50" value="<%=rs("img")%>">
<font color="#FF0000"> * 图片地址</font> <div align="left">
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=7" frameborder=0 scrolling=no width="300" height="25"></iframe>
</div></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22" bgcolor="#ECF5FF">
<div align="center">证书大图</div></td>
<td>
<input name="imgs" type="text" class="inputtext" id="imgs" size="30" maxlength="50" value="<%=rs("imgs")%>">
<font color="#FF0000"> * 图片地址</font> <div align="left">
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=6" frameborder=0 scrolling=no width="300" height="25"></iframe>
</div></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25" colspan="2">
<div align="center">
<input name="submit" type="submit" value="确定">
<input name="reset" type="reset" value="从来">
</div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table></td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -