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

📄 index.asp

📁 这个系统是企业管理系统
💻 ASP
字号:
<%@language="vbscript" codepage="936" %>
<%
'option explicit
'强制浏览器重新访问服务器下载页面,而不是从缓存读取页面
Response.Buffer = True 
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache" 
'主要是使随机出现的图片数字随机
%>
<!--#include file="conn_db123.asp"-->
<%

'------------------------------------------------------------------------
sql_syssetup="select * from admin_setup_sys  where  id is not null"
set rs_syssetup=server.CreateObject("adodb.recordset")
rs_syssetup.open sql_syssetup,conn,1,1
if not rs_syssetup.eof then

session("sys_is_regself")=rs_syssetup("sys_is_regself")
session("sys_danwei")=rs_syssetup("sys_danwei")
sys_lianxiren=rs_syssetup("sys_lianxiren")
sys_tel=rs_syssetup("sys_tel")
sys_gonggao=rs_syssetup("sys_gonggao")

end if
rs_syssetup.close
set rs_syssetup=nothing
'------------------------------------------------------------------------

%>
<html>
<head>
<title><%=session("sys_danwei")%> - 人事管理系统 - 轻燕工作室制作www.qingyan.net.cn 13507959978</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc/southidc.css">
<script language=javascript>
<!--
function CheckForm()
{
	if(document.form1.loginname.value=="")
	{
		alert("请输入用户名!");
		document.form1.loginname.focus();
		return false;
	}
	if(document.form1.loginpwd.value == "")
	{
		alert("请输入密码!");
		document.form1.loginpwd.focus();
		return false;
	}
//-------------------
  var q=document.getElementsByName("sf");
    var len=q.length;
    var flag=false;
    for(var i=0;i<len;i++){
      if(q[i].checked==true){
        flag=true;
      //  alert(q[i].value);
    //    break;
    }
    }
    if(!flag){
        alert("请选择一种相符的身份"); 
        return false;
    }
//-------------------
	if (document.form1.CheckCodema.value==""){
      alert ("请输入您的验证码!");
       document.form1.CheckCodema.focus();
       return(false);
    }
	

}

//-->
</script>
<style type="text/css">
<!--
.style2 {	COLOR: #003366
}
.style3 {	COLOR: #ffffff
}
.style4 {	FONT-WEIGHT: bold; COLOR: #3d7acd
}
body {
	background-color: #417BC9;
}
.STYLE6 {color: #FFFFFF}
body,td,th {
	font-size: 12px;
}
a:link {
	color: #FFFFFF;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #FFFFFF;
}
a:hover {
	text-decoration: underline;
	color: #FF6600;
}
a:active {
	text-decoration: none;
	color: #FF6600;
}
-->
</style>
</head>
<body class="bgcolor">
<p>&nbsp;</p>
<form action="function_login.asp" method="post" name="form1" target="_parent" id="form1" onSubmit="return CheckForm();">
    
  <p>&nbsp;</p>
  <TABLE width=432 height=252 border=0 align="center" cellPadding=0 cellSpacing=0>
    <TBODY>
      <TR>
        <TD align=middle background=images/Login_Top2.gif height=60>&nbsp;</TD>
      </TR>
      <TR>
        <TD align=middle background=images/Login_BG.gif><TABLE height=147 width=400 border=0>
            <TBODY>
              
              <TR>
                <TD align=right width=136 rowSpan=5><IMG 
                  src="images/Login_TT.jpg" alt="2" width=132 height=130></TD>
                <TD width="48" height=30 align=right>用户名:</TD>
                <TD height=30 colspan="2" align=left><input name="loginname"  type="text"  id="UserName4" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onFocus="this.select(); " onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" maxlength="20"></TD>
              </TR>
              <TR>
                <TD align=right height=30>密 码:</TD>
                <TD height=30 colspan="2" align=left><input name="loginpwd" type="password" id="loginpwd"  style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onFocus="this.select(); " onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" maxlength="20"></TD>
              </TR>
              <TR>
                <TD align=right height=30>身 份:</TD>
                <TD height=30 colspan="2" align=left><label>
                  <input type="radio" name="sf" value="js">
                  教工 
                  <input name="sf" type="radio" value="gly">
                  管理员
                </label></TD>
              </TR>
              <TR>
                <TD align=right height=30>验证码:</TD>
                <TD height=30 colspan="2" align=left><input name="CheckCodema" size="6" maxlength="4" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); ">
                <font color="#FFFFFF"><img src="checkcodema.asp">在左边输入数字</font></TD>
              </TR>
              <TR>
                <TD class=style2 vAlign=center align=right>&nbsp;&nbsp;</TD>
                <TD width="84" align=right vAlign=center class=style2><input   type="submit" name="Submit" value=" 登 录 " style="font-size: 9pt; height: 19; width: 60; color: #000000; background-color: #FFCC66; border: 1 solid #999999" onMouseOver ="this.style.backgroundColor='#0099ff'" onMouseOut ="this.style.backgroundColor='#FFCC66'" ></TD>
                <TD width="114" align=center vAlign=center class=style2><input name="reset" type="button"  id="reset" value="职工注册 " style="font-size: 9pt; height: 19; width: 60; color: #000000; background-color: #FFCC66; border: 1 solid #999999" onMouseOver ="this.style.backgroundColor='#0099ff'" onMouseOut ="this.style.backgroundColor='#FFCC66'"  onClick="javascript:window.open('jg_regself_add.asp','窗口名称');" <%if session("sys_is_regself")="F"then%> disabled="disabled" <%end if%>></TD>
			
              </TR>
            </TBODY>
        </TABLE></TD>
      </TR>
      <TR>
        <TD height=56 align=middle valign="middle" background=images/Login_Down.gif><div align="center" class="STYLE6"></div></TD>
      </TR>
    </TBODY>
  </TABLE>
  <div align="center"><br>
    <span class="style3">管理员身份初始化登录帐号:admin 密码:admin<br>
      <br>
    教工身份初始化登录帐号:jiaogong 密码:jiaogong</span><br>
    <br>
  </div>
  <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><div align="center" class="STYLE6">
        <%if sys_lianxiren<>"" or sys_tel<>"" then response.write "联系:"&sys_lianxiren&" "&sys_tel %>
      </div></td>
    </tr>
  </table>
  <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><br>
      <div align="center" class="STYLE6">
          <%if sys_gonggao<>"" then response.write "公告:"&sys_gonggao %>
      </div></td></tr>
  </table>
</form>

</body>
</html>

⌨️ 快捷键说明

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