📄 edit.asp
字号:
<!--#include file="conn.asp"-->
<%
session.timeout=60
if session("user")="" then
response.redirect "index.asp"
end if
sql="select * from qydata where username='"&HtmlEncode(session("user"))&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,1,3
if not rs.eof then
dname=HtmlEncode(trim(request.form("dname")))
password=HtmlEncode(trim(request.form("password")))
dyewu=HtmlEncode(trim(request.form("dyewu")))
dlei=split(HtmlEncode(trim(request.form("dlei"))),"@")
dfaren=HtmlEncode(trim(request.form("dfaren")))
dcity=HtmlEncode(trim(request.form("dcity")))
dhttp=HtmlEncode(trim(request.form("dhttp")))
dmail=HtmlEncode(trim(request.form("dmail")))
daddress=HtmlEncode(trim(request.form("daddress")))
dyoubian=HtmlEncode(trim(request.form("dyoubian")))
dtel=HtmlEncode(trim(request.form("dtel")))
dfax=HtmlEncode(trim(request.form("dfax")))
djieshao=HtmlEncode(request.form("djieshao"))
if dname<>"" then
rs("name")=dname
rs("password")=password
rs("yewu")=dyewu
rs("leiid")=dlei(0)
rs("lei")=dlei(1)
rs("faren")=dfaren
rs("city")=dcity
rs("http")=dhttp
rs("mail")=dmail
rs("address")=daddress
rs("youbian")=dyoubian
rs("tel")=dtel
rs("fax")=dfax
rs("jieshao")=djieshao
rs.update
response.redirect "editok.asp"
end if
else
session("message")="信息不存在!"
response.redirect "error.asp"
end if
%>
<html>
<head>
<style type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: 1; margin-bottom: 1 }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>企业编辑信息</title>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkadd()
{
if (document.postart.dname.value.length<1)
{
alert("单位名称不能为空!");
document.postart.dname.focus();
return false;
}
if (document.postart.password.value.length<1)
{
alert("登录密码不能为空!");
document.postart.password.focus();
return false;
}
}
//-->
</SCRIPT>
<script language="Javascript">
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no,frameborder=0,status=yes' );
}
function openem()
{
openScript('main/upload.asp',350,200);
}
</script>
</head>
<body background="images/bg.gif">
<div align="center">
<center>
<form action="" method="post" name="postart" onsubmit="return checkadd()">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="489">
<tr>
<td width="100%" colspan="2" height="50"><b><img border="0" src="images/goto.gif">
<a href="jieshao.asp?id=<%=rs("id")%>" target="_blank"><font style="font-size:14px">信息预览</font></a><font style="font-size: 14px"> </font><font style="font-size: 14px" color="#FF0000">
</font><img border="0" src="images/goto.gif">
<a href="quit.asp"><font style="font-size:14px" color="#FF0000">退出登录</font></a></b></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -