?? genjin_views.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>回去重來</a>"
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="table1" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href="c_userlist.asp?mclass=<%=session("dd")%>&sclass=<%=request("sclass")%>&cust_s=<%=request("cust")%>"><%=request("company")%></a> - 查看跟進記錄</td>
</tr>
</table>
</div>
<script Language="JavaScript">
<!--
function Form1_Validator(theForm)
{
if (theForm.sclass.selectedIndex < 0)
{
alert("分類必須選擇!");
theForm.sclass.focus();
return (false);
}
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_addok.asp" name="add_1" onsubmit="return Form1_Validator(this)" >
<input type="hidden" name="mclass" size="18" maxlength="20" value="<%=session("dd")%>">
<input type="hidden" name="sclass" size="18" maxlength="20" value="<%=request("sclass")%>">
<div align="center">
<table border="0" width="554" cellspacing="1" cellpadding="0" height="1" bgcolor="#DADADA">
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">標題 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=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">
<input type="hidden" value="<%=request("id")%>" name="cust_s" size="20" maxlength="20"><%=request("company")%></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">內容 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<%=rs("content")%></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>
<p align="center"><a href="c_userlist.asp?mclass=<%=session("dd")%>&sclass=<%=request("sclass")%>&cust_s=<%=request("cust")%>"><font color="#FF0000">返回<%=request("company")%></font></a></p>
</form>
</body>
</html>
<%end if%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -