honor_add.asp
上传用户:ahxunteng
上传日期:2022-05-16
资源大小:1606k
文件大小:3k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
VBScript
- <!--#include file="bsconfig.asp"-->
- <%if Request.QueryString("no")="eshop" then%>
- <%
- title=server.htmlencode(Trim(Request("title")))
- Entitle=server.htmlencode(Trim(Request("Entitle")))
- img=server.htmlencode(Trim(Request("img")))
- %>
- <%
- If title="" Then
- response.write "SORRY <br>"
- response.write "请输入更新内容的标题!!<a href=""javascript:history.go(-1)"">返回重输</a>"
- response.end
- end if
- If img="" Then
- response.write "SORRY <br>"
- response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
- response.end
- end if
- Set rs = Server.CreateObject("ADODB.Recordset")
- sql="select * from Honor "
- rs.open sql,conn,1,3
- rs.addnew
- rs("title")=title
- rs("Entitle")=Entitle
- rs("img")=img
- rs.update
- rs.close
- response.redirect "honor.asp"
- end if
- %>
- <!-- #include file="Inc/Head.asp" -->
- <BR>
- <table cellpadding="2" cellspacing="1" border="0" width="560" align="center" class="a2">
- <tr>
- <td class="a1" height="25" align="center"><strong>添加荣誉</strong></td>
- </tr>
- <tr class="a4">
- <td align="center">
- <br>
- <table width="550" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <form method="post" action="honor_add.asp?no=eshop">
- <td><div align="center">
- <table width="100%" border="0" cellspacing="2" cellpadding="3">
- <tr>
- <td width="18%" height="25" bgcolor="#C0C0C0"> <div align="right">荣誉名称</div></td>
- <td width="62%" bgcolor="#C0C0C0"><input type="text" name="title" class="inputtext" maxlength="30" size="25"></td>
- </tr>
- <tr>
- <td width="18%" height="25" bgcolor="#C0C0C0"> <div align="right">English名称</div></td>
- <td width="62%" bgcolor="#C0C0C0"><input type="text" name="Entitle" class="inputtext" maxlength="30" size="25"></td>
- </tr>
- <tr>
- <td height="22" bgcolor="#E3E3E3"> <div align="right">荣誉证书</div></td>
- <td bgcolor="#E3E3E3"><input name="img" type="text" class="inputtext" id="img" size="30">
- <font color="#FF0000"> * 图片地址</font></td>
- </tr>
- <tr bgcolor="#C0C0C0">
- <td height="25" colspan="2">
- <div align="center">
- <input name="submit" type="submit" value="确定">
-
- <input name="reset" type="reset" value="取消">
- </div></td>
- </tr>
- <tr>
- <td colspan="2">图片上传</td>
- </tr>
- <tr>
- <td colspan="2"><div align="center">
- <iframe name="ad" frameborder=0 width=100% height=48 scrolling=no src='../WebEdit/Upload_File.asp'></iframe>
- </div></td>
- </tr>
- </table>
- </div></td>
- </form>
- </tr>
- </table>
- <br>
- </td>
- </tr>
- </table>
- <BR>
- <%htmlend%>
English
