<%@ Page Title="候选人列表" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Vote_Candidate_Lists.aspx.cs" Inherits="Vote.Admin.Vote_Candidate_Lists" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


 
<script type="text/javascript" src="../highslide/highslide.js"></script> 
<link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
     

<script type="text/javascript">
    hs.graphicsDir = '../highslide/graphics/';
    hs.wrapperClassName = 'wide-border';
</script>


    
  <asp:Button runat="server" ID="lb1" Text="按添加顺序"  Visible="false"  onclick="lb1_Click"  class="btn"></asp:Button>


<asp:Button runat="server" ID="lb2" Text="按照得顺序"  Visible="false"  onclick="lb2_Click"  class="btn"> </asp:Button>



<div class="result-wrap">

 



    <div class="result-title">
 


&nbsp;&nbsp;&nbsp;&nbsp;

   <a href="Vote_Candidate_Add.aspx" class="btn btn-primary">添加候选人</a>

                         <asp:LinkButton ID="lb_delete" 
                         OnClientClick="if(!isselect()) return false; " 
                        runat="server" onclick="lb_delete_Click"
                              CssClass="btn btn-danger"
                             >批量删除</asp:LinkButton> 


                         <asp:LinkButton ID="lb_update_order" runat="server" 
                      CssClass="btn btn-default"
                            onclick="lb_update_order_Click"> 
                             更新排序 
                            </asp:LinkButton>

 
 
                             <asp:LinkButton ID="lb_polling" runat="server" 
                                 CssClass="btn btn-success"
                                  OnClientClick="return confirm('警告：手动更改系统得票可能会导致统计结果不正确');"
                            onclick="lb_update_polling_Click">
                            
                              更新票数

                            </asp:LinkButton>

 
  </div>



 筛选：<asp:DropDownList ID="ddl_cat" Width="100px" AutoPostBack="true" runat="server" CssClass="form-control" style="display:inline-block; width:190px" 
                            onselectedindexchanged="ddl_cat_SelectedIndexChanged">
                        </asp:DropDownList> 
                        
    <asp:DropDownList  Width="400px" ID="ddl_archives" AutoPostBack="true"  runat="server" 
         CssClass="form-control" style="display:inline-block; width:390px" 
        onselectedindexchanged="ddl_archives_SelectedIndexChanged">
    </asp:DropDownList>


 <br /><br />

<asp:Repeater runat="server"  ID="dl_lists">

<HeaderTemplate>
<table   class="table" >
<tr>
<th width=30px> 
  <input type="checkbox" onclick="selectall(this)"  /> 
</th>

<th width=65px>头像</th> 
<th width=65px>排序</th> 
<th width=100px>姓名</th>
<th width=100px>编号</th>
<th  width=150px>部门</th>
<th  width=65px>得票数</th>
<th width=130px>编辑</th>
<th  width=100px>得票明细</th>

</tr>
</HeaderTemplate>

 <ItemTemplate>
<tr>
<td>
   <input type="checkbox"  class="ck_item"   title=<%# Eval("id") %> value='<%# Eval("id") %>'  /> 
  <asp:HiddenField runat="server" ID="hf_id" Value=<%# Eval("id") %> /> 
</td>

<td align="center">


  <a href=<%#Eval("image_big") %>  class="highslide" onclick="return hs.expand(this)">	
            	      <img src=<%#Eval("image_small") %>   height="55px" /> 
                     </a>


</td>


<td>

<asp:TextBox runat="server" ID="txt_orderid" Text='<%#Eval("orderid")%>' Width=40px></asp:TextBox>
</td>

<td>
<a href='Vote_Candidate_Add.aspx?id=<%#Eval("id") %>'  ><%#Eval("username") %></a>
</td>


<td>
<%#Eval("staffcode") %>
</td>


<td>
<%#Eval("dept") %>
</td>

 

<td>

<asp:TextBox runat="server" ID="txt_polling" Text='<%#Eval("polling")%>' Width=40px></asp:TextBox>
</td>
 
  <td>
<%#Eval("username") %>
</td>

 <td>
 <a href='Vote_ViewDetail.aspx?id=<%#Eval("id") %>&sid=<%#Eval("sid") %>' target="_blank">得票明细</a>
</td>
 
  
 </tr>

</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>








</div>


     <input type="hidden" name="hf_ids" id="hf_ids" />
</asp:Content>
