<?php

$servername ='121.15.220.177';
$dbname='s448639db0';			//数据库名
$dbusername ='s448639db0';	//数据库用户名
$dbpassword ='900528';	//数据库密码

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>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Author" content="查询,网址之家,查询吧,">
<meta name="Keywords" content="ip,IP查询,IP地址查询,chaxun8,网址之家,查询吧">
<meta name="Description" content="ip,IP查询,IP地址查询,chaxun8,网址之家,查询吧,手机号码归属地,周公解梦,列车时刻表,邮编,黄道吉日,号码吉凶,工具大全,便民查询网站">
<title>五笔/拼音查询 - 生活查询 - IP地址查询|手机号码归属地查询|身份证|电话号码查询|黄历|万年历|区号|各种查询|
- 查询吧</title>
<link href="/css/chaxun8.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" type="text/javascript" src="/js1/header.js"></script>
<div class="flo_l nav"><ul><li class="nav2"><a href="/index1.html" >生活查询</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/ad.js"></script></li>
<li><script language="javascript" type="text/javascript" src="/js1/ding.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" class="mob_int"  value="<? echo $zi; ?>" /> 　
      <input name="aaa" type="submit" id="aaa" class="mob_copy1" value="查询"/>
  	</form>
        <font style="color:#808080">*例：<a href="/wubipinyin/?zi=%B2%E9%D1%AF%B0%C9&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>


                    <table width="738" border="0" cellspacing="1" bordercolor="#b2d0ea" bgcolor="#b2d0ea">
                      <tr>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><b>汉字</b></div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><b>拼音</b></div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><b>偏旁部首</b></div></td>
                        <td width="90" bgcolor="#FFFFFF"><div align="center"><b>五笔编码</b></div></td>
                      </tr>
					<?
					foreach ($czi as $k=>$v) {
					$sql="SELECT * FROM `jyc_wbpy` 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 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" type="text/javascript" src="/js1/footer_nei.js"></script>
<div style="display:none"><script type="text/javascript" src="/js1/tongji.js"></script></div>
</body>
</html>
