{include file="$admin_template_path/html/header.html"}
</head>
<body>
{include file="$admin_template_path/html/pagetops.html"}
{if $errorMessage}
<div id="errormsg">
<div class="msg">
  <div class="closebtn"><i data-icon="" class="icon-close"></i></div>
  {$errorMessage}
</div>
</div>
{literal}
<script type="text/javascript">
seajs.use(["modules/pageui/msg"], function(msg){
    msg.msginit("#errormsg");
});
</script>
{/literal}
{/if}

<div class="pagebg">
  	<div class="mcontent pagemain clr">
	    {include file="$admin_template_path/html/leftmenu.html"}
	    <div class="pagemainconent">

		<div class="rightdetail_admin">
			<div class="general_table_border" id="settingblocks">
				<table id="generlist" class="general_table" cellspacing="0" cellpadding="0" border="0">
					<thead>
						<tr>
							<th>字段名称</th>
							<th>字段值</th>
							<th>&nbsp;</th>
						</tr>
					</thead>
					<tbody>
						{if is_array($data)}
						{foreach from=$data item=d}
						<tr id="row{$d.id}" class="{cycle values="no,alt"}">
							<td>
								{if $d.help}
									{$d.help|escape:'htmlall':'utf-8'}
								{else}
									{$d.key}
								{/if}
							</td>
							<td>{$d.value}</td>
							<td>
								<a href="?m={$smarty.get.m}&c=edit&id={$d.id}" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑</a>
								{if !$d.system}
								<br/>
								<a class="deletebtn" ajax-url="/apps/{$smarty.get.m}/ajax/delete.php" item-id="{$d.id}" href="javascript:void(0);" title="{$lang.delete}"><i class="fa fa-trash-o text-danger m-r-xs"></i> 删除</a>
								{/if}
							</td>
						</tr>
						{/foreach}
						{/if}
						<tr>
							<td>站点LOGO</td>
							<td></td>
							<td><a href="/{$languageURL}admin/?m=system&c=logo" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑</a></td>
						</tr>
                        <tr>
                            <td>邮件发送方式</td>
                            <td></td>
                            <td><a href="/{$languageURL}admin/?m=system&c=sendmail" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑</a></td>
                        </tr>
                        <tr>
                            <td>模板设置</td>
                            <td></td>
                            <td><a href="/{$languageURL}admin/?m=system&c=template" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑</a></td>
                        </tr>
                        <tr>
                            <td>后台模板设置</td>
                            <td></td>
                            <td><a href="/{$languageURL}admin/?m=system&c=admin_template" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑</a></td>
                        </tr>
                    </tbody>
				</table>
			</div>
			<!-- <div class="general_table_border">
				<table class="general_table" cellspacing="0" cellpadding="0" border="0" style="display:none;">
					<thead>
						<tr>
							<td>字段名称</td>
							<td width="10%">&nbsp;</td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>作品分类</td>
							<td><a href="/{$languageURL}admin/?m=categories&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>属性类别和属性</td>
							<td><a href="/{$languageURL}admin/?m=attributes&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>书签集</td>
							<td><a href="/{$languageURL}admin/?m=collections&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>新闻邮件</td>
							<td><a href="/{$languageURL}admin/?m=bulletin&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>新闻邮件订阅</td>
							<td><a href="/{$languageURL}admin/?m=bulletin&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>生成报表</td>
							<td><a href="/{$languageURL}admin/?m=reports&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>举报的评论</td>
							<td><a href="/{$languageURL}admin/?m=users&c=comments" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
						<tr>
							<td>标签</td>
							<td><a href="/{$languageURL}admin/?m=tags&c=list" title="编辑"><img class="middle" src="{$template_data}admin/images/icons/16x16/edit.png" /> 编辑</a></td>
						</tr>
					</tbody>
				</table>
			</div> -->
			{literal}
			<script type="text/javascript">
			seajs.use(["jq", "modules/ajax/btns", "modules/pageui/tabs"], function($, aj, ui){
			aj.deletebtninit("#generlist .deletebtn", "ajax-url", "item-id", {'deleteKey':true,'id':''}, "deleteRow");
			});
			</script>
			{/literal}
		</div>
		
		</div>
	</div>
</div>
</body>
</html>