BVB Source Codes

HP fetion automatic daily weather forecast v1.0 Show index.php Source code

Return Download HP fetion automatic daily weather forecast v1.0: download index.php Source code - Download HP fetion automatic daily weather forecast v1.0 Source code - Type:.php
  1. <?php
  2. /**************************************************************************/
  3. /******************* 飞信通知天气预报_sina_SAE版******************************/
  4. /*************************** 2012-5-1 *************************************/
  5. /**************************作者:xiaogg*************************************/
  6. /***************************版本:3.0***************************************/
  7. /*********************http://www.xiaogg.org********************************/
  8. header("content-Type: text/html; charset=utf-8");
  9. require 'lib/function.php';
  10. require 'lib/config.php';
  11. if($_GET['city']){echo getweather(trim($_GET['city']));}else{
  12. $postcity=$_POST['city']?trim($_POST['city']):COMMON_CITY;
  13. //$postcity="石家庄";
  14. if($postcity)
  15. {
  16.         $data=wtext($postcity);
  17. }?>
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html xmlns="http://www.w3.org/1999/xhtml">
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22. <title>城市天气预报免费获取</title>
  23. </head>
  24.  
  25. <body><br><br><br>
  26. <form action="" method="post" name="form">
  27. <table width="500" border="1" align="center">
  28.   <tr>
  29.     <td colspan="2" bgcolor="#CCCCCC">请输入城市名获取天气预报</td>
  30.   </tr>
  31.   <tr>
  32.     <td width="92"><input type="submit" name="submit" id="submit" value="查询" /></td>
  33.     <td width="392"><input type="text" name="city" id="city" value="<?=$postcity?>" /></td>
  34.     </tr>
  35.   <tr>
  36.     <td>天气情况</td>
  37.     <td><?=$data;?></td>
  38.   </tr>
  39.   <?php if($postcity){?>
  40.   <tr>
  41.     <td colspan="2">获取最新天气预报:<a href="?city=<?=urlencode($postcity)?>" target="_blank" title="<?=$postcity?>今日天气预报"><?=$postcity?></a></td>
  42.   </tr>
  43.   <tr>
  44.     <td colspan="2">发送到手机上:<a href="f.php?msg=<?=urlencode($data)?>" target="_blank" title="飞信接口">飞信接口</a></td>
  45.     </tr><? }?>
  46. </table></form>
  47. <div align="center"><br><script type="text/javascript">
  48. google_ad_client = "ca-pub-2006512290696014";
  49. google_ad_slot = "9161070889";
  50. google_ad_width = 728;
  51. google_ad_height = 90;
  52. </script>
  53.   <script type="text/javascript"
  54. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  55. </script><br><table border="1" align="center">
  56.   <tr>
  57.     <td bgcolor="#CCCCCC">按城市名称获取天气预报</td>
  58.   </tr>
  59.   <tr>
  60.     <td>[主要目的配合定时发送天所预报,测试是否能够获取当时天气预报]</td>
  61.   </tr>
  62.   <tr>
  63.     <td>说明</td>
  64.     </tr>
  65.   <tr>
  66.     <td>1.在查询后面的文本框中输入您要查询的城市名称[不要带市/县等]</td>
  67.     </tr>
  68.   <tr>
  69.     <td>2.点击查询将可以获取今日天气.[今日缓存数据]</td>
  70.     </tr>
  71.   <tr>
  72.     <td>3.获取最新点击下面 [获取最新天气预报]</td>
  73.     </tr>
  74.   <tr>
  75.     <td>4.可以通过下面的飞信接口发送到手机上</td>
  76.   </tr>
  77.   <tr>
  78.     <td>详细说明文档:<a href="http://3.ibtf.sinaapp.com/readme.txt" target="_blank">http://3.ibtf.sinaapp.com/readme.txt</a></td>
  79.   </tr>
  80.   <tr>
  81.     <td>官方主页:<a href="http://3.ibtf.sinaapp.com/" target="_blank">http://3.ibtf.sinaapp.com/</a></td>
  82.     </tr>
  83.   <tr>
  84.     <td>版本更新:<a href="http://xiaogg.ctdisk.com/u/349707/437278" target="_blank">http://xiaogg.ctdisk.com/u/349707/437278</a></td>
  85.     </tr>
  86. </table></div>
  87. <?php }echo TONGJI;?>
  88. </body>
  89. </html>
downloadindex.php Source code - Download HP fetion automatic daily weather forecast v1.0 Source code
Related Source Codes/Software:
Project management software KisProject v1.0.3 - Kis (Keep it simple) is a free WEB-based team coll... 2016-10-23
MyProber PHP 0.26 a probe - MyProber v0.26 2016-10-23
Food science and technology chain edition v1.1 online reservation system - Treat chain version of the main functions of the o... 2016-10-23
Emlog for SAE v4.2.1 - Emlog for SAE is suitable for SAE emlog used modif... 2016-10-23
Easy website system v2.0 - Business easy built station system (Sunnyi Website... 2016-10-23
Valley dad imitate homepage search - Modified more concise and convenient, but there is... 2016-10-23
hpMyAdmin v3.4.11 For Linux - HpMyAdmin is a PHP based, architecture in Web - Ba... 2016-10-23
V1.4 jmapcms website development system - 1. Modify the CHKJS file loading animation has alw... 2016-10-23
More than the V6.2 taobao guest program - Amoy Taobao V6.2 for short procedures, adopted a P... 2016-10-23
According to the IP to identify local weather forecast - According to the visitor IP to the database to ext... 2016-10-23
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top