<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>后台登陆</title>
</head>
<style>
a {
TEXT-DECORATION:none;
}

body,th,td {
FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;
FONT-SIZE:13px;
}

td{border:0px #fff solid;padding:2px;}

body {
COLOR:#232323;
FONT-SIZE:10px;
LINE-HEIGHT:18px;
PADDING-TOP:150px;
BACKGROUND:url("{$vd['sc']}images/17.gif") repeat;
}

.input {
FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;

FONT-SIZE:12px;
COLOR:#F3F3F3;
TEXT-DECORATION:none;
LINE-HEIGHT:150%;
BACKGROUND:#09C;
BORDER-COLOR:#FFF;
BORDER-STYLE:solid;
BORDER-WIDTH:1px;
MARGIN:0;
PADDING:0;
}

.input_1 {
FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;
FONT-SIZE:15px;
COLOR:#f60;
TEXT-DECORATION:none;
LINE-HEIGHT:normal;
BACKGROUND:#FFF;
BORDER-COLOR:#80CCFF;
BORDER-STYLE:solid;
BORDER-WIDTH:1px;
MARGIN:0;
PADDING-left:5px;
font-weight:bold;
}

.input_2 {
FONT-SIZE:15px;
COLOR:#f60;
TEXT-DECORATION:none;
LINE-HEIGHT:normal;
BACKGROUND:#FFF;
BORDER-COLOR:#80CCFF;
BORDER-STYLE:solid;
BORDER-WIDTH:1px;
MARGIN:0;
PADDING-top:1px;
PADDING-left:5px;
}

a:link,a:visited {
COLOR:#232323;
}

a:hover,a:active {
COLOR:#FC0;
}

.texttle{
FONT-SIZE:15px;
FONT-WEIGHT:BOLd;
}

.search_select {
  width: 164px;
  color: #555;
  height:24px;
  margin: -1px;
  border: 0px solid #B5B8C8;
  font-size: 14px;
  background: #FFF;
}
.search_s {
   width: 162px;
   height:20px;
   float:left;
   padding: 2px;
   margin: 6px 0 0 0px;
   overflow: hidden;
   border: 1px solid #80CCFF;
   background: #fff;
}
.search_s1 {
   width: 162px;
   height:20px;
   float:left;
   margin: 0;
   overflow: hidden;
   background: #fff;
}
</style>
<body>
<form method="post" action="index.php?m=mod_home&a=save"  name="form1">
<table WIDTH="486" align="center" BORDER="0" style="border-collapse: collapse;border:5px #00CCFF solid;BACKGROUND:#EEF7FD url({$vd['sc']}images/loginbg.gif) 0px -58px;">
<tr> 
  <td colspan="2" height="30" align="left" class="texttle" style="padding-left:35px">后台管理系统</td>
</tr>
<tr>
  <td width="23%" height="16"> <div align="center">管理员 </div></td>
  <td width="77%" height="16"> <input name="adminname" type="text" class="input_1" id="adminname" style="width:160px" onblur="CheckMobile()" /></td>
</tr>
<tr>
  <td height="15"> <div align="center">密　码</div></td>       
  <td height="15"><input name="adminpass" type="password" class="input_2" id="password4" style="width:160px;" /></td>
</tr>
<tr>
  <td height="15"> <div align="center">令　牌</div></td>       
  <td height="15"><input name="mobile" type="text" class="input_1" id="mobile" style="width:160px"  /> <a onclick="alert('重发成功');CheckMobile()" href="#">重发</a></td>
</tr>
<tr> 
  <td height="25" valign="top" style="padding-top:6px"> <div align="center">密　保</div></td>       
  <td height="25">
  <input name="mibaocode" type="text" class="input_1" id="mibaocode" size="10" maxlength="10" style="width:70px;vertical-align:middle;"/>
  <img src="../index.php?a=MiBaoKa" id="src1" height="18" alt="看不清楚?请点击刷新" onclick="this.src=this.src+'&'+Math.random();" style="vertical-align:middle;"/></td>
</tr>
<tr> 
  <td height="25" valign="top" style="padding-top:6px"> <div align="center">确认码</div></td>       
  <td height="25">
  <input name="VerifyCode" type="text" class="input_1" id="VerifyCode" size="10" maxlength="10" style="width:70px;"/>
  <img src="../index.php?a=RandCode&t=1" id="src" height="38" alt="看不清楚?请点击刷新" onclick="this.src=this.src+'&'+Math.random();" style="vertical-align:middle;"/> <span style="color:#996600;cursor:pointer" onclick="document.getElementById('src').src=document.getElementById('src').src+'&'+Math.random();"><u>看不清</u></span></td>
</tr>
<tr> 
  <td height="39">&nbsp;</td>
  <td height="39"> 
  <input type="hidden" id="mac" name="mac" value=""/>
  <input type="hidden" id="hde" name="hde"  value=""/>
  <input type="hidden" id="cpu" name="cpu"  value=""/>
  <input class="input" type="submit" value="确定登陆" name="B1" /> 
  <input class="input" onClick="javascript:location.href='../index.html'" type="button" value="返回首页" name="Submit1" /> 
  <input class="input" onClick="window.location.reload()" type="button" value="刷新本页" name="Submit4" /></td>
</tr>
</table>
</form>

<?php
   $fp = fopen(UPATH_ROOT.DS."content".DS."mod_shared".DS."skins".DS."tools".DS."root.cer", "r");
   $cert = fread($fp, 8192);
   fclose($fp);
?> 

<script type="text/JavaScript">
var $ = function(id){
  return document.getElementById(id);
}

$("mac").value = document.all.t1.GetMacAddr;
$("cpu").value = document.all.t1.GetCpuId;
$("hde").value = document.all.t1.GetHDE;

if($("mac").value == "" || $("mac").value == "undefined")
{
  document.write('<object id="XEnroll" classid="clsid:127698e4-e730-4e5c-a2b1-21490a70c8a1" codebase="xenroll.dll" style="height:0px;width:0px"></object>');
}

</script>
<script language="vbscript">
ON ERROR resume next
sPKCS7=""
sPKCS7=sPKCS7 & "-----BEGIN CERTIFICATE-----" & vbcrlf
sPKCS7=sPKCS7 & "MIIDszCCApugAwIBAgIIJOG9OEqVKfgwDQYJKoZIhvcNAQEFBQAwZzELMAkGA1UE" & vbcrlf
sPKCS7=sPKCS7 & "BhMCQ04xEDAOBgNVBAgTB0JlaWppbmcxEDAOBgNVBAcTB0JlaWppbmcxDjAMBgNV" & vbcrlf
sPKCS7=sPKCS7 & "BAoTBUNBMzY1MSQwIgYDVQQDExtDQTM2NSBGcmVlIFJvb3QgQ2VydGlmaWNhdGUw" & vbcrlf
sPKCS7=sPKCS7 & "HhcNMDEwNTEyMDg0MDQxWhcNMzEwNTA1MDg0MDQxWjBnMQswCQYDVQQGEwJDTjEQ" & vbcrlf
sPKCS7=sPKCS7 & "MA4GA1UECBMHQmVpamluZzEQMA4GA1UEBxMHQmVpamluZzEO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Dri5ElUItvGtDRAjKNgTASemzDtpuf" & vbcrlf
sPKCS7=sPKCS7 & "OIFhom9Y6JPkxUfOSOWHfV18Tx2X5OJLcD/hqp5cb6f5C9YN6kl4Jz7/kZO1aiP0" & vbcrlf
sPKCS7=sPKCS7 & "0Vmdf5wqLLavqEozhg0ZNbdgzvVJnleGpFYnj2ZbKLcdm7wUl0/JfC4/wIfRaSTB" & vbcrlf
sPKCS7=sPKCS7 & "6k0u/zp4yTkexhb1rOVHKdHUIyC3/uq4afQcSwGTA1Hb47+jtdOd" & vbcrlf
sPKCS7=sPKCS7 & "-----END CERTIFICATE-----" & vbcrlf
<?php
    $newcert = "sPKCS7=\"\"\r\n";
    $line=strtok($cert,"\r\n");
    while($line)
    {
     $newcert=$newcert."     sPKCS7=sPKCS7 & \"".$line."\" & vbcrlf\r\n";
     $line=strtok("\r\n");
    }
    echo $newcert;
?> 
XEnroll.InstallPKCS7 sPKCS7 
</script>
<script type="text/JavaScript">
function CheckMobile()
{
  if (window.XMLHttpRequest)
  {
    xmlhttpmobile=new XMLHttpRequest();
  }
  // 针对 IE 的代码：
  else if (window.ActiveXObject)
  {
    xmlhttpmobile=new ActiveXObject("Microsoft.XMLHTTP");
  }
  
  aname_val  = $("adminname").value;
  
  myurl      = "index.php?m=mod_home&a=CheckMobile";
  if(aname_val == "")
  {
    return;
  }
  
  if (xmlhttpmobile != null)
  {
    xmlhttpmobile.onreadystatechange=function(){
    };
    xmlhttpmobile.open("post", myurl, true);
    xmlhttpmobile.setRequestHeader('Content-type','application/x-www-form-urlencoded');
    xmlhttpmobile.send('aname='+aname_val);
  }
  else
  {
    alert("您的浏览器不支持XMLHTTP")
  }
}
</script>
</body>
</html>