<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserGroup_List.aspx.cs" Inherits="JRAPI.Admin.User.UserGroup_List" %>
<%@ Register src="../Controls/SubPageTop.ascx" tagname="SubPageTop" tagprefix="uc1" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<uc1:SubPageTop ID="SubPageTop1" runat="server" />
<body>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
            <a href='javascript:;'  class="on"><em>用户组管理</em></a><span>|</span><a href='UserGroup_Add.aspx'><em>添加用户组</em></a>    </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style><div class="pad-lr-10">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th width="1%" align="center">ID</th>
			<th width='10%' align="center">用户组名称</th>
			<th width="77%" align="center">备注</th>
			<th width="12%" align="center">管理操作</th>
            </tr>
        </thead>
    <tbody>
        <asp:Repeater ID="repList" runat="server">
            <ItemTemplate>
	            <tr>
	            <td align="center"><%# Eval("GroupID")%></td>
	            <td align="center"><%# Eval("GroupName")%></td>
	            <td align="center"><%# Eval("GroupRemark")%></td>
	            <td align="center"><a href="UserGroup_Edit.aspx?groupid=<%# Eval("GroupID") %>">修改</a> 
<%--                <a href="javascript:confirmurl('?action=delete&groupid=<%# Eval("GroupID")%>','确认要删除 『 <%# Eval("GroupName")%> 』 吗？')">删除</a>

--%>	       <a href="javascript:deleteitem(<%# Eval("GroupID") %>)">删除</a>     
</td>
</tr>
            </ItemTemplate>
        </asp:Repeater>

</tbody>
    </table>
    <div id="pdiv" style=" display:none"><input id="txtpass" name="txtpass" type="password" /></div>
    
    </div>
    <form id="Form1" runat="server">
 <webdiyer:AspNetPager ID="pages" runat="server" FirstPageText="首页" LastPageText="尾页"
                                            NextPageText="下一页" PrevPageText="上一页" 
        AlwaysShow="True" PageSize="20" UrlPageIndexName="pageindex" CustomInfoHTML="共有%RecordCount%条数据,每页%PageSize%条,当前第%CurrentPageIndex%页,共%PageCount%页"
                                            ShowCustomInfoSection="Left"  CurrentPageButtonClass="current"   
        CustomInfoClass="pxofy" 
        NavigationClass="pagin-list" onpagechanging="PageList_PageChanging" 
        PageIndexBoxClass="gotoinput" SubmitButtonClass="gotobtn" 
        FirstLastButtonsClass="a1" PagingButtonsClass="" PrevNextButtonsClass="a1">
                                        </webdiyer:AspNetPager>
<script type="text/javascript">
    function deleteitem(objid) {
        var d = window.top.art.dialog({ title: '请输入您的密码',
            content: document.getElementById("pdiv"),
            lock: true,
            fixed: true,
            okValue: '确定',
            ok: function () {
                doUpdate(d, objid);
            },
            cancelValue: '取消',
            cancel: function () { }
        });
    }
    function doUpdate(d, objid) {
        d.close();
        var pass = document.getElementById("txtpass").value;
        if (pass != "") {
            location = "User/UserGroup_List.aspx?action=delete&groupid=" + objid + "&pass=" + pass;
        }
    }
</script>
</form>
</div>
</body>
</html>