<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnderlineUser_List.aspx.cs" Inherits="RM.Web.Training.Certificate.UnderlineUser_List" %>

<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!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 runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <link href="../../Themes/Scripts/artDialog/skins/opera.css" rel="stylesheet" type="text/css" />
    <script src="../../Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="../../Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <style type="text/css">
        #anniu a { display:none;}
        #cx { display:none;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div style="float: left;" id="cx">
            <select id="Searchwhere" class="Searchwhere" runat="server"></select>
            <input type="text" id="txt_Search" class="txtSearch SearchImg" runat="server" style="width: 100px;" />
            <asp:LinkButton ID="LinkButton1" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%></asp:LinkButton>
        </div>

        <div style="text-align: right" id="anniu">
            <a title="新 增" id="ad" onclick="add();" class="button green"><span class="icon-botton" style="background: url('/Themes/images/16/add.png') no-repeat scroll 0px 4px;"></span>新 增</a>
            <a title="编 辑" id="up" onclick="edit();" class="button green"><span class="icon-botton" style="background: url('/Themes/images/16/edit.png') no-repeat scroll 0px 4px;"></span>编 辑</a>
            <a title="删 除"  id ="de" onclick="Delete();" class="button green"><span class="icon-botton" style="background: url('/Themes/images/16/delete.png') no-repeat scroll 0px 4px;"></span>删 除</a>
            <a title="查看线下" style="display:inline-table;" href="/Training/Certificate/UnderlineUser_List.aspx?action=under" class="button green"><span class="icon-botton" style="background: url('/Themes/Images/32/117.png') no-repeat scroll 0px 4px;"></span>查看线下</a>
        </div>
    <div class="div-body">
        <table border="0" id="table1" cellpadding="0" cellspacing="0" class="grid">
            <thead>
                <tr>
                    <th data-graph-hidden="1" style="width: 35px; text-align: center;">
                        <label id="checkAllOff" title="全选" onclick="CheckAllLine()">
                        </label>
                    </th>
                    <th title="发证条件">
                        登录名
                    </th>
                    <th title="证书名称">
                        姓名
                    </th>
                    <th title="证书查询ID">
                        英文姓名
                    </th>
                    <th title="证书查询ID">
                        编号
                    </th>
                    <th title="证书查询ID">
                        证书名称
                    </th>
                    <th title="证书查询ID">
                        说明
                    </th>
                    <th title="证书查询ID">
                        身份证
                    </th>
                    <th title="证书查询ID">
                        性别
                    </th>
                    <th title="证书查询ID">
                        生日
                    </th>
                    <th  title="证书查询ID">
                        手机
                    </th>
                    <th title="证书查询ID">
                        固定电话
                    </th>
                    <th title="证书查询ID">
                        邮箱
                    </th>
                    <th title="证书查询ID">
                        邮编
                    </th>
                    <th  title="证书查询ID">
                        入职时间
                    </th>
                    <th  title="证书查询ID">
                        学历
                    </th>
                    <th title="证书查询ID">
                         政治面貌
                    </th>
                    
                </tr>
            </thead>
            <tbody>
                <%=htmlStr%>
            </tbody>
        </table>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
</body>
<script type="text/javascript">
    $(function () {
        //把分页定位到屏幕下面
        divresize(90);
        FixedTableHeader("#table1", $(window).height() - 121);
        if("<%=Request["action"] %>" == "under")
        {
            $("#cx").css("display", "inline-table");
            $("#ad").css("display", "inline-table");
            $("#up").css("display", "inline-table");
            $("#de").css("display", "inline-table");
        }

    });
    //添加
    function add() {
        var url = "/Training/Certificate/UnderlineUser_Form.aspx";
        top.openDialog(url, 'UserInfo_Form', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_Index")%>', 800, 400, 50, 50);
    }
    //修改
    function edit() {
        var key = CheckboxValue();
        if (IsEditdata(key)) {
            var url = "/Training/Certificate/UnderlineUser_Form.aspx?key=" + key;
            top.openDialog(url, 'UserInfo_Form', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_Index")%>', 800, 400, 50, 50);
        }
    }
    //删除
    function Delete() {
        var key = CheckboxValue();
        if (IsDelData(key)) {
            var delparm = 'action=Virtualdelete&module=<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_Index")%>&tableName=TKS_CertificateUsers2&pkName=C_user_id&pkVal=' + key;
            delConfig('/Ajax/Common_Ajax.ashx', delparm)
        }
    }
</script>
</html>
