<!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/nav.js"></script>
<script type="text/javascript" src="view/admin/js/ajax.js"></script>
</head>
<body>
<h2><a href="?a=recshop&m=add">添加推荐店铺</a>界面管理 -- 推荐店铺列表</h2>
<div id="list">
	<form method="post" action="?a=recshop&m=sort">
	<table>
		<tr><th>店铺名称</th><th>链接地址</th><th>店铺图片</th><th>店铺描述</th><th>店铺等级</th><th>排序</th><th>操作</th></tr>
		{if $RecShop}
		{foreach from=$RecShop key=key item=value}
		<tr>		
			<td>{$value->title}</td>
			<td>{$value->url}</td>
			<td><img src="{$value->site_logo}" style="width:80px; height:80px;" /></td>
			<td>{$value->info}</td>
			<td><img src="view/admin/images/level/{$value->level}.gif" /></td>
			<td><input type="text" name="sort[{$value->id}]" class="sort" value="{$value->sort}" /></td>
			<td><a href="?a=recshop&m=update&id={$value->id}"><img title="编辑" alt="编辑" src="view/admin/images/edit.gif"></a> <a href="?a=recshop&m=delete&id={$value->id}" onclick="return confirm('你真的要删除吗？') ? true : false"><img title="删除" alt="删除" src="view/admin/images/drop.gif"></a></td>
		</tr>		
		{/foreach}
		<tr>
			<td></td><td></td><td></td><td></td><td></td><td><input type="submit" name="send" value="排序" /></td><td></td>
		</tr>
		{else}
		<tr><td colspan="7">对不起，没有任何数据</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>