{load(fhead)}
</head>
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&c=Dealer&a=home">经销商管理系统</a> >> 自有商品管理 >> 商品发布与管理</span></div>
	
	<div id="type">
		<ul><li><a href="index.php?m=mod_agent&c=Product&a=Create"><span class=type>发布新商品</span></a></li><li><span class=type>商品管理</span></li></ul>
	</div>
	<div id="hearder"><span>商品列表</span></div>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<form name="query" method="get" ACTION="index.php">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
		<tr>
		<td width="22%" class="tableleft1">关键字：</td>
		<td width="78%" align="left" class="tableright1"><input type="text" size="30" name="keywords" class='input' value=""></td>
		</tr>
		<tr>
		<td class="tableleft1">查询条件：</td>
		<td align="left" class="tableright1">
		<select name="stype">
		<option value="pname">商品名称</option>
		<option value="listprice">商品面值</option>
		</select>
		<select name="ptype">
		<option value="-1" selected>全部类型</option>
		<option value="0">虚拟卡密</option>
		<option value="2">手工充值</option>
		<option value="1">自动充值</option>
		<option value="3">选号商品</option>
		</select>
		</td>
		</tr>
		<tr>
		<td class="tableleft1">&nbsp;</td>
		<td align="left" class="tableright1">
			<input type="hidden" name="m" value="mod_agent"/>
	    <input type="hidden" name="c" value="Product"/>
			<input type="submit" name="Submit" value="确认查询" class="button"> <input type="reset" name="reset" value="重置查询" class="button"></td>
		</tr>
		</table>
		</form>
	</td>
	</tr>
	</table>
	<br>
	<table width="98%" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<table class="table" width="100%" cellspacing="0" cellpadding="0" border="0">
		<tr>
		<td width="6%" class="heardertop1">ID</td>
		<td width="30%" class="heardertop1">商品名称</td>
		<td width="8%" class="heardertop1">商品类型</td>
		<td width="6%" class="heardertop1">面值</td>
		<td width="6%" class="heardertop1">状态</td>
		<td width="8%" class="heardertop1">手续费</td>
		<td width="6%" class="heardertop1">权限</td>
		<td width="6%" class="heardertop1">审核</td>
		<td width="10%" class="heardertop1">库存</td>
		<td width="6%" class="heardertop1">定价</td>
		<td width="4%" class="heardertop1">修改</td>
		<td width="4%" class="heardertop1">删除</td>
		</tr>
		<!--foreach($vd['items'] as $item) {-->
		<tr class="stline" onmouseover="this.className='nd'" onmouseout="this.className='stline'">
		<td>{$item['pid']}</td>
		<td align=left>{$item['pname']}</td>
		<td>{#ProductType($item['ptype'])}</td>
		<td>{$item['listprice']}</td>
		<td><!--if($item['sell']==0){--><font color=#ff0000>禁售</font><!--}else{--><font color=#0000ff>销售</font><!--}--></td>
		<td><!--echo $item['pfee']*100;-->%</td>
		<td><!--if($item['tosys']==1){--><font color=#ff0000>全局</font><!--}else{--><font color=#0000ff>下级</font><!--}--></td>
		<td><!--if($item['checked']==0){--><font color=#ff0000>未审</font><!--}else{--><font color=#0000ff>已审</font><!--}--></td>
		<td>
			<a href="index.php?m=mod_agent&c=Card&a=add&id={$item['pid']}">
      添加
      </a>
    </td>
		<td><a href="index.php?m=mod_agent&c=product&a=Price&pid={$item['pid']}"><u>定价</u></a></td>
		<td><a href="index.php?m=mod_agent&c=Product&a=Detail&pid={$item['pid']}"><img src="{$vd['content']}images/icon_xg.gif" border="0"></a></td>
		<td><!--if($item['ptype']<100){--><a href="index.php?m=mod_agent&c=Product&a=DestroyItems&id={$item['pid']}" onclick="{if(confirm('确认要删除{$item['pname']}吗？')){return true;}return false;}"><img src="{$vd['content']}images/icon_del.gif" border="0"></a><!--}else{-->&nbsp;<!--}--></td>
		</tr>
		<!--}-->
		</table>
	</td>
	</tr>
	</table>
	<div id="page" align="right">
		{load(fpage)}
	</div>
	
	<div style="display:none">
	<input type="submit" name="Submit" value="更新序号" class="button2"> <input type="reset" name="reset" value="重新填写" class="button2"> <input type="button" name="autotomanual" class="button2" value="充值切换" onclick="javascript:openScript('#','autosavesetup',600,400);"> <input type="button" name="nosaletime" class="button2" value="手工禁售" onclick="javascript:openScript('#','setuptime',600,220);">
  </div>
	
	<br>
	<br>
</body>
</html>
