<!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=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="generator" content="aspmps v{aspmps:global.cfg_version}" />
<meta name="author" content="www.aspmps.com" />
<title>分类信息管理 - {aspmps:global.cfg_sitename} - Powered by Aspmps</title>
<link rel="stylesheet" href="{aspmps:global.cfg_skinurl}/style/common.css" type="text/css" />
<link rel="stylesheet" href="{aspmps:global.cfg_skinurl}/style/member.css" type="text/css" />
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/config.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/jquery.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/jquery.thickbox.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/jquery.asyncbox.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_skinurl}/js/common.js"></script>
<script type="text/javascript"> 
$(document).ready(function() { 
	$("#selectAll").click(function() { 
		$(".id").each(function() { 
			if($(this).attr("checked"))
			{
				$(this).attr("checked", false); 
			}
			else
			{
				$(this).attr("checked", true); 
			}
		}); 
	}); 

	var ids=""; 

	$("#delete").click(function() {
		$("[.id][checked]").each(function(){ids+=$(this).val()+",";});
		if (ids==""){$.error('请选择要删除的信息');return false}	
			$.confirm("删除后不可恢复，确定要删除吗？",'删除确认',function(action){
				if(action == 'ok'){
					window.location.href = "user_info_action.asp?action=delete&id="+ids;
				}
			});
	});
	
	$("#refresh").click(function() {
		$("[.id][checked]").each(function(){ids+=$(this).val()+",";});
		if (ids==""){$.error('请选择要刷新的信息');return false}			
			window.location.href = "user_info_action.asp?action=refresh&id="+ids
	});
	


}); 


function aspmps_delete(t,l){
	if(t=="")t="确定要删除吗？ 删除后不可恢复！";
	$.confirm(t,'删除确认',function(action){
		if(action == 'ok'){
			window.location.href = l;
		}
	});
}


</script>

</head>

<body>
<div id="aspmps_layout">
<!--#include file="head.tpl"-->
<div id="aspmps_body">
<div class="memberbox">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="left">
			<!--#include file="member_menu.tpl"-->
		</td>
		<td class="center"></td>
        <td class="right">
			<div class="title"><h3 class="current">信息管理</h3></div>
			<div class="info_list">
			  <table width="100%" border="0" cellspacing="1" cellpadding="0">
			  	<thead>
                  <tr>
                    <th width="100">ID</th>
                    <th align="left">标题</th>
                    <th width="80" align="center">时间</th>
                    <th width="50" align="center">状态</th>
					<th width="60">操作</th>
                  </tr>
				  </thead>
				  <tbody>
				{aspmps:page $size=10}
                  <tr>
                    <td><label><input name="id" class="id" type="checkbox" value="[page:id]" /> [page:id]</label></td>
                    <th>{if:[page:rank]>0}<font color="red">【置顶】</font>{end if}<a href="[page:url]" target="_blank">[page:title]</a></th>
                    <td>[page:addtime $function=datevalue(@me)]</td>
                    <td>{if:[page:review]=1}<font color="green">正常</font>{else}<font color="red">待审</font>{end if}</td>
					<td class="control"><a href="user_info_top.asp?id=[page:id]">置顶</a>|<a href="user_info_action.asp?action=refresh&id=[page:id]">刷新</a><br /><a href="user_info_edit.asp?id=[page:id]" target="_blank">编辑</a>|<a href="javascript:;" onclick="aspmps_delete('','user_info_action.asp?action=delete&id=[page:id]')">删除</a></td>
                  </tr>
				{/aspmps:page}
				  </tbody>
                </table>
<div style="float:left; padding-top:20px; padding-left:10px">
<input id="selectAll" type="button" class="button_1" value="全选/反选" />
<input id="delete" type="button" class="button_1" value="删除所选" />
<input id="refresh" type="button" class="button_1" value="刷新所选" />
</div>
<div style="float:right;padding-top:20px; padding-right:10px">
<input id="refreshall" type="button" class="button_1" value="一键刷新" onclick="window.location='user_info_action.asp?action=refreshall&id=0'" />
</div>
<div class="clear"></div>
<div class="pagebreak" style="float:right">{tag:page}</div>
<div class="clear"></div>

			</div>
		</td>
      </tr>
    </table>
</div>
</div>
<!--#include file="foot.TPL"-->
</div>
</body>
</html>
