<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_FeedBack.aspx.vb" Inherits="TourEx.Web.Admin_FeedBack" %>
<%@ 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>
<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>
<script type="text/javascript" src="../Sys/Js/CreateSelect.js"></script>
</head>
<body>
<form runat="Server">
<ul class="tools">
	<li class="del"><span><a href="javascript:void(0);" onclick="Del(0);return false;">删除</a></span></li>
	<li class="search">
	    分类：<asp:DropDownList ID="Type" runat="server">
	        <asp:ListItem Value=" " Text="全部"></asp:ListItem>
	        <asp:ListItem Value="订单问题" Text="订单问题"></asp:ListItem>
	        <asp:ListItem Value="意见建议" Text="意见建议"></asp:ListItem>
	        <asp:ListItem Value="信息纠错" Text="信息纠错"></asp:ListItem>
	        <asp:ListItem Value="申请合作" Text="申请合作"></asp:ListItem>
	        <asp:ListItem Value="其他问题" Text="其他问题"></asp:ListItem>
            </asp:DropDownList>
        关键词：<asp:TextBox ID="Key" runat="server" cssclass="searchTitle"></asp:TextBox>
        <input type="button" value="" class="searchInput" onclick="location='?Type='+$('#Type').val()+'&Key='+$('#Key').val();" /></li>
</ul>
</form>
<asp:Repeater ID="Repeater" runat="server">
    <HeaderTemplate>
		<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=\'F_ID\']').attr('checked',!$(this).attr('checked'));$(this).attr('checked',!$(this).attr('checked'));">全选</a>
                </td>
                <td width="50">类型</td>
                <td>内容</td>
                <td width="100">操作</td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="tabTextMain" onmouseout="this.style.background='#FFFFFF';" onmouseover="this.style.background='#F4F7FA';">
            <td><input name="F_ID" id="F_ID_<%#Eval("F_ID")%>" type="checkbox" value="<%#Eval("F_ID")%>" /></td>
            <td><%#Eval("F_Type")%></td>
            <td>IP：<%#Eval("F_IP")%> 时间：<%#Eval("F_Date")%> 联系方法：<%#Eval("F_Contact")%><br /><%#Eval("F_Text")%></td>
            <td><a href="javascript:void(0);" onclick="Del(<%#Eval("F_ID")%>);return false;">删除</a></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
        <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 +='F_ID='+ID;
	}else{
 		IDs = $("input[name='F_ID']").serialize().replace(/&F_ID=/g,',');
		if(IDs==''){alert('请选择您要删除的反馈！');return;}
		Url +=IDs;
	}
	if(confirm('您确定删除吗！')){location=Url;}
 }
//-->
</script>

</body>
</html>
