<%@ page language="C#" autoeventwireup="true" inherits="Admin_Manager_JobList, App_Web_8kyo1eer" %>


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

<!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 id="Head1" runat="server">
    <title>角色</title>
    <link href="../../CSS/All.css" rel="stylesheet" type="text/css" />
    <link href="../../CSS/pager.css" rel="stylesheet" type="text/css" />
    <script src="../../JS/xzOper.js" type="text/javascript"></script>
</head>
<body>

    <form id="Myform" runat="server" >
        <div class="title" >
            客户信息</div>
        <div >
            <input id="btnNew" class="btn" type="button" value="新增角色" onclick="location.href='AdminPurview.aspx?pageindex=<%= PagerButtom.CurrentPageIndex %>'" />&nbsp;</div>    
        <fieldset>
        <legend>内容区域</legend>
        <div  id="view">
        <asp:GridView
            ID="TableView" runat="server" AutoGenerateColumns="False"
             EmptyDataText="没有可显示的数据记录。" Width="100%" BorderStyle="Solid" DataKeyNames="CID">
             <Columns>
                 <asp:TemplateField HeaderText="选择"> 
                     <ItemTemplate>
                         <asp:CheckBox ID="CBSelect" runat="server" />
                     </ItemTemplate>
                     <HeaderStyle Height="30px" Width="30px"  Wrap="False"/>
                     <ItemStyle Height="30px" Width="30px" Wrap="False" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="操作" SortExpression="EID">
                     <ItemTemplate>
                         <a href='#' onclick='locationUrl("AdminPurview.aspx","<%#Eval("CID") %>")'>编辑</a>
                     </ItemTemplate>
                     <HeaderStyle Wrap="False" Width="50px" />
                     <ItemStyle Wrap="False" Width="50px"  />
                
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="角色名称">
                     <ItemTemplate>
                         <asp:Label ID="labRoleName" runat="server" Text='<%# Bind("roleName") %>'></asp:Label>
                     </ItemTemplate>
                         <HeaderStyle Wrap="False"  Width="100px"  />
                     <ItemStyle Wrap="False"  Width="100px" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="备注">
                     <ItemTemplate>
                         <asp:Label ID="Label2" runat="server" Text='<%# Bind("Beizhu") %>'></asp:Label>
                     </ItemTemplate>
                 </asp:TemplateField>
                </Columns>
                  <FooterStyle CssClass="GridViewFooterStyle" />
                 <RowStyle CssClass="GridViewRowStyle" />   
                 <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                 <PagerStyle CssClass="GridViewPagerStyle" />
                 <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                 <HeaderStyle CssClass="GridViewHeaderStyle" />
                 
        </asp:GridView>
        </div>
        <div style="border-top:ridge 1px #F6F6F6; margin-top:10px" >
        
            <input id="Button12" class="btn" onclick="Opposite('view')" type="button" value="反选" />
            <asp:Button ID="btnPTestAll" runat="server" CssClass="btn" OnClick="btnPTestAll_Click"
                OnClientClick="if(confirm('确定删除所有选中吗？')){return isSelect('view')}else{return false;}"
                Text="删除选中" />&nbsp;
      
        </div>  
      </fieldset>
    <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" cssclass="paginator"
                currentpagebuttonclass="cpb" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                firstpagetext="首页" lastpagetext="尾页" layouttype="Table" nextpagetext="下一页" numericbuttoncount="8"
                onpagechanged="Pager_PageChanged" pagesize="25" prevpagetext="上一页" showcustominfosection="Left"
                showpageindexbox="Always"></webdiyer:aspnetpager>
    </form>
<script>
function locationUrl(url,cid){
location.href=url+"?cid="+cid+"&pageindex=<%= PagerButtom.CurrentPageIndex %>";
}

</script>
</body>

</html>