<?php if (!defined('THINK_PATH')) exit();?><!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=utf-8" />
<title>后台管理系统</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/public/Front/js/jquery-1.7.2.min.js"></script> 
<script>
var total = 7 ;
function showContent(labName,contentName,labID){
	for(i=1;i<=total;i++){
		if(i==labID){
			document.getElementById(contentName+i).style.display="block";
			document.getElementById(labName+i).className="active";
		}
		else{
			document.getElementById(contentName+i).style.display="none";
			document.getElementById(labName+i).className="";
		}
	}

}
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="__PUBLIC__/Admin/images/topBg2.jpg">
  <tr>
    <td height="77" valign="top" style="background:url(__PUBLIC__/Admin/images/iTop.jpg) no-repeat left">
    <div style="position:absolute;right:0">
  <div class="topMenu">
  <a href="<?php echo U('Index/main');?>" target="mainframe" class="active" onClick="showContent('lab','nav',1)" id="lab1">后台管理</a>
  </div>
</div>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="__PUBLIC__/Admin/images/i01.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr id="tixing">
          <td width="205" style="padding-left:12px;">欢迎登录后台管理系统！ [<a href="<?php echo U('Public/logout');?>">退出系统</a>] </td>
          <td><img src="__PUBLIC__/Admin/images/ico01.jpg" width="14" height="14" align="absmiddle" /></td>
          <td width="200" align="center" style="color:red"><div id="Time">
              <script>document.getElementById('Time').innerHTML=new Date().toLocaleString()+''.charAt(new Date().getDay());setInterval("document.getElementById('Time').innerHTML=new Date().toLocaleString()+''.charAt(new Date().getDay());",1000);</script>
            </div></td>
          <td ><a href="<?php echo U('Member/charge');?>" style="color:red" target="mainframe">公司入款(<font id="top_msg"></font>)<font id="top_compay_playSound"></font></a>&nbsp;&nbsp;&nbsp;
          <a href="<?php echo U('Member/deal');?>" style="color:red" target="mainframe">提现申请(<font id="top_deal_msg"></font>)<font id="top_deal_playSound"></font></a>
        </td>
        </tr>
		
		<script>
    setInterval(function(){
      $.get('/index/index',function(a){
        $('#top_msg').html(a)
      })
    },1000)
  </script>

      </table></td>
  </tr>
  <tr>
    <td height="3" background="__PUBLIC__/Admin/images/i02.jpg"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="205" valign="top"><img src="__PUBLIC__/Admin/images/left01.jpg" width="205" height="13" /></td>
    <td width="5" valign="top" background="__PUBLIC__/Admin/images/i03.jpg"></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="117"><img src="__PUBLIC__/Admin/images/right01.jpg" width="117" height="13" /></td>
          <td width="100%" height="13" background="__PUBLIC__/Admin/images/right03.jpg"></td>
          <td width="38"><img src="__PUBLIC__/Admin/images/right02.jpg" width="38" height="13" /></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="205" align="center" valign="top" background="__PUBLIC__/Admin/images/left02.jpg"><table width="173" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="__PUBLIC__/Admin/images/i05.jpg" width="173" height="31" /></td>
        </tr>
        <tr>
          <td background="__PUBLIC__/Admin/images/i06.jpg" class="leftMenu">
          <div id="nav1">
    <div id="JiFenManage">
        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">系统后台管理</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Member/index');?>" target="mainframe">会员管理</a>  
        </div>

        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">财务管理</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Member/deal');?>" target="mainframe">提现未处理</a> 
            <a href="<?php echo U('Member/deallog');?>" target="mainframe">提现管理</a> 
            <a href="<?php echo U('Member/charge');?>" target="mainframe">公司入款管理</a> 
            <a href="<?php echo U('Member/pay');?>" target="mainframe">充值管理</a> 
        </div>
        </div>
        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">项目管理</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Project/add');?>" target="mainframe">添加项目</a>  
            <a href="<?php echo U('Project/index');?>" target="mainframe">项目管理</a>
            <a href="<?php echo U('Project/manager');?>" target="mainframe">已加入项目</a>
        </div>

        
        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">新闻公告中心</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('News/add');?>" target="mainframe">添加新闻公告</a>
            <a href="<?php echo U('News/index');?>" target="mainframe">新闻公告管理</a>
        </div>
<!--
        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">公告管理</a>
        <div class="leftSubMenu"> 
            <a href="<?php echo U('Announce/add');?>" target="mainframe">添加公告信息</a>
            <a href="<?php echo U('Announce/index');?>" target="mainframe">公告管理</a>
        </div>
-->

        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">帮助中心</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Help/addclass');?>" target="mainframe">添加分类</a>  
            <a href="<?php echo U('Help/classindex');?>" target="mainframe">分类管理</a>
            <a href="<?php echo U('Help/add');?>" target="mainframe">添加帮助信息</a>
            <a href="<?php echo U('Help/index');?>" target="mainframe">帮助管理</a>
        </div>

       <!--  <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">关于我们</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('About/addclass');?>" target="mainframe">添加分类</a>  
            <a href="<?php echo U('About/classindex');?>" target="mainframe">分类管理</a>
            <a href="<?php echo U('About/add');?>" target="mainframe">添加关于我们</a>
            <a href="<?php echo U('About/index');?>" target="mainframe">关于我们管理</a>
        </div> -->

        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">投资实力</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Touzi/add');?>" target="mainframe">添加投资实力</a>
            <a href="<?php echo U('Touzi/index');?>" target="mainframe">投资实力管理</a>
        </div>

          <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">理财达人</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Licai/add');?>" target="mainframe">添加理财达人</a>
            <a href="<?php echo U('Licai/index');?>" target="mainframe">理财达人管理</a>
        </div>


       <!--  <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">数据报表</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Member/reportForSystem');?>" target="mainframe">报表汇总数据</a> 
        </div> -->


        <a href="#" onclick="javascript:getObject('LinkManage');" style="background:rgb(214, 213, 224);">系统设置</a>
        <div class="leftSubMenu">
            <a href="<?php echo U('Member/rank');?>" target="mainframe">会员类别管理</a>
            <a href="<?php echo U('System/index');?>" target="mainframe">系统参数设置</a>
        </div>

    </div>
    <a href="<?php echo U('System/options');?>" target="mainframe">修改密码</a> <a href="<?php echo U('Public/logout');?>" target="mainframe" onclick="return conDATA()">退出系统</a>
</div>
          </td>
        </tr>
        <tr>
          <td><img src="__PUBLIC__/Admin/images/i07.jpg" width="173" height="10" /></td>
        </tr>
      </table></td>
    <td width="5" valign="top" background="__PUBLIC__/Admin/images/i03.jpg">&nbsp;</td>
    <td valign="top" style="background:url(__PUBLIC__/Admin/images/right07.jpg) repeat-y left;"><div class="mainRightR">
        <iframe width="100%" height="100%" name=mainframe src="<?php echo U('Index/main');?>" frameBorder=0 scrolling=yes></iframe>
      </div></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="205" valign="top"><img src="__PUBLIC__/Admin/images/left03.jpg" width="205" height="13" /></td>
    <td width="5" valign="top" background="__PUBLIC__/Admin/images/i03.jpg"></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="277"><img src="__PUBLIC__/Admin/images/right06.jpg" width="27" height="13" /></td>
          <td width="100%" height="13" background="__PUBLIC__/Admin/images/right04.jpg"></td>
          <td width="27"><img src="__PUBLIC__/Admin/images/right05.jpg" width="27" height="13" /></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="23" align="center" background="__PUBLIC__/Admin/images/i04.jpg" style="color:#bfe1e5; font-size:9px; text-transform:uppercase">Copyright(C)2006-2010 国际网络 All Rights Reserved </td>
  </tr>
</table>
<script type="text/javascript">
      //播放提示音
      function playSound(name,str){  
        $("#"+name+"").html('<embed width="0" height="0"  src="/public/Front/sound/'+str+'" autostart="true" loop="false">');
      }

      function total() {
        $.getJSON("/action/user.php?action=msg_sysUnread",function(data){
          top_msg      = parseInt($("#top_msg").text()); //统计未读短信
          top_deal_msg = parseInt($("#top_deal_msg").text()); //统计未读短信
          
          //赋值到模板
          $("#top_msg").html(data.compay); //统计未读短信
          $("#top_deal_msg").html(data.deal); //统计未读短信
          
          //未读站内短信提示
          if (data.compay > 0 || data.deal > 0) {
            playSound('top_compay_playSound','msg.mp3');
          }
        });
      }
      total();
      setInterval("total()",3000);
      </script>
</body>
</html>