addgg.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:8k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="security.asp"-->
  2. <%if session("flag")>1 then
  3.     response.write "<script>alert('您的操作权限不够!');history.back();</script>"
  4.     response.end
  5. end if
  6. %>
  7. <!--#include file="../checkpost.asp"-->
  8. <html>
  9. <head>
  10. <title></title>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <link rel="stylesheet" type="text/css" href="inc/Admin_STYLE.CSS">
  13. <style type="text/css">
  14. <!--
  15. body {
  16. background-color: #FFFFFF;
  17. }
  18. .样式1 {
  19. color: #000000;
  20. font-weight: bold;
  21. }
  22. -->
  23. </style></head>
  24. <body>
  25. <!--#include file="conn1.asp"-->
  26. <%
  27. if trim(request("ccc22"))="add" then %>
  28. <%
  29.  set rs=server.createobject("adodb.recordset")
  30. sql="SELECT * from gg where ggid="&nnoo(request("ggid"))&""
  31.   
  32.       rs.open sql,conn,1,3 
  33.   
  34. rs("gjie")=nnoo(request("gjie"))
  35. rs("gw")=nnoo(request("gw"))
  36. rs("gh")=nnoo(request("gh"))
  37. rs("gglei")=nnoo(request("gglei"))
  38. rs("ggri")=nnoo(request("ggri"))
  39. rs("ggok")=request("ggok")
  40. rs("ggjia")=request("ggjia")
  41. rs("ggimg")=request("ggimg")
  42. rs("ggurl")=request("ggurl")
  43. if request("timeok")=1 then
  44. rs("ggtime")=date()
  45. end if 
  46. rs.update
  47. rs.close
  48. Response.Write "<script Language=Javascript>alert('添加完毕');location.href = 'addguuang.asp';</script>"
  49. response.end
  50.  end if %>
  51. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  52.   <tr> 
  53.     <td colspan="3">  </td>
  54.   </tr>
  55.   <tr> 
  56.     <td width="18" background="img/admin4.gif">&nbsp;</td>
  57.     <td>&nbsp;
  58.       <table width="100%" cellspacing="0" cellpadding="0" align="center">
  59.         <tr> 
  60.     <td> 
  61.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  62.         <tr> 
  63.           <td background="../images/back_3.gif" rowspan="2"> 
  64.             <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
  65.               <tr> 
  66.                 <td class="12v" > 
  67.                   <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="308" width="100%">
  68.                     <tr> 
  69.                       <td height="308"> 
  70.                         <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  71.   <tr class="title"> 
  72.                             <td height="22" bgcolor="#FFFFFF" class="title"> 
  73.                               <div align="center" class="样式1">广告修改</div></td>
  74.                           </tr>
  75.                           <tr> 
  76.                             <td height="284" valign="top" class="tdbg"> 
  77.                               <% set rs=server.createobject("adodb.recordset")
  78. sql="SELECT * from gg where ggid="&nnoo(request("id"))&""
  79.   
  80.       rs.open sql,conn,1,3 %>
  81.                               <br>
  82.                               <form name="form1" method="post" action="?ccc22=add">
  83.                                 <table width="100%" border="0" cellspacing="0" cellpadding="0" height="237">
  84.                                   <tr> 
  85.                                     <td width="27%" rowspan="2">
  86.                                           <div align="center">广告说明</div></td><td width="73%" height="37"> <input name="gjie" type="text" id="gjie" value="<%=rs("gjie")%>" size="50">                                    </td>
  87.                                   </tr>
  88.                                   <tr>                                  </tr>
  89.                                   <tr> 
  90.                                     <td width="27%" height="52">&nbsp;</td>
  91.                                     <td width="73%" height="52">长度 
  92.                                       <input name="gw" type="text" id="gw" value="<%=rs("gw")%>" size="7">
  93.                                       宽度 
  94.                                       <input name="gh" type="text" id="gh" value="<%=rs("gh")%>" size="7"> 
  95.                                       <br>
  96.                                       广告位置: 
  97.                                       <select name="gglei" id="gglei">
  98.                                         <option value="<%=rs("gglei")%>">默认位置</option>
  99.                                           <option value="0">首页广告</option>
  100. <option value="1">分类内广告</option>
  101.                                         <option value="2">点播页广告</option>
  102.                                         <option value="3">广告版点播页1</option>
  103.  <option value="4">广告版点播页2</option>
  104.  <option value="5">广告版点播页3</option>
  105.                                         <option value="6">其他位置</option>
  106.                                       </select>
  107.                                       <font color="#FF0000">( 
  108.                                       <%select case rs("gglei")
  109. case 0
  110. Response.Write("首页广告")
  111. case 1
  112. Response.Write("分类内广告")
  113. case 2
  114. Response.Write("商品详细内")
  115. case 3
  116. Response.Write("产品详细底")
  117. case 4
  118. Response.Write("首页广告底部")
  119. case else
  120. Response.Write("其他位置")
  121. end select %>
  122.                                       )</font></td>
  123.                                   </tr>
  124.                                   <tr> 
  125.                                     <td height="120">&nbsp;</td>
  126.                                     <td height="120"> 
  127.                                       <input name="ggri" type="text" id="ggri" value="<%=rs("ggri")%>" size="10">
  128.                                       租用日期/天 
  129.                                       <select name="ggok" id="ggok">
  130.      <option value="<%=rs("ggok")%>">默认设置</option>
  131.                                         <option value="1">暂未使用</option>
  132.                                         <option value="0">已被租用</option>
  133.                                       </select>
  134.                                       <% if rs("ggok")=1 then
  135.   Response.Write("<font color=#FF0000><b>X没有租出</b></font>")
  136.   else
  137.   Response.Write("<b>√已经租出</b>")
  138.   end if %>
  139.                                       <br>
  140.                                       <strong>到期时间: 
  141.                                       <%if rs("ggtime")+rs("ggri")<=date() then
  142.   Response.Write("-------NO------")
  143.   else
  144.   Response.Write(""&rs("ggtime")+rs("ggri")&"")
  145.   end if  %>
  146.                                       </strong><br>
  147.                                       <font color="#000099">开始时间:<%=rs("ggtime")%></font><br>
  148.                                       重新计时: 
  149.                                       <input type="radio" name="timeok" value="1">
  150.                                       (广告到期或换广告请选择,更新开始时间)<br> 
  151.                                       <input name="ggjia" type="text" id="ggjia" value="<%=rs("ggjia")%>" size="10">
  152.                                       价格/元 
  153.                                       <input name="ggid" type="hidden" id="ggid" value="<%=rs("ggid")%>" size="10"></td>
  154.                                   </tr>
  155.                                   <tr> 
  156.                                     <td height="26">&nbsp;</td>
  157.                                     <td height="26"><input type="Submit" name="Submit" value="确定" width="75" height="22"></td>
  158.                                   </tr>
  159.                                 </table>
  160.                               </form>                            </td>
  161.                           </tr>
  162.                           <tr>
  163.                            
  164.                           </tr>
  165.                         </table>
  166.                       </td>
  167.                     </tr>
  168.                   </table>
  169.                 </td>
  170.               </tr>
  171.             </table>
  172.           </td>
  173.         </tr>
  174.       </table>
  175.     </td>
  176.   </tr>
  177. </table></td>
  178.     <td width="18" background="img/admin5.gif">&nbsp;</td>
  179.   </tr>
  180. </table>
  181. <br>
  182. </body>
  183. </html>