?? manage_edithonor.asp
字號:
<!--#include file="admin.asp"-->
<!--#include file="conn.asp"-->
<%if Request.QueryString("no")="eshop" then
id=request("id")
title=request("title")
img=server.htmlencode(Trim(Request("img")))
If title="" Then
response.write "SORRY <br>"
response.write "請輸入更新內(nèi)容的標(biāo)題"
response.end
end if
If img="" Then
response.write "SORRY <br>"
response.write "內(nèi)容不能為空"
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.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
%>
<html>
<head>
<title>修改榮譽管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Admin_Style.css" rel="stylesheet" type="text/css">
</head>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<br>
<br>
<table width="660" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" style="background-image: url('../Images/topbg1.gif')"> <div align="center"><strong>修改榮譽</strong></div></td>
</tr>
<tr>
<form method="post" action="Manage_edithonor.asp?no=eshop">
<input type=hidden name=id value=<%=id%>>
<td><div align="center">
<table width="100%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="8%" height="25" bgcolor="#E1F4EE"> <div align="center">榮譽名稱</div></td>
<td width="62%" bgcolor="#E1F4EE"><input type="text" name="title" maxlength="30" size="25" value="<%=rs("title")%>"></td>
</tr>
<tr>
<td height="22" bgcolor="#E1F4EE">
<div align="center">榮譽證書</div></td>
<td bgcolor="#E1F4EE"><input name="img" type="text" id="img" value="<%=rs("img")%>" size="25" maxlength="30">
<font color="#FF0000"> * 圖片地址</font></td>
</tr>
<tr>
<td height="25" colspan="2" bgcolor="#E1F4EE">
<div align="center">
<input name="submit" type="submit" value="確定">
<input name="reset" type="reset" value="從來">
</div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#E1F4EE">圖片上傳</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E1F4EE"><div align="center">
<iframe name="ad" frameborder=0 width=100% height=50 scrolling=no src=../uploada.asp></iframe>
</div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table> </td>
</tr>
</table>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -