示例#1
0
    redirect_to("login.php");
}
if (!isset($_GET['id'])) {
    redirect_to("login.php");
}
$hotel = Hotel::find_by_id($_GET['id']);
if (!$hotel) {
    redirect_to('index.php');
}
$rule = rules::find_hotel_rules($hotel->id);
if (!$rule) {
    redirect_to("more_info.php?id={$hotel->id}");
}
$rooms = $hotel->rooms();
$photos = Photograph::find_by_hotel_id($hotel->id);
$city = City::find_by_id($hotel->city_id);
?>
<!DOCTYPE html>
<html>
<head>
	<title>Bookingmc</title>
	<link rel="stylesheet" type="text/css" href="../css/reset.css">
	<link rel="stylesheet" type="text/css" href="../css/font-awesome.css">
	<link rel="stylesheet" type="text/css" href="../css/demo.css">
	<link rel="stylesheet" type="text/css" href="../css/flexslider.css">
	<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="../css/bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="../css/bootstrap-datepicker3.css">
	<link rel="stylesheet" type="text/css" href="../css/select2.css">
	<link rel="stylesheet" type="text/css" href="../css/page.css">
示例#2
0
        if (!$hotels) {
            $session->message('No Results');
            redirect_to('index.php');
        }
    } else {
        $hotels = Group::find_group($arrival, $departure, $room, $adults, $children, $city->city);
        if (!$hotels) {
            $session->message('No Results');
            redirect_to('index.php');
        }
    }
} elseif (isset($_GET['city'])) {
    if (ctype_alpha($_GET['city'])) {
        redirect_to('index.php');
    }
    $city = City::find_by_id($_GET['city']);
    if (!$city) {
        redirect_to('index.php');
    }
    $hotels = Group::find_only_by_city($_GET['city']);
    if (!$hotels) {
        $session->message('No Results');
        redirect_to('index.php');
    }
} else {
    redirect_to('index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
示例#3
0
		<tr>
			<th>SN</th>
			<th>Application Number</th>
			<th>City</th>
			<th>Status</th>
			<th>Date</th>
			<th>View</th>
		</tr>
	</thead>
      	<?php 
# Make sure user has made application before
if (isset($user_application_histories) && !empty($user_application_histories)) {
    $serial_no = 1;
    foreach ($user_application_histories as $user_application_history) {
        # Get city details
        $my_city = City::find_by_id($user_application_history->city_or_state);
        # Get current status on an anplication
        $status_sql = "SELECT * FROM `applicant_status` WHERE application_no = '" . $user_application_history->application_no . "' ORDER BY id DESC Limit 1";
        $application_status = ApplicantStatus::find_by_sql($status_sql);
        $application_status_final = array_shift($application_status);
        $track_status = 0;
        if (isset($application_status_final->status_id)) {
            $track_status = $application_status_final->status_id;
        }
        switch ($track_status) {
            case 1:
                $status_label = '<span class="label label-warning">Pending</span>';
                break;
            case 2:
                $status_label = '<span class="label label-info">Pending</span>';
                break;
示例#4
0
              <td></td>
              <td></td>
              <td>
              	<input type="submit" name="bt_add" value="Add City" class="button" />
                
              </td>
            </tr>
            
        </table>
       </form>
   
    <?php 
} else {
    if (isset($_GET['action']) && $_GET['action'] == "edit" && isset($_GET['id'])) {
        $id = (int) $_GET['id'];
        $jt_name = City::find_by_id($id);
        $city_name = $jt_name->city_name;
        $city_code = $jt_name->city_code;
        $active = $jt_name->is_active;
        ?>
    <br /><br />
       <form action="" method="get">
       
       	<input type="hidden" name="action" value="<?php 
        echo $_GET['action'];
        ?>
" />
        <input type="hidden" name="id" value="<?php 
        echo $id;
        ?>
" />
示例#5
0
文件: pay.php 项目: Ghaji/transcripts
    }
}
# Display Delivery Mode And Charge
if (isset($_POST['dm_id'])) {
    $deliveryMode = DeliveryMode::find_by_id($_POST['dm_id']);
    $post_amount;
    if (isset($deliveryMode->dm_type)) {
        if ($deliveryMode->dm_amount == 0) {
            # Display LGA And Charge
            if (isset($_POST['lga_id'])) {
                $lga = LGA::find_by_id($_POST['lga_id']);
                $post_amount = $lga->lga_amount;
            }
            if (isset($_POST['city_id'])) {
                # Display City And Charge
                $city = City::find_by_id($_POST['city_id']);
                $post_amount = $city->amount;
            }
        } else {
            $post_amount = $deliveryMode->dm_amount;
        }
        echo '
                          <tr>
                            <td>' . $charge2 . '</td>
                            <td>&#8358;' . $post_amount . '</td>
                          </tr>
                        ';
        $total_amount += $post_amount;
        $payment_breakdown[$charge2] = $post_amount;
    }
}