<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="NewMange.aspx.cs" Inherits="Admin_NewMange" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" cellpadding="0" cellspacing="0" width="694">
<!-- fwtable fwsrc="3_People.png" fwbase="3_People.jpg" fwstyle="Dreamweaver" fwdocid = "504323635" fwnested="0" -->
  <tr>
   <td><img src="imgs/spacer.gif" width="131" height="1" border="0" alt="" /></td>
   <td><img src="imgs/spacer.gif" width="563" height="1" border="0" alt="" /></td>
   <td><img src="imgs/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>

  <tr>
   <td background="imgs/3_People_r1_c1.jpg" width="131" height="573"></td>
   <td background="imgs/3_People_r1_c2.jpg" width="563" height="573"  valign=top><br />
    <div id="nifty">
    <a href=# onclick="AddNews();">增加新闻</a>
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
   <table width="100%" border="0" cellspacing="0" cellpadding="0" id="userslist">
       <tr class="title">
        <th scope="col">编号</th>
        <th scope="col">新闻标题</th>
        <th scope="col">正文</th>
        <th scope="col">发布时间</th>
        <th scope="col">操作</th>
      </tr>
       <asp:Repeater ID="newsList" runat="server" EnableViewState="False">
       <ItemTemplate>
       <tr class="label2">
        <th scope="col"><%#Container.ItemIndex+1%></th>
        <th scope="col"><a href=# onclick="sexyBOX('500',<%#Eval("systemid")%>)"><%#Eval("Title").ToString().Length < 6 ? Eval("Title").ToString() : Eval("Title").ToString().Substring(0, 6) + "..."%></a></th>
        <th scope="col"><%#Eval("Context").ToString().Length < 6 ? Eval("Context").ToString() : Eval("Context").ToString().Substring(0,6)+"..."%></th>
        <th scope="col"><%#Eval("PublishTime","{0:yyyy年MM月dd日}")%></th>
        <th scope="col"><a href=# onclick="EditNews(<%#Eval("systemid")%>)" >编辑</a>  <a href=# onclick="DelNews(<%#Eval("systemid")%>)">删除</a></th>
      </tr>
       </ItemTemplate>
       </asp:Repeater>
        </table> 
     <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
     </div>
     
     <div id="Div2"  style="display:none">
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
    <a  href=# onclick="ShowNews();">返回</a>
     <table width="100%" border="0">
      <tr>
        <td>新闻标题:<input  type=text id="title"  class="inputbox" /></td>
      </tr>
      <tr>
        <td>新闻正文:<textarea name="context" class="inputare"  id="context" ></textarea></td>
      </tr>
      <tr>
        <td><input type=button  value="提交" id="subNews" /></td>
      </tr>
    </table>
     <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
     </div>
   </td>
   <td><img src="imgs/spacer.gif" width="1" height="573" border="0" alt="" /></td>
  </tr>
</table>
</asp:Content>

