<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="<?php echo $vd['sc']; ?>css/main.css">
<style type="text/css">
td{height:30px;}
#dig td{padding-left:0px}
#dig1 td{padding-left:0px}
</style>
</head>

<body>
<div id="myhome">
<script type="text/javascript">
   if (!window.XMLHttpRequest) {
     document.getElementById("myhome").style.position = "absolute";
   }
</script>
<table border="1" width="100%" style="border-collapse: collapse;" bordercolor="#cccccc">
  <tr>
    <td width="40%" height="28" class="listhead">
    <span>→欢迎进入后台管理系统</span></td>
    <td width="35%" class="listhead" >
    <div align="center">
      <span>当前登录管理员：<?php echo $vd['admin']; ?></span></div>
    </td>
    <td width="25%" class="listhead" style="border-right:1px #ccc solid">
    <div align="right">
      <a target="_blank" href="../index.php" >
      <span class="style11">浏览平台默认首页</span>&nbsp;</a></div>
     </div>
    </td>
  </tr>
</table>
<br/>

<?php $item=$vd['sysinfo']; ?>
<table border="0" width="100%" style="border-collapse: collapse;">
  <tr>
    <td width="25%" style="padding-left:0px">
      <table border="0" width="100%" style="border-collapse: collapse;padding-right:20px;border:1px #ccc solid;background:#FFE9A5">
        <tr>
          <td  height="23" class="listhead" colspan="2" style="border-right:1px #ccc solid">
          <div align="center"><b>待处理事务</b></div>
          </td>
        </tr>
        <tr>
          <td width="60%" style="border-right:0px #fff solid">未处理订单</td>
          <td width="40%" style="border-right:1px #ccc solid;text-align:right"><a href="index.php?m=mod_b2b&c=Order&optype=w&by=1&aid=-2" onclick="loadDisp(1)"><?php echo $item['order_todeal']; ?>个</a>&nbsp;</td>
        </tr>
        <tr>
          <td width="60%" style="border-right:0px #fff solid">未处理投诉</td>
          <td width="40%" style="border-right:1px #ccc solid;text-align:right"><a href="index.php?m=mod_b2b&c=Complaint&msgto=0&mstate=1&by=1" onclick="loadDisp(1)"><?php echo $item['pm_complaint']; ?>条</a>&nbsp;</td>
        </tr>
        <tr>
          <td width="60%" style="border-right:0px #fff solid;border-bottom:1px #ccc solid">未处理汇款</td>
          <td width="40%" style="border-right:1px #ccc solid;border-bottom:1px #ccc solid;text-align:right"><a href="index.php?m=mod_b2b&c=Remit&msgto=0&mstate=1&by=1" onclick="loadDisp(1)"><?php echo $item['pm_addfunds']; ?>条</a>&nbsp;</td>
        </tr>
      </table>
    </td>
    <?php $startdate = urlencode(date('Y-m-d').' 00:00:00'); ?>
    <td width="25%" style="padding-left:0px">
      <table border="0" width="100%" style="border-collapse: collapse;padding-right:20px;border:1px #ccc solid;background:#EAF4FF">
        <tr>
          <td  height="23" class="listhead" colspan="2" style="border-right:1px #ccc solid">
          <div align="center"><b>今日业务量</b></div>
          </td>
        </tr>
        <tr>
          <td width="60%" style="border-right:0px #fff solid">今日订单数</td>
          <td width="40%" style="border-right:1px #ccc solid;text-align:right"><a href="index.php?m=mod_b2b&c=order&aid=-2&startdate=<?php echo $startdate; ?>"  onclick="loadDisp(1)"><?php echo $item['order_num']; ?>个</a>&nbsp;</td>
        </tr>
        <tr>
          <td width="60%" style="border-right:0px #fff solid">今日预付款订单数</td>
          <td width="40%" style="border-right:1px #ccc solid;text-align:right"><a href="index.php?m=mod_b2b&c=funds&startdate=<?php echo $startdate; ?>"  onclick="loadDisp(1)"><?php echo $item['today_funds']; ?>个</a>&nbsp;</td>
        </tr>
        <tr>
          <td width="60%" style="border-right:0px #fff solid;border-bottom:1px #ccc solid">今日新增用户</td>
          <td width="40%" style="border-right:1px #ccc solid;border-bottom:1px #ccc solid;text-align:right"><a href="index.php?m=mod_b2b&c=agent&startdate=<?php echo $startdate; ?>"  onclick="loadDisp(1)"><?php echo $item['today_agent']; ?>个</a>&nbsp;</td>
        </tr>
      </table>
    </td>
    <td width="50%" style="padding-left:0px">
      <table border="1" width="100%" style="border-collapse: collapse;padding-right:20px;" bordercolor="#FFE9A5">
        <tr>
          <td height="23" class="listhead" style="border-right:1px #ccc solid">
          <div align="center"><b>卡盟联盟</b></div>
          </td>
        </tr>
        <tr>
          <td id="frm1" style="height:96px;padding-left:0px;border-right:1px #ccc solid;border-bottom:1px #ccc solid">
           <div align="center"><b>联系QQ：84945491</b></div></br>
           <div align="center"><a href="http://www.caipiaobar.com">百信卡盟数据中心http://www.caipiaobar.com</a></div></br>
           <div align="center"><a href="http://www.caipiaobus.com">百信卡盟站长站http://www.caipiaobus.com</a></div></br>
           <div align="center"><a href="http://shop70674652.taobao.com">百信购物淘宝店http://shop70674652.taobao.com</a></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br/>
<table border="0" width="100%" style="border-collapse: collapse;">
  <tr>
    <td width="50%" style="padding-left:0px">
      <table border="0" width="100%" style="border-collapse: collapse;padding-right:20px;border:1px #ccc solid;background:#F0F0F0">
        <tr>
          <td width="20%" style="border-right:0px #fff solid">开发商</td>
          <td width="80%" style="border-right:1px #ccc solid"><a href="http://shop70674652.taobao.com" target="_blank"><font color="#000">百信卡盟平台</font></a>
            
          </td>
        </tr>
        <tr>
          <td width="20%" style="border-right:0px #fff solid">客户服务</td>
          <td width="80%" style="border-right:1px #ccc solid">QQ:84945491</td>
        </tr>
        <tr>
          <td width="20%" style="border-right:0px #fff solid;border-bottom:1px #ccc solid">客服验证</td>
          <td width="80%" style="border-right:1px #ccc solid;border-bottom:1px #ccc solid">
            <form method="post" action="http://shop70674652.taobao.com" target="_blank">
              <input type="text" name="officeqq" style="border:1px #ccc dashed;background:#f8f8f8"/> <input type="submit" value="提交验证" class="button" style="border:1px #ccc dashed" />
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td width="50%" style="padding-left:0px">
      <table border="0" width="100%" style="border-collapse: collapse;padding-right:20px;border:1px #ccc solid;background:#FFE6F5">
        <tr>
          <td id="frm2" style="height:97px;padding-top:0px;padding-left:0px;border-right:1px #ccc solid;border-bottom:1px #ccc solid" valign="top">
           <div align="center"><b>联系QQ：84945491</b></div></br>
           <div align="center"><a href="http://www.caipiaobar.com">百信卡盟数据中心http://www.caipiaobar.com</a></div></br>
           <div align="center"><a href="http://www.caipiaobus.com">百信卡盟站长站http://www.caipiaobus.com</a></div></br>
           <div align="center"><a href="http://shop70674652.taobao.com">百信购物淘宝店http://shop70674652.taobao.com</a></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br/>
<table border="1" width="100%" style="border-collapse: collapse;" bordercolor="#cccccc">
  <tr>
    <td colSpan="4" height="23" class="listhead" style="border-right:1px #ccc solid">
    <div class="style3" align="center">
      平台基本信息</div>
    </td>
  </tr>
  <tr>
    
    <td width="20%" height="25"  style="background:#f0f0f0">
    <div align="center">当前版本</div>
    </td>
    <td width="30%" height="25">百信卡盟平台</td>
    <td width="25%" height="25">
    <div align="center">套餐类型</div>
    </td>
    <td width="25%" height="25" style="color:#ff0000;font-weight:bold;border-right:1px #ccc solid"><div align="center">百信卡盟平台程序</div></td>
  </tr>
  <tr>
    <td width="20%" height="25"  style="background:#f0f0f0">
    <div align="center">最新版本</div>
    </td>
    <td width="30%" height="25">百信卡盟平台</td>
    <td width="25%" height="25">
    <div align="center">运行天数</div>
    </td>
    <td width="25%" height="25" style="color:#ff0000;font-weight:bold;border-right:1px #ccc solid;"><div align="center">很多天</div></td>
  </tr>
  <tr>
    <td width="25%" height="25" style="border-bottom:1px #ccc solid;background:#f0f0f0">
    <div align="center">各项目到期情况</div>
    </td>
    <td colSpan="3" height="23" style="border-bottom:1px #ccc solid;border-right:1px #ccc solid;">
    <div class="style3" align="center">
      <table border="1" width="99%" style="border-collapse: collapse;margin-bottom:5px;margin-top:5px" bordercolor="#E8E8E8">
        <tr style="background:#F4F4F4">
           <td width="20%">项目类型</td>
           <td width="20%">项目名称</td>
           <td width="20%">到期时间</td>
           <td width="20%">还剩天数</td>
           <td width="20%" style="border-right:1px #ccc solid;">续费金额</td>
        </tr>
        <tr >
           <td width="20%" style="border-bottom:1px #ccc solid;"><a href="http://www.caipiaobus.com">技术支持QQ84945491</a></td>
           <td width="20%" style="border-bottom:1px #ccc solid;"><a href="http://www.caipiaobus.com">百信卡盟平台程序</a></td>
           <td width="20%" style="border-bottom:1px #ccc solid;">2088-08-08</td>
           <td width="20%" style="border-bottom:1px #ccc solid;">很多天</td>
           <td width="20%" style="border-bottom:1px #ccc solid;border-right:1px #ccc solid;">很多天</td>
        </tr>
      </table>
    </div>
    </td>
  </tr>
</table>

<div style="height:0px"></div>
<div id="load" style="display:none">
  <div id="loadcontent" ><div style="padding-bottom:8px"><img src="content/mod_shared/skins/images/js_loader.gif"></div>页面加载中请稍等...</div>
</div>
</div>
<script type="text/javascript">
var $ = function(id){
  return document.getElementById(id);
}
if (window.XMLHttpRequest) 
{
  if(!window.ActiveXObject)
  {
     $("frm1").style.height = "87px";
     $("frm2").style.height = "88px";
  }
} 
function iEvent(sType,oInput)
{
  switch (sType){
    case "focus" :
      oInput.isfocus = true;
      oInput.style.backgroundColor='#FFFFD8';
    case "mouseover" :
      oInput.style.borderColor = '#99E300';
      break;
    case "blur" :
      oInput.isfocus = false;
      oInput.style.backgroundColor="";
    case "mouseout" :
      if(!oInput.isfocus){
        oInput.style.borderColor='#A1BCA3';
      }
      break;
  }
}

function disp(id)
{
  document.getElementById(id).style.display = document.getElementById(id).style.display=="" ? "none" : "";
}

function setLoad(txt)
{
  $("loadcontent").innerHTML = '<div style="padding-bottom:8px"><img src="content/mod_shared/skins/images/js_loader.gif"></div>' + txt;
}

function loadDisp(flag)
{
  $("load").style.display = flag ? "" : "none";
}

function setOnclick()
{
  es = document.getElementsByTagName("a");
  len = es.length;
  for(var i=0; i < len; i++)
  {
    var o = es[i];
    o.onclick = function(){ loadDisp(1);};
  }
  es = null;
}

function setSearchTxt()
{
  setLoad("数据搜索中请稍等...");
  loadDisp(1);
}

<?php if(isset($vd['showver']) && $vd['showver'] == 1){ ?>
function GetBiz()
{
  var xmlhttp;
  var obj = document.getElementById("sysmsg");
  try{
    xmlhttp=new XMLHttpRequest();
  }
  catch(e){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function(){
    if (xmlhttp.readyState==4){
      if (xmlhttp.status==200){
        var data=xmlhttp.responseText;
        if(data != "" ){
           if(data == "1")
           {
           	 $("adddiv").style.display = "";
           }
        }
      }
    }
  }
  xmlhttp.open("post", "index.php?m=mod_home&c=home&a=GetBiz", true);
  xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
  xmlhttp.send('');
}

GetBiz();
<?php } ?>

//setLoad("页面加载中请稍等...");
//setOnclick();
</script>
</body>

</html>