<!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="anxinMall v{anxinMall:global.cfg_version}" />
<meta name="author" content="www.xuzhou.it" />
<title>店内新闻管理 - {anxinMall:global.cfg_sitename} - Powered by anxinMall</title>
<link rel="stylesheet" href="/skin/default/style/common.css" type="text/css" />
<link rel="stylesheet" href="/skin/default/style/member.css" type="text/css" />
<script type="text/javascript" src="/file/js/config.js"></script>
<script type="text/javascript" src="/file/js/jquery.js"></script>
<script type="text/javascript" src="/file/js/jquery.thickbox.js"></script>
<script type="text/javascript" src="/file/js/jquery.asyncbox.js"></script>
<script type="text/javascript" src="/skin/default/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 = "news_action.asp?page={anxinMall:asp}response.write request.querystring("page"){/anxinMall:asp}&action=delete&id="+ids;
				}
			});
	});
	
	$("#refresh").click(function() {
		$("[.id][checked]").each(function(){ids+=$(this).val()+",";});
		if (ids==""){$.error('请选择要刷新的新闻');return false}			
			window.location.href = "news_action.asp?page={anxinMall:asp}response.write request.querystring("page"){/anxinMall:asp}&action=refresh&id="+ids
	});

}); 


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


</script>

</head>

<body>
<div id="anxinMall_layout">
<!--#include file="my_head.tpl"-->
<div id="anxinMall_body2">
<div class="memberbox">
	<table width="980" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="left">
			<!--#include file="my_menu.tpl"-->
		</td>
		<td class="center"></td>
        <td class="right">
			<div class="title">
			<h3 class="current">新闻列表</h3>
			<h3><a href="news_edit.asp?action=addnews"><font color="#008000" size=3>添加新闻</font></a></h3>
			</div>
			<div class="info_list">
<table width="100%" border="0" cellspacing="1" cellpadding="0" style="margin-top:-20px;">
	<thead>
	<tr>
		<td align="center" width="720" colspan="5" bgcolor="#ffffff">* 使用<font color=green>[ 刷新 ]</font>功能可使新闻靠前显示.&nbsp;&nbsp;<font color=red>[ 未审核 ]</font>新闻为未通过管理员审核,无法显示,请联系管理员!</td>
	</tr>
	<tr>
		<th align="center" width="60">序号</th>
		<th align="center">新闻标题</th>
		<th align="center" width="110">发布时间</th>
		<th align="center" width="50">状态</th>
		<th align="center" width="200">管理操作</th>
	</tr>
	</thead>
	<tbody>
	{anxinMall:page $size=9}
	<tr>
		<td><input name="id" class="id" type="checkbox" value="[page:newsid]" />[page:newsid]</td>
		<th><a href="../news/[page:newsid].html" target="_blank" title="[page:title]">[page:title $left=24]</a></th>

		<td>[page:addtime]</td>

		<td>
		{if:[page:shenhe]=1}<font color="green">已审核</font>{else}<font color="red">未审核</font>{end if}</td>

		<td class="control">

		<a href="news_action.asp?page={anxinMall:asp}response.write request.querystring("page"){/anxinMall:asp}&action=refresh&id=[page:newsid]">刷新</a>|
		
		<a href="news_edit.asp?page={anxinMall:asp}response.write request.querystring("page"){/anxinMall:asp}&action=editnews&id=[page:newsid]">编辑</a>|
		
		<a href="javascript:;" onclick="anxinMall_delete('','news_action.asp?page={anxinMall:asp}response.write request.querystring("page"){/anxinMall:asp}&action=delete&id=[page:newsid]')">删除</a>

		</td>
	</tr>
	{/anxinMall: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 class="clear"></div>
<div class="pagebreak" style="float:right">{tag:page}</div>
<div class="clear"></div>

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