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

📄 clientinf.asp

📁 红金羚v1.5办公自动化软件是基于大型数据库系统开发的应用系统
💻 ASP
字号:
<%response.expires=0%>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="asp/keepformat.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if

'打开数据库,读出编辑通讯录权限
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from userinf where username=" & sqlstr(oabusyusername)
rs.open sql,conn,1
allow_edit_client_addressinf=rs("allow_edit_client_addressinf")
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>红孩儿Office办公系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<% call bghead() %>
<center>
<table>
<tr>
<td><b>客户资源列表</b>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<%
if allow_edit_client_addressinf="yes" then
%>
<form method=post action="addclientinf.asp">
<td><input type=submit value="增加"></td>
</form>
<%
end if
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select DISTINCT project from clientinf"
rs.open sql,conn,1
if not rs.eof and not rs.bof then project=rs("project")
if request("project")<>"" then project=request("project")
%>
<form method="post" action="clientinf.asp">
<td>
<select size=1 name="project">
<%
while not rs.eof and not rs.bof
%>
<option value="<%=server.htmlencode(rs("project"))%>"<%=server.htmlencode(selected(project,rs("project")))%>><%=server.htmlencode(rs("project"))%></option>
<%
rs.movenext
wend
%>
</select>
<input type="submit" value="查询">
</td>
</form>
</tr>
</table>
</center>
<%
call bgmid()
%>
<br><br>
<center>
<table border="1" cellspacing="0" cellpadding="0" width="95%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
<tr bgcolor="#eeeeee">
<td height="25" align=center><b>姓名</b></td><td align=center><b>姓别</b></td><td align=center><b>单位名称</b></td><td align=center><b>部门</b></td><td align=center><b>职位</b></td><td align=center><b>业务项目</b></td><td align=center><b>电话</b></td>
</tr>
<%
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from clientinf where project=" & sqlstr(project)
rs.open sql,conn,1
while not rs.eof and not rs.bof
%>
<tr bgcolor="#ffffff">
<td height="25" align=center><a href="showclientinf.asp?project=<%=request("project")%>&id=<%=rs("id")%>"><%=keepformat(checked3(rs("name")))%></a></td><td align=center><%=checked3(rs("sex"))%></td><td align=center><%=keepformat(checked3(rs("company")))%></td><td><%=keepformat(checked3(rs("dept")))%></td><td align=center><%=keepformat(checked3(rs("position")))%></td><td align=center><%=keepformat(checked3(rs("project")))%></td><td align=center><%=keepformat(checked3(rs("tel")))%></td>
</tr>
<%
	rs.movenext
wend
%>
</table>
</center>
<%
%>
         </td>
            
          <td background="<%=imgpath%>images/j5.gif" width=19 height=280></td>
          </tr>
        </table>
    </tr>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
          <tr>
            
          <td width=18 height=20><img border="0" src="<%=imgpath%>images/j6.gif" width="18" height="19"></td>
            
          <td background="<%=imgpath%>images/j7.gif" width=100% height=20></td>
            
          <td width="19" height="20"><img border="0" src="<%=imgpath%>images/j8.gif"></td>
          </tr>
		  <tr>
          <td width="100%" height=20 colspan="3"><center>-----<a href="http://office.11k.net/" target=_blank><font color="red">Red office v1.5</font></a>-----</center></td>
		  </tr>
        </table>
      </td>
    </tr>
  </table>
<%
%>
</body>
</html>










⌨️ 快捷键说明

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