Exemple #1
0
<?php

//$r = new request();
//$c = $r->get_allcity_list(TRUE);
//var_dump($c);
city_class::loadAll();
Exemple #2
0
							<button type="button" id="one-way" class="btn btn-default">یک طرفه</button>
						</div>
					</div>
					<div class="select-container">
						<label for="place-from">مبدا : </label>
						<select id="place-from" name="from_city" required>
							<?php 
echo city_class::loadAll(isset($_SESSION['from_city']) ? $_SESSION['from_city'] : '');
?>
						</select>
					</div>
					<div class="select-container">
						<label for="place-to">مقصد : </label>
						<select id="place-to" name="to_city" required>
							<?php 
echo city_class::loadAll(isset($_SESSION['to_city']) ? $_SESSION['to_city'] : '');
?>
						</select>
					</div>
					<div class="date-container">
						<label for="from-date">تاریخ رفت :</label>
						<input type="text" id="from-date" class="datepicker" name="aztarikh"
							   value="<?php 
echo isset($_SESSION['aztarikh']) ? $_SESSION['aztarikh'] : '';
?>
"
							   required>
					</div>
					<div class="date-container">
						<label for="to-date">تاریخ برگشت :</label>
						<input type="text" id="to-date" class="datepicker" name="tatarikh"