⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.asp

📁 就业信息服务网
💻 ASP
字号:
<%
IF not(Session("KEY")="1" or session("KEY")="2") THEN
   response.redirect "../login.asp"
   response.end
END IF
%>
<!--#include file="dbconn.asp"-->
<!--#include file="config.asp"-->
<link rel="stylesheet" type="text/css" href="../main.css">
<body bgcolor="#4473A5" marginheight=0 marginwidth=0 leftmargin=0>
<script LANGUAGE="JavaScript">
function check()
{

  if (document.Form1.file.value=="")
     {
      alert("请选择您要上传图片的文件!")
      document.Form1.file.focus()
      document.Form1.file.select()
      return
     }
  if (document.Form1.web.value=="")
     {
      alert("请输入链接网址!")
      document.Form1.web.focus()
      document.Form1.web.select()		
      return
     }
  if (document.Form1.bz.value=="")
     {
      alert("请选择要链接的页面!")
      document.Form1.bz.focus()
      document.Form1.bz.select()		
      return
     }
     document.Form1.submit()
}
</SCRIPT>
<%
   dim rs
   dim sql
   set rs=server.createobject("adodb.recordset") 
   sql="select * from link order by linkid desc"
   rs.open sql,conn,1,1  
   showContent
   rs.close 
   set rs=nothing
%>
<CENTER><BR><BR>
<TABLE width="151" border="0" cellpadding="0" cellspacing="0">
  <TR> 
    <TD width="131" class="f12" height="2" align="center"><font color="#FFFFFF"><b>
    <img border="0" src="../images/add.gif">添加友情链接</b></font></TD>
    <TD width="20" height="2">&nbsp;</TD>
  </TR>
</TABLE><BR><BR>
<TABLE width="600" border="0" align="center" cellpadding="0" cellspacing="0" height=200>
  <TR>
    <TD>
     <CENTER>
     <FORM METHOD="POST" ACTION="LinkADD.asp" NAME="Form1" enctype="multipart/form-data" >
     <input type="hidden" name="filepath" value="<%=picurl%>">
     <table width="522" border="0" cellpadding="0" cellspacing="3">
        <tr> 
           <td align="left" height="25" width="82"><font color="#FFFFFF">图标位置:</font></td>
           <td width="431"><font color="#FFFFFF"><input type=file name=file size="40" class="smallInput"><br>(要求:gif或jpg格式,文件大小不超过40K)</font></td>
        </tr>
        <tr> 
            <td align="left" height="25" width="82"><font color="#FFFFFF">网站URL:</font></td>
            <td width="431"><font color="#FFFFFF"><input type=text  name="web" size="60" class="smallInput" value="http://"></font></td>
        </tr>
         <tr> 
             <td  height="40" align="center" colspan="2" width="461"> 
             <font color="#FFFFFF"> 
             <input type="submit" value="增  加" class="smallInput"  onclick="check()">&nbsp;&nbsp;&nbsp;&nbsp;
             <input type="button" value="返  回" class="smallInput"  onclick=javascript:history.go(-1)>
             </font>
             </td>
        </tr>
    </table>
    </FORM>
  </td>
</tr>
</table>
</center>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -