提交代码
This commit is contained in:
@@ -0,0 +1,245 @@
|
||||
|
||||
function $(id){
|
||||
return document.getElementById(id);
|
||||
|
||||
}
|
||||
function DisplayError(errnum,emessage,etips){
|
||||
|
||||
$("id_error").style.display = "block";//id为id_error的对象的display(显示)方式为block(显示)
|
||||
if(errnum=="0"){ //如果错误号码为0
|
||||
|
||||
$("id_error").innerHTML="<ul class='errorlist'><li>"+emessage+"</li><li>"+etips+"</li></ul>";
|
||||
}
|
||||
}
|
||||
var fingertemplate="";
|
||||
var VerifyTemplate="";
|
||||
function submitFinger(action) {
|
||||
;
|
||||
$("id_error").style.display = "block"; //id为id_error的对象的display(显示)方式为block(显示)
|
||||
$("form1").target = "showMsg"
|
||||
if (action == "checkFinger") {
|
||||
|
||||
$("form1").action = "CheckFinger.aspx";
|
||||
$("hiddenObj").name = "VerifyTemplate";
|
||||
}
|
||||
if (action == "regFinger") {
|
||||
$("form1").action = "AddFinger.aspx";
|
||||
|
||||
$("hiddenObj").name = "hiddenObj";
|
||||
$("finghidden").name = "finghidden";
|
||||
}
|
||||
|
||||
if (action == "regFinger") {
|
||||
if ($("username").value == "") {
|
||||
alert("请输入用户名");
|
||||
$("username").focus();
|
||||
}
|
||||
else {
|
||||
$("showMsg").width = 600;
|
||||
$("showMsg").height = 450;
|
||||
$("form1").submit();
|
||||
}
|
||||
}
|
||||
if (action == "checkFinger") {
|
||||
if (($("username").value == "0" || $("username").value == "")) {
|
||||
alert("请选择项目!");
|
||||
$("username").focus();
|
||||
}
|
||||
else {
|
||||
$("showMsg").width = 1024;
|
||||
$("showMsg").height = 640;
|
||||
$("form1").submit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// if ($("username").value == "" && action == "regFinger") {
|
||||
// alert("请输入用户名");
|
||||
// $("username").focus();
|
||||
// }
|
||||
|
||||
// else if (($("username").value == "0" || $("username").value == "") && action == "checkFinger") {
|
||||
// alert("请选择项目!");
|
||||
// $("username").focus();
|
||||
// }
|
||||
// else {
|
||||
// $("showMsg").width = 1024;
|
||||
// $("showMsg").height = 640;
|
||||
// $("form1").submit();
|
||||
// }
|
||||
}
|
||||
|
||||
function submitFingerConfirm(action) {;
|
||||
$("id_error").style.display = "block"; //id为id_error的对象的display(显示)方式为block(显示)
|
||||
$("form1").target = "showMsg"
|
||||
if (action == "CheckConfirm") {
|
||||
|
||||
$("form1").action = "CheckConfirm.aspx";
|
||||
$("hiddenObj").name = "VerifyTemplate";
|
||||
$("keyId").name = "keyId";
|
||||
$("flag").name = "flag";
|
||||
$("grid").name = "grid";
|
||||
}
|
||||
|
||||
$("showMsg").width = 600;
|
||||
$("showMsg").height = 450;
|
||||
$("form1").submit();
|
||||
|
||||
}
|
||||
|
||||
function FingerConfirm() {
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
if (typeof zkonline.RegisterTemplate != "undefined") {
|
||||
if (zkonline.GetVerTemplate()) {
|
||||
VerifyTemplate = zkonline.VerifyTemplate;
|
||||
|
||||
} else {
|
||||
VerifyTemplate = "";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum, emessage, etips);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (window["zkonline"]) {
|
||||
if (zkonline.GetVerTemplate()) {
|
||||
VerifyTemplate = zkonline.VerifyTemplate;
|
||||
} else {
|
||||
VerifyTemplate = "";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum, emessage, etips);
|
||||
return;
|
||||
}
|
||||
}
|
||||
form1.hiddenObj.value = VerifyTemplate;
|
||||
submitFingerConfirm("CheckConfirm")
|
||||
}
|
||||
|
||||
|
||||
function checkFinger(){
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
if (typeof zkonline.RegisterTemplate != "undefined") {
|
||||
if (zkonline.GetVerTemplate()){
|
||||
VerifyTemplate=zkonline.VerifyTemplate;
|
||||
|
||||
}else{
|
||||
VerifyTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (window["zkonline"]) {
|
||||
if (zkonline.GetVerTemplate()){
|
||||
VerifyTemplate=zkonline.VerifyTemplate;
|
||||
}else{
|
||||
VerifyTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
}
|
||||
form1.hiddenObj.value=VerifyTemplate;
|
||||
submitFinger("checkFinger")
|
||||
}
|
||||
function RegFinger(){
|
||||
var RegisterTemplate=[]; //定义指纹模板数组,接收需要注册的指纹模板。
|
||||
var fingerids=[]; //定义手指id数组,接收手指id
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
if (typeof zkonline.RegisterTemplate != "undefined") {
|
||||
if (zkonline.Register()){
|
||||
for(i=1;i<=10;i++){
|
||||
if(zkonline.GetRegFingerTemplate(i).length>2){
|
||||
fingerids.push(i);
|
||||
RegisterTemplate.push(zkonline.GetRegFingerTemplate(i));
|
||||
}
|
||||
|
||||
}
|
||||
zkonline.RegisterTemplate="";//清空临时接收模板
|
||||
}else{
|
||||
RegisterTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登录失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (window["zkonline"]) {
|
||||
if (zkonline.Register()) {
|
||||
for(i=1;i<=10;i++){
|
||||
if(zkonline.GetRegFingerTemplate(i).length>2){
|
||||
fingerids.push(i);
|
||||
RegisterTemplate.push(zkonline.GetRegFingerTemplate(i));
|
||||
}
|
||||
}
|
||||
RegisterTemplate=zkonline.RegisterTemplate;
|
||||
zkonline.RegisterTemplate="";
|
||||
}else{
|
||||
RegisterTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登录失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
}
|
||||
$("hiddenObj").value=RegisterTemplate;
|
||||
$("finghidden").value=fingerids;
|
||||
submitFinger("regFinger")
|
||||
}
|
||||
|
||||
function Load(){
|
||||
var fingerLogin = $("fingerLogin");
|
||||
var regFinger = $("regFinger");
|
||||
var welderCodeLogin = $("welderCodeLogin");
|
||||
var userId = $("userId");
|
||||
var username = $("username");
|
||||
var welderCode = $("welderCode");
|
||||
fingerLogin.onclick = (function () {
|
||||
// userId.onblur = "";
|
||||
// if (userId.value == "0") {
|
||||
// alert("请选择项目!");
|
||||
// username.focus();
|
||||
// } else {
|
||||
// checkFinger();
|
||||
// }
|
||||
userId.blur();
|
||||
checkFinger();
|
||||
});
|
||||
regFinger.onclick=(function(){
|
||||
userId.onblur = "";
|
||||
if (userId.value == "") {
|
||||
alert("请先输入用户名");
|
||||
username.focus();
|
||||
}else{
|
||||
RegFinger();
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
@@ -0,0 +1,368 @@
|
||||
html{
|
||||
height: 100%;
|
||||
}
|
||||
body{
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#C1DEF9, EndColorStr=#ffffff);
|
||||
margin-left: 0px;
|
||||
margin-top: 0px;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 0px;
|
||||
font-size:12px;
|
||||
}
|
||||
.btn {
|
||||
PADDING-LEFT: 5px;
|
||||
FONT-SIZE: 12px;
|
||||
cursor: expression("hand");
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C1DEF9);
|
||||
CURSOR: hand;
|
||||
COLOR: black;
|
||||
PADDING-TOP: 2px;
|
||||
border: 1px solid #C1DEF9;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
PADDING-LEFT: 2px;
|
||||
FONT-SIZE: 24px;
|
||||
cursor: expression("hand");
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C1DEF9);
|
||||
CURSOR: hand;
|
||||
COLOR: black;
|
||||
PADDING-TOP: 2px;
|
||||
border: 1px solid #C1DEF9;
|
||||
}
|
||||
|
||||
table{ /*表格样式(全局样式)*/
|
||||
font-size:12px;
|
||||
}
|
||||
.sys_table{ /*表格样式类(表格的四个边框)*/
|
||||
border-collapse:collapse; /*collapse是将单元格之间两条线合并在一起*/
|
||||
border:1px solid #629AF9;
|
||||
}
|
||||
.sys_td{ /*单元格样式(表格内的单元格)类*/
|
||||
border: 1px solid #629AF9;
|
||||
}
|
||||
.title1{
|
||||
font-size:28px;
|
||||
color:#000;
|
||||
}
|
||||
.btn1 { PADDING-LEFT: 2px;
|
||||
FONT-SIZE: 12px;
|
||||
cursor: expression("hand");
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C1DEF9);
|
||||
CURSOR: hand;
|
||||
COLOR: black;
|
||||
PADDING-TOP: 2px;
|
||||
border: 1px solid #C1DEF9;
|
||||
}
|
||||
|
||||
div#fancy_overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #666;
|
||||
display: none;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
* html div#fancy_overlay {
|
||||
position: absolute;
|
||||
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
|
||||
}
|
||||
|
||||
div#fancy_wrap {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div#fancy_loading {
|
||||
position: absolute;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
div#fancy_loading div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 40px;
|
||||
height: 480px;
|
||||
background: transparent url('fancy_progress.png') no-repeat;
|
||||
}
|
||||
|
||||
div#fancy_loading_overlay {
|
||||
position: absolute;
|
||||
background-color: #FFF;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
div#fancy_loading_icon {
|
||||
position: absolute;
|
||||
background: url('fancy_loading.gif') no-repeat;
|
||||
z-index: 35;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
div#fancy_outer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 90;
|
||||
padding: 18px 18px 33px 18px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#fancy_inner {
|
||||
position: relative;
|
||||
width:100%;
|
||||
height:100%;
|
||||
border: 1px solid #BBB;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
div#fancy_content {
|
||||
margin: 0;
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
div#fancy_div {
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
img#fancy_img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border:0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
z-index: 100;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div#fancy_close {
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
right: -15px;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
background: url('fancy_closebox.png') top left no-repeat;
|
||||
cursor: pointer;
|
||||
z-index: 181;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancy_frame {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancy_ajax {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
a#fancy_left, a#fancy_right {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
height: 100%;
|
||||
width: 35%;
|
||||
cursor: pointer;
|
||||
z-index: 111;
|
||||
display: none;
|
||||
background-image: url(data:image/gif;base64,AAAA);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a#fancy_left {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
a#fancy_right {
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
span.fancy_ico {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -15px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
z-index: 112;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
}
|
||||
|
||||
span#fancy_left_ico {
|
||||
left: -9999px;
|
||||
background: transparent url('fancy_left.png') no-repeat;
|
||||
}
|
||||
|
||||
span#fancy_right_ico {
|
||||
right: -9999px;
|
||||
background: transparent url('fancy_right.png') no-repeat;
|
||||
}
|
||||
|
||||
a#fancy_left:hover {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
a#fancy_right:hover {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
a#fancy_left:hover span {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
a#fancy_right:hover span {
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.fancy_bigIframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
div#fancy_bg {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 70;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.fancy_bg {
|
||||
position: absolute;
|
||||
display: block;
|
||||
z-index: 70;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.fancy_bg_n {
|
||||
top: -18px;
|
||||
width: 100%;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_n.png') repeat-x;
|
||||
}
|
||||
|
||||
div.fancy_bg_ne {
|
||||
top: -18px;
|
||||
right: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_ne.png') no-repeat;
|
||||
}
|
||||
|
||||
div.fancy_bg_e {
|
||||
right: -13px;
|
||||
height: 100%;
|
||||
width: 13px;
|
||||
background: transparent url('fancy_shadow_e.png') repeat-y;
|
||||
}
|
||||
|
||||
div.fancy_bg_se {
|
||||
bottom: -18px;
|
||||
right: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_se.png') no-repeat;
|
||||
}
|
||||
|
||||
div.fancy_bg_s {
|
||||
bottom: -18px;
|
||||
width: 100%;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_s.png') repeat-x;
|
||||
}
|
||||
|
||||
div.fancy_bg_sw {
|
||||
bottom: -18px;
|
||||
left: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_sw.png') no-repeat;
|
||||
}
|
||||
|
||||
div.fancy_bg_w {
|
||||
left: -13px;
|
||||
height: 100%;
|
||||
width: 13px;
|
||||
background: transparent url('fancy_shadow_w.png') repeat-y;
|
||||
}
|
||||
|
||||
div.fancy_bg_nw {
|
||||
top: -18px;
|
||||
left: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_nw.png') no-repeat;
|
||||
}
|
||||
|
||||
div#fancy_title {
|
||||
position: absolute;
|
||||
bottom: -33px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#fancy_title div {
|
||||
color: #FFF;
|
||||
font: bold 12px Arial;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
div#fancy_title table {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
div#fancy_title table td {
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
td#fancy_title_left {
|
||||
height: 32px;
|
||||
width: 15px;
|
||||
background: transparent url(fancy_title_left.png) repeat-x;
|
||||
}
|
||||
|
||||
td#fancy_title_main {
|
||||
height: 32px;
|
||||
background: transparent url(fancy_title_main.png) repeat-x;
|
||||
}
|
||||
|
||||
td#fancy_title_right {
|
||||
height: 32px;
|
||||
width: 15px;
|
||||
background: transparent url(fancy_title_right.png) repeat-x;
|
||||
}
|
||||
Reference in New Issue
Block a user