<%@ Page Language="C#" MasterPageFile="~/v/Users.Master" AutoEventWireup="true" CodeBehind="WebsiteStructure.aspx.cs" Inherits="Stat.web.v.WebsiteStructure" Title="网站内容分类规则列表" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.weblist a:link {
	color: #0000CC;
	text-decoration: none;
}
.weblist a:visited {
	text-decoration: none;
	color: #0000CC;

}
</style>
<script type="text/javascript">
$(document).ready(function(){
$(".weblist tr:gt(0)").bind({
  mouseover: function() {
    $(this).css("backgroundColor","#EEF3F9");
  },
  mouseout: function() {
    $(this).css("backgroundColor","");
  }
});

$("a[id$='LinkButtonDelete']").bind('click',function(){return confirm('确认要删除吗？数据将无法恢复！');}); 

 $("table tr td").css({"padding-left":"5px","padding-right":"5px"});

});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMain" runat="server">
    <table style="width:100%; background-color:#b6c7db;" cellpadding="1" cellspacing="1" border="0" class="weblist">
        <tr>
            <td style="height:25px; background-color:#FFFFFF; line-height:25px; padding-left:15px; padding-right:15px; font-weight:bold; font-size:14px;">
                <span style="float:left">网站【<%=websiteName %>】的内容分类规则列表（<img alt="" src="/images/Skin2/add_03.gif" />&nbsp;<a href="WebsiteRole.aspx?wid=<%=webid %>">添加</a>）</span><span style="float:right"><img alt="" 
                    src="/images/Skin2/add_03.gif" />&nbsp;<a href="WebsiteRole.aspx?wid=<%=webid %>">添加内容分类规则</a></span></td>  
        </tr>
        </table>&nbsp;
        <asp:GridView ID="GvList" runat="server" AutoGenerateColumns="False" Width="100%" 
          EmptyDataText="没有找到内容分类规则，请先添加" BorderColor="#B6C7DB" BorderWidth="1px" onrowdeleting="GvList_RowDeleting" 
          onrowediting="GvList_RowEditing" CssClass="weblist" 
          onrowdatabound="GvList_RowDataBound">
    <RowStyle Font-Size="12px" />
    <Columns>
        <asp:BoundField DataField="name" HeaderText="&nbsp;名称">
        <HeaderStyle BackColor="#D5E2F1" HorizontalAlign="Left" Width="10%" 
            BorderColor="#B6C7DB" BorderWidth="1px" Height="25px" />
        <ItemStyle BorderColor="#B6C7DB" BorderWidth="1px" Height="22px" 
            HorizontalAlign="Left" />
        </asp:BoundField>
        
        <asp:BoundField HeaderText="&nbsp;内容分类规则" DataField="Rule" >
        <HeaderStyle BackColor="#D5E2F1" HorizontalAlign="Left" Width="60%" 
            BorderColor="#B6C7DB" BorderWidth="1px" Height="25px" />
        <ItemStyle BorderColor="#B6C7DB" BorderWidth="1px" Height="22px" 
            HorizontalAlign="Left" />
        </asp:BoundField>
        <asp:BoundField DataField="sort" HeaderText="排序" >
        <HeaderStyle BackColor="#D5E2F1" HorizontalAlign="Center" Width="7%" 
            BorderColor="#B6C7DB" BorderWidth="1px" />
        <ItemStyle BorderColor="#B6C7DB" BorderWidth="1px" Height="22px" 
            HorizontalAlign="Center" />
        </asp:BoundField>
        
        <asp:BoundField HeaderText="类型" DataField="Type" >
         <HeaderStyle BackColor="#D5E2F1" HorizontalAlign="Center" Width="7%" 
            BorderColor="#B6C7DB" BorderWidth="1px" />
        <ItemStyle BorderColor="#B6C7DB" BorderWidth="1px" Height="22px" 
            HorizontalAlign="Center" />
        </asp:BoundField>
        <asp:BoundField HeaderText="状态" DataField="IsUse" >
                <HeaderStyle BackColor="#D5E2F1" HorizontalAlign="Center" Width="6%" 
            BorderColor="#B6C7DB" BorderWidth="1px" />
        <ItemStyle BorderColor="#B6C7DB" BorderWidth="1px" Height="22px" 
            HorizontalAlign="Center" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="操作">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Edit">修改</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonDelete" runat="server" CommandName="Delete">删除</asp:LinkButton>
            </ItemTemplate>
            <HeaderStyle BackColor="#D5E2F1" HorizontalAlign="Center" Width="10%" 
                BorderColor="#B6C7DB" BorderWidth="1px" />
            <ItemStyle BorderColor="#B6C7DB" BorderWidth="1px" Height="22px" 
                HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
      <HeaderStyle Font-Size="12px" />
      </asp:GridView>
      &nbsp;<table style="width:100%; background-color:#b6c7db;" cellpadding="1" cellspacing="1" border="0"> 
        <tr>
            <td style="height:22px; background-color:#FFFFFF; text-align:center; font-size:12px; line-height:22px;">
              <asp:Literal ID="LtrPageIndex" runat="server"></asp:Literal>
           </td>
</tr>
</table> 
 <div class="box" style="margin-top:10px;"><span style="font-weight:bold">小贴士：</span>想了解您网站各个栏目的访问详细吗？添加网站Url规则吧，让统计分类更加详细。详见帮助文档。</div>
<br />
</asp:Content>
