{load(head)}
<div class="homemain">
 <div class="mainleftside">
 	<form name="loginForm" action="{$vd['root']}index.php?m=mod_b2b&a=login" autocomplete="off" method="post"  onSubmit="return formCheck()">
		<div class="login">
			<div class="main5" id="main5">
				<div style="text-align:center;margin:0px 0px"></div>
				<table width=94% border=0 align=center cellpadding=0 cellspacing=0>
        <tr id="ad_account" style="height:35px;">
        <td width=36% height=30 align=right>用户名：</td>
        <td colspan=2 align=left><input type=text size=14 maxlength=50 name="aname" id="aname" class=input tabindex=1></td>
        </tr>
        <tr id="staff_account" style="height:35px;display:none">
        <td width=36% height=30 align=right>员工号：</td>
        <td colspan=2 align=left><input type=text size=14 maxlength=50 name="staffname" id="staffname" class=input tabindex=1></td>
        </tr>
        <tr>
        <td width=36% height=30 align=right>密　码：</td>
        <td colspan=2 align=left><input type=password size=14 maxlength=50 name="pwd" id="pwd" class=input tabindex=1></td>
        </tr>
        <tr>
        <td width=36% height=30 align=right>密　宝：</td>
        <td width=19% align=left><input type=text size=4 maxlength=6 name=mibaocode id=mibaocode class=input tabindex=3/></td>
        <td width=45% align=left><img src="{$vd['root']}index.php?m=mod_b2b&c=Cust&a=MiBaoKa" id="mbsrc" align="absmiddle" height="18" alt="看不清楚?请点击刷新" onclick="this.src=this.src+'&'+Math.random();" />
        </td>
        </tr>
        <tr>
        <td width=36% height=30 align=right>验证码：</td>
        <td width=19% align=left><input type=text size=4 maxlength=4 name=verifycode id=verifycode class=input tabindex=4></td>
        <td width=45% align=left><img src="{$vd['root']}index.php?m=mod_b2b&c=Cust&a=RandCode&t=1" id="src" align="absmiddle" height="20" width="70" alt="看不清楚?请点击刷新" onclick="this.src=this.src+'&'+Math.random();"/> </td>
        </tr>
        <tr>
        <td height=30 colspan=3 align=center><input type="image" src="{$vd['content']}images/icon_dl.gif"/> <a href="{$vd['root']}index.php?m=mod_b2b&a=reg"><img src={$vd['content']}images/icon_zc.gif border=0></a></td>
        </tr>
        </table>
        <iframe name="gethard" id="gethard" width="0" height="0" style="border:0" src=""></iframe>
        <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 type="hidden" name="logintype" value="0"/>
        <input type="hidden" id="isb2bindex" value="0"/>
			</div>
		</div>
		<div style="display:none" id="secDiv"></div><div style="display:none" id="norDiv"></div>
  <script type="text/javascript" src="{$vd['content']}js/pwdcontrol.js"></script>
  <script type="text/javascript" src="{$vd['content']}js/mobile.js"></script>
  <script type="text/javascript">
    var $ = function(id){
      return document.getElementById(id);
    }
    
    function myBind(obj)
    {
    	if(obj.checked)
    	{
    		document.all.gethard.src='{$vd['root']}index.php?m=mod_b2b&a=bindHard';
    	}
    }
    
    function myStaff(obj)
    {
    	if(obj.checked)
    	{
    		setloginad(0)
    	}
      else
    	{
    		setloginad(1)
    	}
    }
    
    function AlertPwd()
    {
      alert('请联系管理员取回您的密码！');
    }
    
    function FormSubmit()
    {
      if (formCheck())
        $("loginForm").submit();
    }
    
    function setSec(flag)
    {
      if(flag == 0)
      {
        $("norDiv").className = "noron";
        $("secDiv").className = "sec";
        $("loginpwd").innerHTML = '<label class="vtop">密　码：</label><ins id="sn-ctrl" class="vtop"></ins><input type="password" name="pwd" id="pwd" maxlength="32" class="pass logininput"><img src="{$vd['content']}images/jp.gif" style="margin-top:2px;padding-left:5px;cursor:pointer" onClick="password1=pwd;showkeyboard()">'
      }
      else
      {
        $("norDiv").className = "nor";
        $("secDiv").className = "secon";
        $("loginpwd").innerHTML = '<label class="vtop">密　码：</label><ins id="sn-ctrl" class="vtop"></ins><input type="hidden" name="pwd" id="pwd" maxlength="32" class="pass">'
        var p_log = new USC.PC()
        p_log.show({
          ctrlType : "log",
          ctrlID : "passwdctl",
          parentNode : "sn-ctrl",
          tabIndex : "2",
          w : 130,
          showLost : false,
          submitName : "p",
          ctrlEvn : FormSubmit,
          emptyFun : function(){},
          formatFun : function(){},
          errFun : function(){}
        });
      }
    }
    
    function setloginad(val)
    {
      $("ad_account").style.display = val == 1 ? "" : "none";
      $("staff_account").style.display = val == 1 ? "none" : "";
      
      if(val == 1)
      {
        $("staffname").value="";
      }
      else
      {
        $("aname").value="";
      }
    }
    
    function formCheck()
    {
      var fm = document.loginForm;
      
      if(!$("ad_login").checked && fm.aname.value == "")
      {
         alert( "经销商账号不能为空。");
         fm.aname.focus();
         return false;
      }
          
      if($("ad_login").checked && fm.staffname.value == "")
      {
         alert( "员工账号不能为空。");
         fm.staffname.focus();
         return false;
      }
      
      if($("secDiv").className == "secon")
      {
        fm.pwd.value = $("passwdctl").GetPwdText();
      }

      if(fm.pwd.value == "")
      {
         alert( "密码不能为空。");
         try{fm.pwd.focus();}catch(e){}
         return false;
      }  
      
      if(fm.verifycode.value == "")
      {
         alert( "验证码不能为空。");
         fm.verifycode.focus();
         return false;
      }
    }
  </script>
	</form>
	  <div class="csadd">
			<div class="castop">
				<span class="cstitle"><img src="{$vd['content']}images/i_72.jpg"/></span>
				<span class="csmore"><a href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=more"><img src="{$vd['content']}images/more2.gif" border="0"></a></span>
			</div>
			<div class="camain">						
				<ul>
          <li>腾讯<a href="http://pay.qq.com/paycenter/paycenter_qb_card.shtml" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.qq.com/account/account_qqcard_query.shtml" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>盛大<a href="http://pay.sdo.com/Deposit/CardDeposit.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.16288.com/cxye/Default.aspx" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>网易<a href="http://pay.163.com/index.jsp" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.163.com/servlet/controller?operation=queryaccount" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>搜狐<a href="http://sde.game.sohu.com/payment/gamechoice.jsp" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://esales.sohu.com/online/index/peakquery.jsp" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>金山 <a href="http://pay.kingsoft.com/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.kingsoft.com/fastquery.php" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          
          <li>巨人<a href="http://pay.ztgame.com:81/qfillcard.php" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.ztgame.com.cn:8890/varCard.php" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>完美<a href="http://pay.wanmei.com/e/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.wanmei.com/e/jsp/query/queryUsedCard.jsp" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>久游<a href="http://pay.9you.com/funpay/index.php" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          <li>九城<a href="https://passport.the9.com/payment/ctl_payment.php?action=method" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="https://passport.the9.com/payment/ctl_payment.php?action=searchpc_fill" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>网龙<a href="https://168shop.91.com/Pay/SupplyMoney.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="https://168shop.91.com/Account/Search91Card.aspx" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>光宇<a href="http://www.gyyx.cn/pay/CardPay.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          <li>悠游<a href="https://billing.iyoyo.com.cn/Account/Login.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          <li>蜗牛<a href="http://res.woniu.com/imprest/imprest_main.html" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://imprest.woniu.com/imprest/imprest_card_query.jsp" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>网域<a href="https://pay.21mmo.com/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          
          <li>蜀门<a href="http://pay.shumenol.com/member/pay_kmcz.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.shumenol.com/member/pay_kmcx.aspx" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>麒麟<a href="http://pay.70yx.com/CardPay.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.70yx.com/CardQuery.aspx" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>中华网<a href="http://bill.cdcgames.net/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://bill.cdcgames.net/querycard.aspx" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>中广网<a href="http://ucard.catv.net/GameCard/Charge/Charge.htm" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://ucard.catv.net/GameCard/Query/Default.aspx" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>中青宝<a href="http://pay.zqgame.com/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.zqgame.com/pay/checkocpeffective.jsp" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>摩力游<a href="http://pay.moliyo.com/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          <li>世纪天成<a href="http://pay.tiancity.com/Payment/CardRegistration.aspx" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          <li>蓝港<a href="http://pay.linekong.com/" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a><a href="http://pay.linekong.com/jsp/queryCard.jsp" target="_blank"><img src="{$vd['content']}images/card_cx.gif" border="0"></a></li>
          <li>天游<a href="http://pay.t2cn.com/card.shtml" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
          
          <li>联众<a href="http://pay.ourgame.com/pay_ourgame.asp" target="_blank"><img src="{$vd['content']}images/card_cz.gif" border="0"></a></li>
        </ul>
			</div>
		</div>
		
		<div id="link">
			<div id="linktop"><span class="cstitle"><img src="{$vd['content']}images/i_99.jpg"/></span></div>
			<div class="linkms">
				<div id="linkmain">					
					<div id=linkmain1>
						<ul>
            <!--$i=0;foreach($vd['ad'] as $a) {-->
            <!--if($a['ispic']==1 && $a['pos']==109){-->
            <li><a href="{$a['url']}" target="_blank"><img src="{$vd['root']}{$vd['sc']}upload/{$a['pic']}" width="80" height="31"/></a></li>
            <!--$i++;}-->
            <!--}-->
            <!--foreach($vd['ad'] as $a) {-->
            <!--if($a['ispic']==0 && $a['pos']==109){-->
            <li><a href="{$a['url']}" class=flink> <font color="{$a['textcolor']}">{#SubText($a['text'], 8)}</font></a></li>
            <!--$i++;}-->
            <!--}-->
            
            <!--for($j=0; $j < 10-$i;$j++) {-->
            <li><a class=flink>欢迎链接</a></li>
            <!--}-->
            
            </ul>
					</div>
					<div id=linkmain2></div>
					<script language="JavaScript">
          var speed=10;
          linkmain2.innerHTML=linkmain1.innerHTML;
          function Marquee()
          {
          	if(linkmain2.offsetTop-linkmain.scrollTop<=0)
          	{linkmain.scrollTop-=linkmain1.offsetHeight;}
          	else{linkmain.scrollTop++;}
          }
          var MyMar=setInterval(Marquee,speed)
          linkmain.onmouseover=function() {clearInterval(MyMar)}
          linkmain.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
          </script>
				</div>
			</div>
		</div>
				
	

	
	
	
			</div>
		  <div class="mainmiddleside">
		  	<div class="gg">
				  <div class="ggtop"><span><a href="{$vd['root']}index.php?m=mod_b2b&c=article&a=home&name=<!--echo urlencode('批发系统公告');-->"><img src="{$vd['content']}images/more1.gif" border="0"></a></span></div>
				  <ul>
          	<!--$i=0;foreach($vd['ann'] as $a) {-->
            <li<!--if($i%2==1){--> class="oddrows"<!--}-->><span style="float:right">{$this->DateFormat($a['ndate'],'Y-m-d')}</span>
            <!--if($a['stick']==1){--><!--}--> <a href="<!--if($a['titlelink'] != ''){-->{$a['titlelink']}" target="_blank"<!--}else{-->{$vd['root']}article/<!--if($vd['vip'] > 0){-->?{$a['id']}<!--}else{-->{$a['id']}.html<!--}-->" target="_blank"<!--}--> title="{$a['title']}"><font color="{$a['titlecolor']}">{#SubText($a['title'], 29)}</font></a><img src="{$vd['content']}images/hot.gif"/></li>
            <!--$i++;}-->
          </ul>
			  </div>
			  
				<div class="ads"><a href="{$vd['banner'][0]['url']}" target=_blank><img src="{$vd['root']}{$vd['sc']}upload/{$vd['banner'][0]['pic']}" border=0 width="480" height="60" align=top></a></div>
				<div class="banks">
					<div class="mtop"><span class="cstitle"><img src="{$vd['content']}images/i_75.jpg"></span></div>
					<div class="mmain">
						<ul>
						<!--foreach($vd['banks'] as $item){-->
						<!--if($item['AccountNO'] != ''){-->
            <li>
  		      	<span><img src="{$vd['root']}{$vd['sc']}upload/{$item['bankicon']}" width="30" height="36"/></span>
  		      	<a href="<!--echo $item['banksite'] == '' ? $vd['root'].'index.php?m=mod_b2b&c=Article&a=more' : $item['banksite'];-->" target="_blank"><b><u>{$item['AccountBranch']}</u></b></a>（{$item['Address']}）<br/>
              {$item['AccountNO']}<br/>
              账户名：{$item['AccountName']}<br/>
  		      </li>
  		      <!--}-->
            <!--}-->
            </ul>
					</div>
				</div>
				
				<div class="services">
					<div class="mtop"><span class="cstitle"><img src="{$vd['content']}images/i_98.jpg"></span></div>
					<div class="smain">		
						<div class="slo">				
							<img src="{$vd['content']}images/i_104.jpg"/>
							<div class="stel">
								<ul>
			          <!--for($j=0;$j<count($vd['teltype']);$j++){-->
                <!--if(isset($vd['tel'][$j])&&count($vd['tel'][$j]) > 0){-->
                <li>{$vd['qqtype'][$j]}：<!--for($i=0;$i<count($vd['tel'][$j]);$i++){-->{$vd['tel'][$j][$i]} <!--}--></li>
                <!--}-->
                <!--}-->
                </ul>
							</div>
							<img src="{$vd['content']}images/i_108.jpg"/>
							<div class="qlocation">
								<table width="450" cellpadding="0" cellspacing="0" border="0">
									<tr>
										<td height="30" width="43" align="left"><!--if(isset($vd['qq'][0])&&count($vd['qq'][0]) > 0){-->{$vd['qqtype'][0]}：<!--}--></td>
										<td width="180" align="left" valign="middle">
											<!--if(isset($vd['qq'][0])&&count($vd['qq'][0]) > 0){-->
									    <!--for($i=0;$i<count($vd['qq'][0]);$i++){-->
                        <a href="tencent://message/?uin={$vd['qq'][0][$i]}&Site={$vd['web']['webname']}&Menu=yes" target="_blank">
                          <img border="0" SRC="http://wpa.qq.com/pa?p=1:{$vd['qq'][0][$i]}:<!--if(isset($vd['config'][8])){echo $vd['config'][8]+1;}else{echo 15;}-->" alt="点击这里给我发消息" style="vertical-align:middle;"/>
                        </a>
                      <!--}-->
                      <!--}-->
										</td>
										<td width="43" align="left"><!--if(isset($vd['qq'][1])&&count($vd['qq'][1]) > 0){-->{$vd['qqtype'][1]}：<!--}--></td>
										<td width="180" align="left" valign="middle">
											<!--if(isset($vd['qq'][1])&&count($vd['qq'][1]) > 0){-->
									    <!--for($i=0;$i<count($vd['qq'][1]);$i++){-->
                        <a href="tencent://message/?uin={$vd['qq'][1][$i]}&Site={$vd['web']['webname']}&Menu=yes" target="_blank">
                          <img border="0" SRC="http://wpa.qq.com/pa?p=1:{$vd['qq'][1][$i]}:<!--if(isset($vd['config'][8])){echo $vd['config'][8]+1;}else{echo 15;}-->" alt="点击这里给我发消息" style="vertical-align:middle;"/>
                        </a>
                      <!--}-->
                      <!--}-->
										</td>
									</tr>
									<tr>
										<td align="left"><!--if(isset($vd['qq'][2])&&count($vd['qq'][2]) > 0){-->{$vd['qqtype'][2]}：<!--}--></td>
										<td align="left" valign="middle">
											<!--if(isset($vd['qq'][2])&&count($vd['qq'][2]) > 0){-->
									    <!--for($i=0;$i<count($vd['qq'][2]);$i++){-->
                        <a href="tencent://message/?uin={$vd['qq'][2][$i]}&Site={$vd['web']['webname']}&Menu=yes" target="_blank">
                          <img border="0" SRC="http://wpa.qq.com/pa?p=1:{$vd['qq'][2][$i]}:<!--if(isset($vd['config'][8])){echo $vd['config'][8]+1;}else{echo 15;}-->" alt="点击这里给我发消息" style="vertical-align:middle;"/>
                        </a>
                      <!--}-->
                      <!--}-->
										</td>
										<td align="left"><!--if(isset($vd['qq'][3])&&count($vd['qq'][3]) > 0){-->{$vd['qqtype'][3]}：<!--}--></td>
										<td align="left" valign="middle">
											<!--if(isset($vd['qq'][3])&&count($vd['qq'][3]) > 0){-->
									    <!--for($i=0;$i<count($vd['qq'][3]);$i++){-->
                        <a href="tencent://message/?uin={$vd['qq'][3][$i]}&Site={$vd['web']['webname']}&Menu=yes" target="_blank">
                          <img border="0" SRC="http://wpa.qq.com/pa?p=1:{$vd['qq'][3][$i]}:<!--if(isset($vd['config'][8])){echo $vd['config'][8]+1;}else{echo 15;}-->" alt="点击这里给我发消息" style="vertical-align:middle;"/>
                        </a>
                      <!--}-->
                      <!--}-->
										</td>
									</tr>
								</table>
							</div>
						</div>
					</div>
				</div>
				
			</div>
			<div class="mainrightside">
				<div class="topic">
					<div class="t21">
						<a href="{$vd['root']}article/<!--if($vd['vip'] > 0){-->?22<!--}else{-->22.html<!--}-->" target=_blank><img src={$vd['content']}images/icon_xszn.jpg border=0></a>
	          <a href="{$vd['root']}article/<!--if($vd['vip'] > 0){-->?59<!--}else{-->59.html<!--}-->" target=_blank><img src={$vd['content']}images/icon_aqzt.jpg border=0></a>
	          <a href="{$vd['root']}<!--if($vd['vip'] > 0){echo VROOT.'/';}-->content/mod_shared/skins/upload/dlq.rar" target=_blank><img src={$vd['content']}images/icon_dlq.jpg border=0></a>
	          <a href="{$vd['root']}article/<!--if($vd['vip'] > 0){-->?58<!--}else{-->58.html<!--}-->" target=_blank><img src={$vd['content']}images/icon_dkgm.jpg border=0></a>
	          <a href="{$vd['root']}article/<!--if($vd['vip'] > 0){-->?20<!--}else{-->20.html<!--}-->" target=_blank><img src={$vd['content']}images/icon_yggl.jpg border=0></a>
	          <a href="{$vd['root']}article/<!--if($vd['vip'] > 0){-->?60<!--}else{-->60.html<!--}-->" target=_blank><img src={$vd['content']}images/icon_vip.jpg border=0></a>
					</div>
				</div>
				<div class="asks">
					<div class="castop">
						<span class="cstitle"><img src="{$vd['content']}images/i_78.jpg"/></span>
						<span class="csmore"><a href="{$vd['root']}index.php?m=mod_b2b&c=article&a=home&name=<!--echo urlencode('批发系统常见问题');-->"><img src="{$vd['content']}images/more.gif" border="0"></a></span>					
					</div>
					<div class="askmain">
						<ul>
            	<!--$i=0;foreach($vd['faq'] as $a) {-->
              <li><a href="<!--if($a['titlelink'] != ''){-->{$a['titlelink']}" target="_blank"<!--}else{-->{$vd['root']}article/<!--if($vd['vip'] > 0){-->?{$a['id']}<!--}else{-->{$a['id']}.html<!--}-->" target="_blank"<!--}--> title="{$a['title']}"> <font color="{$a['titlecolor']}">{#SubText($a['title'],14)}</font></a></li>
              <!--$i++;if($i>9)break;}-->
            </ul>
					</div>
				</div>
				<div class="rightad">
		  		<!--foreach($vd['ad'] as $aditem) {-->
          <!--if($aditem['ispic']==1 && $aditem['pos']==103){-->
          <a href="{$aditem['url']}" target="_blank"><img src="{$vd['root']}{$vd['sc']}upload/{$aditem['pic']}" width="220" height="80" align=top></a>
          <!--}--><!--}-->
		  	</div>
			</div>
			
		</div>
{load(couplet)}
{load(foot)}