<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_NewsReviewsList.aspx.vb" Inherits="TourEx.Web.Admin_NewsReviewsList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题页</title>
<link rel="stylesheet" type="text/css" href="Css/Style.css"/>
<script language="javascript" src="../Sys/Js/jquery.js"></script>
</head>
<body>
<ul class="tools">
	<li class="del"><span><a href="javascript:void(0);" onclick="Del(0);return false;">删除</a></span></li>
	<li class="search"><input name="" type="text" CssClass="searchTitle" /> <input type="button" value="" class="searchInput"/></li>
</ul>
<asp:Repeater ID="Repeater" runat="server">
    <HeaderTemplate>
        <div class="mainBox">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabBox">
            <tr class="tabTitleMain">
                <td width="35" class="selectAll">
                    <a href="javascript:void(0);" onclick="$('input[name=\'ID\']').attr('checked',!$(this).attr('checked'));$(this).attr('checked',!$(this).attr('checked'));">全选</a>
                </td>
                <td width="50">编号</td>
                <td>点评内容</td>
                <td width="50">操作</td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="tabTextMain" onmouseout="this.style.background='#FFFFFF';" onmouseover="this.style.background='#F4F7FA';">
            <td>
                <input name="ID" type="checkbox" value="<%#Eval("R_ID")%>" />
            </td>
            <td><%#Eval("R_ID")%></td>
            <td><a href="?UId=<%#Eval("R_UserId")%>"><%#Eval("U_Name")%></a> 于 <%#Eval("R_AddDate")%> 对 <a href="?Nid=<%#Eval("R_NewsId")%>"><%#Eval("N_Title")%></a><div style="border:1px #ddd dotted;padding:6px 10px;line-height:20px;background:#fff;margin-top:6px;"><%#Eval("R_Text")%></div></td>
            <td><a href="javascript:void(0);" onclick="Del(<%#Eval("R_ID")%>);return false;">删除</a></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
		</div>
        <asp:Label ID="lblEmpty" Text="暂无" runat="server" Visible="<%#Boolean.Parse((Repeater.Items.Count = 0).ToString())%>"
            Width="100%" Style="text-align: center">     
        </asp:Label>
    </FooterTemplate>
</asp:Repeater>
<webdiyer:AspNetPager ID="TourExPage" runat="server" UrlPaging="true" ShowPageIndexBox="Never"
    PageIndexBoxType="DropDownList" TextBeforePageIndexBox=""
    PageSize="10" OnPageChanged="BindData" EnableTheming="true" FirstPageText="首页"
    LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CssClass="page" 
        PagingButtonSpacing="" CurrentPageButtonClass="current" 
    CurrentPageButtonStyle="">
</webdiyer:AspNetPager>
<script type="text/javascript">
    	 <!--//
    	 function Del(ID)
    	 {
    	 	var Url='?Act=del&';
    		var IDs;
    		if(ID>0)
    		{
    			Url +='ID='+ID;
    		}else{
    	 		IDs = $("input[name='ID']").serialize().replace(/&ID=/g,',');
    			if(IDs==''){alert('请选择您要删除的点评！');return;}
    			Url +=IDs;
    		}
    		location=Url;
    	 }
    //-->
</script>

</body>
</html>
