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


 
      

 <!-- right -->

 
  <div style="margin:20px;">
  
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="id" 
        DataSourceID="SqlDataSource1">
        <ItemTemplate>
           

  <div class="panel panel-default">


       <div class="panel-heading">
    <h3 class="panel-title"  >

        <%# DateTime.Parse(Eval("createdate").ToString()).ToString("MM月dd日")%>  <%#Eval("subject") %>

        <span style="float:right">

            <a href="WeeklyReport_Detail.aspx?id=<%#Eval("id") %>" target="_blank">查看</a>
        <a href="WeeklyReport_Edit.aspx?id=<%#Eval("id") %>"  >编辑</a>
            
            <a href="#"   onclick="_del(this,<%#Eval("id") %>); return false;">删除</a>
            
             <a href="#" onclick="window.open('WeeklyReport_Export.aspx?id=<%#Eval("id") %>','null','left=200,top200,width=400,height=350')">导出</a>
            </span>
    </h3>
  </div>


  <div class="panel-body">
  <%#Eval("contents") %>
  </div>
  
</div>


       
              
                                                
                     
                     
 
                
       
             



             



        </ItemTemplate>
         
        <LayoutTemplate>
            <div ID="itemPlaceholderContainer" runat="server"  >
                <span runat="server" id="itemPlaceholder" />
            </div>



            <div style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                <asp:DataPager ID="DataPager1" runat="server">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                        <asp:NumericPagerField />
                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                    </Fields>
                </asp:DataPager>
            </div>
        </LayoutTemplate>
       
    </asp:ListView>

    </div>




    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$Connectionstrings:connectionstring %>" 
        ProviderName="System.Data.SqlClient" 
        
     >
        
     
        </asp:SqlDataSource>








      


 <!-- /right -->
 



     

 





















    <script>


        function _del(alink, _id)
        {
        
            var isdel = confirm("确定要删除吗?");
        
            if (isdel) {
               
                $(alink).parent().parent().parent().parent().hide();

                $.ajax("ajax/ajax_delete_weeklyreport.aspx?ids=" + _id + "&returnUrl=myreport.aspx");
            }
          
        
           //
        }

    </script>





     









</asp:Content>
