<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JumbotCms.WebFile.Tools.IDCard._index" %>
<!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="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>身份证归属地查询 | <%=site.Name%></title>
<meta name="keywords" content="身份证号码查询 身份证号码前6位查询" />
<meta name="description" content="身份证查询 提供身份证号码,身份证查询,身份证号码查询验证,并有效识别身份证真伪" />
<script type="text/javascript">
var TOOL_URL = '';
var CATE_ID ='';
var MY_TOOLS_COOKIE = 'tools_my';
</script>
<link type="text/css" rel="stylesheet" href="/themes/default/css/global.css" id="cssTheme" />
<link type="text/css" rel="stylesheet" href="/static/css/global.css" />
<script type="text/javascript" src="/_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="/_data/jcmsV4.x.js"></script>
<link type="text/css" rel="stylesheet" href="/_data/jcmsV4.x.css" />
<script src="/static/js/common.js?v=20100531" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="/static/tools/idcard/idcard.css" />
<script type="text/javascript" src="/static/js/area.js"></script>
<script type='text/javascript'>
var s=["province","city","region"];

var Change = function(ele,index){
    var str = "0";
    var data;
    if(index == 0){
        str += "_" + document.getElementById(s[0]).selectedIndex;
        data = dsy.Items[str];
        var secondBox = document.getElementById(s[1]);
        secondBox.innerHTML = "";
        if(data){
            for(var i=0; i < data.length; i++){
                var temp = data[i].split("|");
                secondBox.options[i] = new Option(temp[0],temp[1]);
            }
        }
        document.getElementById(s[2]).innerHTML = "";
    }
    else if(index == 1){
        str += "_" + document.getElementById(s[0]).selectedIndex;
        str += "_" + document.getElementById(s[1]).selectedIndex;
        data = dsy.Items[str];
        var thirdBox = document.getElementById(s[2]);
        thirdBox.innerHTML = "";
        if(data){
            for(var i=0; i < data.length; i++){
                var temp = data[i].split("|");
                thirdBox.options[i] = new Option(temp[0],temp[1]);
            }
        }
    }
    document.getElementById("area_id").innerHTML = document.getElementById(s[index]).value;
}
var CopyResult = function(){
    var top = document.getElementById("result").innerHTML;
    var r = top.replace(/<\/tr\s*\/?>/ig,'#').replace(/[\n|\s]*<[^>]*>/ig,'').replace(/#/ig,"\r\n");
    r=window.location+"\r\n以下内容由<%=site.Name%>提供：\r\n"+r;
    Public.Copy(r);
}
function setup(){
    var firstData = dsy.Items["0"];
    var provinceBox = document.getElementById(s[0]);
    for(var i=0; i < firstData.length; i++){
        var temp = firstData[i].split("|");
        provinceBox.options[i] = new Option(temp[0],temp[1]);
    }
    
}
//setup();
</script>
</head>
<body>
<div class="jbody">
<!--#include virtual="/_data/html/header2.htm" -->
<div id="main" class="clearfix">
  <div class="col-main">
    <form action="/tools/idcard/" class="form-search js_search_form" method="get">
      <input type="hidden" class="js_tool_url" value="/tools/idcard/?k="/>
      <label class="form-search-col" for="search_input">请输入身份证号码：</label>
      <div class="search_area">
        <input id="search_input" type="text" name="k" value="<%=IDCard %>" class="text js_keyword_box" />
        <br />
        <span class="search-tips js_query_eg">支持 15 和 18 位身份证号码或前 6 位</span> </div>
      <input type="submit" class="search_submit" value="查询" />
    </form>
    <form id="form1" runat="server">
    <div id="info_box" class="box-base" runat="server">
      <div class="box-hd">
        <h3 class="box-t-l">查询结果</h3>
        <span class="box-t-link link" onclick="CopyResult()"></span> </div>
      <div id="result" runat="server">
        <table id="info" class="tb-result">
          <tr>
            <th style="width:110px">身份证号段：</th>
            <td><asp:Label ID="lblIDCard" runat="server" Text=""></asp:Label></td>
          </tr>
          <tr>
            <th style="width:110px">号段归属地：</th>
            <td><asp:Label ID="lblIDCardArea" runat="server" Text=""></asp:Label></td>
          </tr>
        </table>
      </div>
    </div>
    </form>
    <div id="six_num" class="box-base">
      <div class="box-hd">
        <h3 class="box-t-l">查看地区的身份证前6位</h3>
      </div>
      <form id="area_select" action="#" class="clearfix">
        <select onchange="Change(this,0)" name="province" id="province" size="10" style="width:150px;">
          <option value="110000">北京市</option>
          <option value="120000">天津市</option>
          <option value="130000">河北省</option>
          <option value="140000">山西省</option>
          <option value="150000">内蒙古自治区</option>
          <option value="210000">辽宁省</option>
          <option value="220000">吉林省</option>
          <option value="230000">黑龙江省</option>
          <option value="310000">上海市</option>
          <option value="320000">江苏省</option>
          <option value="330000">浙江省</option>
          <option value="340000">安徽省</option>
          <option value="350000">福建省</option>
          <option value="360000">江西省</option>
          <option value="370000">山东省</option>
          <option value="410000">河南省</option>
          <option value="420000">湖北省</option>
          <option value="430000">湖南省</option>
          <option value="440000">广东省</option>
          <option value="450000">广西壮族自治区</option>
          <option value="460000">海南省</option>
          <option value="500000">重庆市</option>
          <option value="510000">四川省</option>
          <option value="520000">贵州省</option>
          <option value="530000">云南省</option>
          <option value="540000">西藏自治区</option>
          <option value="610000">陕西省</option>
          <option value="620000">甘肃省</option>
          <option value="630000">青海省</option>
          <option value="640000">宁夏回族自治区</option>
          <option value="650000">新疆维吾尔自治区</option>
          <option value="710000">台湾省(886)</option>
          <option value="810000">香港特别行政区(852)</option>
          <option value="820000">澳门特别行政区(853)</option>
        </select>
        <span class="ico-arrow"></span>
        <select onchange="Change(this,1)" name="city" size="10" id="city" style="width:150px;">
        </select>
        <span class="ico-arrow"></span>
        <select onchange="Change(this,2)" name="region" id="region" size="10" style="width:150px;">
        </select>
        <div id="area_id_box"> <span>该地区的身份证前6位是：</span> <strong id="area_id"></strong> </div>
      </form>
    </div>
  </div>
  <div class="col-sub">
    <!--#include virtual="/_data/html/tools_nav.htm" -->
  </div>
</div>
<!--#include virtual="/_data/html/footer.htm" -->
</div>
<script type="text/javascript">get_user_status(0);</script>
</body>
</html>
