예제 #1
0
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
if (isset($_GET['del']) && isset($_GET['pic'])) {
    $delete_id = $_GET['del'];
    $conn = new Data_control();
    $file = 'img/upload_package/' . $_GET['pic'];
    unlink($file);
    $conn->delete_package($delete_id);
    header("location:" . 'show_package.php');
}
$Data_control = new Data_control();
$package_list = $Data_control->package_list_lookup();
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
예제 #2
0
}
if (isset($_GET['del']) && isset($_GET['del'])) {
    $delete_id = $_GET['del'];
    $conn = new Data_control();
    $file = 'img/upload/' . $_GET['pic'];
    unlink($file);
    $conn->delete_user($delete_id);
    header("location:" . 'new_user.php');
}
if (isset($_GET['act'])) {
    $permit_id = $_GET['act'];
    $conn = new Data_control();
    $conn->permit_user($permit_id);
    header("location:" . 'new_user.php');
}
$Data_control = new Data_control();
$new_user = $Data_control->new_user_lookup();
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
예제 #3
0
<?php

require_once 'database.php';
$conn = new Data_control();
$package_date_show_footer = $conn->package_date_show_footer();
$place_show_footer = $conn->place_show_footer();
$package_show_footer = $conn->package_show_footer();
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Toure Agency</title>
	
	

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
	
    <script src="js/bootstrap.min.js"></script>
	
	<link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="js/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap.min.js"></script>
	
	<script>
예제 #4
0
<?php

session_start();
require_once 'database.php';
$Data_control = new Data_control();
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
if (isset($_GET['act'])) {
    $Data_control->comment_act($_GET['act']);
    header("location:" . 'comment.php');
}
if (isset($_GET['blc'])) {
    $Data_control->comment_blc($_GET['blc']);
    header("location:" . 'comment.php');
}
if (isset($_GET['del'])) {
    $Data_control->comment_del($_GET['del']);
    header("location:" . 'comment.php');
}
$package_list = $Data_control->comment();
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
<?php

require_once 'config.php';
require_once 'database.php';
$Data_control = new Data_control();
if (isset($_GET['name'])) {
    $email = $_GET['name'];
    $result = $Data_control->email_varification($email);
    echo $result;
} else {
    echo 0;
}
예제 #6
0
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
if (isset($_POST['comment']) && isset($_POST['comment_by'])) {
    $conn = new Data_control();
    $conn->set_comment($_POST['comment'], $_POST['comment_by']);
    header("location:" . 'comment.php');
}
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									 <h2>SET COMMENT</h2>	
							
									<form class="form-horizontal" action="set_comment.php" method="post" enctype="multipart/form-data">
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
$Data_control = new Data_control();
if (isset($_POST["toure_name"]) && isset($_POST["tour_place"]) && isset($_POST["toure_date"]) && isset($_POST["toure_starts"]) && isset($_POST["toure_duration"]) && isset($_POST["transport_system"]) && isset($_POST["hotel_reservation"]) && isset($_POST["weather"]) && isset($_POST["prequation"]) && isset($_POST["medical_support"]) && isset($_POST["price"])) {
    $toure_name = $_POST["toure_name"];
    $tour_place = $_POST["tour_place"];
    $toure_date = $_POST["toure_date"];
    $toure_starts = $_POST["toure_starts"];
    $toure_duration = $_POST["toure_duration"];
    $transport_system = $_POST["transport_system"];
    $hotel_reservation = $_POST["hotel_reservation"];
    $weather = $_POST["weather"];
    $prequation = $_POST["prequation"];
    $medical_support = $_POST["medical_support"];
    $price = $_POST["price"];
    $last_ID = 0;
    $last_ID = $Data_control->last_ID_check();
    $last_ID++;
    if (($_FILES["file"]["type"] == "image/gif" || $_FILES["file"]["type"] == "image/jpeg" || $_FILES["file"]["type"] == "image/pjpeg") && $_FILES["file"]["size"] < 1048576000) {
        if ($_FILES["file"]["error"] > 0) {
            header("location:" . 'add_package.php');
        } else {
            $picture_name = $last_ID;
            $picture_type = $_FILES["file"]["name"];
            $picture_type = explode('.', $picture_type);
            $total_picture_name = $picture_name . '.' . $picture_type[1];
예제 #8
0
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
$conn = new Data_control();
if (isset($_POST['contact'])) {
    $contact = $conn->contact($_POST['contact']);
    header("location:" . 'contact.php');
}
$contact = $conn->contact_show();
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									 <h2>SET CONTACT</h2>	
							
									<form class="form-horizontal" action="contact.php" method="post" enctype="multipart/form-data">
예제 #9
0
}
if (isset($_GET['del']) && isset($_GET['pic'])) {
    $delete_id = $_GET['del'];
    $conn = new Data_control();
    $file = 'img/upload/' . $_GET['pic'];
    unlink($file);
    $conn->delete_user($delete_id);
    header("location:" . 'user_list.php');
}
if (isset($_GET['blc'])) {
    $block_id = $_GET['blc'];
    $conn = new Data_control();
    $conn->block_user($block_id);
    header("location:" . 'user_list.php');
}
$Data_control = new Data_control();
$user_list = $Data_control->user_list_lookup();
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
예제 #10
0
}
if (isset($_GET['del']) && isset($_GET['del'])) {
    $delete_id = $_GET['del'];
    $conn = new Data_control();
    $file = 'img/upload/' . $_GET['pic'];
    unlink($file);
    $conn->delete_admin($delete_id);
    header("location:" . 'new_admin.php');
}
if (isset($_GET['act'])) {
    $permit_id = $_GET['act'];
    $conn = new Data_control();
    $conn->permit_admin($permit_id);
    header("location:" . 'new_admin.php');
}
$Data_control = new Data_control();
$new_admin = $Data_control->new_admin_lookup();
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
예제 #11
0
<?php

require_once 'database.php';
$conn = new Data_control();
$comment_show = $conn->comment_show();
require_once 'header.php';
require_once 'slider.php';
require_once 'nav.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									 <h2>THE COMMENTS</h2>
									
										<?php 
$count = 0;
$i = 0;
while ($i < count($comment_show) / 4) {
    ?>
											<div class=" user_cell">
												<div class="col-md-10">
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
if (isset($_GET['tourist_package_id'])) {
    $application_package_id = $_GET['tourist_package_id'];
    $Data_control = new Data_control();
    $applide_user_list = $Data_control->show_filan_tourist_list($application_package_id);
}
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									  <h1>Who Get Permission for Package ID <?php 
echo $applide_user_list[$count + 1];
?>
</h1>
예제 #13
0
<?php

session_start();
require_once 'database.php';
if (isset($_POST["Password"]) && isset($_POST["Email"]) && isset($_POST["user_type"])) {
    $email = $_POST["Email"];
    $password = $_POST["Password"];
    $option = $_POST["user_type"];
    $Data_control = new Data_control();
    $login_permission = $Data_control->sign_in_status($email, $password, $option);
    if ($login_permission == 1) {
        $_SESSION['Email'] = $email;
        $_SESSION['Password'] = $password;
        $_SESSION['option'] = $option;
        header("location:" . 'login_index.php');
    } else {
        header("location:" . 'sign_in_type.php');
    }
} else {
    header("location:" . 'sign_in_type.php');
}
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
if (isset($_GET['application'])) {
    $application_package_id = $_GET['application'];
    $Data_control = new Data_control();
    $applide_user_list = $Data_control->application_package_package($application_package_id);
}
if ($_GET['act_package_id'] != null && $_GET['act_email'] != null) {
    $application_package = $_GET['application_package'];
    $Data_control = new Data_control();
    $applide_user_list = $Data_control->give_permission_package($_GET['act_package_id'], $_GET['act_email']);
    header("location:" . 'show_package_application.php?application=' . $application_package);
}
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
예제 #15
0
<?php

require_once 'database.php';
$conn = new Data_control();
if (isset($_POST['search'])) {
    $search_result = $conn->search($_POST['search']);
}
require_once 'header.php';
require_once 'slider.php';
require_once 'nav.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									 <h2>Package</h2>
									
										<?php 
$count = 0;
$i = 0;
while ($i < count($search_result) / 5) {
    ?>
session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
if (isset($_GET['apply'])) {
    $conn = new Data_control();
    $conn->apply_package($_GET['apply'], $_SESSION['Email']);
    header("location:" . 'show_package_user.php');
}
if (isset($_GET['cancel'])) {
    $conn = new Data_control();
    $conn->cancle_booking($_GET['cancel'], $_SESSION['Email']);
    header("location:" . 'show_package_user.php');
}
$Data_control = new Data_control();
$package_list = $Data_control->package_list_lookup();
$application_status = $Data_control->application_check_lookup($_SESSION['Email']);
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
예제 #17
0
<?php

session_start();
require_once 'database.php';
if ($_SESSION['Email'] == null && $_SESSION['password'] == null && $_SESSION['option'] == null) {
    header("location:" . 'sign_in_type.php');
}
$Data_control = new Data_control();
$reservation = $Data_control->reservation($_SESSION['Email']);
require_once 'login_header.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'login_left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									  <h2>LOGIN SUCCESSFULY</h2>	
										<?php 
$count = 0;
$i = 0;
while ($i < count($reservation) / 13) {
    ?>
											<div class="thumbnail user_cell">
예제 #18
0
}
if (isset($_GET['del']) && isset($_GET['del'])) {
    $delete_id = $_GET['del'];
    $conn = new Data_control();
    $file = 'img/upload/' . $_GET['pic'];
    unlink($file);
    $conn->delete_admin($delete_id);
    header("location:" . 'admin_list.php');
}
if (isset($_GET['blc'])) {
    $block_id = $_GET['blc'];
    $conn = new Data_control();
    $conn->block_user($block_id);
    header("location:" . 'admin_list.php');
}
$Data_control = new Data_control();
$admin_list = $Data_control->admin_list_lookup();
require_once 'login_header.php';
?>

<div class="row">
	<div class="col-md-12">
		<div class="padding">
			<div class="row">
				<div class="col-md-2">
					<?php 
require_once 'login_left_padding.php';
?>
							
				</div>
				<div class="col-md-9">
    $Data_control = new Data_control();
    $email_varification_ans = $Data_control->email_varification($email);
    if ($email_varification_ans == 0) {
        if (($_FILES["file"]["type"] == "image/gif" || $_FILES["file"]["type"] == "image/jpeg" || $_FILES["file"]["type"] == "image/pjpeg") && $_FILES["file"]["size"] < 1048576000) {
            if ($_FILES["file"]["error"] > 0) {
                header("location:" . 'registration.php');
            } else {
                $picture_name = $email;
                $picture_type = $_FILES["file"]["name"];
                $picture_type = explode('.', $picture_type);
                $total_picture_name = $picture_name . '.' . $picture_type[1];
                if (file_exists("img/upload/" . $picture_name)) {
                    echo $picture_name . " already exists. ";
                } else {
                    move_uploaded_file($_FILES["file"]["tmp_name"], "img/upload/" . $picture_name . '.' . $picture_type[1]);
                    $Data_control = new Data_control();
                    $Data_control->user_registration($name, $father_name, $gender, $email, $year, $month, $day, $phone_number, $address, $user_type, $password, $total_picture_name);
                }
            }
        } else {
            header("location:" . 'registration.php');
        }
    } else {
        header("location:" . 'registration.php');
    }
} else {
    header("location:" . 'registration.php');
}
require_once 'header.php';
require_once 'slider.php';
require_once 'nav.php';
예제 #20
0
<?php

require_once 'database.php';
$conn = new Data_control();
$package_show_all = $conn->package_show_all();
require_once 'header.php';
require_once 'slider.php';
require_once 'nav.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									 <h2>Package</h2>
									
										<?php 
$count = 0;
$i = 0;
while ($i < count($package_show_all) / 5) {
    ?>
										<table class="table">
											<tr class="active">
예제 #21
0
<?php

require_once 'database.php';
$conn = new Data_control();
$contact = $conn->contact_show();
require_once 'header.php';
require_once 'slider.php';
require_once 'nav.php';
?>

			<div class="row">
				<div class="col-md-12">
					<div class="padding">
						<div class="row">
							<div class="col-md-2">
								<?php 
require_once 'left_padding.php';
?>
							
							</div>
							<div class="col-md-9">
								<div class="righ_pad">
									<?php 
echo $contact;
?>
							  
								</div>
							</div>
						</div>
					</div>				
				</div>