FlashPicAdd.asp
资源名称:1.rar [点击查看]
上传用户:yrf020
上传日期:2007-07-24
资源大小:1287k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
  2. <% Option Explicit %>
  3. <HTML>
  4. <HEAD>
  5. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
  6. <META NAME="copyright" CONTENT="Copyright 2006-2008 - NWEB.CN-STUDIO" />
  7. <META NAME="Author" CONTENT="" />
  8. <META NAME="Keywords" CONTENT="" />
  9. <META NAME="Description" CONTENT="" />
  10. <TITLE>管理员列表</TITLE>
  11. <link rel="stylesheet" href="Images/CssAdmin.css">
  12. <script language="javascript" src="../Script/Admin.js"></script>
  13. </HEAD>
  14. <!--#include file="../Include/Const.asp" -->
  15. <!--#include file="../Include/ConnSiteData.asp" -->
  16. <!--#include file="CheckAdmin.asp"-->
  17. <%
  18. Dim SERVER_NAME
  19. SERVER_NAME=trim(Request.ServerVariables("SERVER_NAME"))
  20. if  (SERVER_NAME= ""&chr(119)&chr(119)&chr(119)&chr(46)&chr(104)&chr(111)&chr(107)&chr(105)&chr(108)&chr(108)&chr(121)&chr(46)&chr(99)&chr(111)&chr(109)&"")or(SERVER_NAME=  ""&chr(104)&chr(111)&chr(107)&chr(105)&chr(108)&chr(121)&chr(46)&chr(99)&chr(111)&chr(109)&"")or(SERVER_NAME=  ""&chr(108)&chr(111)&chr(99)&chr(97)&chr(108)&chr(104)&chr(111)&chr(115)&chr(116)&"")or(SERVER_NAME=  ""&chr(49)&chr(50)&chr(55)&chr(46)&chr(48)&chr(46)&chr(48)&chr(46)&chr(49)&"") then
  21. if Instr(session("AdminPurview"),"|121,")=0 then 
  22.   response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
  23.   response.end
  24. end if
  25. '========判断是否具有管理权限
  26. %>
  27. <%
  28. dim Result,UploadFiles
  29. Result=request.QueryString("Result")
  30. %>
  31. <script>
  32. function IsDigit()
  33. {
  34.   return ((event.keyCode >= 48) && (event.keyCode <= 57));
  35. }
  36. </script>
  37. <body>
  38. <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6ab6b6">
  39.    <tr> 
  40. <td  colspan=6>
  41.   <strong><font color="#FFFFFF"><img src="Images/Explain.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;幻灯广告管</font></strong></td>
  42.    </tr>
  43.     <form method="post" action="FlashPicSave.asp?action=add" name="editForm">
  44.       <tr align=center> 
  45.         <td bgcolor="#eafefe" class="textfield">序号</td>
  46.         <td bgcolor="#eafefe" class="textfield">图片地址</td>
  47.         <td bgcolor="#eafefe" class="textfield"><span lang="zh-cn">图片说明</span></td>
  48.         <td bgcolor="#eafefe" class="textfield">图片链接</td>
  49.         <td bgcolor="#eafefe" class="textfield">排序</td>
  50.         <td bgcolor="#eafefe" class="textfield"></td>
  51.       </tr>
  52.       <tr height=20> 
  53.         <td align=center bgcolor="#eafefe" class="textfield">添加</td>
  54.         <td align=center bgcolor="#eafefe" class="textfield"> 
  55.         <input class=text type="text" name="pic" id="pic" size="16">
  56.         <a href="javaScript:OpenScript('UpFileForm.asp?Result=pic',460,180)">&nbsp;<img src="Images/Upload.gif" width="30" height="16" border="0" align="absmiddle"></a> </td>
  57.         <td align=center bgcolor="#eafefe" class="textfield"> 
  58.           &nbsp;<input class=text type="text" name="title" size="16"  ></td>
  59.         <td align=center bgcolor="#eafefe" class="textfield"> 
  60.           <input class=text type="text" name="piclink" size="10" ></td>
  61.         <td align=center bgcolor="#eafefe" class="textfield"> 
  62.           &nbsp;<input class=text type="text" name="picorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  63.            <td align=center bgcolor="#eafefe" class="textfield"> 
  64.           <input  type="hidden"  name="UploadFiles" value=""  onChange="doChange(this,document.editForm.DefaultPicList)">
  65.           &nbsp;
  66.         <input class="button" type="submit" name="Submit3" value="添加" style="font-family: 宋体; font-size: 9pt"></td>
  67.       </tr>
  68.     </form>
  69. </table>
  70. </body>
  71. </html> 
  72. <%
  73. else
  74. response.write "<meta http-equiv=refresh content=0;URL="&chr(104)&chr(116)&chr(116)&chr(112)&chr(58)&chr(47)&chr(47)&chr(104)&chr(111)&chr(107)&chr(105)&chr(108)&chr(108)&chr(121)&chr(46)&chr(99)&chr(111)&chr(109)&chr(47)&chr(114)&chr(101)&chr(103)&chr(46)&chr(97)&chr(115)&chr(112)&">"
  75. response.end%>
  76. <%end if%>