<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/BackCenter/Home/Index.master" AutoEventWireup="true" CodeFile="SiteTypeIndex.aspx.cs" Inherits="BackCenter_SiteType_SiteTypeIndex" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContextPlaceHolder" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <cite class="fr menu01"><a href="/BackCenter/SiteType/SiteTypeEdit.aspx">新增类型</a></cite>
        <p class="home">
            位置：后台中心 >> 网站类型管理
        </p>
    </div>
    <div class="bd">
        <div class="search">
            <h2 class="search_tit">
                <span>查询</span></h2>
            <div class="search_list">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab_style2">
                    <tr>
                        <td class="n1">
                            类型名称：
                        </td>
                        <td class="n2">
                            <asp:TextBox ID="txt_Name" runat="server"></asp:TextBox>
                        </td>
                   
                        <td class="n1">
                        </td>
                        <td class="n2">
                        </td>
                    </tr>
                </table>
                <div class="s_menu">
                    <asp:Button ID="btnSearch" CssClass="menu_b" runat="server" Text="查询" OnClick="btnSearch_Click">
                    </asp:Button>
                </div>
            </div>
        </div>
        <div class="tit_xs">
            <h2>
            类型列表
            </h2>
        </div>
        <asp:GridView ID="GridView1" GridLines="None" runat="server" Width="100%" DataKeyNames="Id" AutoGenerateColumns="false"
            CssClass="tab_style">
            <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="40px">
                    <HeaderStyle Width="40px"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Name" HeaderText="类型名称" SortExpression="Type" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="OrderNum" HeaderText="权重" SortExpression="OrderNum" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="40px" />
                <asp:TemplateField HeaderText="修改" HeaderStyle-Width="40px">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnUpdate" CommandArgument='<%# Eval("Id") %>' 
                            runat="server" OnCommand="btnUpdate_Command">[修改]</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除" HeaderStyle-Width="40px">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("Id") %>' 
                            runat="server" OnCommand="btnDelete_Command" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
        </asp:GridView>
        <div class="sabrosus">
            <webdiyer:aspnetpager id="AspNetPager1" pagesize="10" horizontalalign="Center" font-bold="true"
                cssclass="" runat="server" width="100%" centercurrentpagebutton="True" onpagechanging="AspNetPager1_PageChanging"
                showpageindexbox="Never" firstpagetext="首页" prevpagetext="上一页" nextpagetext="下一页"
                lastpagetext="尾页" pageindexboxtype="TextBox" currentpagebuttontextformatstring="{0:[0]}"
                alwaysshow="false" shownavigationtooltip="True" custominfohtml="记录总数：%RecordCount%"
                showcustominfosection="Left">
            </webdiyer:aspnetpager>
        </div>
    </div>
</asp:Content>


