<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="KstCMS.KstCMS_Manager.Manager.Feeback.query.index" %>
<%@Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<html>
<head  runat="server">
    <title></title>
        <script type="text/javascript">
            function selectall() {

                var obj = document.getElementById("chxall");
                var chxobj = document.getElementsByTagName("input");

                for (var i = 0; i < chxobj.length; i++) {
                    if (chxobj[i].type == "checkbox") {
                        if (obj.checked) {
                            chxobj[i].checked = true;
                        } else {
                            chxobj[i].checked = false;
                        }
                    }
                }
            }

            function isSelectPro() {
                var obj = document.getElementById("chxall");
                var chxobj = document.getElementsByTagName("input");
                var SelectNum = 0;
                for (var i = 0; i < chxobj.length; i++) {
                    if (chxobj[i].type == "checkbox") {
                        if (chxobj[i].checked) {
                            if (chxobj[i] != obj) {
                                SelectNum++;
                            }
                        }
                    }
                }
                return SelectNum;
            }

            function checkdel() {
                if (isSelectPro() == 0) {
                    alert("请选择要删除的项！");
                    return false;
                }
                var t = confirm("真的要删除所选的项吗？");
                if (t)
                    return true;
                else
                    return false;
            }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="mainbox">
<table width="100%" border="0" cellspacing="1" cellpadding="4" style="border-bottom:1px solid #cccccc; background-color:Menu">
  <tr>
    <td>
       来源： 
       <asp:DropDownList ID="drp_SiteList" runat="server">
        </asp:DropDownList> 
        类别：
        <asp:DropDownList ID="drp_LbList" runat="server">
        </asp:DropDownList> 

    </td>
  </tr>
</table>
        <asp:Panel ID="Panel1" runat="server">
 <table width="100%" border="0" cellspacing="1" cellpadding="5" class="Table_Gray">
  <tr class="TableHeader">
    <td>选中</td>
    <td>
    <asp:LinkButton ID="link_cname" runat="server">公司名称</asp:LinkButton></td>
    <td>
     <asp:LinkButton ID="link_title" runat="server">留言标题</asp:LinkButton></td>
    <td>
        <asp:LinkButton ID="link_time" runat="server">留言时间</asp:LinkButton></td>
    <td>回复时间</td>
    <td>操作</td>
  </tr>      
<asp:Repeater ID="RepMain" runat="server">
       <HeaderTemplate>    

  </HeaderTemplate>
  <ItemTemplate>
  <tr class="TableTd_Gray">
    <td align="center"><input type="checkbox" id="chxbox" name="chxbox" value="<%#DataBinder.Eval(Container.DataItem,"LyID") %>" /></td>
    <td align="center">
       <%#DataBinder.Eval(Container.DataItem,"Cname") %>
    </td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"LyTitle") %></td>
    <td align="center"><%#string.Format("{0:yyy-MM-dd hh:mm:ss}",Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"LyTime").ToString())) %></td>
    <td align="center">
        <asp:Literal ID="Literal2" runat="server"></asp:Literal></td>
    <td align="center">
        <input type="button" value="回复" onclick="OpenDialog('RepFrm.aspx?LyID=<%#DataBinder.Eval(Container.DataItem,"LyID") %>',780,500)"; />
    </td>
  </tr>
  </ItemTemplate>
  <AlternatingItemTemplate>
  <tr class="TableTd_Gray1">
    <td align="center"><input type="checkbox" id="chxbox" name="chxbox" value="<%#DataBinder.Eval(Container.DataItem,"LyID") %>" /></td>
    <td align="center">
       <%#DataBinder.Eval(Container.DataItem,"Cname") %>
    </td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"LyTitle") %></td>
    <td align="center"><%#string.Format("{0:yyy-MM-dd hh:mm:ss}",Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"LyTime").ToString())) %></td>
    <td align="center">
        <asp:Literal ID="Literal2" runat="server"></asp:Literal></td>
    <td align="center">
        <input type="button" value="回复" onclick="OpenDialog('RepFrm.aspx?LyID=<%#DataBinder.Eval(Container.DataItem,"LyID") %>',700,500)"; />
    </td>
  </tr>
  </AlternatingItemTemplate>
  <FooterTemplate>
</table>
</FooterTemplate>
   </asp:Repeater>   
 <table width="100%" border="0" cellspacing="2" cellpadding="0" align="center"  class="PageBox">
  <tr>
 <td width="10">
          <table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
             <tr>
              <td nowrap="nowrap">
                   <input type="checkbox" id="chxall" name="chxall" onclick="selectall();" />
                   <asp:Button ID="btn_Del" runat="server" Text="删除" CssClass="uPageBtn" OnClientClick="return checkdel();" />
             </td>
              <td nowrap="nowrap" style="font-family:Verdana">
      <asp:Literal ID="PageInfo" runat="server"></asp:Literal>  
             </td>
            </tr>
         </table>    
</td>
<td>
 
<Webdiver:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" PageSize="15" DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" ButtonImageNameExtension="n" ImagePath="~/images" PagingButtonSpacing="0" CustomInfoSectionWidth="35%"  UrlPaging="false" NumericButtonTextFormatString="[{0}]" SubmitButtonText="GO" ShowInputBox="Always" ShowCustomInfoSection="left" HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" Font-Size="10pt" SubmitButtonClass="uPageBtn" InputBoxClass="input_text" CssClass="uPage"> 
</Webdiver:AspNetPager>
    
    </td>
  </tr>
</table>
 </asp:Panel>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>

    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>正在处理中，请稍候...</ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>
