📄 genjin_edit.asp
字号:
<!--#include file="conn.asp" -->
<%
if session("name")="" or session("dd")="" then
response.write "SORRY <br>"
response.write "数据在携带中出现意外!<br>"
response.write "<a href=login.asp target=_top>回去重来</a>"
response.end
end if
if session("quanxian")="1" then
response.write "SORRY <br>"
response.write "您的权限不够!请勿尝试非法访问!<br>"
response.end
end if
dim rs,sql
if session("chayue")="0" then
sql="select * from genjin where id="&request("id")&" and vest_m="&session("dd")&" and cust_s="&request("cust")&""
else
sql="select * from genjin where id="&request("id")&" and kongzhi='"&session("name")&"' and vest_m="&session("dd")&" and cust_s="&request("cust")&""
end if
set rs=server.createobject("adodb.recordset")
rs.Open sql,conn,1,3
if not rs.EOF then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>客户管理系统</title>
</head>
<STYLE type=text/css>
BODY { FONT-FAMILY: "宋体","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt}
TD { FONT-FAMILY: "宋体","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt; line-height: 150%}
a:link { color: #3366FF; text-decoration: none}
a:visited { color: #3366FF; text-decoration: none}
a:hover { color: #FF0080; text-decoration: underline}
.p1 { FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.p2 { COLOR: #c0c0c0; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
input { font-family: "宋体"; font-size: 9pt;color:#0000FF}
</STYLE>
<body>
<div align="center">
<table border="0" width="554" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td>修改记录信息 -
<a target="mainFrame" href="vbscript:history.back()" style="text-decoration: none">返回上页</a></td>
</tr>
</table>
</div>
<script Language="JavaScript">
<!--
function Form1_Validator(theForm)
{
if (theForm.title.value == "")
{
alert("标题必须填写!");
theForm.title.focus();
return (false);
}
if (theForm.name.value.length >16)
{
alert("联系人姓名填写是否正确?请确认!");
theForm.name.focus();
return (false);
}
return (true);
}
//-->
</script><form method="POST" action="genjin_editok.asp" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" >
<input type="hidden" name="id" size="18" maxlength="20" value="<%=request("id")%>">
<input type="hidden" name="cust" size="18" maxlength="20" value="<%=request("cust")%>">
<input type="hidden" name="time" size="18" maxlength="20" value="<%=rs("time")%>">
<input type="hidden" name="company" size="18" maxlength="20" value="<%=request("company")%>">
<input type="hidden" name="sclass" value="<%=request("sclass")%>">
<div align="center">
<div align="center">
<table border="0" width="554" cellspacing="1" cellpadding="0" height="1" bgcolor="#DADADA" id="table3">
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">标题 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="title" size="20" maxlength="50" value="<%=rs("title")%>">
<font color="#FF0000">此项目为必须填写项</font></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">所属单位 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<%=request("company")%></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">内容 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<textarea rows="4" name="content" cols="58" style="font-family: 宋体; font-size: 9pt;color:#0000FF"><%=rs("content")%></textarea></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">录入人 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("kongzhi")%></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">录入时间 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("time")%></td>
</tr>
</table>
</div>
</div>
<p align="center">
<input type="submit" value="修改" name="B1"> <input type="reset" value="还原" name="B2"></p>
</form>
</body>
</html>
<%
rs.Close
set rs=nothing
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -