<%@ Page Title="" Language="C#" MasterPageFile="~/helpdesk/Ticket.master" AutoEventWireup="true" CodeBehind="Ticket_My.aspx.cs" Inherits="helpdesk.helpdesk.Ticket_My" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
 

     <div class="well">
         <div class="pull-left">

          <a href="Ticket_New.aspx" class="btn btn-flat   bg-green">提交新问题</a>

             &nbsp;&nbsp;|&nbsp;&nbsp;

       <a href="javascript:void(0)"; onclick="ept('export_data.aspx?types=myticket')" class="btn  bg-blue btn-flat"> 导出问题</a> 
          

	     <asp:Button ID="btn_batdel" runat="server" Text="批量删除"  CssClass="btn btn-danger btn-flat"
          OnClick="btn_batdel_Click"  OnClientClick="if(isselect()) return true; return false;"  />
         <asp:Label runat="server" ID="lbl_tip" style="color:gray"></asp:Label>
         
         
         </div> 
         
         <div class="clearfix"></div>
	</div>
	

    
            <asp:UpdatePanel ID="UpdatePanel1" runat="server"      >
        <ContentTemplate>
     

	<asp:ListView ID="lv_lists" runat="server" 
    ItemContainerID="layoutTableTemplate"  
         OnPagePropertiesChanging="lv_lists_PagePropertiesChanging" 
              DataKeyNames="id"                
 >
 
 
    <LayoutTemplate>
 
   <table  class="table table-hover"> 
	<tr>
     	<th  width="80px"> <input type="checkbox" id="cb_selectall" /> ID</th>
		
        
        <th  width="380px"  >主题</th>
		<th width="80px">优先级</th>
		<th width="80px">状态</th>
		<th  width="105px" >建立时间</th>
	    <th  width="90px" >最后处理人</th>
		<th  width="105px">最后更新</th>
		<th   width="120px"   >
	    	操作
		</th>
	</tr>
        
      <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
         
         
         
          
  
	
        </table>
 
        
 
    </LayoutTemplate>

   
    
    <ItemTemplate>
    
 <tr>

<td>
    <input type="checkbox" class="ck_item" value='<%# Eval("id") %>'/>
   <a href="ticket_view.aspx?id=<%#Eval("id")%>"  > <%#Eval("id")%>
 </a>
</td>

<td>

<a  target="_blank" href="ticket_view.aspx?id=<%#Eval("id")%>" ><%#Eval("title")%></a>

<img id="Img2" src="images/new.gif" visible='<%#Helpdesk.BLL.HelpdeskHelper.IsNew(Eval("createdate"))?true:false %>' runat="server" />

<img id="Img1" src="images/c.gif" visible='<%#Eval("isclose").ToString()=="1"?true:false %>' runat="server" />

     

</td> 

<td class="f11" style='color:<%#Eval("priocolor")%>'>
<%#Eval("priority")%> 
</td>


<td  class="f11" style='color:<%#Eval("statuscolor")%>'>
<%#Eval("Status")%> 
</td>


<td   class="f11" >     
 <%# formatDt(Eval("createdate"))%> 
</td>
   
 <td>
<%#Eval("handleby")%> 
</td> 

 
<td class="f11"> 
 <%# formatDt(Eval("handledate"))%>
</td>
 
 <td  >
   
 
 <a href="Ticket_new.aspx?id=<%#Eval("id") %>"  target="_blank"  title="编辑问题">
<img src="images/edit.png" runat="server" id="edit" border=0  /></a>

&nbsp
<span runat="server" id="sp_rate" visible='<%#enableRate %>'>
<span  <%#Eval("ispoint").ToString()=="0"?" style=''":" style='display:none'" %> >
&nbsp;<img  id="_img_<%#Eval("id") %>" title="单击对问题进行评分" src="images/rate.png" border=0 style=" cursor:pointer;"  onclick="Pop('DF_Ticket.aspx?tid=<%# Eval("id") %>&t=pop',520,400,'问题评分');"/>
 </span>
 
 </span>
 
 </td>     
		  
 
</tr>  
    </ItemTemplate>

</asp:ListView>     








    

<div>
 <asp:DataPager ID="DataPager1"   class="btn-group btn-group-sm"  
      PagedControlID="lv_lists" runat="server" PageSize=20>
 <Fields>
           
     
            <asp:NextPreviousPagerField 
                PreviousPageText="<" 
                FirstPageText="|<" 
                ShowPreviousPageButton="true"
                ShowFirstPageButton="true" 
                ShowNextPageButton="false" 
                ShowLastPageButton="false"
                ButtonCssClass="btn btn-default" 
                RenderNonBreakingSpacesBetweenControls="false" 
                RenderDisabledButtonsAsLabels="false" />

            <asp:NumericPagerField 
                ButtonType="Link" 
                CurrentPageLabelCssClass="btn btn-primary disabled"  
                RenderNonBreakingSpacesBetweenControls="false"
                NumericButtonCssClass="btn btn-default" 
                ButtonCount="10" 
                NextPageText="..." 
                NextPreviousButtonCssClass="btn btn-default" />
            
           <asp:NextPreviousPagerField 
               NextPageText=">" 
               LastPageText=">|" 
               ShowNextPageButton="true"
               ShowLastPageButton="true" 
               ShowPreviousPageButton="false" 
               ShowFirstPageButton="false"
               ButtonCssClass="btn btn-default" 
               RenderNonBreakingSpacesBetweenControls="false" 
               RenderDisabledButtonsAsLabels="false"/>
      

  </Fields> 
</asp:DataPager>
</div>


    
          </ContentTemplate>

    </asp:UpdatePanel>
  

 
   <input type="hidden" name="hf_ids" id="hf_ids" />


</asp:Content>
