<{include file="index/header.html"}>  
<div class="nav"><span>日志详情</span></div> 
<div class="filter"> 
	<{if $smarty.session.admin.power == '1'}>
		<input type="button" name="del_checked" class="del_ck button" value="删除选项"/>
	<{/if}>	 
	<select name="type" class="select" id="log_type">
		<option value="0" <{if $smarty.get.type == '0'}>selected="selected"<{/if}>>全部日志</option> 
		<option value="1" <{if $smarty.get.type == '1'}>selected="selected"<{/if}>>登录日志</option> 
		<option value="2" <{if $smarty.get.type == '2'}>selected="selected"<{/if}>>操作日志</option>  
	</select> 
</div>
<style type="text/css">
i{ text-align:center; }
</style>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<{if $smarty.session.admin.aid == '1'}>
					<th width="30"><input type="checkbox" class="checked_all"/></th>
				<{/if}>	
				<th width="500">描述</th>
				<th width="110">操作IP</th> 
				<th width="130">时间</th> 
				<th width="150">操作</th> 
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<{if $data}>
			<{foreach item=i from=$data.list}>
				<tr>
					<{if $smarty.session.admin.aid == '1'}>
						<td><input name="key_id[]" type="checkbox" value="<{$i.id}>" class="checked_list"/></td>
					<{/if}>	
					<td><{$i.desc}></td>
					<td><{$i.ip}></td> 
					<td><{$i.addtime}></td>
					<td><{if $smarty.session.admin.power == '1'}><a href="javascript:;" data-id="<{$i.id}>" class="del">删除</a><{else}>/<{/if}></td> 
					<td></td>
				</tr>
			<{/foreach}>
		<{else}>
			<tr><td colspan="6">还没有数据</td></tr>
		<{/if}>
		</tbody> 
	</table>
	<div class="operate"> 
		<input type="checkbox" class="checked_all checkbox"/>
		<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
		<div class="tpage"><{$data.page}></div>
	</div> 
</div>
<{include file="index/footer.html"}>
<script type="text/javascript">
// 下拉菜单
$("#log_type").change(function(){
	type_id = $(this).children('option:selected').val();  
	location.href="?m=admin&a=log&type="+type_id;
});
<{if $smarty.session.admin.power == '1'}>
_delete("?m=admin&a=log_del", '.del_ck'); 
<{/if}>	
</script>