www.gusucode.com > 创想设计Flash相册 1.0源码程序 > Photo\admin\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">&nbsp;</td>
    </tr>
		 <tr>
          <td height="25" align="right" bgcolor="#FFFFFF" class="fonthei">&nbsp;</td>
          <td width="53%" align="left" bgcolor="#FFFFFF">&nbsp;</td>
          <td width="22%" align="center" bgcolor="#FFFFFF">&nbsp;</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="提 交">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="reset" name="Submit" value="重  置">
          </div></td>
        </tr>
		</form>
</table>
<%end if%>
</body>
</html>