{load(fhead)}
<script>var wedir = "{$vd['content']}js/";</script>
<script language="JavaScript" src="{$vd['content']}js/loadgameindex.js"></script>
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&a=Home">直销商管理系统</a> >> 我要进货 >> 购卡售用户</span></div>
	<div id="type">
	  <ul>
			<li><span class="type">按目录分类</span></li>
			<li><a href="{$vd['root']}index.php?m=mod_b2b&c=Quick"><span class="letters">便民中心</span></a></li>
			<li><a href="{$vd['root']}index.php?m=mod_b2b&c=Category&a=PinYin"><span class="letters">按字母分类</span></a></li>
			<li><a href="{$vd['root']}index.php?m=mod_b2b&c=product&a=most&nrows=5000"><span class="oftens">常购买商品</span></a></li>
		</ul>
	</div>
	<div id="buycard">
		<div id="buycardmain">
		<div id="search">
			<div id="searchlist" style="DISPLAY:none;">
			<table id="listtb" border="0" cellpadding="0" cellspacing="0" width="100%">
			</table>
			</div>
			<form name="form1" method="get" action="{$vd['root']}index.php">
			<input name="keywords" id="gametype" type="text" class="input" size="33" value="" onkeyup="vkeyup()">
			<input type="hidden" name="stype" value="pname"/>
			<input type="hidden" name="m" value="mod_b2b"/>
			<input type="hidden" name="c" value="product"/>
			<input type="hidden" name="nrows" value="4000"/>
			<select name="typesearch" id="typesearch" class="search_select">
    	  <option value="product" selected>搜索商品</option>
    	  <option value="category">搜索分类</option>
    	</select>
    	<!--$k=array('征途','热血传奇','魔兽世界','网易','永恒之塔' );-->
			<input type="image" src="{$vd['content']}images/icon_search.gif" border="0" align="absmiddle">　　<strong>热门搜索：</strong><!--foreach($k as $item) {--><a href="{$vd['root']}index.php?m=mod_b2b&c=product&stype=pname&typesearch=product&keywords=<!--echo urlencode($item);-->">{$item}</a>、<!--}-->
			</form>
		</div>
		<!--$icat=array();foreach($vd['cat'] as $cat) {-->
    <!--$ls=array();foreach($vd['subcat'] as $subcat) {-->
    <!--if($subcat['parentid'] == $cat['id'] && $subcat['forb2b'] == 1) {-->
    <!--$ls[]=$subcat;-->
    <!--}-->
    <!--$icat[$cat['id']]=$ls;-->
    <!--}}-->
    
    <!--$k=0;foreach($vd['cat'] as $cat) {-->
    <!--if($cat['forb2b'] == 1) {-->
		<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <tr>
			<td class="tableleft">
			  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
				<tr>
				<td colspan="5" class="heardertop">　<font color="{$cat['color']}">{$cat['name']}</font></td>
				</tr>
				<!--$n=0;$i=0;$ls=$icat[$cat['id']];foreach($ls as $subcat) {-->
        <!--if($i == 0){-->
        <tr<!--if($n%2==1){--> class="hs"<!--}-->>
        <!--$n++;}$i++;-->
    	  	<td width=20% class=stline><a class='tip' href='{#ListLink($subcat['id'])}'><!--if($vd['showtype']==0){--><font color={$subcat['color']}>{$subcat['name']}</font><!--if($subcat['abst'] != '' && $subcat['abst'] != 'NULL'){--><SPAN class=tip_info>{$subcat['abst']}</SPAN><!--}--><!--}else{--><img src="{$vd['root']}{$vd['sc']}upload/<!--if(isset($subcat['pics']) && $subcat['pics'] !='' && $subcat['pics']!='NULL' ){-->{$subcat['pics']}<!--}else{-->catnopic.gif<!--}-->" border="0" style="margin:8px 0 8px 0" alt="{$subcat['abst']}"/><!--}--></a></td>
    	  <!--if($i == 5){-->
    	  </tr>
    	  <!--$i=0;}-->
    	  <!--}-->
    	  
    	  <!--if($i > 0){-->
    	  <!--for($j=0; $j < 5 - $i; $j++){-->
    	  <td width="20%" class=stline>&nbsp;</td>
    	  <!--}-->
        </tr>
    	  <!--}-->
			  </table>
			</td>
		  </tr>
		</table>
		<br>
		<!--}$k++;}-->
	</div>
	</div>
<br>
</body>
</html>
