<%@ Control Language="C#" AutoEventWireup="true" Inherits="Usercontrols_classManageExt" Codebehind="classManageExt.ascx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

    <%@ Register src="~/admin/uc/ClassRelationSelect.ascx" tagname="ClassForSelect" tagprefix="uc1" %>

    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="top">
        <div style="text-align:left; width:100%;">
        <asp:Table ID="Table1" runat="server" CssClass="bluelk">
            <asp:TableRow ID="tr_1" runat="server" >
            </asp:TableRow>
        </asp:Table>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="classID"  Width="100%"   CssClass="gridView">
            <Columns>
              <asp:BoundField DataField="ClassRelation" HeaderText="类别关系" />
              <asp:BoundField DataField="ClassName" HeaderText="类别名称" />
              <asp:BoundField DataField="classAddTime" HeaderText="添加时间"  HtmlEncode="False"  DataFormatString="{0:yyyy-MM-dd}"/>
              <asp:TemplateField HeaderText="修改" ItemStyle-Width="40px">
                  <ItemTemplate>
                      <asp:LinkButton ID="lbtn_xg" CssClass="bluelk" CommandArgument='<%# Eval("classID") %>' runat="server" OnCommand="lbtn_xg_Command">[修改]</asp:LinkButton>
                  </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="查看子类别" ItemStyle-Width="80px">
                  <ItemTemplate>
                      <asp:LinkButton ID="lbtn_skzlb" runat="server" CssClass="bluelk" CommandArgument='<%# Eval("classID") %>' OnCommand="lbtn_skzlb_Command">[查看]</asp:LinkButton>
                  </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="删除" ItemStyle-Width="40px">
                  <ItemTemplate>
                      <asp:LinkButton ID="lbtn_sc" runat="server" CssClass="bluelk" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>" CommandArgument='<%# Eval("classID") %>'  OnCommand="lbtn_sc_Command"  ></asp:LinkButton>
                  </ItemTemplate>
              </asp:TemplateField>
            </Columns>
        </asp:GridView>
<div class="page-fenye">
<webdiyer:AspNetPager id="AspNetPager1" HorizontalAlign="Center" Font-Bold="true" runat="server" Width="100%" CenterCurrentPageButton="True"
OnPageChanging="AspNetPager1_PageChanging" ShowPageIndexBox="Always"
FirstPageText="首页" PrevPageText="上一页" NextPageText="下一页" LastPageText="尾页" 
PageIndexBoxType="TextBox"  CurrentPageButtonTextFormatString="{0:[0]}" 
AlwaysShow="True" ShowNavigationToolTip="True" PageSize="8"
CustomInfoHTML="记录总数：%RecordCount%" CustomInfoSectionWidth="200px" 
ShowCustomInfoSection="Left"   CustomInfoStyle="text-valign:middle;margin-right:0px;" CustomInfoClass="bluelk">
</webdiyer:AspNetPager>
</div>
        
    </td>
    </tr>
    </table>
    
<br /><br />
    <fieldset style="width:95%;border:1px solid #90ACCF;margin-top:20px;">
    <legend><font color="red"><b>添加与修改</b></font></legend>

    <table width="95%" border="0" cellpadding="0" cellspacing="0" style="border:0px solid #90ACCF;padding:8px;">
      <tr>
          <td style="width: 84px;">
              类别名称:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="tbName" runat="server"></asp:TextBox></td>
      </tr>
      <tr>
          <td style="width: 84px; height: 94px;">
              类别描述:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="tbClassRemark" runat="server" TextMode="MultiLine" Rows="5" Width="407px"></asp:TextBox></td>
      </tr>
      <tr>
          <td style="width: 84px;">
              类别关系:</td>
          <td style="text-align:left;">
              
              <uc1:ClassForSelect ID="ClassForSelect1" runat="server" />
              修改类别关系时，被修改类别会连其下的子类别一起被修改
              </td>
      </tr>
       <tr>
          <td style="width: 84px; height: 94px;">
              Seo标题:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="txtSeoTitle" runat="server" TextMode="MultiLine" Rows="5" Width="407px"></asp:TextBox></td>
      </tr> 
      <tr>
          <td style="width: 84px; height: 94px;">
              Seo关键词:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="txtSeoKey" runat="server" TextMode="MultiLine" Rows="5" Width="407px"></asp:TextBox></td>
      </tr> 
      <tr>
          <td style="width: 84px; height: 94px;">
              Seo描述:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="txtSeoDesc" runat="server" TextMode="MultiLine" Rows="5" Width="407px"></asp:TextBox></td>
      </tr>       
      <tr>
          <td style="height: 30px;text-align:center;" colspan="2">
              <asp:Button ID="btAddClass" runat="server" Text="增加类别" OnClick="btAddClass_Click" />
              <asp:Button ID="btModify" runat="server" Text="修改类别" OnCommand="btModify_Command" Visible="False" />&nbsp;
              <asp:Button ID="btCancel" runat="server" OnClick="btCancel_Click" Text="取消" Visible="False" /></td>
      </tr>
    </table>
    </fieldset>