bas/csxx/Gzrsz_Set.aspx
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Gzrsz_Set.aspx.cs" Inherits="hkpro.bas.csxx.Gzrsz_Set" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>工作日设置</title>
<link href="../../CssJs/Main.css" type="text/css" rel="stylesheet" />
<script language="jscript">
function Click_Cell(object) {
if (object.style.backgroundColor.toUpperCase() == '<%=indaycolor%>'.toUpperCase())
object.style.backgroundColor = '<%=outdaycolor%>';
else
object.style.backgroundColor = '<%=indaycolor%>';
//alert(object.style.backgroundColor);
//数据格式采用ID:n,{ID:n....}(n双数上班,单数休息)
var innerstring;
innerstring = document.ShowDay.hcellstatus.value;
//遍历ID找到是否存在该ID,如果有就修改VALUE,没有就添加VALUE=0
var arr = innerstring.split(",");
var arrtmp;
var re = /\d+/; //匹配id
var re1 = /:\w+/; //匹配n
var n, tmpstr;
var havefound = false; //找到了匹配项
for (var i = 0; i < arr.length; i++) {
arrtmp = arr[i].match(re);
// if(arrtmp!=null)
// alert("|"+arrtmp[0]+"|"+object.id+"|");
if ((arrtmp != null) && (arrtmp[0] == object.id))//找到匹配项
{
//alert("找到匹配项"+"|"+arrtmp[0]+"|"+object.id);
n = arr[i].match(re1);
n = n[0].substr(1);
n = ":" + String(parseInt(n) + 1);
tmpstr = arr[i].replace(re1, n);
document.ShowDay.hcellstatus.value = innerstring.replace(arr[i], tmpstr);
havefound = true;
break;
}
}
if (!havefound)//没有找到匹配项,添加字符串
{
//alert(object.style.backgroundColor);
if (object.style.backgroundColor.toUpperCase() == '<%=indaycolor%>'.toUpperCase())
innerstring = object.id + ":0,";
else
innerstring = object.id + ":1,";
document.ShowDay.hcellstatus.value += innerstring;
//alert(document.ShowDay.hcellstatus.value);
}
//alert(object.style.backgroundColor);
}
function Top_Click(cellnumber) {
后面还有 84 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
