<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>等级认定证书查询</title>
    
        
            <link rel="stylesheet" href="https://resfiles.bjcscn.com/3fa4133ac04c4ea58b912ef537aa6545/bbab31a7ea7142058f602c05c2a7988a.css" />
        
    
    
        
            <script type="text/javascript" src="https://resfiles.bjcscn.com/3fa4133ac04c4ea58b912ef537aa6545/0a313ea4c0fc43e38b870a4e9a88bfa1.js" charset="utf-8"></script>
        
    
    <script >
        function getQueryVariable(variable) {
            let query = window.location.search.substring(1);
            let vars = query.split("&");
            for (let i=0;i<vars.length;i++) {
                let pair = vars[i].split("=");
                if(pair[0] == variable){return pair[1];}
            }
            return(false);
        }
        function cetest1(){
            var num=0;
            var card=document.getElementById("textfield4").value;
            var cert=document.getElementById("textfield5").value;
            var special=/[\u4e00-\u9fa5]{1,}/
            if(card) {
                num++;
            }
            if(cert) {
                num++;
            }
            if(num<2){
                alert("请输入两个查询条件！");
                return false;
            }
            if(card!=""&& card!=null && special.test(card)){
                alert("请输入正确的证件号码!");
                return false;
            }
            certQuery(card,cert)
        }
        function resetBtn1(){
            var card=document.getElementById("textfield4").value;
            var certNum=document.getElementById("textfield5").value;
            if(card!=""&&certNum!=""){
                document.getElementById("textfield4").value=""
                document.getElementById("textfield5").value=""
            }
        }
        function certQuery(cardId,certNum){
            $.ajax({url:"https://pj.hbjdzx.org.cn/jgapi/admin/ws/om/getCertQuery/oslt?cardId="+cardId+"&certNum="+certNum,success:function(result){
                    if(result.status<0) {
                        alert(result.message)
                        return false
                    }else {
                        var certs = result.data.certs;
                        if(!certs.length>0) {
                            alert('查询不到相关信息，请重新查询')
                            return false
                        }
                        // 所在单位 certs[0].workUnit
                        $("#div1").html('<div class="complaint_endbg1">    \n' +
                            '                         <table class="tab_info1">    \n' +
                            '                                 <tbody>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td colspan="4" class="tb_tit1">基本信息</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td class="tb1" width="25%">姓　　名：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].name+'</td>    \n' +
                            '                                         <td class="tb1" width="25%">证件类型：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].cardType+'</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td class="tb1" width="25%">证件号码：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].cardId+'</td>    \n' +
                            '                                         <td class="tb1" width="25%"></td>    \n' +
                            '                                         <td width="25%">'+''+'</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 </tbody>    \n' +
                            '                             </table>    \n' +
                            '                         <table class="tab_info">    \n' +
                            '                                 <tbody>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td colspan="4" class="tb_tit">证书信息</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td class="tb1" width="25%">职业名称：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].occupationName+'</td>    \n' +
                            '                                         <td class="tb1" width="25%">工种名称：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].workTypeName+'</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td class="tb1" width="25%">职业技能等级：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].testLevel.name+'</td>    \n' +
                            '                                         <td class="tb1" width="25%">证书编号：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].certNum+'</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td class="tb1" width="25%">评价机构：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].testUnit+'</td>    \n' +
                            '                                         <td class="tb1" width="25%">发证机构：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].certUnit+'</td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 <tr>    \n' +
                            '                                         <td class="tb1" width="25%">发证日期：</td>    \n' +
                            '                                         <td width="25%">'+certs[0].certDay+'</td>    \n' +
                            '                                         <td class="tb1" width="25%"></td>    \n' +
                            '                                         <td colspan="2" width="25%"></td>    \n' +
                            '                                     </tr>    \n' +
                            '                                 </tbody>    \n' +
                            '                             </table>    \n' +
                            '                     </div>');
                    }
                }});
        }
    </script>
    <style type="text/css">
        .btn{
            background: #4679dc;
            width:150px;
            color: #FFFFFF;
            font-size: 16px;
            padding: 5px 0;
            text-align: center;
        }
        .content1{
            position: relative;
            margin: 30px auto 10px;
            display: none;
        }
        .btn.active{
            font-size: 16px;
            width:150px;
            background: #FFFFFF;
            color: #4679dc;
            padding: 5px 0;
            text-align: center;
        }
        .content1.show{
            display:block;
        }
        .rowpub{
            display: flex;
            flex-direction: row;
            -webkit-flex-direction: row;
            -moz-flex-direction: row;
            -ms-flex-direction: row;
            -o-flex-direction: row;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            -o-align-items: center;
            align-items: center;
        }
    </style>
</head>
<body style="background-color: #f1f1f1">
<div class="content" style="margin-top: 0;">
    <div style="width: 100%; border-bottom: 2px solid #66686a;">
        
            <img src="https://resfiles.bjcscn.com/3fa4133ac04c4ea58b912ef537aa6545/657c7aed549145dab4e50c9dba268a61.jpg" loading="lazy" style="width: 100%;" />
        
    </div>
    <div style="width: 1200px; margin: -52px auto 0px; border-bottom: 2px solid #66686a;">
        <div class="rowpub" style="max-width: 1200px;margin:0 auto;">
            <a style="flex: 1;" >
                <div class="btn active" style="cursor: pointer; width: 100%;">
                    <p style="padding: 10px 0">职业技能等级评价证书</p>
                </div>
            </a>
            
                
                    <a href="/w1339" style="flex: 1;" >
                        <div style="cursor: pointer; width: 100%;" class="btn">
                            <p style="padding: 10px 0">职业资格证书</p>
                        </div>
                    </a>
                
            
            
                
                    <a href="/w1337" style="flex: 1;" >
                        <div style="cursor: pointer; width: 100%;" class="btn">
                            <p style="padding: 10px 0">专项职业能力证书</p>
                        </div>
                    </a>
                
            
            
                
                    <a href="/w1338" style="flex: 1;" >
                        <div style="cursor: pointer; width: 100%;" class="btn">
                            <p style="padding: 10px 0">技能竞赛等级晋升证书</p>
                        </div>
                    </a>
                
            
        </div>
    </div>
    <div class="wrapper1">
        <div class="secend_con">
            <div class="complaint_title" style="font-weight: bold; color: #0662b1; margin-top: 0;">职业技能等级评价证书查询</div>
            <div class="complaint_braybg1" style="background-color: #fff; padding-top: 0px;">
                <table width="450" border="0" cellspacing="8">
                    <tr style="height: 50px;">
                        <td height="30" style="color: #0662b1;">证件号码：</td>
                        <td><input type="text" id="textfield4" size="45" name="cardId" searchType="searchType" class="inputClass" value="" style="border: 1px solid #0662b1;" /></td>
                    </tr>
                    <tr style="height: 50px;">
                        <td height="30" style="color: #0662b1;">证书编号：</td>
                        <td><input type="text" id="textfield5" size="45" name="certNum" searchType="searchType" class="inputClass" value="" style="border: 1px solid #0662b1;" /></td>
                    </tr>
                    <tr>
                        <td height="30">&nbsp;</td>
                        <td><span style="color: #eb8023;">注：请输入以上内容查询！</span></td>
                    </tr>
                    <tr>
                        <td height="60" colspan="2" align="center"><a onclick="cetest1()"><input type="submit" value="查询" class="bluebtn inputClass" style="background-color: #0662b1;" /></a>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="button" value="重置"  class="bluebtn inputClass" onclick="resetBtn1()" style="background-color: #e0e9f1; border: 1px solid #0662b1; color: #0662b1;" /></td>
                    </tr>
                </table>
            </div>
            <br />
            <div id="div1"></div>
        </div>
    </div>
</div>
</body>
</html>
