<?php
$hu = 'ssyqsl';
@require_once('../header.php');
?>
<script type="text/javascript" src="ajax2.js"></script>
<script type="text/javascript">
 window.onload=function doseo() {
 	var len = document.getElementsByName("searchtype").length;
	var j   = '';
	for(var i=1;i<=len;i++){
	  if ($('searchtype'+i).checked){
        j = j+$('searchtype'+i).value+',';
      }
	}
	j = j.substr(0,j.length-1);
	if(($('che').value) != j){
	  $('che').value = j;
	}
	$('seo_result').innerHTML = '&nbsp;<img src="../images/loading.gif" width="94" height="15" align="absmiddle" alt="正在加载,请稍候...&#10;如果长时间未响应，请尝试重新查询"/> Loading...';
	$('seo_result').style.display = '';	
	makeRequest('domain='+$('domain').value+'&che='+$('che').value);
}
 function checkEngines(zt) {
   if(zt){
   	for(var k=1;k<8;k++){
   		$('searchtype'+k).checked = true;
   	}
   }else{
   	for(var k=1;k<8;k++){
   		$('searchtype'+k).checked = false;
   	}
   }
}
</script>
<div class="main">
  <div class="box">
    <div id="c">
      <h1>搜索引擎收录查询</h1>
      <div class="box1" style="text-align:center;">
          <span class="info3" > 请输入要查询的域名：
            <font color="green"><b>HTTP://</b></font><input name="domain" type="text" id="domain" class="input" size="40" url="true" value="<?php echo $domain = $_POST['dom']?$_POST['dom']:'chinaccnet.com';?>"/>
            <input type="hidden" value="<?php echo $_POST['choosea'];?>" id="che" name="che">
            <input name="btnS" class="but" type="button" value="查询"  id="sub" onclick="doseo();"/>
          </span>	            <input id="searchtype1" type="checkbox" name="searchtype" value="1"  <?php if(strpos($_POST['choosea'],'1') !== false) echo "checked";?>/><label for="site1">百度</label>
        <input id="searchtype2" type="checkbox" name="searchtype" value="2"  <?php if(strpos($_POST['choosea'],'2') !== false) echo "checked";?>/><label for="site2">Google</label>
        <input id="searchtype3" type="checkbox" name="searchtype" value="3"  <?php if(strpos($_POST['choosea'],'3') !== false) echo "checked";?>/><label for="site4">雅虎</label>
        <input id="searchtype4" type="checkbox" name="searchtype" value="4"  <?php if(strpos($_POST['choosea'],'4') !== false) echo "checked";?>/><label for="site8">搜搜</label>
        <input id="searchtype5" type="checkbox" name="searchtype" value="5"  <?php if(strpos($_POST['choosea'],'5') !== false) echo "checked";?>/><label for="site16">有道</label>
        <input id="searchtype6" type="checkbox" name="searchtype" value="6"  <?php if(strpos($_POST['choosea'],'6') !== false) echo "checked";?>/><label for="site32">必应</label>
        <input id="searchtype7" type="checkbox" name="searchtype" value="7"  <?php if(strpos($_POST['choosea'],'7') !== false) echo "checked";?>/><label for="site8192">搜狗</label>
         <input id="chk" name="chk" type="checkbox" checked="checked" onclick="checkEngines(this.checked);" />
<label for="chk">全选</label>
<div class="t" style="display:none" id="seo_result">
</div>
          <div style="width:100%">
              <div id="detail" class="info1">
<div id="result" class="div_whois">
<div class="t" style="display:none" id="seo_result">
</div>
       </div>
              </div>
              <div style="float:right; width:40%; text-align:right; padding-top:9px;">
              </div>
          </div>
      </div>
    </div>
  </div>  
<div id="b_14">
<h1>最近查询：</h1>
<div class="box1">
<span class="info2"> 
<table>
<tr><td align="left" style= "word-wrap:break-word;word-break:break-all">
<?php
@require_once('../cache/ssyqsl.php');
if($urls){
foreach ($urls as $key=>$v){
	echo "<a href=http://".$urls[$key]." target=_blank>".$urls[$key]."</a>&nbsp;&nbsp;";
}}?></td></tr>
</table>
</span>
</div>
    <div class="box">
      <div id="b_14">
        <h1>工具简介</h1>
        <div class="box1">
            <span class="info2">
               <p>通过本工具可以快速查询各大搜索引擎对网站的收录数量！</p>
            </span>
        </div>
      </div>
</div>
<?php @require_once('../foot.php');?>