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

📄 default.asp

📁 文件管理系统
💻 ASP
字号:
<%response.expires=0%>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<%
function find_online_user(oabusyusername)
	dim i,dimsums,siteinfo,findok
	findok=0
	Application.Lock
	onlineuser=application("onlineuser")
	dimsums=ubound(onlineuser)
	for i=0 to dimsums
		siteinfo=onlineuser(i)
		if siteinfo<>"" then
			if instr(siteinfo,oabusyusername&"$")>0 then
				findok=1
				exit for
			end if
		end if
	next
	Application.UnLock
	find_online_user=findok
end function
sub write_online_user(username,name,dept)
	dim userinfo
	Application.Lock
	userinfo=username&"$"&name&"$"&dept&"$"&request.servervariables("REMOTE_ADDR")
	onlineuser=application("onlineuser")
	dimsums=ubound(onlineuser)
	redim preserve onlineuser(dimsums+1)
	onlineuser(dimsums+1)=userinfo
	application("onlineuser")=onlineuser
	Application.UnLock
end sub

username=request.form("username")
password=request.form("password")
if username<>"" and password<>"" then
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
on error resume next
sql="select * from userinf where username=" & sqlstr(username) & " and password=" & sqlstr(password) & " and forbid='no'"
rs.open sql,conn,1,1
'如果有此用户就进入系统
if not rs.eof and not rs.bof then
	response.cookies("oabusyname")=rs("name")
	response.cookies("oabusyuserid")=cstr(rs("ID"))
	response.cookies("oabusyusername")=rs("username")
	response.cookies("oabusyuserdept")=rs("userdept")
	response.cookies("oabusyuserlevel")=rs("userlevel")

	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_send_file")=rs("allow_send_file")
	response.cookies("allow_transmit_file")=rs("allow_transmit_file")

	response.cookies("cook_allow_control_level")=rs("allow_control_level")
	response.cookies("allow_check_resource_requirement")=rs("allow_check_resource_requirement")
	response.cookies("allow_auditing_workthings")=rs("allow_auditing_workthings")
	response.cookies("allow_manage_workthings")=rs("allow_manage_workthings")
	response.cookies("allow_lookallinfo_workthings")=rs("allow_lookallinfo_workthings")
	response.cookies("allow_look_all_kq_info")=rs("allow_look_all_kq_info")
	application.lock
	onlineuserdim=application("onlineuser")
	if isempty(onlineuserdim) then
			dim onlineuserdim(0)
			dim netmeetinginfodim(0)
			application("onlineuser")=onlineuserdim
			application("netmeetinginfo")=netmeetinginfodim
	end if
	application.unlock
	if find_online_user(rs("username"))=0 then
		call write_online_user(rs("username"),rs("name"),rs("userdept"))
	end if
	conn.close
	set conn=nothing
	response.redirect "gensystem.asp"
	response.end
end if
end if
%>
<html>
<head>
<title>file system</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">


<STYLE type=text/css>A:link {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A:visited {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A:hover {
	COLOR: #ff0000; TEXT-DECORATION: none
}
A:active {
	COLOR: #ffffff; TEXT-DECORATION: none
}
TD {
	FONT-SIZE: 9pt
}
.text {
	BACKGROUND-COLOR: #ffffff; COLOR: #ffffff; FONT-SIZE: 9pt; LINE-HEIGHT: 18px
}
.form {
	BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #ff3300 1px dotted; BORDER-LEFT: #ff3300 1px dotted; BORDER-RIGHT: #ff3300 1px dotted; BORDER-TOP: #ff3300 1px dotted; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal
}
</STYLE>

<META content="Microsoft FrontPage 4.0" name=GENERATOR>


</head>


<BODY background="image/background18311.gif">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=800><!-- fwtable fwsrc="index2.png" fwbase="i.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
  <TBODY>
  <TR>
    <TD width="1"></TD>
    <TD width="5"></TD>
    <TD width="731"></TD>
    <TD width="32"></TD>
    <TD width="3"></TD>
    <TD width="28"></TD>
  </TR>
  <TR>
    <TD colSpan=5>&nbsp;</TD>
    <TD width="28"></TD>
  </TR>
  <TR>
    <TD rowSpan=2 width="1">&nbsp;</TD>
    <TD colSpan=2 background="image/background18311.gif"> 
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </TD>
    <TD colSpan=2 background="image/background18311.gif">&nbsp;</TD>
    <TD width="28" background="image/background18311.gif"></TD>
  </TR>
  <TR>
    <TD width="5">&nbsp;</TD>
    <TD bgColor=#ffffff background="image/background18311.gif" width="731"> 
      <TABLE align=center border=1 cellPadding=0 cellSpacing=0 height=83 
      width=184 bordercolor="#FFFFFF">
        <FORM action=default.asp method=post name=form1>
     

        <TBODY>
        <TR>
          <TD height=30 width=76>
            <DIV align=right><FONT color=#000000><B>用户名</B></FONT></DIV></TD>
          <TD width=96><INPUT  name=username size=14></TD></TR>
        <TR>
          <TD height=32 width=76>
            <DIV align=right><FONT color=#000000><B>密 码</B></FONT></DIV></TD>
          <TD height=32 width=96><INPUT  name=password size=14 
            type=password></TD></TR>
        <TR>
          <TD height=21 bordercolor="#FFFFFF">
            <DIV align=right>
            <INPUT name=submit type=submit value=登录> 
             
          </DIV></TD>
          <TD height=21>
            <DIV align=center>
            <INPUT name=submit2 type=reset value=取消> 

            </DIV>
            </TD></TR></FORM></TBODY></TABLE>
    </TD>
    <TD colSpan=2 background="image/background18311.gif">&nbsp;</TD>
    <TD width="28" background="image/background18311.gif"></TD>
  </TR>
  <TR>
    <TD rowSpan=2 width="1">&nbsp;</TD>
    <TD width="5">&nbsp;</TD>
    <TD background="image/background18311.gif" width="731">&nbsp;</TD>
    <TD colSpan=2 background="image/background18311.gif">&nbsp;</TD>
    <TD width="28" background="image/background18311.gif"></TD>
  </TR>
  <TR>
    <TD width="5">&nbsp;</TD>
    <TD  colSpan=2 background="image/background18311.gif"> 
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="94%">
        <TBODY>
        <TR>
          <TD background="image/background18311.gif"><FONT color=red style="FONT-SIZE: 9pt">&nbsp;  
            </FONT><BR>
            <FONT 
            color=#ffffff> <BR>
             <BR>
            <span lang="en-us"><br>
          </span><BR><BR></FONT></TD></TR></TBODY></TABLE>
    </TD>
    <TD width="3">&nbsp;</TD>
    <TD width="28" background="image/background18311.gif"></TD>
  </TR>
  <TR>
    <TD colSpan=5>
      <hr>
    </TD>
    <TD width="28" background="image/background18311.gif"></TD>
  </TR>
  <TR>
    <TD  colSpan=5>
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" bordercolor="#0033FF">
        <TBODY> 
        <TR>
          <TD vAlign=bottom width="47%" background="image/background18311.gif"> 
            <DIV align=center>
            <SCRIPT language=JavaScript>
         <!---
	        today=new Date();
	        var hours = today.getHours();
	        var minutes = today.getMinutes();
	        var seconds = today.getSeconds();
	        var timeValue = "<FONT COLOR=black>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=black>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=black>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
	  timeValue += (hours >= 12) ? "<FONT COLOR=blue><I><B>pm</B></I></FONT>" : "<FONT COLOR=blue><B><I>am</I></B></FONT>";
	 function initArray(){
	 this.length=initArray.arguments.length
	 for(var i=0;i<this.length;i++)
	 this[i+1]=initArray.arguments[i]  }
	 var d=new initArray("<font color=RED>星期日","<font color=black>星期一","<font color=black>星期二","<font color=black>星期三","<font color=black>星期四","<font color=black>星期五","<font color=GREEN>星期六"); document.write("<font color=black>",today.getYear(),"<font color=red>年","<font color=black>",today.getMonth()+1,"<font color=red>月","<font color=black>",today.getDate(),"<font color=red>日 </FONT>",d[today.getDay()+1]," ",timeValue);  //--></SCRIPT></FONT>
            </DIV>
          </TD>
          <TD width="53%" background="image/background18311.gif"><FONT color=#000000>Copyright 
            2003 file system</FONT></TD>  
        </TR></TBODY></TABLE></TD>
    <TD width="28" background="image/background18311.gif"></TD>
  </TR></TBODY></TABLE><p>&nbsp;</p></BODY></HTML>

⌨️ 快捷键说明

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