<%@ Page Language="C#" AutoEventWireup="true" CodeFile="newslist.aspx.cs" Inherits="etwuser_newslist" %>
<%@ Register Src="../control/Left.ascx" TagName="Left" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻列表</title>
<link type="text/css" href="images/style.css" rel="stylesheet" />
<link type="text/css" href="images/global.css" rel="stylesheet" />
<script type="text/javascript" src="js/Function.Js" ></script>
<script type="text/javascript" src="js/showdiv.js" ></script>
<script type="text/javascript" src="js/newslistajax.js" ></script>
<style type="text/css"> 
.imsc{position:relative;}
.imsc .imsubc{position:absolute;width:120px;top:30px;left:0;background:#F8FCFA; display:block; border:1px #ccc solid;}
.imsc .imsubc ul{ width:100%;}
.imsc .imsubc ul li{ width:100%; display:bloxk;}
.imsc .imsubc ul li a{ display:bloxk; width:92%; padding:5px;margin:0px;}
.imsc .imsubc ul li a:hover{background:#E8EFF5;}
</style>
</head>
<body>
<form id="Form1" runat="server">
<div class="top">
  <div class="top_b">
    <div class="top_logo"><img src="images/logo.jpg" alt="etw" /><span>{ 客户之窗 }</span></div>
    <div class="search"><a href="index.aspx">首页</a> | <a href="">加入收藏</a> | <a href="contact.aspx">联系我们</a> | <a href="loginout.aspx">退出系统</a></div>
    <div class="search">
      <form id="form2" name="form1" method="post" action="">
        <input type="text" name="textfield" id="textfield" class="input" />
        <input name="image" type="image"  src="images/btn.jpg" class="botn"  >
      </form>
    </div>
  </div>
</div>
<div class="mainbody">
  <div class="left">
    <div class="left_top">
      <div class="ll"><a href="noread_news.htm">新闻中心</a></div>
      <div class="rr"><a href="#">新闻列表</a></div>
    </div>
    <uc1:Left ID="Left1" runat="server" />
  </div>
  <div class="right">
  <div class="mainn">
      <div class="main">
        <div class="main_dh"> <span class="float_l"><img src="images/top14.gif" alt="" />&nbsp;新闻中心<img src="images/ico2.gif" alt="" /> 新闻列表</span>  <span style="float:right; font-weight:bold;"><a href="addnews.aspx">添加新闻</a></span></div>
        <div class="fanyi_con">

        <webdiyer:AspNetPager ID="Pager1" runat="server" HorizontalAlign="Center" 
      NumericButtonType="Text" PageSize="20"  ShowNavigationToolTip="false" 
      UrlPageIndexName="page" UrlPaging="True"  CssClass="pagerer" 
      ShowDisabledButtons="true" ShowInputBox="Never" SubmitButtonText="Go" 
      NumericButtonTextFormatString="{0}" FirstPageText="首页" LastPageText="尾页" 
      NextPageText="下一页" PrevPageText="上一页" 
      OnPageChanging="Pager1_PageChanging1" ShowPageIndexBox="Always" LayoutType="Table" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"></webdiyer:AspNetPager>      <asp:Button ID="Button2" runat="server" Text="确认上传" /> （如果确认上传不成功<a href="sendnews.aspx">请点击这里</a>）
        <table  border="0" cellpadding="1" cellspacing="1" class="table">
            <tr class="titlebg">

              <td width="5%">编号</td>
              <td width="20%">网址</td>
              <td width="25%">标题</td>
              <td width="12%">时间</td>
              <td width="10%"></td>
       
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" >
              <ItemTemplate>
              <tr>
                <td><%#Container.ItemIndex + 1 %></td>
                <td><%# Eval("website")%></td>
                <td ><a title="<%# decode(Eval("title").ToString())%>" style=" height:30px; overflow:hidden; display:block;" href="editnews.aspx?id=<%# Eval("id")%>"><%# decode(Eval("title").ToString())%></a></td>
                <td><%# Eval("updatetime")%></td>
                <td><a href="editnews.aspx?id=<%# Eval("id")%>&page=<%=page %>">修改</a> | <a href="delete_news.aspx?id=<%# Eval("id")%>&page=<%=page %>">删除</a></td>
              </tr>
             </ItemTemplate>
           </asp:Repeater> 
          </table>
     <webdiyer:AspNetPager ID="Pager2" runat="server" HorizontalAlign="Center" 
      NumericButtonType="Text" PageSize="20"  ShowNavigationToolTip="false" 
      UrlPageIndexName="page" UrlPaging="True"  CssClass="pagerer" 
      ShowDisabledButtons="true" ShowInputBox="Never" SubmitButtonText="Go" 
      NumericButtonTextFormatString="{0}" FirstPageText="首页" LastPageText="尾页" 
      NextPageText="下一页" PrevPageText="上一页" 
      OnPageChanging="Pager1_PageChanging1" ShowPageIndexBox="Always" LayoutType="Table" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"></webdiyer:AspNetPager>
        <div class="main_xp"><asp:Button ID="Button1" runat="server" Text="确认上传" />（如果确认上传不成功<a href="sendnews.aspx">请点击这里</a>） </div>
        <div class="copyright"> Copy Rright © 2008-2010 ETW International </div>
      </div>
     </div>
  </div>
</div>
<script type="text/javascript" src="js/tab.js"></script>
</form>
</body>
</html>
