<?php

$servername ='simonjay.gotoip55.com';
$dbname='simonjay';			//
$dbusername ='simonjay';	//
$dbpassword ='253988901';	//

mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname) or die("不能连接数据库");
mysql_query("SET NAMES 'gbk'");

$zi=$_GET["zi"];

function c($str){
	  $ret=array();
	  for($i=0;$i<strlen($str);$i++){
		   $p=ord(substr($str,$i,1));
		   if($p>160){
		   $q=substr($str,$i,2);
		   $i++;
		   }
		   else $q=substr($str,$i,1);
		   $ret[]=$q;
	  }
	  return $ret;
}

$czi=c($zi);

?>
<!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>
<title>五笔/拼音查询_365官方导航_天天导航网</title>
<meta name="Author" content="365官方,365导航,天天导航,365日历">
<meta name="Keywords" content="365官方,365日历,365音乐,邮编查询,365网址导航,公交查询,IP地址,工具大全,实用查询网站">
<meta name="Description" content="国内最大的导航查询网站_365官方(tt365.org)_天天导航网,提供IP|黄历|万年历|手机归属地|区号|身份证|天气预报查询|各种实用查询">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../css/jiuyaocha.css" rel="stylesheet" type="text/css" />
<link href="../favicon.ico" rel="shortcut icon" />
<SCRIPT language=JavaScript>
function killErr(){
return true;
}
window.onerror=killErr;
</SCRIPT>
</head>
<body>
<script language="javascript" src="../adjs/header1.js"></script>
<div class="flo_l nav"><ul><li class="nav2"><a href="../" >生活查询</a></li>
<li class="nav2"><a href="../yule" >娱乐工具</a></li>
<li class="nav2"><a href="../caijing" >财经商务</a></li>
<li class="nav2"><a href="../jisuan" >计算/学习</a></li>
<li class="nav1"><a href="../wangluo" >电脑网络</a></li>
<li class="nav2"><a href="../zhanzhang" >站长工具</a></li>
<li class="nav2"><a href="../jiaotong" >交通查询</a></li>
</ul></div>
</div></div></div>
<div class="w950">
<div class="knr"><div class="xdh">
<ul id="ful">
<script language="javascript" type="text/javascript" src="../js1/wangluo.js"></script>
</ul></div></div>
<div class="head3"></div></div>

<div class="zuo">
<ul>
<li><script language="javascript" type="text/javascript" src="../js1/zbj.js"></script></li>
</ul>
</div>
<div style='height:5px;'></div>
<div class="w950">
  <div class="head4">
    <div class="Ico_aBox">
      <div class="Ico_aBox_icon INico79"></div>
      <div class="Ico_aBox_tit">五笔/拼音查询</div>
      <div class="Ico_aBox_intro">汉字拼音及五笔编码查询</div>
    </div>
  </div>
  <div class="knr">
    <div class="mobile_main">
      <div class="mobile_k mob_body mar10">
	 <form action="" method="get">
<b>请输入汉字：</b>
      <input name="zi" type="text" id="zi" size="50" value="<? echo $zi; ?>" /> 　
      <input name="aaa" type="submit" id="aaa" class="mob_copy1" value="查询"/>
  	</form>
        <font style="color:#808080">*例：<a href="../wubipinyin/?zi=%CC%EC%CC%EC%B5%BC%BA%BD%CD%F8&aaa=%B2%E9%D1%AF">天天导航网</a>.<a href="?zi=%CA%B5%D3%C3%B2%E9%D1%AF%CD%F8%D5%BE&aaa=%B2%E9%D1%AF">实用查询网站</a></font>
	  </div>


                    <div class="dingt">
<div class="pot">查询结果</div>

 <div class="od">

					
                    <table width="684" border="0" align="center" cellspacing="1" bordercolor="#b2d0ea" bgcolor="#b2d0ea">
                      <tr>
                        <td width="90" bgcolor="#FFFFFF"><div align="center">汉字</div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center">拼音</div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center">偏旁部首</div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center">五笔编码</div></td>
                      </tr>
	<?
					foreach ($czi as $k=>$v) {
					$sql="SELECT * FROM `zi2` WHERE `zi`='$v'";
					$q=mysql_query($sql);
					$rs=mysql_fetch_array($q);
					?>
                       <tr>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><? echo $v; ?></div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><? echo $rs["py"]; ?></div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><? echo $rs["bs"]; ?></div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><? echo $rs["wb"]; ?></div></td>
                      </tr>
				<? } ?>
    </table>
 </div>
</div>
<div style='height:10px;'></div>
<div class="mob_det"><b>五笔编码&汉语拼音查询说明：</b>假设你不知道汉字“乙”用五笔怎么打，那可以用拼音输入法在上面的框中输入“乙”字后按查询按钮即可查出“乙”字的五笔编码，同时显示汉字的汉语拼音。注：可同时查询多个汉字!</div>
  </div></div>
  <div class="head3"></div>
</div>
<div class="ggdi">
<script language="javascript" type="text/javascript" src="../js1/footk.js"></script> 
</div>
<script language="javascript" src="../adjs/footer.js"></script>
<div style="display:none">
<script language="javascript" src="../adjs/tongji.js"></script></div>
</body>
</html>