<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tag.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.tag" %>
<%@Register TagPrefix="Webdiyer" Namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>
<!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>关键词Tag管理-搜易站内搜索引擎系统</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：
<asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜索Tag" onclick="btnSearch_Click" /> | <a href="tagimport.aspx">批量导入Tag</a> | <asp:LinkButton runat="server" ID="lnkBuildIndexHtml" Text="生成Tag首页" onclick="lnkBuildIndexHtml_Click" /> | <a href="tagbuilder.aspx?t=1" title="">重新生成所有Tag</a> | <a href="tagbuilder.aspx?t=2" title="">生成新Tag</a> | <a href="taglistbuilder.aspx?t=1" title="">生成列表</a>  | <a href="/tag/index.html" target="_blank" style="color:red">点此浏览TAG首页</a></span>
</div>
<div class="sdcms_notice">
<span style="color:Red">提示：模版在data/templates目录下；tagindex.html为首页模版，taglist.html为列表模版，tag.html为Tag聚合内容页。有问题请咨询<a href="http://www.searcheasy.net" target="_blank">搜易官方</a></span>
</div>

<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>Tag</a></li>
</ul>
<div id="sdcms_right_b">
  <asp:DataGrid runat="server" ID="dgSubjectWordManager" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="id" onitemcommand="dgSubjectWordManager_ItemCommand" 
        onitemcreated="dgSubjectWordManager_ItemCreated" 
        oncancelcommand="dgSubjectWordManager_CancelCommand" 
        oneditcommand="dgSubjectWordManager_EditCommand" 
        onupdatecommand="dgSubjectWordManager_UpdateCommand">
     <Columns>
        <asp:TemplateColumn HeaderText="Tag" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <a href="/tag/<%# DataBinder.Eval(Container.DataItem, "pinyin")%>.html" target="_blank"><%# DataBinder.Eval(Container.DataItem, "word")%></a>
           </ItemTemplate>
           <EditItemTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txteditword" Text='<%# DataBinder.Eval(Container.DataItem, "word")%>' />
           </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="文件名(拼音)" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "pinyin")%>
           </ItemTemplate>
           <EditItemTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txteditpinyin" Text='<%# DataBinder.Eval(Container.DataItem, "pinyin")%>' />
           </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="首字母" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "firstpy")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="创建时间" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "createdate")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="是否生成静态" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# (bool)DataBinder.Eval(Container.DataItem, "isbuild") ? "已生成" : "未生成" %>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:EditCommandColumn CancelText="取消" EditText="编辑" UpdateText="保存" HeaderText="编辑" ItemStyle-HorizontalAlign="Center"  />
        <asp:TemplateColumn HeaderText="操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
               <asp:LinkButton runat="server" ID="lnkBuildHtml" CommandArgument="BuildHtml" Text="生成Html" /> | <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" />
             </ItemTemplate>
        </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid> 
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <tr>
     <td colspan="9" class="tdbg">
     <webdiyer:AspNetPager id="pager" runat="server" AlwaysShow="True" 
             ShowCustomInfoSection="Left" Width="80%"  ShowSelectBox="Never" 
             onpagechanged="pager_PageChanged"></webdiyer:AspNetPager>
      <asp:Literal runat="server" ID="ltlLicenceTips" />
     </td>
   </tr>
  </table>
</div>
</form>
</body>
</html>