Exemplo n.º 1
0
        </div></td>
        <td>City <span class="red">*</span></td>
        <td><div id="divcity">
          <select name="city" id="city" onChange="return CallArea(this.value)" class="form-control drop_down" >
            <option value="">Select City</option>
            <option value="<?php 
echo $result['City'];
?>
" <?php 
if (isset($result['id']) && $result['City'] == $result['City']) {
    ?>
selected<?php 
}
?>
><?php 
echo getcityname(stripslashes(ucfirst($result['City'])));
?>
</option>
          </select>
        </div></td>
        </tr>
        <tr>
          <td>Area <span class="red">*</span></td>
        <td><div id="divarea">
          <select name="area" id="area" onChange="return CallPincode(this.value)" class="form-control drop_down">
            <option value="">Select Area</option>
           	 <option value="<?php 
echo $result['Area'];
?>
" <?php 
if (isset($result['id']) && $result['Area'] == $result['Area']) {
Exemplo n.º 2
0
        if ($kolor % 2 == 0) {
            $class = "bgcolor='#ffffff'";
        } else {
            $class = "bgcolor='#fff'";
        }
        ?>
      <tr <?php 
        print $class;
        ?>
>
      <td><small><?php 
        print $kolor++;
        ?>
.</small></td>
	  <td><small><?php 
        echo getcityname(stripslashes($row["city_id"]));
        ?>
</small></td>
      <td><small><?php 
        echo stripslashes($row["Area_name"]);
        ?>
</small></td>
	  <td>
      <a href="#" onClick="if(confirm('Do you really want to delete this record?')){ window.location.href='manage_city.php?id=<?php 
        echo $row["area_id"];
        ?>
&type=del&token=<?php 
        echo $token;
        ?>
' } " >
      <img src="images/drop.png" title="Delete" border="0" />