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

📄 default.asp

📁 企业办公自动化管理系统 asp+sql server 2005
💻 ASP
字号:

<!--#include file="include/sqlstr.asp"-->
<!--#include file="include/opendb.asp"-->


<%
'取得表单提交信息
suid=request("suid")
password=request("password")

if suid<>"" and password<>"" then
'打开数据库查找是否有此用户
	dim rs,sql
	set conn=opendb()
	set rs=server.createobject("adodb.recordset")
	sql="select a.suid,a.sbase,a.srun,b.* from a_user a left join a_userinf b on a.suid=b.suid where a.suid=" & sqlstr(suid) & " and spwd=" & sqlstr(password) &" and forbid='no'"
'response.Write(sql)
'response.End()
	'以只读方式打开数据表
	rs.open sql,conn,1,1
	if not rs.eof and not rs.bof then
		'将用户的基本信息保存到cookies中
		response.cookies("webeditbase")=rs("sbase")
		response.cookies("webeditrun")=rs("srun")
		response.cookies("webedituser")=request("suid")
		response.cookies("oabusyname")=rs("name")
		response.cookies("oabusysuid")=rs("suid")
		response.cookies("oabusyuserdept")=rs("userdept")
		response.cookies("oabusyuserlevel")=rs("userlevel")
		'将用户的权限信息保存到cookies中
		response.cookies("cook_allow_see_all_workrep")=rs("allow_see_all_workrep")
		response.cookies("cook_allow_see_dept_workrep")=rs("allow_see_dept_workrep")
		response.cookies("cook_allow_control_dept_user")=rs("allow_control_dept_user")
		response.cookies("cook_allow_control_all_user")=rs("allow_control_all_user")
		response.cookies("cook_allow_send_note")=rs("allow_send_note")
		response.cookies("cook_allow_control_note")=rs("allow_control_note")
		response.cookies("cook_allow_control_file")=rs("allow_control_file")
		response.cookies("cook_allow_control_level")=rs("allow_control_level")
		response.cookies("cook_allow_see_all_personinf")=rs("allow_see_all_personinf")
		response.cookies("cook_allow_see_dept_personinf")=rs("allow_see_dept_personinf")
		response.cookies("cook_allow_edit_all_jobchanginf")=rs("allow_edit_all_jobchanginf")
		response.cookies("cook_allow_edit_dept_jobchanginf")=rs("allow_edit_dept_jobchanginf")
		response.cookies("cook_allow_edit_all_rewpuninf")=rs("allow_edit_all_rewpuninf")
		response.cookies("cook_allow_edit_dept_rewpuninf")=rs("allow_edit_dept_rewpuninf")
		response.cookies("cook_allow_edit_all_checkinf")=rs("allow_edit_all_checkinf")
		response.cookies("cook_allow_edit_dept_checkin")=rs("allow_edit_dept_checkinf")
	end if
	'转入框架页
	response.redirect "gensystem.asp"
end if


%>
<html>
<head>
<title>:::: 网络办公系统 ::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
table {  font-size: 9pt}
.input {  border: #000000; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.p200 {  line-height: 200%}
-->
</style>
</head>

<body  bgColor=#eef8e0 text="#000000" leftmargin="0" topmargin="0">
   <form method="post" action="default.asp">
<TABLE cellSpacing=0 cellPadding=0 width=1004 border=0 align="center">
  <TBODY>
  <TR>
    <TD colSpan=6><IMG height=92 alt="" src="img/crm_1.gif" 
    width=345></TD>
    <TD colSpan=4><IMG height=92 alt="" src="img/crm_2.gif" 
    width=452></TD>
    <TD><IMG height=92 alt="" src="img/crm_3.gif" width=207></TD></TR>
  <TR>
    <TD colSpan=6><IMG height=98 alt="" src="img/crm_4.gif" 
    width=345></TD>
    <TD colSpan=4><IMG height=98 alt="" src="img/crm_5.gif" 
    width=452></TD>
    <TD><IMG height=98 alt="" src="img/crm_6.gif" width=207></TD></TR>
  <TR>
    <TD rowSpan=5><IMG height=370 alt="" src="img/crm_7.gif" 
    width=59></TD>
    <TD colSpan=5><IMG height=80 alt="" src="img/crm_8.gif" 
    width=286></TD>
    <TD colSpan=4><IMG height=80 alt="" src="img/crm_9.gif" 
    width=452></TD>
    <TD><IMG height=80 alt="" src="img/crm_10.gif" width=207></TD></TR>
  <TR>
    <TD><IMG height=110 alt="" src="img/crm_11.gif" width=127></TD>
    <TD background=img/crm_12.gif colSpan=6>
      <TABLE id=table1 cellSpacing=0 cellPadding=0 width="98%" border=0>
        <TBODY>
        <TR>
          <TD>
            <TABLE id=table2 cellSpacing=1 cellPadding=0 width="100%" 
              border=0><TBODY>
              <TR>
                <TD align=middle width=81><FONT color=#ffffff>用户名:</FONT></TD>
                <TD><INPUT class=regtxt title=请填写用户名 maxLength=16 style="width:160;height:20;" 
                  name=suid></TD></TR>
              <TR>
                <TD align=middle height=16></TD></TR>
              <TR>
                <TD align=middle width=81><FONT color=#ffffff>密&nbsp; 
                码:</FONT></TD>
                <TD><INPUT class=regtxt title=请填写密码 type=password maxLength=16 
                   style="width:160;height:20;" name=password></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
    <TD colSpan=2 rowSpan=2><IMG height=158 alt="" 
      src="img/crm_13.gif" width=295></TD>
    <TD rowSpan=2><IMG height=158 alt="" src="img/crm_14.gif" 
      width=207></TD></TR>
  <TR>
    <TD rowSpan=3><IMG height=180 alt="" src="img/crm_15.gif" 
      width=127></TD>
    <TD rowSpan=3><IMG height=180 alt="" src="img/crm_16.gif" 
    width=24></TD>
    <TD><INPUT title=登录后台 type=image height=48 alt="" width=86 
      src="img/crm_17.gif" name=image></TD>
    <TD><IMG height=48 alt="" src="img/crm_18.gif" width=21></TD>
    <TD colSpan=2><A href="http://demo.web300.cn/free17/index.asp"><IMG 
      title=返回首页 height=48 alt="" src="img/crm_19.gif" width=84 
      border=0></A></TD>
    <TD><IMG height=48 alt="" src="img/crm_20.gif" width=101></TD></TR>
  <TR>
    <TD colSpan=5 rowSpan=2><IMG height=132 alt="" 
      src="img/crm_21.gif" width=292></TD>
    <TD rowSpan=2><IMG height=132 alt="" src="img/crm_22.gif" 
      width=170></TD>
    <TD colSpan=2><IMG height=75 alt="" src="img/crm_23.gif" 
    width=332></TD></TR>
  <TR>
    <TD colSpan=2><IMG height=57 alt="" src="img/crm_24.gif" 
    width=332></TD></TR>
  <TR>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=59></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=127></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=24></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=86></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=21></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=28></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=56></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=101></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=170></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" width=125></TD>
    <TD><IMG height=1 alt="" src="img/spacer.gif" 
  width=207></TD></TR></TBODY></TABLE>
   </form> 
</body>
</html>

⌨️ 快捷键说明

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