<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="special.aspx.cs" Inherits="Kcms.UI.admin.special" %>
<%@ Register assembly="PageNavigator" namespace="KcNavigator" tagprefix="Kc" %>
<!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>
    <title></title>
    <link href="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/procurementlist_summ.gif" align="absmiddle" />专题管理</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
   <a href="special.aspx" class="on">专题列表</a>
   <a href="specialEdit.aspx">专题设置</a>
   <a href="specialPick.aspx">提取专题</a>
  </div>
  <div class="right">
<script type="text/javascript">
    function CheckAll(form) {
        for (var i = 0; i < form.elements.length; i++) {
            var e = form.elements[i];
            if (e.name.indexOf('chkbox') != -1)
                e.checked = form.chkall.checked;
        }
    }
</script>
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
    <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
    <HeaderTemplate>
<tr class="title">
  <td align="center" width="5%"><input id="chkall" onclick="CheckAll(form)" type="checkbox" title="全选/全不选"/></td>
  <td align="center">专题名称</td>
  <td align="center">是否释放</td>
  <td align="center">所属分类</td>
  <td align="center">更新时间</td>
  <td align="center">操作</td>
</tr>
    </HeaderTemplate>
    <ItemTemplate>
<tr onMouseOver="this.className='over'" onMouseOut="this.className=''">
   <asp:HiddenField ID="hidId" Value='<%#Eval("id") %>' runat="server" />
  <td align="center"><asp:CheckBox ID="chkbox" runat="server"/></td>
  <td><asp:Literal ID="litSpeName" runat="server" Text='<%#Eval("spename") %>'></asp:Literal></td>
  <td align="center"><%#Eval("state") %></td>
  <td align="center"><%#Eval("channelid") %></td>
  <td align="center"><%#Eval("uptime") %></td>
  <td align="center">
            <a href="specialEdit.aspx?id=<%#Eval("id") %>">设置</a> 
            | 
            <asp:LinkButton ID="btnUp" CommandName="up" runat="server" OnClientClick="return confirm('确认开始更新么？');">更新</asp:LinkButton> 
            | 
            <asp:LinkButton ID="btnDelete" CommandName="del" runat="server" OnClientClick="return confirm('确定删除？');">删除?</asp:LinkButton> 
            | 
            <asp:LinkButton ID="btnXg" CommandName="xg" runat="server" OnClientClick="return confirm('请注意：不建议对读取来的词反复进行读取\n因为会大量相同资讯被过滤！');">读取相关名称</asp:LinkButton> 
            | 
            <a href="http://index.baidu.com/main/word.php?word=<%#GetEncode(Eval("spename").ToString()) %>" target="_blank">查看百度指数</a>
  </td>
</tr>
    </ItemTemplate>
    </asp:Repeater>
</table>
<div class="handle">
    <asp:Button ID="Button1" runat="server" Text="释放所选" onclick="Button1_Click" />　<asp:Button 
        ID="Button2" runat="server" Text="转移频道" onclick="Button2_Click" 
        ValidationGroup="g1" />到<asp:DropDownList ID="drpChannelId" runat="server"></asp:DropDownList>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ControlToValidate="drpChannelId" Display="Dynamic" ErrorMessage="请选择频道" 
        InitialValue="0" ValidationGroup="g1" SetFocusOnError="True"></asp:RequiredFieldValidator>　<asp:Button 
        ID="Button3" runat="server" Text="转移问答分类" onclick="Button3_Click" 
        ValidationGroup="g2" />到<asp:TextBox ID="txtAskClassId" runat="server" Columns="3" onfocus="this.blur()"
          onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" 
          style="ime-mode:disabled">0</asp:TextBox><a href="javascript:showSelect('txtAskClassId',2)">选择分类</a>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
        ControlToValidate="txtAskClassId" Display="Dynamic" ErrorMessage="请选择分类" 
        InitialValue="0" ValidationGroup="g2" SetFocusOnError="True"></asp:RequiredFieldValidator>
    </div>
<Kc:PageNavigator ID="PageNavigator1" CssClass="pager" runat="server" onchangepageclick="PageNavigator1_ChangePageClick" />
  </div>
 </div>
</div>
</form>
</body>
</html>