kaoqinfdghmjnfhnetyhg.asp
来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 386 行 · 第 1/2 页
ASP
386 行
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT * FROM 考勤系统设置"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 1
r.Open()
r_numRows = 0
%>
<%
Dim rs__MMColParam
rs__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
rs__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim rs
Dim rs_numRows
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_oavbsconn_STRING
rs.Source = "SELECT * FROM 考勤表 WHERE 考勤人帐号 = '" + Replace(rs__MMColParam, "'", "''") + "' and 考勤日期=date() and 上午考勤='上午出勤'"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()
rs_numRows = 0
%>
<%
Dim rs1__MMColParam
rs1__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
rs1__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim rs1
Dim rs1_numRows
Set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.ActiveConnection = MM_oavbsconn_STRING
rs1.Source = "SELECT * FROM 考勤表 WHERE 考勤人帐号 = '" + Replace(rs1__MMColParam, "'", "''") + "' and 考勤日期=date() and 下午考勤='下午出勤'"
rs1.CursorType = 0
rs1.CursorLocation = 2
rs1.LockType = 1
rs1.Open()
rs1_numRows = 0
%>
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset2__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT * FROM 考勤表 WHERE 考勤人帐号 = '" + Replace(Recordset2__MMColParam, "'", "''") + "' and 考勤日期=date() and 考勤时间段='上午已考勤'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<html>
<head>
<script language="JavaScript">
function dis(){
document.form1.submit.value='提交考勤..'
document.form1.submit.disabled=true;
return true;
}
function check() {
if (document.form1.fuyan.value.length>65535) {
window.alert ("附言需要65535位以内字符 !")
document.form1.fuyan.focus()
return false
}
return true
}
//-->
</SCRIPT>
<script language=VBScript>
function tof_Click()
if document.all("tof").checked Then
document.all("his").style.display="inline"
Else
document.all("his").style.display="none"
End IF
end function
</script>
<script>
function change(obj,i) {
he=parseInt(obj.style.height);
if (he>=80&&he<=400)
obj.style.height=he+i+'px';
else
obj.style.height='80px';
}
</script>
<script>
function SummaryFromText(){
if (iEditorType==0)
{
var Summary = content1.getHTML();
}
else{
var Summary = a1.content.value;
}
Summary=Summary.substring(1,250)
Summary=cleanHtml(Summary);
a1.summary.value=Summary;
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style4 {color: #CC3366}
.style12 {color: #009900}
.style14 {color: #000000; font-weight: bold; }
.style19 {color: #5EAE19}
.style21 {font-size: 12px; color: #5EAE19; font-weight: bold; }
.style23 {font-size: 16px}
.style24 {
color: #FFFFFF;
font-weight: bold;
}
.style25 {color: #FF0000}
.style32 {
font-size: 14px;
font-weight: bold;
}
.style34 {
font-size: 14px;
color: #009900;
font-weight: bold;
}
.style36 {font-size: 14px; color: #009900; }
.style38 {font-size: 14px; color: #FF0000; font-weight: bold; }
.style40 {color: #009900; font-weight: bold; }
.style6 {color: #CC3366; font-weight: bold; }
-->
</style>
</head>
<body><script language="JavaScript" src="RegExpHTML.js"></SCRIPT>
<div align="center"> <form name="form1" method="post" action="kqposttrh.asp">
<br>
<table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
<tr>
<td><div align="center" class="style24"> 在 线 考 勤
</div></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?