Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Biju  >  Nearby Places Plugin  >  index.php.txt  >  Download  
File: index.php.txt
Role: Example script
Content type: text/plain
Description: Index File to List Places
Class: Nearby Places Plugin
Find places of interest near by a given location
Author: By
Last change:
Date: 3 years ago
Size: 1,410 bytes
 

Contents

Class file image Download
<?php
    
require_once('nearbyplugin.class.php');
    
$geoplugin        =    new nearbyPlugin();
    if(
$_POST['city'])
    {
    
$geoplugin->nearbyList();
    }
    
?>
<form name="form1" method="post" action="">
  <table width="500" border="0">
    <tr>
      <td height="36" colspan="2"><div align="center"><strong>Find Places in Kerala, India Near to:</strong></div></td>
    </tr>
    <tr>
      <td width="177"><div align="right"><strong>City</strong>&nbsp;&nbsp;</div></td>
      <td width="313"><label>
        <input type="text" name="city" id="city">
      </label></td>
    </tr>
    <tr>
      <td><div align="right"><strong>Location&nbsp;</strong>&nbsp;</div></td>
      <td><label>
        <input type="text" name="location" id="location">
      </label></td>
    </tr>
    <tr>
      <td><div align="right"><strong>Within a Radius of&nbsp;</strong>&nbsp;</div></td>
      <td><input type="text" name="r_radius" id="r_radius"> 
        <strong>Miles</strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="hidden" name="country" id="country" value="India">
      <input type="hidden" name="region" id="region" value="Kerala"></td>
    </tr>
    <tr>
      <td colspan="2"><div align="center">
        <label>
        <input type="submit" name="List Places" id="List Places" value="List Places">
        </label>
      </div></td>
    </tr>
  </table>
</form>