예제 #1
0
	<div class="city-box">
		<div class="container">
			<div class="span5" id="search-title" >
				Search your city: 
				<form class="form-search" style="margin: 10px 0px;">
				<input id="searchTextField" type="text" placeholder="Kolkata">
				<button class="btn btn-primary" type="button" id="city-search-btn"><i class="icon-search icon-white"></i></button>
				</form>
				<div id="map-canvas"></div>
				<a href="#" style="color: #fff;" onclick="setCity('India','country');">All India</a>
			</div>
			<div class="span6" id="search-body">
				<table class="city_table">   
				  <?php 
$city_list = getAllCities();
$rowcount = mysqli_num_rows($city_list);
$counter = 4;
while ($row = mysqli_fetch_array($city_list)) {
    if ($counter == 4) {
        echo "<tr>";
    }
    ?>
					<td><a href="#" onclick="setCity('<?php 
    echo $row['city_name'];
    ?>
','city');"><?php 
    echo $row['city_name'];
    ?>
</a></td>  
				<?php 
예제 #2
0
        $smarty->assign('element', 'username');
        break;
    case 'firstname':
        $smarty->assign('element', 'firstname');
        break;
    case 'secondname':
        $smarty->assign('element', 'secondname');
        break;
    case 'phonenumber':
        $smarty->assign('element', 'phonenumber');
        break;
    case 'password':
        $smarty->assign('element', 'password');
        break;
    case 'birthdate':
        $smarty->assign('element', 'birthdate');
        break;
    case 'occupation':
        $smarty->assign('element', 'occupation');
        break;
    case 'gender':
        $smarty->assign('element', 'gender');
        break;
    case 'livesin':
        $smarty->assign('countries', getAllCountries());
        $smarty->assign('cities', getAllCities());
        $smarty->assign('element', 'livesin');
        break;
}
$smarty->assign('content', 'users/edit.tpl');
$smarty->display('application.tpl');