<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Admin_SearchArticle.aspx.cs"
    Inherits="MyITJob.Admin.Admin_SearchArticle" %>

<!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 id="Head1" runat="server">
    <title>
        <%=Application["PageTitle"] %> - 搜索文章</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../MyITJob.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../js/tit.js"></script>
    <script language='javascript' type="text/javascript">
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
      e.checked = form.chkAll.checked;
      if (e.checked)
        hL(e);
      else
        dL(e);
    }
  }
}

function hL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg2';
}
function dL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg';
}
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg2'>
                    <td width="100%" align='center'>
                        <strong class="Glow">搜 索 文 章</strong>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="height: 21px">
                        <span style="height: 20px">
                            <!--筛选新闻类型:-->
                            &nbsp;<asp:TextBox ID="searchArticle" runat="server"></asp:TextBox>
                            <asp:Button ID="Search_Button" runat="server" Text="搜 索" OnClick="Search_Button_Click" /></span>
                        您的历史搜索记录：<span class="style4" style="overflow: hidden; width: 350px;"><%=s_cook%></span></td>
                </tr>
            </table>
            <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg2'>
                    <td width="4%" align='center'>
                        选中
                    </td>
                    <td width="6%" align='center'>
                        序号
                    </td>
                    <td width="36%" align='center'>
                        新闻标题
                    </td>
                    <td width="8%" align='center'>
                        所属地区
                    </td>
                    <td width="8%" align='center'>
                        文章作者
                    </td>
                    <td width="14%" align='center'>
                        加入时间
                    </td>
                    <td width="24%" align='center'>
                        常规操作
                    </td>
                </tr>
                <asp:Repeater ID="Manage_News" runat="server">
                    <ItemTemplate>
                        <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                            <td align='center'>
                                <asp:CheckBox ID="CheckBox1" runat="server" ToolTip='<%#Eval("id") %>' />
                            </td>
                            <td align='center'>
                                <%# Eval("id") %>
                            </td>
                            <td>
                                <a href="../LookNews.aspx?id=<%#Eval("id")%>" target="_blank" title="<%#Eval("Title") %>">
                                    <%#FormatLeft( Eval("Title").ToString() ,16 ,14) %>
                                </a><span style="color: #FF0000;">
                                    <%# (int)Eval("orders") == 0 ? "" : "[已置顶]"%>
                                </span><span style="color: #3E9C53;">
                                    <%# (int)Eval("marquee") == 0 ? "" : "[已滚动]"%>
                                </span>
                            </td>
                            <td align='center'>
                                <%#Eval("ArticleFromName")%>
                            </td>
                            <td align='center'>
                                <%#Eval("UserName")%>
                            </td>
                            <td align='center'>
                                <%#Eval("AddTime")%>
                            </td>
                            <td align='center'>
                                <a href="Admin_Article.aspx?Action=Edit&id=<%# Eval("id")%>">修改</a> | <a href="Admin_Article.aspx?Action=Del&id=<%# Eval("id")%>"
                                    onclick="return confirm('确定要删除此项吗？此操作不可逆。')">删除</a> | <div id="sure<%#Eval("id") %>" class="YnEnter">
                                        <a href="Admin_Article.aspx?Action=orders&id=<%# Eval("id")%>&sure=1">设置置顶</a> <a
                                            href="Admin_Article.aspx?Action=orders&id=<%# Eval("id")%>&sure=0">取消置顶</a></div>
                                    <a href="#" onclick="YnEnterDiv('sure<%#Eval("id") %>')">
                                        <%# (int)Eval("orders") == 0 ? "未置顶" : "已置顶"%>
                                    </a>| <div id="marquee<%#Eval("id") %>" class="YnEnter">
                                        <a href="Admin_Article.aspx?Action=marquee&id=<%# Eval("id")%>&sure=1">设置滚动</a>
                                        <a href="Admin_Article.aspx?Action=marquee&id=<%# Eval("id")%>&sure=0">取消滚动</a></div>
                                    <a href="#" onclick="YnEnterDiv('marquee<%#Eval("id") %>')">
                                        <%# (int)Eval("marquee") == 0 ? "未滚动":"已滚动" %>
                                    </a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <input name='chkAll' type='checkbox' onclick='CheckAll(this.form)' value='checkbox' />
            &nbsp;&nbsp;
            <asp:Button ID="DelNews_Button" runat="server" OnClick="DelNews_Button_Click" Text="删除选定文章" /><br />
            <div id="paging" runat="server">
            </div>
        </div>
    </form>
</body>
</html>
