<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PostList.aspx.cs" Inherits="Admin_PostList" %>
<%@ Register Assembly="Xiaoxiao.WebUI" Namespace="Xiaoxiao.WebUI" TagPrefix="cc1" %>
<%@ Import Namespace ="Spaces" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=Globals.Text["PostList_Title"]%></title>

<link href="Admin.css" rel="stylesheet" type="text/css">


</head>
<body>
<form runat="server" >
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="black333333_red_noline">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="3" height="3"><img src="img/O_angle_up_left.gif" width="3" height="3"></td>
          <td bgcolor="#ACD373" width="100%"></td>
          <td width="3"><img src="img/O_angle_up_right.gif" width="3" height="3"></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#ACD373"><img src="img/article_txt.gif" width="130" height="25"></td>
  </tr>
  <tr>
    <td class="form_border">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="20">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="20">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="black333333_red_noline">
              <tr> 
                <td align="right" > <font color="#FF6600"><a href="editPost.aspx"><%=Globals.Text["EditHtmlList_PublishArtical"]%></a></font> 
                </td>
              </tr>
              <tr> 
                <td> <fieldset>
                  <legend>&nbsp;<%=Globals.Text["PostList_BlogManage"]%>&nbsp;</legend>
                  <div align="right"><%=Globals.Text["PostList_BlogInterface"]%><br>
                    　　<%=Globals.Text["PostList_BlogEdit"]%><br>
                    <br>
                  </div>
                  </fieldset></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td ></td>
              <tr> 
                <td> 
                  <!-- 功能列表 -->
                  <!-- /功能列表 -->
                  <!-- 分类列表 -->
                  <!-- /分类列表 -->
                </td>
              </tr>
            </table></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="black333333_red_noline">
              <tr>
                <td width="11%"><%=Globals.Text["PostList_ArticalCategory"]%></td>
                <td width="89%">
                    <asp:DropDownList ID="dropPostCategory" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropPostCategory_SelectedIndexChanged">
                    </asp:DropDownList></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="black333333_red_noline">
              <tr>
                <td width="51%" align="right">&nbsp;</td>
                <td width="18%" align="right"><%=Globals.Text["PostList_Search"]%></td>
                <td width="31%" nowrap> &nbsp;<asp:TextBox ID="txtPostTitle" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></td>
              </tr>
            </table>
              <asp:Repeater ID="rprSelectionList" runat="server">
                  <HeaderTemplate>
                      <table width="100%" border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" class="black333333_red_noline">
              <tr bgcolor="#669900"> 
                <td width="63%" bgcolor="#669900"><font color="#FFFFFF"><%=Globals.Text["PostList_ArticalTitle"]%></font></td>
                <td width="10%" align="center" bgcolor="#669900"><font color="#FFFFFF"><%=Globals.Text["PostList_Hide"]%></font></td>
                <td width="10%" align="center" bgcolor="#669900"><font color="#FFFFFF"><%=Globals.Text["PostList_ViewCount"]%></font></td>
                <td width="10%" align="center" bgcolor="#669900"><font color="#FFFFFF"><%=Globals.Text["PostList_ReEdit"]%></font></td>
                <td width="7%" align="center" bgcolor="#669900"><font color="#FFFFFF"><%=Globals.Text["PostList_Delete"]%></font></td>
              </tr>
                  </HeaderTemplate>
                  <ItemTemplate>
                     <tr bgcolor="#EEF5E2"> 
                <td> 
                        <a href="<%# Globals.GetSiteUrls().BlogView(Account,Convert.ToInt32(Eval("ID"))) %>" Target="_blank">
                        <%# Utils.FormatLength(Eval(  "Title"),18) %>
                        </a>
                        
                        </td>
                <td align="center">
                
                <input name="checkbox" type="checkbox" value="checkbox" <%# Convert.ToBoolean(Eval("Hiding")) ? "Checked" : ""%> disabled>
                </td>
                <td><%# Eval("WebCount")%>次</td>
                <td align="center"><a href='EditPost.aspx?PostID=<%# Eval(  "ID") %>'><img src="./img/edit.gif" width="20" height="18" /></a></td>
                <td align="center">
                 <asp:LinkButton ID="lnkDelete" CausesValidation="False" CommandName="Delete" CommandArgument='<%# Eval(  "ID") %>'
                        OnClientClick="return confirm('是否真的删除该主题并删除该主题下所有回复？')"      runat="server"  ><img src="./img/icon_del.gif" width="14" height="14" /></asp:LinkButton>
                </td>
              </tr>
                  </ItemTemplate>
                
                  <FooterTemplate>
                      </table>
                  </FooterTemplate>
              </asp:Repeater>
            
            <br>
              &nbsp;</td>
          <td>&nbsp;</td>
        </tr>
    </table></td>
    <tr>
    <td height="30" bgcolor="#E3F0D0"  align=center style="word-spacing:4px">&nbsp;  <cc1:aspnetpager id="PostPaged" runat="server" UrlPaging="True" OnPageChanged="PostPaged_PageChanged1" PageSize="10"></cc1:aspnetpager></td>
  </tr>
  <tr>
    <td>
      </td>
  </tr>
</table>
</form>
</body>
</html>

