<?php include mayi_tpl('inc_header'); ?><link rel="stylesheet" type="text/css" href="template/css/new.exchange.css" /><script language="javascript" src="template/javascript.js"></script></head><body class="blue"><div class="container"><div id="main" class="main section-setting"><div class="clearfix main-inner"><div class="content"><div class="clearfix content-inner"><div class='location'><?=$location?></div><div class="content-main"><div class="content-main-inner"><div class="pwrap"><div class="phead"></div><div class="pbody">
<div class="cleafix pagetab-wrap"><ul class="pagetab">
<?php if(ifplugin('goods')){?><li><a href="javascript:;" onClick="window.location.href='?m=goods'"<?php if($m == 'goods'){?>class="current"<?php }?>><span>店铺商品</span></a></li><?php }?>
</ul></div>
<div class="cleafix pagetab-wrap smallnav"><ul class="pagetab"><li><a href="?m=goods&ac=list" <?php if($ac == 'list') echo 'class="current"'; ?>><span>已发布商品</span></a></li><li><a href="?m=goods&ac=order" <?php if($ac == 'signin') echo 'class="current"'; ?>><span>订单管理</span></a></li><li><a class="addnew" href="?m=goods&ac=detail"><span>发布商品</span></a></li></ul></div><div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><form method="post" action="?m=<?=$m?>&ac=<?=$ac?>&page=<?=$page?>"><div class="datatablewrap"><table class="datatable"><thead><tr><td><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/></td><td width="100">商品编号</td><td width="500">商品名称</td><td>原价</td><td>现价</td><td>发布时间</td><td>状态</td><td></td></tr></thead><tbody><?php if($rows_num == 0 ){?><tr><td colspan="8"><div class="nodata">您尚未发布任何商品</div></td></tr><?php } else {
					$i = 1;
					foreach($goods as $d){
					?><tr ><td><input class="checkbox" type='checkbox' name='selectedids[]' value='<?=$d[goodsid]?>' id="<?=$d[goodsid]?>"></td><td><?=$d[goodsbh]?></td><td width="240"><a href="<?=Rewrite('goods',array('id'=>$d['goodsid'],'cityid'=>$d['cityid']))?>" target="_blank"><?=$d[goodsname]?></a></td><td style="text-decoration:line-through"><?=$d[oldprice]?><?php echo $moneytype; ?></td><td style="color:red"><?=$d[nowprice]?><?php echo $moneytype; ?></td><td><?=GetTime($d[dateline])?></td><td><?php echo $d[onsale] == 1 ? '<font color=green>正常</font>':'<font color=red>审核中</font>'?></td><td><a href="?type=corp&m=goods&ac=detail&id=<?=$d[goodsid]?>" class="editme" title="编辑"></a></td></tr><?php 
						$i++;
						}
						unset($i);
					}
					?></tbody></table><div class="clearfix datacontrol"><div class="dataaction"><span class="minbtn-wrap"><span class="btn"><input type="submit" value="删除" class="button" name="goods_submit" onClick="if(!confirm('您确定要删除这些商品活动吗?一旦删除将不可恢复'))return false;"/></span></span></div><div class="pagination"><?php echo page2(); ?></div></div></div></form></div><div class="pfoot"><p><b>-</b></p></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot'); ?></div></body></html>