<!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 rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/js/css/jquery-ui.css" />
<script type="text/javascript" src="view/admin/js/jquery.js"></script>
<script type="text/javascript" src="view/admin/js/jquery-ui.js"></script>
<script type="text/javascript" src="view/admin/js/basic.js"></script>
</head>
<body>

<div class="data_top"><a href="?a=sellerlist&m=addb2cdata" class="cat">同步商家</a>　<a href="./index.php?a=sellerlist&m=add" class="cat">添加商家</a></h2></div>
<div id="list">
	<form method="post" action="?a=sellerlist&m=sort">
	<table>
		<tr><th>名称</th><th>是否显示</th><th>推荐首页</th><th>logo</th><th>排序</th><th>操作</th></tr>
		{foreach from=$Alllist key=key item=value}
		<tr>
			<td>{$value->name}</td>
			{if $value->state==0}
			<td><span style="color:red">隐藏</span></td>
			{else}
			<td><span>显示</span></td>
			{/if}	
			{if $value->recommend==0}
			<td><span>不推荐</span></td>
			{else}
			<td><span style="color:red">推荐</span></td>
			{/if}
			<td><img src="{$value->logo}" /> </td>
			<td><input type="text" name="sort[{$value->id}]" class="sort" value="{$value->sort}" /></td>	
			<td><a href="./index.php?a=sellerlist&m=update&id={$value->id}"><img src="view/admin/images/edit.gif" alt="编辑" title="编辑" /></a>
		 <a href="./index.php?a=sellerlist&m=delete&id={$value->id}" onclick="return confirm('你真的要删除这个商家吗？') ? true : false"><img src="view/admin/images/drop.gif" alt="删除" title="删除" /></a></td></tr>
		{foreachelse}
		<tr><td colspan="6">没有任何商家分类</td></tr>
		{/foreach}
		{if $Alllist}<tr><td></td><td></td><td></td><td></td><td><input type="submit" name="send" value="排序" /></td><td></td></tr>{/if}
	</table>
	</form>
</div>
<div id="page">{$page}</div>
<div id="dialog" style="display:none;"><img src="view/admin/images/loading.gif" style="display:block;border:none;margin:0px auto; margin-top:80px;" /></div>
<div style="z-index: 1000; background-color: rgb(0, 0, 0); visibility: visible; display: none; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; width:100%;filter:alpha(opacity=50); opacity: 0.5; -moz-opacity:0.5;" id="blurdiv"></div>
</body>
</html>