📄 add_xi_add.asp
字号:
<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->
<html>
<head>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Admin_Style.css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
action = trim(request.QueryString("action"))
bg_1 = trim(request.Form("bg_1"))
productdetail = trim(request.Form("productdetail"))
if action="add" then
if action="" or bg_1=""or productdetail="" then
response.write "<script language=javascript>alert('信息填写不完全!');history.go(-1);</script>"
response.end
end if
sql = "Insert into images(img_s,img_b,img_text) values('s_"&bg_1&"','"&bg_1&"','"&productdetail&"')"
conn.execute(sql)
response.Write("<script>alert('添加成功!')</script>")
response.Write("<script>location.href='Add_xi_add.asp'</script>")
else
%>
<table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align=center>
<tr align="center">
<td height=25 colspan=2 class="topbg"><strong>后台管理</strong>
</tr>
<tr>
<td width="62" class="tdbg" height=23>注意:</td>
<td width="712" class="tdbg">为了达到最好的效果,请对上传的图片先进入处理!图片大小最好为:500 x 300 px </td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center>
<tr bgcolor="#FFFFFF">
<td colspan="5"><div align="center">增 加 相 片 </div></td>
</tr> <form action="?action=add" method="post" name="canshu" id="canshu">
<tr>
<td width="10%" height="25" align="right" bgcolor="#FFFFFF" class="fonthei">上传图片:</td>
<td colspan="2" align="left" bgcolor="#FFFFFF">
<input name="bg" type="text" class="input" id="bg" size="15" value="" disabled><input name="bg_1" type="hidden" class="input" id="bg_1" size="15" value="" > <iframe name="I1" width="155" height="15" src="stone_uponefile.asp" scrolling="no" border="0" frameborder="0">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
<td width="15%" rowspan="3" align="left" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF" class="fonthei"> </td>
<td width="53%" align="left" bgcolor="#FFFFFF"> </td>
<td width="22%" align="center" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF" class="fonthei">简介:</td>
<td colspan="2" align="left" bgcolor="#FFFFFF"><textarea name="productdetail" cols="60" rows="5" ></textarea></td>
</tr>
<tr>
<td height="25" colspan="4" align="right" bgcolor="#FFFFFF" class="fonthei"><div align="center">
<input type="submit" name="Submit" value="提 交">
<input type="reset" name="Submit" value="重 置">
</div></td>
</tr>
</form>
</table>
<%end if%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -