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

📄 linkedit.asp

📁 功能特点:1、在wap1.0的基础上添加了铃声栏目; 2、修改了后台程序中的一些错误; 3、优化了上传文件中的冗余; 4、
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="cook.asp"-->
<!--#include file="info.asp"-->
<script laguage="javascript">
<!--
function form1_onsubmit()
{
if (document.form1.name.value=="")
    {
      alert("请输入站点名称!")
      document.form1.name.focus()
      return false
     }
else if(document.form1.place.value=="")
    { 
      alert("请输入站点地址!")
      document.form1.place.focus()
      return false
     }
}
-->
</script>
<%
if request.Form("sub")="submit" then
name=request.Form("name")
place=request.Form("place")
id=request.Form("id")

if name="" or place="" or logo="" then
   response.Write"<script>alert('链接内容不能为空!');history.go(-1)</script>"
   response.End()
else
   set rs=server.CreateObject("adodb.recordset")
   sql="select * from link where id="&id
   rs.open sql,conn,3,3
   rs("name")=name
   rs("place")=place
   rs.update
   response.Write"<script>alert('链接编辑成功!');window.location.href('link.asp')</script>"
   response.End()
end if
end if

call htmltop()
%>
<%id=cint(request.QueryString("id"))
if id<>"" then
set rs=server.CreateObject("adodb.recordset")
 sql="select * from link where id="&id
 rs.open sql,conn,3,3%>
<table width="700" height="400" border="0" align="center" cellpadding="0" cellspacing="0" class="TdStyle">
  <tr>
    <td align="center" valign="top" bgcolor="#FFFFFF"><br>
      <table width="600" border="0" cellpadding="5" cellspacing="1" bgcolor="#C0C0C0">
  <form name="form1" method="post" action="linkedit.asp" onsubmit="return form1_onsubmit()">
          <tr align="center" bgcolor="#E3E3E3"> 
            <td height="30" colspan="2"><B>编 辑 链 接</B></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="100" height="25" align="right">站点名称:</td>
            <td width="500"><input name="name" type="text" size="20" value="<%=rs("name")%>"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25" align="right">站点地址:</td>
            <td><input name="place" type="text" size="30" value="<%=rs("place")%>"></td>
          </tr>
          <tr align="center" bgcolor="#E3E3E3"> 
            <td height="30" colspan="2"> 
              <input type="submit" name="submit" value="提交">
            <input type="hidden" name="sub" value="submit">
        <input type="reset" name="Submit2" value="重置">
		<input type="hidden" name="id" value="<%=id%>"></td>
         </tr></form>
     </table> <br></td>
  </tr>
</table>  
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if

call htmlend()
%>
 

⌨️ 快捷键说明

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