<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="News.ascx.cs" Inherits="Dotnetcms.Web.Modules.News" %>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/portal/ModuleTitle.ascx"%>

 


  <div class="moduleblock"  id="moduleblock" runat="server">
 
 
 
  <div  runat="server" id="moduleblocktitle">
      
         <portal:title  
        SettingText="样式News" 
        EditText="新闻类别News" 
        EditUrl="~/Admin/Newscategory.aspx" 
        Runat="server" 
        Id="portaltitle" />
           
   </div>
   


      
  
  <table class="thetable">
  <tr  valign="top" >
  <td width="230px">    
 
 

<div class="sidebar" id="sidebar"> 
     
<div id="nav_head" class="text-center"  >
	<span class="menu-text"> <asp:Label runat="server" ID="lbl_pagetitle"  ></asp:Label></span> 
</div>



  <ul id="slidenews"  class="nav nav-list">
         <asp:Repeater runat="server" ID="rpt_news_nav"  EnableViewState="false">
                            <ItemTemplate> 
                                 <li   class="<%#PortalHelper.IsCurrent(_newscatid,Eval("catid"))%>">
                                    <a   href="default.aspx?tabid=<%=_tabid %>&newscatid=<%#Eval("catid") %>" >
                                     ▶ <%#Eval("catname") %> </a>
                                </li>
                </ItemTemplate>
     </asp:Repeater>  

       
  </ul>
   
    </div>	 
    
   </td>
 
  
  
<td>	
    <div class="thecontent">	 
 <!--  start  -->
  

    <ul class="breadcrumb fontbt">
              <asp:Literal runat="server" ID="lt_bc"></asp:Literal>
   </ul>
       
       <div class="item-lists-box">
      
    <div  class="item-lists news-lists">
         
        
    <div class="pull-right" style="margin-bottom:5px;"> 
        <asp:HyperLink ID="News_Add"  class="btn btn-primary btn-flat btn-sm" runat="server">添加新闻</asp:HyperLink>
     </div>
         
 







        
  
 <asp:ListView ID="lv_lists" runat="server"     ItemContainerID="layoutTableTemplate"  
    DataKeyNames="itemid"   
 >
 
 
    <LayoutTemplate>
 
   <table  class="table table-hover">
      <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
    </table>
  </LayoutTemplate>
     
  
   
    <ItemTemplate> 
<tr>
    

	   	  		 <td class="thetitle">
				 <asp:HyperLink id="editLink" 
			  	  Visible="<%# IsEditable %>"   
				  ImageUrl="~/images/edit.png"  
                  NavigateUrl='<%# "~/Admin/editnews.aspx?itemid=" + Eval("ItemID")+ "&mid=" + ModuleId+"&tabid="+TabId+"&newscatid="+_newscatid%> '   
                  runat="server"  />
                
				   
	 
				<a   href="News_detail.aspx?tabid=<%#Eval("tabid")%>&mid=<%#Eval("moduleid") %>&itemid=<%#Eval("itemid") %>&newscatid=<%=_newscatid %>"     >
				   <%#Eval("title") %>
				</a>  
		</td>
        <td class="xs-date">	       
				    <%#PortalHelper.GetDate(Eval("adddate"))%> 		 	    
			  
		</td>

        
    </td>
</tr> 
	   		
	   		
    </ItemTemplate>


  

</asp:ListView>   




<div>
 <asp:DataPager ID="DataPager1"   class="btn-group btn-group-sm"  
      QueryStringField="Page" PagedControlID="lv_lists" runat="server" PageSize=10>
 <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>










         



</div>
    </div>


<!--  /start  -->
        </div>
</td>
</tr>
</table>





 


 
 </div> 



       





