www.pudn.com > Zhwebcode.rar > Admin_HonorAdd.asp, change:2008-11-13,size:3512b


<!--#include file="conn.asp"--> 
<!--#include file="admin.asp"--> 
<%if Request.QueryString("mark")="southidc" then%> 
<% 
explain=server.htmlencode(Trim(Request("explain"))) 
BigClass=Trim(Request("BigClass")) 
Pic=server.htmlencode(Trim(Request("Pic"))) 
%> 
 
<% 
If explain="" Then 
response.write "<script language='javascript'>alert('图片名称不能为空!');history.go(-1);</script>" 
response.end 
end if 
If Pic="" Then 
response.write "<script language='javascript'>alert('图片不能为空!');history.go(-1);</script>" 
response.end 
end if 
 
Set rs = Server.CreateObject("ADODB.Recordset") 
sql="select * from CompHonor " 
rs.open sql,conn,1,3 
rs.addnew 
rs("BigClass")=BigClass 
rs("explain")=explain 
rs("Pic")=Pic 
rs("Adddate")=Date() 
rs.update 
rs.close 
response.redirect "Admin_HonorAdd.asp" 
end if 
%> 
<!-- #include file="Inc/Head.asp" --> 
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> 
  <tr>  
    <td align="center" valign="top"> <br> <br> 
	<table width="560" border="0" cellpadding="0" 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="Admin_HonorAdd.asp?mark=southidc"> 
            <td><div align="center">  
                <table width="100%" border="0" cellspacing="1" cellpadding="0"> 
                  <tr bgcolor="#fcfcfc">  
                    <td width="27%" height="25">  
                      <div align="center">图片名称</div></td> 
                    <td width="73%">  
                      <input name="explain" type="text" value="" size="40"></td> 
                  </tr> 
                  <tr bgcolor="#FCFCFC">  
                    <td width="27%" height="25">  
                      <div align="center">图片类别</div></td> 
                    <td width="73%" bgcolor="#FCFCFC">  
                      <select name="BigClass"> 
                        <option value="产品展示">产品展示</option> 
                        <option value="成功案例">成功案例</option> 
                      </select> 
                    </td> 
                  </tr> 
                  <tr bgcolor="#fcfcfc">  
                    <td height="22">  
                      <div align="center">图片</div></td> 
                    <td>  
                      <input name="Pic" type="text"  size="40" maxlength="50">  
                      <font color="#FF0000"> * 图片地址</font></td> 
                  </tr> 
                  <tr bgcolor="#fcfcfc">  
                    <td height="25" colspan="2">  
                      <div align="center">  
                        <input name="submit" type="submit" value="确定"> 
                           
                        <input name="reset" type="reset" value="恢复"> 
                      </div></td> 
                  </tr> 
                  <tr bgcolor="#fcfcfc">  
                    <td align="center">图片上传</td> 
                    <td> <div align="left"> 
                        <iframe style="top:2px" ID="UploadFiles" src="upload_Photo.asp?PhotoUrlID=5" frameborder=0 scrolling=no width="300" height="25"></iframe> 
                      </div></td> 
                  </tr> 
                </table> 
              </div></td> 
          </form> 
        </tr> 
      </table> 
      <br> </td> 
  </tr> 
</table> 
<!-- #include file="Inc/Foot.asp" -->