Commit e32029c6 by Tobin

dc

parent 09343300
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Booking extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set("Asia/Kolkata");
$this->load->model('Booking_model');
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
}
public function viewBookings(){
$template['page'] = 'Booking/viewBooking';
$template['menu'] = 'Organizer Management';
$template['smenu'] = 'View Organizers';
$template['pTitle'] = "View Organizers";
$template['pDescription'] = "View and Manage Organizers";
$template['page_head'] = "Organizer Management";
$provider_id = ($this->session->userdata('user_type')==2)?$this->session->userdata('id'):'';
$template['booking_data'] = $this->Booking_model->getBookingData('',$provider_id,'0,1,2,3');
$this->load->view('template',$template);
}
public function getBookingData(){
$resArr = array('status'=>0);
if(!isset($_POST)||empty($_POST)||!isset($_POST['booking_id'])||empty($_POST['booking_id']) ||
!is_numeric($booking_id = decode_param($_POST['booking_id']))){
echo json_encode($resArr);exit;
}
$view_all = (isset($_POST['view_all']) && $_POST['view_all'] != '')?$_POST['view_all']:'0,1,2,3';
$provider_id = ($this->session->userdata('user_type')==2)?$this->session->userdata('id'):'';
$bookData['bookData'] = $this->Booking_model->getBookingData($booking_id,$provider_id,$view_all);
$viewPage = $this->load->view('Booking/viewBookingDetails',$bookData,true);
echo $viewPage;exit;
}
function changeStatus($booking_id = '',$status = '1'){
$flashMsg = array('message'=>'Something went wrong, please try again..!','class'=>'error');
if(empty($booking_id) || !is_numeric($booking_id = decode_param($booking_id))){
$this->session->set_flashdata('message',$flashMsg);
redirect(base_url('Booking/viewBookings'));
}
$status = $this->Booking_model->changeStatus($booking_id,$status);
if(!$status){
$this->session->set_flashdata('message',$flashMsg);
}
redirect(base_url('Booking/viewBookings'));
}
function generateReport(){
$template['page'] = 'Booking/generate';
$template['menu'] = "Report Management";
$template['sub_menu'] = "Report Generate";
$template['page_desc'] = "Report Generation Page";
$template['page_title'] = "Report Management";
$template['providerData'] = '';
if($this->session->userdata('user_type') == 1){
$this->load->model('Provider_model');
$template['providerData'] = $this->Provider_model->getProviderData('','0,1');
}
$this->load->view('template',$template);
}
public function rGenerate(){
$return_arr = array('status'=>'0');
if(!isset($_POST) || empty($_POST) || !isset($_POST['fields']) || empty($_POST['fields']) ||
!isset($_POST['action']) || empty($_POST['action'])){
echo json_encode($return_arr);exit;
}
$action = $_POST['action'];
$fields = str_replace(array('+','%2C'),array(' ',','),trim($_POST['fields'],','));
$where_cond = array();
if(isset($_POST['where_cond']) && !empty($_POST['where_cond'])){
parse_str($_POST['where_cond'], $where_cond);
}
$report_data = $this->Booking_model->getDetailBookData($fields,$where_cond);
if(!empty($report_data) && !is_array($report_data)){
$return_arr['status'] = $report_data;
echo json_encode($return_arr);exit;
}
if(!empty($report_data)){
if($action == 'view'){
$return_arr['status'] = 1;
$return_arr['report_data'] = $report_data;
}
if($action == 'export'){
$return_arr['status'] = 1;
$this->exportExcel($report_data);
}
}
echo json_encode($return_arr);exit;
}
function exportExcel($reportData = array()){
if(empty($reportData)){
return 0;
}
$this->load->helper('csv');
$fileName = 'reportExport_'.time().'.csv';
$dataRow = array();
$headerFlg = 0;
foreach ($reportData AS $data) {
$row = array();
if($headerFlg == 0){
foreach($data AS $index => $value){
$row[] = $index;
}
$dataRow[] = $row;
$row = array();
$headerFlg = 1;
}
foreach ($data AS $rowVal) {
$row[] = $rowVal;
}
$dataRow[] = $row;
}
if(empty($dataRow)){
return 0;
}
$this->session->set_userdata('file_name',$fileName);
$this->session->set_userdata('report_data',$dataRow);
return 1;
}
function downloadCSV(){
$dataRow = $this->session->userdata('report_data');
$fileName = $this->session->userdata('file_name');
$this->session->set_userdata('file_name','');
$this->session->set_userdata('report_data','');
if(empty($dataRow) || empty($fileName)){
return;
}
if($this->session->userdata['user_type'] != 1){
$company_id = $this->session->userdata['id'];
$this->db->query("UPDATE `company_payment_details`
SET `report_count`=report_count+1,
`outstanding_amount`=outstanding_amount+report_charge
WHERE `company_id`=".$company_id);
}
//Download CSV\\
$temp_memory = fopen('php://memory', 'w');
foreach ($dataRow as $line) {
fputcsv($temp_memory, $line, ',');
}
fseek($temp_memory, 0);
header('Content-Type: application/csv');
header('Content-Disposition: attachement; filename="' . $fileName . '";');
fpassthru($temp_memory);
}
}
?>
\ No newline at end of file
...@@ -75,25 +75,24 @@ class Customer extends CI_Controller { ...@@ -75,25 +75,24 @@ class Customer extends CI_Controller {
$this->session->set_flashdata('message',$flashMsg); $this->session->set_flashdata('message',$flashMsg);
redirect(base_url('Customer/addCustomer')); redirect(base_url('Customer/addCustomer'));
} }
if($err == 0 && (!isset($_POST['display_name']) || empty($_POST['display_name']))){ if($err == 0 && (!isset($_POST['name']) || empty($_POST['name']))){
$err = 1; $err = 1;
$errMsg = 'Provide a Display Name'; $errMsg = 'Provide Customer Name';
}else if($err == 0 && (!isset($_POST['username']) || empty($_POST['username']))){ }else if($err == 0 && (!isset($_POST['email']) || empty($_POST['email']))){
$err = 1;
$errMsg = 'Provide a User Name';
}else if($err == 0 && (!isset($_POST['password']) || empty($_POST['password']) ||
empty($_POST['password'] = md5($_POST['password'])))){
$err = 1; $err = 1;
$errMsg = 'Provide a Password'; $errMsg = 'Provide a Customer Email';
}else if($err == 0 && (!isset($_POST['name']) || empty($_POST['name']))){ }else if($err == 0 && (!isset($_POST['phone']) || empty($_POST['phone']))){
$err = 1; $err = 1;
$errMsg = 'Provide a Name'; $errMsg = 'Provide Customer Phone';
}else if($err == 0 && (!isset($_POST['email']) || empty($_POST['email']))){ }else if($err == 0 && (!isset($_POST['city']) || empty($_POST['city']))){
$err = 1;
$errMsg = 'Provide a City Name';
}else if($err == 0 && (!isset($_POST['gender']) || empty($_POST['gender']))){
$err = 1; $err = 1;
$errMsg = 'Provide an Email ID'; $errMsg = 'Provide a Gender';
}else if($err == 0 && (!isset($_POST['phone']) || empty($_POST['phone']))){ }else if($err == 0 && (!isset($_POST['dob']) || empty($_POST['dob']))){
$err = 1; $err = 1;
$errMsg = 'Provide a Phone Number'; $errMsg = 'Provide a Date Of Birth';
} }
if($err == 0){ if($err == 0){
...@@ -165,21 +164,25 @@ class Customer extends CI_Controller { ...@@ -165,21 +164,25 @@ class Customer extends CI_Controller {
$this->session->set_flashdata('message',$flashMsg); $this->session->set_flashdata('message',$flashMsg);
redirect(base_url('Customer/addCustomer')); redirect(base_url('Customer/addCustomer'));
} }
if($err == 0 && (!isset($_POST['display_name']) || empty($_POST['display_name']))){
if($err == 0 && (!isset($_POST['name']) || empty($_POST['name']))){
$err = 1; $err = 1;
$errMsg = 'Provide a Display Name'; $errMsg = 'Provide Customer Name';
}else if($err == 0 && (!isset($_POST['username']) || empty($_POST['username']))){ }else if($err == 0 && (!isset($_POST['email']) || empty($_POST['email']))){
$err = 1; $err = 1;
$errMsg = 'Provide a User Name'; $errMsg = 'Provide a Customer Email';
}else if($err == 0 && (!isset($_POST['name']) || empty($_POST['name']))){ }else if($err == 0 && (!isset($_POST['phone']) || empty($_POST['phone']))){
$err = 1; $err = 1;
$errMsg = 'Provide a Name'; $errMsg = 'Provide Customer Phone';
}else if($err == 0 && (!isset($_POST['email']) || empty($_POST['email']))){ }else if($err == 0 && (!isset($_POST['city']) || empty($_POST['city']))){
$err = 1;
$errMsg = 'Provide a City Name';
}else if($err == 0 && (!isset($_POST['gender']) || empty($_POST['gender']))){
$err = 1; $err = 1;
$errMsg = 'Provide an Email ID'; $errMsg = 'Provide a Gender';
}else if($err == 0 && (!isset($_POST['phone']) || empty($_POST['phone']))){ }else if($err == 0 && (!isset($_POST['dob']) || empty($_POST['dob']))){
$err = 1; $err = 1;
$errMsg = 'Provide a Phone Number'; $errMsg = 'Provide a Date Of Birth';
} }
if($err == 0){ if($err == 0){
......
...@@ -90,9 +90,13 @@ class Event extends CI_Controller { ...@@ -90,9 +90,13 @@ class Event extends CI_Controller {
if(isset($_POST['fare_type']) && $_POST['fare_type'] == 1){ if(isset($_POST['fare_type']) && $_POST['fare_type'] == 1){
$cstmSeatLayout = array(); $cstmSeatLayout = array();
for($i = 0 ; $i < count($_POST['seat_color']) ; $i++){ for($i = 0 ; $i < count($_POST['seat_color']) ; $i++){
if(!isset($_POST['weekend_price'][$i]) || empty($_POST['weekend_price'][$i])){
$_POST['weekend_price'][$i] = $_POST['seat_price'][$i];
}
$cstmSeatLayout[] = array('color'=>$_POST['seat_color'][$i], $cstmSeatLayout[] = array('color'=>$_POST['seat_color'][$i],
'price'=>$_POST['seat_price'][$i], 'price'=>$_POST['seat_price'][$i],
'capacity'=>$_POST['seat_capacity'][$i]); 'capacity'=>$_POST['seat_capacity'][$i],
'weekend_price'=>$_POST['weekend_price'][$i]);
} }
$_POST['custom_seat_layout'] = json_encode($cstmSeatLayout); $_POST['custom_seat_layout'] = json_encode($cstmSeatLayout);
} else { } else {
...@@ -103,11 +107,15 @@ class Event extends CI_Controller { ...@@ -103,11 +107,15 @@ class Event extends CI_Controller {
); );
} }
$_POST['max_booking'] = (isset($_POST['max_booking']) && !empty($_POST['max_booking']))?
$_POST['max_booking']:'14';
$provider = ($this->session->userdata['user_type']==1)?'1':$this->session->userdata['id']; $provider = ($this->session->userdata['user_type']==1)?'1':$this->session->userdata['id'];
$eventData = array('venue_id'=>$_POST['venue_id'], $eventData = array('venue_id'=>$_POST['venue_id'],
'event_name'=>$_POST['event_name'], 'event_name'=>$_POST['event_name'],
'category_id'=>$_POST['category_id'], 'category_id'=>$_POST['category_id'],
'provider_id'=>$provider, 'provider_id'=>$provider,
'max_booking'=>$_POST['max_booking'],
'seat_pricing'=>$_POST['seat_pricing'], 'seat_pricing'=>$_POST['seat_pricing'],
'event_discription'=>$_POST['event_discription'], 'event_discription'=>$_POST['event_discription'],
'custom_seat_layout'=>$_POST['custom_seat_layout']); 'custom_seat_layout'=>$_POST['custom_seat_layout']);
...@@ -236,9 +244,13 @@ class Event extends CI_Controller { ...@@ -236,9 +244,13 @@ class Event extends CI_Controller {
if(isset($_POST['fare_type']) && $_POST['fare_type'] == 1){ if(isset($_POST['fare_type']) && $_POST['fare_type'] == 1){
$cstmSeatLayout = array(); $cstmSeatLayout = array();
for($i = 0 ; $i < count($_POST['seat_color']) ; $i++){ for($i = 0 ; $i < count($_POST['seat_color']) ; $i++){
if(!isset($_POST['weekend_price'][$i]) || empty($_POST['weekend_price'][$i])){
$_POST['weekend_price'][$i] = $_POST['seat_price'][$i];
}
$cstmSeatLayout[] = array('color'=>$_POST['seat_color'][$i], $cstmSeatLayout[] = array('color'=>$_POST['seat_color'][$i],
'price'=>$_POST['seat_price'][$i], 'price'=>$_POST['seat_price'][$i],
'capacity'=>$_POST['seat_capacity'][$i]); 'capacity'=>$_POST['seat_capacity'][$i],
'weekend_price'=>$_POST['weekend_price'][$i]);
} }
$_POST['custom_seat_layout'] = json_encode($cstmSeatLayout); $_POST['custom_seat_layout'] = json_encode($cstmSeatLayout);
} else { } else {
...@@ -249,11 +261,15 @@ class Event extends CI_Controller { ...@@ -249,11 +261,15 @@ class Event extends CI_Controller {
); );
} }
$_POST['max_booking'] = (isset($_POST['max_booking']) && !empty($_POST['max_booking']))?
$_POST['max_booking']:'14';
$provider = ($this->session->userdata['user_type']==1)?'1':$this->session->userdata['id']; $provider = ($this->session->userdata['user_type']==1)?'1':$this->session->userdata['id'];
$eventData = array('venue_id'=>$_POST['venue_id'], $eventData = array('venue_id'=>$_POST['venue_id'],
'event_name'=>$_POST['event_name'], 'event_name'=>$_POST['event_name'],
'category_id'=>$_POST['category_id'], 'category_id'=>$_POST['category_id'],
'provider_id'=>$provider, 'provider_id'=>$provider,
'max_booking'=>$_POST['max_booking'],
'seat_pricing'=>$_POST['seat_pricing'], 'seat_pricing'=>$_POST['seat_pricing'],
'event_discription'=>$_POST['event_discription'], 'event_discription'=>$_POST['event_discription'],
'custom_seat_layout'=>$_POST['custom_seat_layout']); 'custom_seat_layout'=>$_POST['custom_seat_layout']);
......
...@@ -15,21 +15,21 @@ class Provider extends CI_Controller { ...@@ -15,21 +15,21 @@ class Provider extends CI_Controller {
public function addProvider(){ public function addProvider(){
$template['page'] = 'Provider/providerForm'; $template['page'] = 'Provider/providerForm';
$template['menu'] = 'Provider Management'; $template['menu'] = 'Organizer Management';
$template['smenu'] = 'Add Provider'; $template['smenu'] = 'Add Organizer';
$template['pTitle'] = "Add Provider"; $template['pTitle'] = "Add Organizer";
$template['pDescription'] = "Create New Provider"; $template['pDescription'] = "Create New Organizer";
$this->load->view('template',$template); $this->load->view('template',$template);
} }
public function viewProviders(){ public function viewProviders(){
$template['page'] = 'Provider/viewProvider'; $template['page'] = 'Provider/viewProvider';
$template['menu'] = 'Provider Management'; $template['menu'] = 'Organizer Management';
$template['smenu'] = 'View Providers'; $template['smenu'] = 'View Organizers';
$template['pTitle'] = "View Providers"; $template['pTitle'] = "View Organizers";
$template['pDescription'] = "View and Manage Providers"; $template['pDescription'] = "View and Manage Organizers";
$template['page_head'] = "Provider Management"; $template['page_head'] = "Organizer Management";
$template['provider_data'] = $this->Provider_model->getProviderData('','0,1'); $template['provider_data'] = $this->Provider_model->getProviderData('','0,1');
...@@ -147,10 +147,10 @@ class Provider extends CI_Controller { ...@@ -147,10 +147,10 @@ class Provider extends CI_Controller {
} }
$template['page'] = 'Provider/providerForm'; $template['page'] = 'Provider/providerForm';
$template['menu'] = 'Provider Management'; $template['menu'] = 'Organizer Management';
$template['smenu'] = 'Edit Provider'; $template['smenu'] = 'Edit Organizer';
$template['pTitle'] = "Edit Providers"; $template['pTitle'] = "Edit Organizers";
$template['pDescription'] = "Update Provider Data"; $template['pDescription'] = "Update Organizer Data";
$template['provider_data'] = $this->Provider_model->getProviderData($provider_id,1); $template['provider_data'] = $this->Provider_model->getProviderData($provider_id,1);
$template['provider_id'] = encode_param($provider_id); $template['provider_id'] = encode_param($provider_id);
......
...@@ -91,7 +91,8 @@ class Venue extends CI_Controller { ...@@ -91,7 +91,8 @@ class Venue extends CI_Controller {
foreach($_POST['seat_color'] AS $index => $value){ foreach($_POST['seat_color'] AS $index => $value){
$seatLayoutDetails[] = array('color'=>$value, $seatLayoutDetails[] = array('color'=>$value,
'price'=>$_POST['seat_price'][$index], 'price'=>$_POST['seat_price'][$index],
'capacity'=>$_POST['seat_capacity'][$index]); 'capacity'=>$_POST['seat_capacity'][$index],
'weekend_price'=>$_POST['seat_price'][$index]);
} }
$_POST['layout_details'] = json_encode($seatLayoutDetails); $_POST['layout_details'] = json_encode($seatLayoutDetails);
...@@ -198,7 +199,8 @@ class Venue extends CI_Controller { ...@@ -198,7 +199,8 @@ class Venue extends CI_Controller {
foreach($_POST['seat_color'] AS $index => $value){ foreach($_POST['seat_color'] AS $index => $value){
$seatLayoutDetails[] = array('color'=>$value, $seatLayoutDetails[] = array('color'=>$value,
'price'=>$_POST['seat_price'][$index], 'price'=>$_POST['seat_price'][$index],
'capacity'=>$_POST['seat_capacity'][$index]); 'capacity'=>$_POST['seat_capacity'][$index],
'weekend_price'=>$_POST['seat_price'][$index]);
} }
$_POST['layout_details'] = json_encode($seatLayoutDetails); $_POST['layout_details'] = json_encode($seatLayoutDetails);
......
<?php
class Booking_model extends CI_Model {
public function _consruct(){
parent::_construct();
}
public function getBookingData($booking_id='',$provider_id='',$view='0,1,2,3'){
$cond = (!empty($view))?" BOK.status IN ($view) ":" BOK.status != '4' ";
$cond .= (!empty($booking_id))?" AND BOK.id='$booking_id' ":"";
$cond .= (!empty($provider_id))?" AND EVT.provider_id='$provider_id' ":"";
$sql = "SELECT BOK.id AS booking_id,CUST.customer_id,CUST.name,CUST.phone,CUST.email,CUST.gender,
CUST.dob,CUST.city,CUST.profile_image,BOK.event_id,BOK.bookId,BOK.event_date_id,BOK.qrcode,
BOK.no_of_ticket,BOK.ticket_details,BOK.amount,BOK.reserved_by,BOK.status AS book_status,
EVT.venue_id,EVT.category_id,EVT.provider_id,EVT.event_name,EVT.event_discription,
EVT.max_booking,EVT.seat_pricing,EVT.custom_seat_layout,EVT.status AS evt_status,
HCAT.host_category,HCAT.show_layout,EDT.date,EDT.time,ECAT.category,
ECAT.category_description,ECAT.category_image
FROM booking AS BOK
INNER JOIN events AS EVT ON (EVT.event_id=BOK.event_id)
INNER JOIN customer AS CUST ON (CUST.customer_id=BOK.customer_id)
INNER JOIN event_category AS ECAT ON (ECAT.cat_id=EVT.category_id)
INNER JOIN venue AS VEN ON (VEN.id=EVT.venue_id)
INNER JOIN host_categories AS HCAT ON (HCAT.host_cat_id=VEN.host_cat_id)
INNER JOIN event_date_time AS EDT ON (EDT.id=BOK.event_date_id)
WHERE $cond AND EVT.status!='2'";
$bookingData = $this->db->query($sql);
if(!empty($bookingData)){
return (empty($booking_id))?$bookingData->result():$bookingData->row();
}
return 0;
}
function changeStatus($booking_id = '', $status = '0'){
if(empty($booking_id)){
return 0;
}
$status = $this->db->update('booking',array('status'=>$status),array('id'=>$booking_id));
return $status;
}
function getDetailBookData($fields=array(),$where_cond=array()){
if(empty($fields)){
return 0;
}
$where_clause = '';
if(!empty($where_cond)){
if(!empty($where_cond['provider_id'])){
$where_clause = " WHERE BOK.provider_id = '".$where_cond['provider_id']."' ";
}
if(!empty($where_cond['start_date']) && !empty($where_cond['end_date'])){
$where_clause .= (empty($where_clause))?' WHERE ':' AND ';
$end_date = strtotime(trim($where_cond['end_date']).' 12:00');
$start_date = strtotime(trim($where_cond['start_date']).' 12:00');
$where_clause .= " BOK.booking_date >= '".$start_date."' AND
BOK.booking_date <= '".$end_date."' ";
}
if(!empty($where_cond['start_date'])){
$where_clause .= (empty($where_clause))?' WHERE ':' AND ';
$start_date = strtotime(trim($where_cond['start_date']).' 12:00');
$where_clause .= " BOK.booking_date >= '".$start_date."' ";
}
if(!empty($where_cond['end_date'])){
$where_clause .= (empty($where_clause))?' WHERE ':' AND ';
$end_date = strtotime(trim($where_cond['end_date']).' 12:00');
$where_clause .= " BOK.booking_date <= '".$end_date."' ";
}
if(!empty($where_cond['status'])){
$where_clause .= (empty($where_clause))?' WHERE ':' AND ';
$where_clause .= " BOK.status = '".$where_cond['status']."' ";
}
}
$sql = "SELECT ".$fields."
FROM booking AS BOK
INNER JOIN events AS EVT ON (EVT.event_id=BOK.event_id)
INNER JOIN customer AS CUST ON (CUST.customer_id=BOK.customer_id)
INNER JOIN event_category AS ECAT ON (ECAT.cat_id=EVT.category_id)
INNER JOIN venue AS VEN ON (VEN.id=EVT.venue_id)
INNER JOIN host_categories AS HCAT ON (HCAT.host_cat_id=VEN.host_cat_id)
INNER JOIN event_date_time AS EDT ON (EDT.id=BOK.event_date_id)
INNER JOIN region AS REG ON (REG.id=VEN.region_id)
INNER JOIN provider AS PRV ON (PRV.provider_id=EVT.provider_id)
".$where_clause."
ORDER BY BOK.id ASC";
$data = $this->db->query($sql);
if(!empty($data)){
$resData = $data->result_array();
if(empty($resData)){
return 2;
}
foreach($resData AS $key => $data){
$resData[$key]['Appointment_Time'] = (!empty($data['Appointment_Time']))?date('d-M-y G:i',$data['Appointment_Time']):'';
}
return $resData;
}
return 0;
}
}
?>
\ No newline at end of file
...@@ -8,8 +8,8 @@ class Customer_model extends CI_Model { ...@@ -8,8 +8,8 @@ class Customer_model extends CI_Model {
$cond = (!empty($view))?" USR.status IN ($view) ":" USR.status != '2' "; $cond = (!empty($view))?" USR.status IN ($view) ":" USR.status != '2' ";
$cond .= (!empty($customer_id))?" AND CUST.customer_id='$customer_id' ":""; $cond .= (!empty($customer_id))?" AND CUST.customer_id='$customer_id' ":"";
$sql = "SELECT USR.username,USR.display_name,USR.profile_image,USR.user_type,USR.status, $sql = "SELECT CUST.customer_id,CUST.name,CUST.email,CUST.phone,CUST.email,CUST.gender,
CUST.customer_id,CUST.name,CUST.email,CUST.phone,CUST.profile_image CUST.dob,CUST.city,CUST.reset_key,CUST.social_id,CUST.profile_image,USR.status
FROM customer AS CUST FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id=CUST.customer_id) INNER JOIN users AS USR ON (USR.id=CUST.customer_id)
WHERE $cond"; WHERE $cond";
...@@ -17,7 +17,7 @@ class Customer_model extends CI_Model { ...@@ -17,7 +17,7 @@ class Customer_model extends CI_Model {
$customerData = $this->db->query($sql); $customerData = $this->db->query($sql);
if(!empty($customerData)){ if(!empty($customerData)){
return (!empty($customer_id))?$customerData->result():$customerData->row(); return (empty($customer_id))?$customerData->result():$customerData->row();
} }
return 0; return 0;
} }
...@@ -27,34 +27,36 @@ class Customer_model extends CI_Model { ...@@ -27,34 +27,36 @@ class Customer_model extends CI_Model {
return 0; return 0;
$userNameChk = $this->db->query("SELECT * FROM users $userNameChk = $this->db->query("SELECT * FROM users
WHERE status!='2' AND username='".$customer_data['username']."'"); WHERE status!='2' AND username='".$customer_data['email']."'");
if(!empty($userNameChk) && $userNameChk->num_rows() > 0) return 4; if(!empty($userNameChk) && $userNameChk->num_rows() > 0) return 4;
$emailChk = $this->db->query("SELECT * FROM customer AS PRV $emailChk = $this->db->query("SELECT * FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id=PRV.customer_id) INNER JOIN users AS USR ON (USR.id=CUST.customer_id)
WHERE USR.status!='2' AND PRV.email='".$customer_data['email']."'"); WHERE USR.status!='2' AND CUST.email='".$customer_data['email']."'");
if(!empty($emailChk) && $emailChk->num_rows() > 0) return 2; if(!empty($emailChk) && $emailChk->num_rows() > 0) return 2;
$phoneChk = $this->db->query("SELECT * FROM customer AS PRV $phoneChk = $this->db->query("SELECT * FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id=PRV.customer_id) INNER JOIN users AS USR ON (USR.id=CUST.customer_id)
WHERE USR.status!='2' AND PRV.phone='".$customer_data['phone']."'"); WHERE USR.status!='2' AND CUST.phone='".$customer_data['phone']."'");
if(!empty($phoneChk) && $phoneChk->num_rows() > 0) return 3; if(!empty($phoneChk) && $phoneChk->num_rows() > 0) return 3;
$status = $this->db->insert('users', $status = $this->db->insert('users',
array('username'=>$customer_data['username'], array('username'=>$customer_data['email'],
'password'=>$customer_data['password'], 'display_name'=>$customer_data['name'],
'display_name'=>$customer_data['display_name'],
'profile_image'=>$customer_data['profile_image'], 'profile_image'=>$customer_data['profile_image'],
'user_type'=>'2','status'=>'1')); 'user_type'=>'3','status'=>'1'));
if(!$status){ if(!$status){
return 0; return 0;
} }
$customer_id = $this->db->insert_id(); $customer_id = $this->db->insert_id();
$status = $this->db->insert('customer', $status = $this->db->insert('customer',
array('customer_id'=>$customer_id, array('customer_id'=>$customer_id,
'dob'=>$customer_data['dob'],
'city'=>$customer_data['city'],
'name'=>$customer_data['name'], 'name'=>$customer_data['name'],
'email'=>$customer_data['email'], 'email'=>$customer_data['email'],
'phone'=>$customer_data['phone'], 'phone'=>$customer_data['phone'],
'gender'=>$customer_data['gender'],
'profile_image'=>$customer_data['profile_image'])); 'profile_image'=>$customer_data['profile_image']));
return $status; return $status;
} }
...@@ -62,27 +64,30 @@ class Customer_model extends CI_Model { ...@@ -62,27 +64,30 @@ class Customer_model extends CI_Model {
function updateCustomer($customer_id = '', $customer_data = array()){ function updateCustomer($customer_id = '', $customer_data = array()){
if(empty($customer_id) || empty($customer_data)) if(empty($customer_id) || empty($customer_data))
return 0; return 0;
$userIdChk = $this->db->query("SELECT * FROM customer AS PRV $userIdChk = $this->db->query("SELECT * FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id = PRV.customer_id) INNER JOIN users AS USR ON (USR.id = CUST.customer_id)
WHERE USR.status!='2' AND USR.id!='".$customer_id."' AND WHERE USR.status!='2' AND USR.id!='".$customer_id."' AND
USR.username='".$customer_data['username']."'"); USR.username='".$customer_data['email']."'");
if(!empty($userIdChk) && $userIdChk->num_rows() > 0) { return 4; } if(!empty($userIdChk) && $userIdChk->num_rows() > 0) { return 4; }
$emailChk = $this->db->query("SELECT * FROM customer AS PRV $emailChk = $this->db->query("SELECT * FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id = PRV.customer_id) INNER JOIN users AS USR ON (USR.id = CUST.customer_id)
WHERE USR.status!='2' AND USR.id!='".$customer_id."' AND WHERE USR.status!='2' AND USR.id!='".$customer_id."' AND
PRV.email='".$customer_data['email']."'"); CUST.email='".$customer_data['email']."'");
if(!empty($emailChk) && $emailChk->num_rows() > 0) { return 2; } if(!empty($emailChk) && $emailChk->num_rows() > 0) { return 2; }
$phoneChk = $this->db->query("SELECT * FROM customer AS PRV $phoneChk = $this->db->query("SELECT * FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id = PRV.customer_id) INNER JOIN users AS USR ON (USR.id = CUST.customer_id)
WHERE USR.status!='2' AND USR.id!='".$customer_id."' AND WHERE USR.status!='2' AND USR.id!='".$customer_id."' AND
PRV.phone='".$customer_data['phone']."'"); CUST.phone='".$customer_data['phone']."'");
if(!empty($phoneChk) && $phoneChk->num_rows() > 0) { return 3; } if(!empty($phoneChk) && $phoneChk->num_rows() > 0) { return 3; }
$upMecArr = array('name'=>$customer_data['name'], $upMecArr = array('dob'=>$customer_data['dob'],
'city'=>$customer_data['city'],
'name'=>$customer_data['name'],
'phone'=>$customer_data['phone'],
'email'=>$customer_data['email'], 'email'=>$customer_data['email'],
'phone'=>$customer_data['phone']); 'gender'=>$customer_data['gender']);
$admUpdateArr = array('username'=>$customer_data['username'], $admUpdateArr = array('username'=>$customer_data['username'],
'display_name'=>$customer_data['display_name']); 'display_name'=>$customer_data['display_name']);
...@@ -95,10 +100,6 @@ class Customer_model extends CI_Model { ...@@ -95,10 +100,6 @@ class Customer_model extends CI_Model {
$status = $this->db->update('users',$admUpdateArr,array('id'=>$customer_id)); $status = $this->db->update('users',$admUpdateArr,array('id'=>$customer_id));
if(!$status) { return 0; } if(!$status) { return 0; }
if(isset($customer_data['licence']) && !empty($customer_data['licence']))
$upMecArr['licence'] = $customer_data['licence'];
$status = $this->db->update('customer',$upMecArr,array('customer_id'=>$customer_id)); $status = $this->db->update('customer',$upMecArr,array('customer_id'=>$customer_id));
return $status; return $status;
} }
......
...@@ -109,6 +109,9 @@ class Event_model extends CI_Model { ...@@ -109,6 +109,9 @@ class Event_model extends CI_Model {
if(empty($eventData)){ if(empty($eventData)){
return 0; return 0;
} }
if($this->session->userdata('user_type') != '1'){
$eventData['status'] = '3';
}
$status = $this->db->insert('events',$eventData); $status = $this->db->insert('events',$eventData);
if($status){ if($status){
return $this->db->insert_id(); return $this->db->insert_id();
......
...@@ -6,25 +6,18 @@ class Settings_model extends CI_Model { ...@@ -6,25 +6,18 @@ class Settings_model extends CI_Model {
public function _consruct(){ public function _consruct(){
parent::_construct(); parent::_construct();
} }
/*****************************************ADD SETTINGS**********************************/
function settings_viewing(){
function settings_viewing(){
$query = $this->db->query(" SELECT * FROM `setting` order by id DESC "); $query = $this->db->query(" SELECT * FROM `setting` order by id DESC ");
if(!empty($query)){ if(!empty($query)){
return $query->row_array(); return $query->row_array();
} }
return; return;
} }
public function update_settings($data){ public function update_settings($data){
$result = $this->db->update('setting', $data); $result = $this->db->update('setting', $data);
return $result; return $result;
} }
/*****************************************ADD SETTINGS**********************************/
} }
?> ?>
\ No newline at end of file
<div class="content-wrapper" >
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?= $page_title ?>
<small><?= $page_desc ?></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= base_url() ?>"><i class="fa fa-star-o" aria-hidden="true"></i>Home</a></li>
<li><?= $menu ?></li>
<li class="active"><?= $sub_menu ?></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-12">
<?php if($this->session->flashdata('message')) {
$flashdata = $this->session->flashdata('message'); ?>
<div class="alert alert-<?= $flashdata['class'] ?>">
<button class="close" data-dismiss="alert" type="button">×</button>
<?= $flashdata['message'] ?>
</div>
<?php } ?>
</div>
<div class="col-xs-12">
<div class="box box-warning">
<div class="box-header">
<h3 class="box-title">Search Conditions</h3>
</div>
<div class="box-body">
<form id="where_cond">
<div class="col-md-12">
<?php if($this->session->userdata['user_type'] == 1){ ?>
<div class="col-md-3">
<div class="form-group ">
<label>Select Organizer</label>
<div class="col-md-12">
<select name="provider_id" class="form-control" data-parsley-trigger="change">
<option selected disabled>Select Organizer</option>
<?php
if(!empty($providerData)){
foreach ($providerData as $provider) {
echo '<option value="'.$provider->provider_id.'">'.$provider->name.'</option>';
}
}
?>
</select>
</div>
</div>
</div>
<?php } else { ?>
<input type="hidden" name="provider_id" value="<?= $this->session->userdata['id'] ?>">
<?php } ?>
<div class="col-md-6">
<label>Select Report Generation Date Range</label>
<div class="form-group ">
<div class="col-md-6">
<div class="input-group date" data-provide="datepicker">
<input id="datepicker" type="text" class="form-control" data-parsley-trigger="change" data-parsley-minlength="2" name="start_date" placeholder="Start Date" autocomplete="off">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
<div class="col-md-6">
<div class="input-group date" data-provide="datepicker">
<input id="datepicker" type="text" class="form-control" data-parsley-trigger="change" data-parsley-minlength="2" name="end_date" placeholder="End Date" autocomplete="off">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group ">
<label>Select Ride Status</label>
<div class="col-md-12">
<select name="status" class="form-control" data-parsley-trigger="change">
<option selected disabled>Select Ride Status</option>
<?php
$status = array('2'=>'Completed','1'=>'Booked','3'=>'Pending','0'=>'Cancelled','4'=>'Deleted');
foreach ($status as $key => $stat) {
echo '<option value="'.$key.'">'.$stat.'</option>';
}
?>
</select>
</div>
</div>
</div>
</div>
</form>
<div class="with-border" style="padding-top:70px;">
<h4 class="box-title" >Fields to View In Report</h4>
</div>
<div class="col-md-12" style="padding-top:20px;">
<div class="col-md-3">
<input name="fieldType" type="radio" checked="checked" style="padding-left: 10px;" action="hide"
value="all">
<label style="padding-left:15px;">All Fields</label>
</div>
<div class="col-md-3">
<input name="fieldType" type="radio" onclick="checkChild($(this));" action="show" value="custom">
<label style="padding-left:15px;">Custom Fields</label>
</div>
</div>
<div class="col-md-12">
<form id="field_list">
<table class="table table-striped hide" id="customFields">
<tbody>
<?php
$html = '';
$count = 0;
$rowFlg = 0;
$tables = array('booking_details' =>
array('name' => 'Basic Details',
'fields' =>
array('BOK.bookId AS book_id'=>'Book ID',
'CONCAT(EDT.date,\' \',EDT.time) AS show_time'=>'Show Time',
'BOK.qrcode AS qrcode'=>'QR Code',
'BOK.no_of_ticket AS no_of_ticket'=>'No Of Ticket',
'BOK.ticket_details AS ticket_details'=>'Ticked Details',
'BOK.amount AS amount'=>'Booking Amount',
'BOK.reserved_by AS reserved_by'=>'Reserved By',
'BOK.status AS book_status'=>'Booking Status'
)
),
array('name' => 'Event Details',
'fields' =>
array('EVT.event_name AS event_name'=>'Event Name',
'EVT.event_discription AS event_discription'=>'Event Discription',
'ECAT.category AS category'=>'Event Category',
'ECAT.category_description AS category_description'=>'Category Description'
)
),
array('name' => 'Customer Details',
'fields' =>
array('CUST.name AS customer_name'=>'Customer Name',
'CUST.phone AS customer_phone'=>'Customer Phone',
'CUST.email AS customer_email'=>'Customer Email',
'CUST.city AS customer_city'=>'Customer City'
)
),
array('name' => 'Provider Details',
'fields' =>
array('PRV.name AS provider_name'=>'Provider Name',
'PRV.phone AS provider_phone'=>'Provider Phone',
'PRV.email AS provider_email'=>'Provider Email'
)
),
array('name' => 'Venue Details',
'fields' =>
array('VEN.venue_name AS venue_name'=>'Venue Name',
'VEN.venue_details AS venue_details'=>'Venue Details',
'REG.name AS region'=>'Region',
'VEN.location AS location'=>'Location'
)
)
);
$baseHtml = '<tr>{:baseHtml}</tr>';
$ottrHtml = '<td><div class="box-body" style="padding-left: 100px">
<label>
<input type="checkbox" id="table_{:table}" table="{:table}" onclick="checkChild($(this));" >
{:table_name}
</label>
{:innerHtml}
</div></td>';
$innerHtml = '<div class="form-group"><div class="col-sm-10"><div class="checkbox">
<label>
<input type="checkbox" name="{:field_alias}" id="table_{:table}_{:field_alias}" value="{:field_alias}">
{:field_name}
</label>
</div></div></div>';
$htmlArr = array();
$allFields = array();
foreach($tables AS $table => $tableDetails){
$fieldsHtml = '';
foreach ($tableDetails['fields'] as $alias => $field) {
$allFields[] = $alias;
$fieldsHtml .= str_replace(array('{:field_alias}','{:field_name}'),
array($alias,$field), $innerHtml);
}
$fieldsHtml = str_replace('{:table}',$table,$fieldsHtml);
$html .= str_replace(array('{:table}','{:table_name}','{:innerHtml}'),
array($table,$tableDetails['name'],$fieldsHtml,), $ottrHtml);
if($count == 2){
$rowFlg = 1; $count = 0;
$htmlArr[] = str_replace('{:baseHtml}',$html,$baseHtml);
$html = '';
}else{
$count+=1;
}
}
if($rowFlg == 0){
$html = str_replace('{:baseHtml}',$html,$baseHtml);
}else{
$lstRw = str_replace('{:baseHtml}',$html,$baseHtml);
$html = implode('', $htmlArr);
$html .= $lstRw;
}
echo $html;
?>
</tbody>
</table>
</form>
</div>
<div class="col-md-12" style="padding-top:20px;">
<div class="box-footer" style="padding-left:40%;">
<input type="hidden" id="all_fields" all_fields="<?= implode(',',$allFields) ?>">
<button id="rGenerate" type="submit" action="view" dmclick="0" class="btn btn-primary">
View Report
</button>
<button id="rGenerate" type="submit" action="export" dmclick="0" class="btn btn-info">
Export Report
</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="box box-warning hide" id="report_table_html">
<div class="box-body">
<div class="col-md-12">
<table id="report_table" class="table table-bordered table-striped datatable">
<thead>
<tr>
<th width="60px;">Book ID</th>
<th width="100px;">Event Name</th>
<th width="80px;">Tickets Booked</th>
<th width="100px;">Amount</th>
<th width="100px;">Show Time</th>
<th width="80px;">Action</th>
</tr>
</thead>
<tbody id="report_table_body">
<!-- REPORT TABLE BODY -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('[name^="TDLS.transport_id"],[name^="TDLS.medical_no"],[name^="TDLS.patient_name"],[name^="TDLS.age"],[name^="TDLS.phone"],[name^="APRES.reason"],[name^="TDLS.appointment_time"]').prop("checked", true).parent().closest('div').addClass('disable-block');
});
</script>
\ No newline at end of file
<div class="content-wrapper" >
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?= $pTitle ?>
<small><?= $pDescription ?></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= base_url() ?>"><i class="fa fa-star-o" aria-hidden="true"></i>Home</a></li>
<li><?= $menu ?></li>
<li class="active"><?= $smenu ?></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-12">
<?php if($this->session->flashdata('message')) {
$flashdata = $this->session->flashdata('message'); ?>
<div class="alert alert-<?= $flashdata['class'] ?>">
<button class="close" data-dismiss="alert" type="button">×</button>
<?= $flashdata['message'] ?>
</div>
<?php } ?>
</div>
<div class="col-xs-12">
<div class="box box-warning">
<div class="box-header with-border">
<div class="col-md-6"><h3 class="box-title">Organizer List</h3></div>
<div class="col-md-6" align="right">
<a class="btn btn-sm btn-success" href="<?=base_url('Booking/generateReport')?>">Generate Report</a>
<a class="btn btn-sm btn-primary" href="<?= base_url() ?>">Back</a>
</div>
</div>
<div class="box-body">
<table id="mechanicUsers" class="table table-bordered table-striped datatable ">
<thead>
<tr>
<th class="hidden">ID</th>
<th width="50px;">Book ID</th>
<th width="100px;">Event Type</th>
<th width="130px;">Event Name</th>
<th width="130px;">Customer Name</th>
<th width="130px;">Scheduled On</th>
<th width="50px;">Amount</th>
<th width="50px;">Status</th>
<th width="120px;">Action</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($booking_data)){
foreach($booking_data as $booking) { ?>
<tr>
<th class="hidden"><?= $booking->booking_id ?></th>
<th class="center"><?= $booking->bookId ?></th>
<th class="center"><?= $booking->category ?></th>
<th class="center"><?= $booking->event_name ?></th>
<th class="center"><?= $booking->name ?></th>
<th class="center"><?= $booking->date.' '.$booking->time ?></th>
<th class="center"><?= $booking->amount ?></th>
<th class="center">
<?php
switch($booking->book_status){
case 0: echo 'Cancelled'; break;
case 1: echo 'Booked'; break;
case 2: echo 'Completed'; break;
case 3: echo 'Pending'; break;
}
?>
</th>
<td class="center">
<a class="btn btn-sm btn-info" id="viewBooking" booking_id="<?= encode_param($booking->booking_id) ?>">
<i class="fa fa-fw fa-eye"></i>View
</a>
<a class="btn btn-sm btn-danger"
href="<?=base_url("Booking/changeStatus/".encode_param($booking->booking_id))."/4"?>"
onClick="return doconfirm()">
<i class="fa fa-fw fa-trash"></i>Delete
</a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
\ No newline at end of file
<?php
// pr($bookData);
?>
<div class="box-body">
<div class="col-sm-6">
<div class="box-header with-border padHead">
<h3 class="box-title"><strong>Event Details</strong></h3>
</div>
<div class="box-header">
<div class="row">
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">Event Name</div>
<div class="col-sm-1"><span>:</span></div>
<div class="col-sm-5"><strong><?= $bookData->event_name ?></strong></div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
...@@ -52,12 +52,11 @@ ...@@ -52,12 +52,11 @@
<input type="text" class="form-control required" data-parsley-trigger="change" <input type="text" class="form-control required" data-parsley-trigger="change"
data-parsley-minlength="2" data-parsley-pattern="^[0-9\ , - + \/]+$" required="" data-parsley-minlength="2" data-parsley-pattern="^[0-9\ , - + \/]+$" required=""
value="<?= (isset($customer_data->phone))?$customer_data->phone:'' ?>" name="phone" placeholder="Enter Phone Number" > value="<?= (isset($customer_data->phone))?$customer_data->phone:'' ?>" name="phone" placeholder="Enter Phone Number" >
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Phone</label> <label>City</label>
<input type="text" class="form-control required" data-parsley-trigger="change" <input type="text" class="form-control required" data-parsley-trigger="change"
data-parsley-minlength="2" data-parsley-pattern="^[0-9\ , - + \/]+$" required="" id="loc_search_1" name="city" placeholder="City" value="<?= (isset($customer_data->city))?$customer_data->city:'' ?>" required autocomplete="off">
value="<?= (isset($customer_data->phone))?$customer_data->phone:'' ?>" name="phone" placeholder="Enter Phone Number" >
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
...@@ -75,15 +74,28 @@ ...@@ -75,15 +74,28 @@
<div class="form-group" style="margin-top: 124px;"> <div class="form-group" style="margin-top: 124px;">
<label>Gender</label> <label>Gender</label>
<select name="gender" class="form-control"> <select name="gender" class="form-control">
<option selected value="1">Male</option> <?php
<option value="2">Female</option> $gender = '';
<option value="3">Others</option> if(!isset($customer_data->gender)){
</select> echo '<option selected disabled>Choose Gender</option>';
</div> } else {
<div class="form-group"> $gender = $customer_data->gender;
<label>City</label> }
<input type="text" class="form-control required" data-parsley-trigger="change" ?>
id="loc_search_1" name="city" placeholder="City" value="<?= (isset($customer_data->city))?$customer_data->city:'' ?>" required> <option value="1" <?= ($gender=='1')?'selected':'' ?>>Male</option>
<option value="2" <?= ($gender=='2')?'selected':'' ?>>Female</option>
<option value="3" <?= ($gender=='3')?'selected':'' ?>>Others</option>
</select>
</div>
<div class="input-group date" data-provide="datepicker">
<label>Date of Birth</label>
<input id="date" type="text" class="form-control required" required
data-parsley-trigger="change" data-parsley-minlength="5"
name="dob" placeholder="Date of Birth" autocomplete="off"
value="<?= (isset($customer_data->dob))?$customer_data->dob:'' ?>">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
</div> </div>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
......
...@@ -39,12 +39,12 @@ ...@@ -39,12 +39,12 @@
<thead> <thead>
<tr> <tr>
<th class="hidden">ID</th> <th class="hidden">ID</th>
<th width="150px;">Customer Name</th> <th width="130px;">Customer Name</th>
<th width="150px;">User Name</th> <th width="130px;">Email</th>
<th width="150px;">Email_id</th> <th width="80px;">Phone</th>
<th width="100px;">Phone</th> <th width="150px;">City</th>
<th width="100px;">Status</th> <th width="50px;">Status</th>
<th width="500px;">Action</th> <th width="350px;">Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
<tr> <tr>
<th class="hidden"><?= $customer->customer_id ?></th> <th class="hidden"><?= $customer->customer_id ?></th>
<th class="center"><?= $customer->name ?></th> <th class="center"><?= $customer->name ?></th>
<th class="center"><?= $customer->username ?></th>
<th class="center"><?= $customer->email ?></th> <th class="center"><?= $customer->email ?></th>
<th class="center"><?= $customer->phone ?></th> <th class="center"><?= $customer->phone ?></th>
<th class="center"><?= $customer->city ?></th>
<th class="center"><?= ($customer->status == 1)?'Active':'De-activate' ?></th> <th class="center"><?= ($customer->status == 1)?'Active':'De-activate' ?></th>
<td class="center"> <td class="center">
<a class="btn btn-sm btn-info" id="viewCustomer" customer_id="<?= encode_param($customer->customer_id) ?>"> <a class="btn btn-sm btn-info" id="viewCustomer" customer_id="<?= encode_param($customer->customer_id) ?>">
......
...@@ -121,12 +121,16 @@ ...@@ -121,12 +121,16 @@
<div class="col-sm-3"> <div class="col-sm-3">
<strong>Seat Pricing</strong> <strong>Seat Pricing</strong>
</div> </div>
<div class="col-sm-4"> <div class="col-sm-3">
<strong>Weekend</strong>
<small>Optional</small>
</div>
<div class="col-sm-3">
<strong>Seating Capacity</strong> <strong>Seating Capacity</strong>
</div> </div>
</div> </div>
<div class="box-header with-border padHead marginBottom-10" <div class="box-header with-border padHead marginBottom-10"
style="width:480px;"></div> style="width:625px;"></div>
<div class="col-sm-12" id="defaultFareSystem"> <div class="col-sm-12" id="defaultFareSystem">
<?php foreach($layoutDtls AS $lyDtls){ ?> <?php foreach($layoutDtls AS $lyDtls){ ?>
...@@ -137,7 +141,10 @@ ...@@ -137,7 +141,10 @@
<div class="col-sm-3"> <div class="col-sm-3">
<strong><?= $lyDtls['price'] ?></strong> / Seat <strong><?= $lyDtls['price'] ?></strong> / Seat
</div> </div>
<div class="col-sm-4"> <div class="col-sm-3">
<strong><?= $lyDtls['price'] ?></strong> / Seats
</div>
<div class="col-sm-3">
<strong><?= $lyDtls['capacity'] ?></strong> Seats / Division <strong><?= $lyDtls['capacity'] ?></strong> Seats / Division
</div> </div>
</div> </div>
...@@ -157,7 +164,13 @@ ...@@ -157,7 +164,13 @@
data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Seat Price" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Seat Price"
style="height:25px;width: 100px;"> style="height:25px;width: 100px;">
</div> </div>
<div class="col-sm-4" style="padding-top:3px;"> <div class="col-sm-3" style="padding-top:3px;">
<input type="text"
class="form-control marginTop-8" name="weekend_price[]"
data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Custom Price"
style="height:25px;width: 110px;">
</div>
<div class="col-sm-3" style="padding-top:3px;">
<input id="custFareInput_<?= $lyDtls['color'] ?>" type="text" <input id="custFareInput_<?= $lyDtls['color'] ?>" type="text"
class="form-control marginTop-8" disabled name="seat_capacity[]" class="form-control marginTop-8" disabled name="seat_capacity[]"
data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Capacity" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Capacity"
...@@ -182,7 +195,7 @@ ...@@ -182,7 +195,7 @@
<label>Event Name</label> <label>Event Name</label>
<input type="text" class="form-control required" data-parsley-trigger="change" <input type="text" class="form-control required" data-parsley-trigger="change"
data-parsley-minlength="2" name="event_name" required="" data-parsley-minlength="2" name="event_name" required=""
placeholder="Enter Venue Title" value="<?= (isset($venue_data->venue_name))?$venue_data->venue_name:'' ?>"> placeholder="Enter Venue Title">
</div> </div>
<?php if(!empty($category_data)){ ?> <?php if(!empty($category_data)){ ?>
...@@ -201,6 +214,12 @@ ...@@ -201,6 +214,12 @@
</select> </select>
</div> </div>
<?php } ?> <?php } ?>
<div class="form-group">
<label>Maximum Seat Booking</label>
<input type="text" class="form-control" data-parsley-trigger="change"
data-parsley-minlength="2" name="max_booking" value="14"
placeholder="Maximum Seat Can Book Per Transaction (Default 14)">
</div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
......
...@@ -94,7 +94,11 @@ ...@@ -94,7 +94,11 @@
<div class="col-sm-3"> <div class="col-sm-3">
<strong>Seat Pricing</strong> <strong>Seat Pricing</strong>
</div> </div>
<div class="col-sm-4"> <div class="col-sm-3">
<strong>Weekend</strong>
<small>Optional</small>
</div>
<div class="col-sm-3">
<strong>Seating Capacity</strong> <strong>Seating Capacity</strong>
</div> </div>
</div> </div>
...@@ -112,7 +116,10 @@ ...@@ -112,7 +116,10 @@
<div class="col-sm-3"> <div class="col-sm-3">
<strong><?= $lyDtls['price'] ?></strong> / Seat <strong><?= $lyDtls['price'] ?></strong> / Seat
</div> </div>
<div class="col-sm-4"> <div class="col-sm-3">
<strong><?= $lyDtls['price'] ?></strong> / Seat
</div>
<div class="col-sm-3">
<strong><?= $lyDtls['capacity'] ?></strong> Seats / Division <strong><?= $lyDtls['capacity'] ?></strong> Seats / Division
</div> </div>
</div> </div>
...@@ -132,11 +139,14 @@ ...@@ -132,11 +139,14 @@
class="form-control marginTop-8" data-parsley-trigger="change" class="form-control marginTop-8" data-parsley-trigger="change"
data-parsley-minlength="1" name="seat_price[]" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Seat Price" style="height:25px;width: 100px;"> data-parsley-minlength="1" name="seat_price[]" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Seat Price" style="height:25px;width: 100px;">
</div> </div>
<div class="col-sm-4" style="padding-top:3px;"> <div class="col-sm-3" style="padding-top:3px;">
<input type="text" class="form-control marginTop-8" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" name="weekend_price[]" placeholder="Custom Price" style="height:25px;width: 100px;">
</div>
<div class="col-sm-3" style="padding-top:3px;">
<input id="custFareInput_<?= $lyDtls['color'] ?>" disabled type="text" <input id="custFareInput_<?= $lyDtls['color'] ?>" disabled type="text"
class="form-control marginTop-8" name="seat_capacity[]" class="form-control marginTop-8" name="seat_capacity[]" placeholder="Capacity"
data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Capacity" data-parsley-trigger="change" data-parsley-minlength="1"
style="height:25px;width: 100px;"> data-parsley-pattern="^[0-9\ . \/]+$" style="height:25px;width: 100px;">
</div> </div>
<?php } else { <?php } else {
$custlayoutDtls = json_decode($event_data->custom_seat_layout,true); $custlayoutDtls = json_decode($event_data->custom_seat_layout,true);
...@@ -146,11 +156,15 @@ ...@@ -146,11 +156,15 @@
} ?> } ?>
<div class="col-sm-3" style="padding-top:3px;"> <div class="col-sm-3" style="padding-top:3px;">
<input id="custFareInput_<?= $lyDtls['color'] ?>" name="seat_price[]" <input id="custFareInput_<?= $lyDtls['color'] ?>" name="seat_price[]"
class="form-control marginTop-8" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Seat Price" value="<?= $cLayout['price'] ?>" type="text" style="height:25px;width: 100px;"> class="form-control marginTop-8 required" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Seat Price" value="<?= $cLayout['price'] ?>" type="text"
style="height:25px;width: 100px;">
</div>
<div class="col-sm-3" style="padding-top:3px;">
<input name="weekend_price[]" class="form-control marginTop-8" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Custom Price" value="<?= $cLayout['weekend_price'] ?>" type="text" style="height:25px;width: 100px;">
</div> </div>
<div class="col-sm-4" style="padding-top:3px;"> <div class="col-sm-3" style="padding-top:3px;">
<input id="custFareInput_<?= $lyDtls['color'] ?>" type="text" <input id="custFareInput_<?= $lyDtls['color'] ?>" type="text"
class="form-control marginTop-8" name="seat_capacity[]" class="form-control marginTop-8 required" name="seat_capacity[]"
data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Capacity" data-parsley-trigger="change" data-parsley-minlength="1" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Capacity"
style="height:25px;width: 100px;" value="<?= $cLayout['capacity'] ?>" > style="height:25px;width: 100px;" value="<?= $cLayout['capacity'] ?>" >
</div> </div>
...@@ -194,6 +208,11 @@ ...@@ -194,6 +208,11 @@
</select> </select>
</div> </div>
<?php } ?> <?php } ?>
<div class="form-group">
<label>Maximum Seat Booking</label>
<input type="text" class="form-control" data-parsley-trigger="change"
data-parsley-minlength="2" name="max_booking" placeholder="Maximum Seat Can Book Per Transaction" value="<?= $event_data->max_booking ?>">
</div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
......
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
<div class="col-sm-1"><span>:</span></div> <div class="col-sm-1"><span>:</span></div>
<div class="col-sm-6"><p class="truncateText"><?= $event->event_discription ?></p></div> <div class="col-sm-6"><p class="truncateText"><?= $event->event_discription ?></p></div>
</div> </div>
<div class="row">
<div class="col-sm-5">Booking Limit</div>
<div class="col-sm-1"><span>:</span></div>
<div class="col-sm-6">
<p><strong><?= $event->max_booking ?></strong> Bookings / Transaction </p>
</div>
</div>
<?php <?php
if($event->show_layout != 1 && !empty($event->seat_pricing) && if($event->show_layout != 1 && !empty($event->seat_pricing) &&
!empty($seat_pricing = json_decode($event->seat_pricing,true))){ ?> !empty($seat_pricing = json_decode($event->seat_pricing,true))){ ?>
......
<div class="content-wrapper" > <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header"> <section class="content-header">
<h1> <h1>
...@@ -57,7 +57,15 @@ ...@@ -57,7 +57,15 @@
<th class="center"><?= $event->venue_name ?></th> <th class="center"><?= $event->venue_name ?></th>
<th class="center"><?= $event->region_name ?></th> <th class="center"><?= $event->region_name ?></th>
<th class="center"><?= $event->location ?></th> <th class="center"><?= $event->location ?></th>
<th class="center"><?= ($event->event_status == 1)?'Active':'De-activate' ?></th> <th class="center">
<?php
switch($event->event_status){
case 1 : echo 'Active'; break;
case 0 : echo 'De-activate'; break;
case 3 : echo 'Waiting For Approval'; break;
}
?>
</th>
<td class="center"> <td class="center">
<button class="btn btn-sm btn-info" id="viewEventDetails" <button class="btn btn-sm btn-info" id="viewEventDetails"
event_id="<?= encode_param($event->event_id) ?>"> event_id="<?= encode_param($event->event_id) ?>">
...@@ -71,16 +79,26 @@ ...@@ -71,16 +79,26 @@
href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/2" ?>" href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/2" ?>"
onClick="return doconfirm()"> onClick="return doconfirm()">
<i class="fa fa-fw fa-trash"></i>Delete <i class="fa fa-fw fa-trash"></i>Delete
</a> </a>
<?php if($event->event_status == 1){ ?> <?php
<a class="btn btn-sm btn-success" style="background-color:#ac2925" href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/0" ?>"> switch($event->event_status){
<i class="fa fa-cog"></i> De-activate case 1 : ?>
</a> <a class="btn btn-sm btn-success" style="background-color:#ac2925" href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/0" ?>">
<?php } else { ?> <i class="fa fa-cog"></i> De-activate
<a class="btn btn-sm btn-success" href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/1" ?>"> </a>
<i class="fa fa-cog"></i> Activate <?php break;
</a> case 0 : ?>
<?php } ?> <a class="btn btn-sm btn-success" href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/1" ?>">
<i class="fa fa-cog"></i> Activate
</a>
<?php break;
case 3 : ?>
<a class="btn btn-sm btn-warning" href="<?= base_url("Event/changeStatus/".encode_param($event->event_id))."/1" ?>">
<i class="fa fa-cog"></i> Approve
</a>
<?php break;
}
?>
</td> </td>
</tr> </tr>
<?php } } ?> <?php } } ?>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</div> </div>
<!-- Provider Data --> <!-- Organizer Data -->
<div class="col-md-12"> <div class="col-md-12">
<div class="box-header with-border padUnset"> <div class="box-header with-border padUnset">
<h3 class="box-title">Personal Details</h3> <h3 class="box-title">Personal Details</h3>
...@@ -80,10 +80,10 @@ ...@@ -80,10 +80,10 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Provider Name</label> <label>Organizer Name</label>
<input type="text" class="form-control required" data-parsley-trigger="change" <input type="text" class="form-control required" data-parsley-trigger="change"
data-parsley-minlength="2" data-parsley-pattern="^[a-zA-Z0-9\ . _ - ' \/]+$" data-parsley-minlength="2" data-parsley-pattern="^[a-zA-Z0-9\ . _ - ' \/]+$"
name="name" required="" value="<?= (isset($provider_data->name))?$provider_data->name:'' ?>"placeholder="Enter Provider Name"> name="name" required="" value="<?= (isset($provider_data->name))?$provider_data->name:'' ?>"placeholder="Enter Organizer Name">
<span class="glyphicon form-control-feedback"></span> <span class="glyphicon form-control-feedback"></span>
</div> </div>
<div class="form-group"> <div class="form-group">
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box box-warning"> <div class="box box-warning">
<div class="box-header with-border"> <div class="box-header with-border">
<div class="col-md-6"><h3 class="box-title">Provider List</h3></div> <div class="col-md-6"><h3 class="box-title">Organizer List</h3></div>
<div class="col-md-6" align="right"> <div class="col-md-6" align="right">
<a class="btn btn-sm btn-primary" href="<?= base_url('Provider/addProvider')?>"> <a class="btn btn-sm btn-primary" href="<?= base_url('Provider/addProvider')?>">
Add New Provider Add New Organizer
</a> </a>
<a class="btn btn-sm btn-primary" href="<?= base_url() ?>">Back</a> <a class="btn btn-sm btn-primary" href="<?= base_url() ?>">Back</a>
</div> </div>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<thead> <thead>
<tr> <tr>
<th class="hidden">ID</th> <th class="hidden">ID</th>
<th width="150px;">Provider Name</th> <th width="150px;">Organizer Name</th>
<th width="150px;">User Name</th> <th width="150px;">User Name</th>
<th width="150px;">Email_id</th> <th width="150px;">Email_id</th>
<th width="100px;">Phone</th> <th width="100px;">Phone</th>
......
...@@ -91,6 +91,12 @@ ...@@ -91,6 +91,12 @@
<input type="text" name="google_api_key" class="form-control required" placeholder="Enter Google API" value="<?= $data['google_api_key'] ?>"> <input type="text" name="google_api_key" class="form-control required" placeholder="Enter Google API" value="<?= $data['google_api_key'] ?>">
</div> </div>
</div> </div>
<div class="row">
<div class="form-group col-xs-4">
<label>Service Charge</label>
<input type="text" name="service_charge" class="form-control required" placeholder="Enter Service Charge" value="<?= $data['service_charge'] ?>">
</div>
</div>
</div> </div>
<div class="box-footer" style="padding-left:46%"> <div class="box-footer" style="padding-left:46%">
<button type="submit" class="btn btn-info">Update</button> <button type="submit" class="btn btn-info">Update</button>
......
...@@ -24,4 +24,8 @@ ...@@ -24,4 +24,8 @@
<link rel="stylesheet" href="<?= base_url('assets/css/clockpicker.css') ?>" type="text/css" > <link rel="stylesheet" href="<?= base_url('assets/css/clockpicker.css') ?>" type="text/css" >
<script src="<?= base_url('assets/js/jQuery-2.1.4.min.js') ?>"></script> <script src="<?= base_url('assets/js/jQuery-2.1.4.min.js') ?>"></script>
<script type="text/javascript">
report_data = ride_ids = [];
</script>
</head> </head>
\ No newline at end of file
...@@ -89,25 +89,25 @@ ...@@ -89,25 +89,25 @@
<li class="treeview"> <li class="treeview">
<a href="#"> <a href="#">
<i class="fa fa-bars" aria-hidden="true"></i> <i class="fa fa-bars" aria-hidden="true"></i>
<span>Provider Management</span> <span>Organizer Management</span>
<i class="fa fa-angle-left pull-right"></i> <i class="fa fa-angle-left pull-right"></i>
</a> </a>
<ul class="treeview-menu"> <ul class="treeview-menu">
<li> <li>
<a href="<?= base_url('Provider/addProvider') ?>"> <a href="<?= base_url('Provider/addProvider') ?>">
<i class="fa fa-circle-o text-aqua"></i> <i class="fa fa-circle-o text-aqua"></i>
Add Provider Add Organizer
</a> </a>
</li> </li>
<li> <li>
<a href="<?= base_url('Provider/viewProviders') ?>"> <a href="<?= base_url('Provider/viewProviders') ?>">
<i class="fa fa-circle-o text-aqua"></i> <i class="fa fa-circle-o text-aqua"></i>
View Provider View Organizer
</a> </a>
</li> </li>
</ul> </ul>
</li> </li>
<!-- <li class="treeview"> <li class="treeview">
<a href="#"> <a href="#">
<i class="fa fa-bars" aria-hidden="true"></i> <i class="fa fa-bars" aria-hidden="true"></i>
<span>Customer Management</span> <span>Customer Management</span>
...@@ -127,7 +127,11 @@ ...@@ -127,7 +127,11 @@
</a> </a>
</li> </li>
</ul> </ul>
</li> --> </li>
<li><a href="<?= base_url('Booking/viewBookings') ?>">
<i class="fa fa-bars" aria-hidden="true">
</i><span>Booking Details</span></a>
</li>
<li><a href="<?= base_url('Settings') ?>"> <li><a href="<?= base_url('Settings') ?>">
<i class="fa fa-wrench" aria-hidden="true"> <i class="fa fa-wrench" aria-hidden="true">
</i><span>Settings</span></a> </i><span>Settings</span></a>
......
...@@ -155,13 +155,11 @@ ...@@ -155,13 +155,11 @@
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>Seat Division Color</label>
<input type="text" class="form-control required marginTop-8" data-parsley-trigger="change" data-parsley-minlength="1" name="seat_color[]" value="<?= $value->color ?>" placeholder="Seating Division Color" required> <input type="text" class="form-control required marginTop-8" data-parsley-trigger="change" data-parsley-minlength="1" name="seat_color[]" value="<?= $value->color ?>" placeholder="Seating Division Color" required>
</div> </div>
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<div class="form-group"> <div class="form-group">
<label>Capacity</label>
<input type="text" class="form-control required marginTop-8" required <input type="text" class="form-control required marginTop-8" required
data-parsley-trigger="change" data-parsley-minlength="1" name="seat_capacity[]" data-parsley-trigger="change" data-parsley-minlength="1" name="seat_capacity[]"
value="<?= $value->capacity ?>" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="capacity"> value="<?= $value->capacity ?>" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="capacity">
...@@ -169,7 +167,6 @@ ...@@ -169,7 +167,6 @@
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class="form-group"> <div class="form-group">
<label>Seat Pricing</label>
<input type="text" class="form-control required marginTop-8" required <input type="text" class="form-control required marginTop-8" required
data-parsley-trigger="change" data-parsley-minlength="1" name="seat_price[]" value="<?= $value->price ?>" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Default Seat Price"> data-parsley-trigger="change" data-parsley-minlength="1" name="seat_price[]" value="<?= $value->price ?>" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Default Seat Price">
</div> </div>
......
...@@ -371,8 +371,6 @@ jQuery('[id="addEventButton"]').on('click',function(event) { ...@@ -371,8 +371,6 @@ jQuery('[id="addEventButton"]').on('click',function(event) {
} }
}); });
jQuery('[id="viewProvider"]').on('click',function() { jQuery('[id="viewProvider"]').on('click',function() {
var provider_id = jQuery(this).attr('provider_id'); var provider_id = jQuery(this).attr('provider_id');
...@@ -455,6 +453,108 @@ jQuery('[id="viewProvider"]').on('click',function() { ...@@ -455,6 +453,108 @@ jQuery('[id="viewProvider"]').on('click',function() {
}); });
}); });
jQuery('[id="viewCustomer"]').on('click',function() {
var customer_id = jQuery(this).attr('customer_id');
if(customer_id=='' || customer_id==undefined || customer_id=='undefined' || customer_id==null || customer_id=='null'){
return true;
}
modalTrigger('Customer Details','');
addModalLoader();
jQuery.ajax({
url : base_url+"Customer/getCustomerData",
type : 'POST',
data : {'customer_id':customer_id,'view_all':'1'},
success: function(resp){
if(resp == '' || resp == undefined || resp == 'undefined' || resp == null || resp == 'null'){
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
return false;
}
var resp_data = jQuery.parseJSON(resp);
if(resp_data['status'] == '0'){
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
return false;
}
var customer_data = resp_data['data'];
jQuery.each(customer_data, function (index, value) {
if(value == '' || value == null || value == undefined || value == 'null' || value == 'undefined'){
customer_data[index] = ' -- ';
}
});
var gender = '';
switch(customer_data['gender']){
case '1': gender = 'Male';break;
case '2': gender = 'Female';break;
case '3': gender = 'Others';break;
}
var html = '<div class="col-xs-12">'+
'<div class="col-md-2">'+
'<div class="row">'+
'<img id="customerProfileImg" src="'+base_url+customer_data['profile_image']+'" height="100" width="100" />'+
'</div>'+
'</div> '+
'<div class="col-md-10">'+
'<div class="row"><label>Customer Details</label></div>'+
'<div class="row">'+
'<div class="col-md-3">Customer Name</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+ customer_data['name']+'</label></div>'+
'</div> '+
'<div class="row">'+
'<div class="col-md-3">Phone</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+customer_data['phone']+'</label></div>'+
'</div> '+
'<div class="row">'+
'<div class="col-md-3">Email ID</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+ customer_data['email']+'</label></div>'+
'</div> '+
'<div class="row">'+
'<div class="col-md-3">Phone</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+customer_data['phone']+'</label></div>'+
'</div> '+
'<div class="row">'+
'<div class="col-md-3">Gender</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+gender+'</label></div>'+
'</div> '+
'<div class="row">'+
'<div class="col-md-3">Date Of Birth</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+customer_data['dob']+'</label></div>'+
'</div> '+
'<div class="row">'+
'<div class="col-md-3">City</div>'+
'<div class="col-md-1">:</div>'+
'<div class="col-md-6"><label>'+customer_data['city']+'</label></div>'+
'</div> '+
'</div> '+
'</div>';
remModalLoader();
jQuery('[id="modal_content"]').html(html);
jQuery('[id="customerProfileImg"]').error(function() {
jQuery('[id="customerProfileImg"]').attr('src',base_url+'assets/images/no_image.png');
});
},
fail: function(xhr, textStatus, errorThrown){
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
},
error: function (ajaxContext) {
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
}
});
});
jQuery('[id="viewEventDetails"]').on('click',function(event) { jQuery('[id="viewEventDetails"]').on('click',function(event) {
var event_id = jQuery(this).attr('event_id'); var event_id = jQuery(this).attr('event_id');
...@@ -487,6 +587,38 @@ jQuery('[id="viewEventDetails"]').on('click',function(event) { ...@@ -487,6 +587,38 @@ jQuery('[id="viewEventDetails"]').on('click',function(event) {
}); });
}); });
jQuery('[id="viewBooking"]').on('click',function(event) {
var booking_id = jQuery(this).attr('booking_id');
if(booking_id=='' || booking_id==undefined || booking_id=='undefined' || booking_id==null || booking_id=='null'){
return true;
}
modalTrigger('Booking Details','');
addModalLoader();
jQuery.ajax({
url : base_url+"Booking/getBookingData",
type : 'POST',
data : {'booking_id':booking_id},
success: function(resp){
if(resp == '' || resp == undefined || resp == 'undefined' || resp == null || resp == 'null'){
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
return false;
}
jQuery('[id="modal_content"]').html(resp);
remModalLoader();
},
fail: function(xhr, textStatus, errorThrown){
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
},
error: function (ajaxContext) {
remModalLoader();
jQuery('[id="modal_content"]').html('Something went wrong, please try again later...!');
}
});
});
function showLyDivDtls(thisObj){ function showLyDivDtls(thisObj){
if(thisObj.attr('show') == '0'){ if(thisObj.attr('show') == '0'){
thisObj.attr('show','1'); thisObj.attr('show','1');
...@@ -496,3 +628,89 @@ function showLyDivDtls(thisObj){ ...@@ -496,3 +628,89 @@ function showLyDivDtls(thisObj){
thisObj.next("div").addClass('hide'); thisObj.next("div").addClass('hide');
} }
} }
function checkChild(thisObj){
var table = thisObj.attr('table');
if(thisObj.prop("checked") == true){
jQuery('[id^="table_'+table+'_"]').prop("checked", true);
} else {
jQuery('[id^="table_'+table+'_"]').prop("checked", false);
}
jQuery('[name^="TDLS.transport_id"],[name^="TDLS.medical_no"],[name^="TDLS.patient_name"],[name^="TDLS.age"],[name^="TDLS.phone"],[name^="APRES.reason"],[name^="TDLS.appointment_time"]').prop("checked", true).parent().closest('div').addClass('disable-block');
}
jQuery('[name="fieldType"]').click(function(){
var action = jQuery(this).attr('action');
if(action == 'show'){
jQuery('[id="customFields"]').removeClass('hide');
} else {
jQuery('[id="customFields"]').addClass('hide');
}
});
jQuery('[id="rGenerate"]').click(function(){
event.preventDefault();
var fields = '',
action = jQuery(this).attr('action'),
thisObj = jQuery(this);
fieldType = jQuery('input[name="fieldType"]:checked').val(),
where_cond = jQuery('[id="where_cond"]').serialize();
if(thisObj.attr('dmclick') == 1){
return false;
}
thisObj.attr('dmclick','1');
if(fieldType == 'custom'){
jQuery.each(jQuery('[id="field_list"]').serialize().split('&'), function (key,field) {
var field_arr = field.split('=');
fields += field_arr[1]+',';
});
}else{
fields = jQuery('[id="all_fields"]').attr('all_fields');
}
jQuery.ajax({
url : base_url+"Booking/rGenerate",
type : 'POST',
data : {'action':action,'fields':fields,'where_cond':where_cond},
success: function(resp){
if(resp == '' || resp == undefined || resp == 'undefined' || resp == null || resp == 'null'){
thisObj.attr('dmclick','0');
return false;
}
var resp_data = jQuery.parseJSON(resp);
if(resp_data['status'] == '2'){
thisObj.attr('dmclick','0');
setErrModal('Report status','No Data Found..!');
return false;
}
if(resp_data['status'] == 0 || (action == 'view' && (resp_data['report_data'] == '' || resp_data['report_data'] == undefined || resp_data['report_data'] == 'undefined' || resp_data['report_data'] == null || resp_data['report_data'] == 'null'))){
thisObj.attr('dmclick','0');
setErrModal('Report status','Something Went Wrong, Please Try Again..!');
return false;
}
if(action == 'view'){
var table = jQuery('[id="report_table"]').DataTable();
table.clear().draw();
jQuery.each(resp_data['report_data'], function(key, data) {
report_data[key] = data;
var vBtn = '<a class="btn btn-sm btn-primary" id="report_view_pop_'+key+'" key="'+key+'"><i class="fa fa-fw fa-edit"></i>View</a>';
table.row.add([data['book_id'],data['event_name'],data['no_of_ticket'],data['amount'],data['show_time'],vBtn]).draw();
});
jQuery('[id="report_table_html"]').removeClass('hide');
slideTo('report_table_html');
thisObj.attr('dmclick','0');
}
if(action == 'export'){
thisObj.attr('dmclick','0');
window.location.replace(base_url+'Booking/downloadCSV');
}
}
});
});
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/ -- https://www.phpmyadmin.net/
-- --
-- Host: db -- Host: db
-- Generation Time: Feb 15, 2019 at 06:59 AM -- Generation Time: Feb 22, 2019 at 01:53 PM
-- Server version: 5.6.41 -- Server version: 5.6.41
-- PHP Version: 7.2.8 -- PHP Version: 7.2.8
...@@ -38,36 +38,35 @@ CREATE TABLE `booking` ( ...@@ -38,36 +38,35 @@ CREATE TABLE `booking` (
`no_of_ticket` int(11) DEFAULT NULL, `no_of_ticket` int(11) DEFAULT NULL,
`ticket_details` varchar(255) NOT NULL, `ticket_details` varchar(255) NOT NULL,
`amount` double DEFAULT NULL, `amount` double DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`phone` varchar(25) DEFAULT NULL,
`reserved_by` int(11) DEFAULT '3' COMMENT '1 - SuperAdmin\n2 - Provider\n3 - Customer', `reserved_by` int(11) DEFAULT '3' COMMENT '1 - SuperAdmin\n2 - Provider\n3 - Customer',
`status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending' `booking_date` varchar(50) DEFAULT NULL,
`status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending, 4 - Deleted'
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `booking` -- Dumping data for table `booking`
-- --
INSERT INTO `booking` (`id`, `event_id`, `customer_id`, `bookId`, `event_date_id`, `qrcode`, `no_of_ticket`, `ticket_details`, `amount`, `email`, `phone`, `reserved_by`, `status`) VALUES INSERT INTO `booking` (`id`, `event_id`, `customer_id`, `bookId`, `event_date_id`, `qrcode`, `no_of_ticket`, `ticket_details`, `amount`, `reserved_by`, `booking_date`, `status`) VALUES
(1, 3, 3, 'BKD123987', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, '[email protected]', '9847586912', 3, 1), (1, 3, 3, 'BKD123987', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 0),
(2, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '{\"price\":\"250\",\"no_ticket\":\"2\",\"total_price\":\"500\"}', 125, '[email protected]', '9847586912', 3, 1), (2, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '{\"price\":\"250\",\"no_ticket\":\"2\",\"total_price\":\"500\"}', 125, 3, NULL, 1),
(3, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), (3, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 2),
(4, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), (4, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 3),
(5, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, '[email protected]', '9847586912', 3, 1), (5, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 3, NULL, 1),
(6, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, '[email protected]', '9847586912', 3, 1), (6, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 3, NULL, 1),
(7, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), (7, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 1),
(8, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), (8, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 1),
(9, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, '[email protected]', '9847586912', 3, 1), (9, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 3, NULL, 1),
(10, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, '[email protected]', '9847586912', 3, 1), (10, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 3, NULL, 1),
(11, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), (11, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 1),
(12, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), (12, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 1),
(13, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, '[email protected]', '9847586912', 3, 1), (13, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 3, NULL, 1),
(14, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, '[email protected]', '9847586912', 3, 1), (14, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 3, NULL, 1),
(15, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), (15, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 1),
(16, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), (16, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 1),
(17, 3, 3, 'TO1902149151', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3), (17, 3, 3, 'TO1902149151', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 3),
(18, 3, 3, 'TO1902145194', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3), (18, 3, 3, 'TO1902145194', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 3),
(19, 3, 3, 'TO1902149856', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3); (19, 3, 3, 'TO1902149856', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 3);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -81,7 +80,7 @@ CREATE TABLE `customer` ( ...@@ -81,7 +80,7 @@ CREATE TABLE `customer` (
`name` varchar(50) DEFAULT NULL, `name` varchar(50) DEFAULT NULL,
`phone` varchar(25) DEFAULT NULL, `phone` varchar(25) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL, `email` varchar(50) DEFAULT NULL,
`gender` varchar(15) NOT NULL, `gender` varchar(15) NOT NULL COMMENT '1 => Male 2 => Female 3 => Others',
`dob` varchar(50) NOT NULL, `dob` varchar(50) NOT NULL,
`city` varchar(255) NOT NULL, `city` varchar(255) NOT NULL,
`reset_key` varchar(255) DEFAULT NULL, `reset_key` varchar(255) DEFAULT NULL,
...@@ -94,12 +93,16 @@ CREATE TABLE `customer` ( ...@@ -94,12 +93,16 @@ CREATE TABLE `customer` (
-- --
INSERT INTO `customer` (`id`, `customer_id`, `name`, `phone`, `email`, `gender`, `dob`, `city`, `reset_key`, `social_id`, `profile_image`) VALUES INSERT INTO `customer` (`id`, `customer_id`, `name`, `phone`, `email`, `gender`, `dob`, `city`, `reset_key`, `social_id`, `profile_image`) VALUES
(1, 3, 'Tester', '9995559194', '[email protected]', '2', '31/07/1990', 'Tester City', NULL, NULL, 'assets/uploads/155016015727232.jpg'), (1, 3, 'Tester', '9995559194', '[email protected]', '2', '31/07/1990', 'F-2, Western Express Highway, Sai Wadi, Andheri East, Mumbai, Maharashtra, India', NULL, NULL, 'assets/uploads/155016015727232.jpg'),
(3, 5, NULL, '9995559194e', '[email protected]', '', '', '', NULL, NULL, NULL), (3, 5, NULL, '9995559194e', '[email protected]', '', '', '', NULL, NULL, NULL),
(4, 6, NULL, '9999999998', '[email protected]', '', '', '', NULL, NULL, NULL), (4, 6, NULL, '9999999998', '[email protected]', '', '', '', NULL, NULL, NULL),
(5, 7, NULL, '1234567890', '[email protected]', '', '', '', '5c63ee6845d281550052968', NULL, NULL), (5, 7, NULL, '1234567890', '[email protected]', '', '', '', '5c63ee6845d281550052968', NULL, NULL),
(6, 8, NULL, '1234567891', '[email protected]', '', '', '', NULL, NULL, NULL), (6, 8, NULL, '1234567891', '[email protected]', '', '', '', NULL, NULL, NULL),
(7, 9, NULL, NULL, '[email protected]', '', '', '', NULL, NULL, NULL); (7, 9, NULL, NULL, '[email protected]', '', '', '', NULL, NULL, NULL),
(8, 12, 'dfgsedfr', '1234567861', '[email protected]', '1', '02/19/2019', 'Faridabad, Haryana, India', NULL, NULL, NULL),
(9, 13, 'dtrg', '1234567864', '[email protected]', '1', '02/14/2019', 'Gujarat, India', NULL, NULL, NULL),
(10, 14, 'ftrghdrt rdtgdr rdtg ', '34653456344456', '[email protected]', '1', '02/19/2019', 'AIEA Employees Union Office, Srinivas Colony, Sudhama Nagar, Bengaluru, Karnataka, India', NULL, NULL, 'assets/uploads/services/1550658267_234858854male.jpg'),
(11, 15, 'tdgh', '9995559134', '[email protected]', '2', '02/19/2019', 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', NULL, NULL, 'assets/uploads/services/1550658421_car1.jpg');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -134,7 +137,10 @@ INSERT INTO `customer_auth` (`id`, `user_id`, `auth_token`, `sync_time`) VALUES ...@@ -134,7 +137,10 @@ INSERT INTO `customer_auth` (`id`, `user_id`, `auth_token`, `sync_time`) VALUES
(13, 3, '536b281d6ad31931818cc2b552dc2010', '2019-02-13 15:55:11'), (13, 3, '536b281d6ad31931818cc2b552dc2010', '2019-02-13 15:55:11'),
(14, 3, '7591c952051a7b910ab75f56822191f2', '2019-02-14 14:20:10'), (14, 3, '7591c952051a7b910ab75f56822191f2', '2019-02-14 14:20:10'),
(15, 3, '33f6dc286585395be2c405cfb9674c07', '2019-02-14 14:22:46'), (15, 3, '33f6dc286585395be2c405cfb9674c07', '2019-02-14 14:22:46'),
(16, 3, '11866cec9dc42a8be5fdac02a464bfe5', '2019-02-14 15:18:29'); (16, 3, '11866cec9dc42a8be5fdac02a464bfe5', '2019-02-14 15:18:29'),
(17, 3, '83e3a796715f3dc4038bc769a2f3f2a0', '2019-02-15 09:20:24'),
(18, 12, '967846009ab638e86e6e2ded48ef174b', '2019-02-15 09:42:37'),
(19, 13, 'efb9b927d1328de531f2b65e6ac8cb35', '2019-02-15 09:53:28');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -149,21 +155,31 @@ CREATE TABLE `events` ( ...@@ -149,21 +155,31 @@ CREATE TABLE `events` (
`provider_id` int(11) DEFAULT NULL, `provider_id` int(11) DEFAULT NULL,
`event_name` varchar(250) DEFAULT NULL, `event_name` varchar(250) DEFAULT NULL,
`event_discription` longtext, `event_discription` longtext,
`max_booking` int(10) NOT NULL COMMENT '=> maximum bookings per customer',
`seat_pricing` longtext, `seat_pricing` longtext,
`custom_seat_layout` longtext, `custom_seat_layout` longtext,
`status` tinyint(3) DEFAULT '1' `status` tinyint(3) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted 3 - Waiting For Approval'
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --
-- Dumping data for table `events` -- Dumping data for table `events`
-- --
INSERT INTO `events` (`event_id`, `venue_id`, `category_id`, `provider_id`, `event_name`, `event_discription`, `seat_pricing`, `custom_seat_layout`, `status`) VALUES INSERT INTO `events` (`event_id`, `venue_id`, `category_id`, `provider_id`, `event_name`, `event_discription`, `max_booking`, `seat_pricing`, `custom_seat_layout`, `status`) VALUES
(2, 3, 2, 1, 'dfrgdrfg', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', '{\"price\":null,\"price_details\":null}', '', 1), (2, 3, 2, 2, 'dfrgdrfg', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', 20, '{\"price\":null,\"price_details\":null}', '', 3),
(3, 3, 1, 1, 'sdfg', 'dfgr', '{\"price\":\"\",\"price_details\":\"\"}', '[{\"color\":\"Red\",\"price\":\"11\"},{\"color\":\"Blue\",\"price\":\"256\"},{\"color\":\"Blue R\",\"price\":\"6385\"},{\"color\":\"Yellow\",\"price\":\"3258\"},{\"color\":\"Yellow Y\",\"price\":\"558\"}]', 1), (3, 3, 1, 2, 'sdfg', 'dfgr', 0, '{\"price\":null,\"price_details\":null}', '', 0),
(4, 3, 1, 1, '111', '1111', '{\"price\":\"\",\"price_details\":\"\"}', '', 1), (4, 3, 1, 1, '111', '1111', 0, '{\"price\":\"\",\"price_details\":\"\"}', '', 2),
(5, 2, 2, 1, 'szdf', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', '{\"price\":\"555\",\"price_details\":\"aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa \"}', '', 1), (5, 2, 2, 1, 'szdf', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', 0, '{\"price\":\"555\",\"price_details\":\"aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa \"}', '', 1),
(6, 3, 1, 1, 'New Event', 'sdfgdrf', '', '[{\"color\":\"Red\",\"price\":\"100\"},{\"color\":\"Blue\",\"price\":\"120\"},{\"color\":\"Blue R\",\"price\":\"130\"},{\"color\":\"Yellow\",\"price\":\"140\"},{\"color\":\"Yellow Y\",\"price\":\"150\"}]', 1); (6, 3, 1, 1, 'New Event', 'sdfgdrf', 0, '{\"price\":null,\"price_details\":null}', '', 2),
(7, 3, 2, 1, 'khgbvguy', 'ftgyhutf', 0, '{\"price\":null,\"price_details\":null}', '', 2),
(8, 3, 2, 1, '4568', '8974788', 0, '', '[{\"color\":\"RED\",\"price\":\"985489\",\"capacity\":\"RED\"},{\"color\":\"BLUE\",\"price\":\"5645\",\"capacity\":\"BLUE\"},{\"color\":\"GRAY\",\"price\":\"54\",\"capacity\":\"GRAY\"},{\"color\":\"YELLOW\",\"price\":\"584\",\"capacity\":\"YELLOW\"}]', 2),
(9, 4, 2, 1, 'dftgh', 'drftghy', 0, '', '[{\"color\":\"xdcfg\",\"price\":\"6545\",\"capacity\":\"656\"}]', 2),
(10, 3, 2, 1, 'dftg', 'dtfhg', 0, '{\"price\":null,\"price_details\":null}', '', 2),
(11, 3, 2, 1, 'oijhiou', '48948956', 0, '', '[{\"color\":\"RED\",\"price\":\"85485\"},{\"color\":\"BLUE\",\"price\":\"4865\"},{\"color\":\"GRAY\",\"price\":\"4685\"},{\"color\":\"YELLOW\",\"price\":\"4685\"}]', 2),
(12, 3, 1, 1, 'PVR Movie Show 554', 'RED block 150 / Seat 500 Seats / Division\r\nBLUE block 254 / Seat 605 Seats / Division\r\nGRAY block 250 / Seat 400 Seats / Division\r\nYELLOW block 1000 / Seat 200 Seats / Division', 0, '{\"price\":null,\"price_details\":null}', '', 1),
(13, 4, 1, 1, 'PVR Movie Show', 'hgj ngju', 0, '{\"price\":null,\"price_details\":null}', '', 1),
(14, 3, 1, 1, 'DF Block, Sector 1, Salt Lake City', ' Use Default Fare Create Custome Fare\r\nSeat Division Seat Pricing Seating Capacity\r\nRED block 150 / Seat 500 Seats / Division\r\nBLUE block 254 / Seat 605 Seats / Division\r\nGRAY block 250 / Seat 400 Seats / Division\r\nYELLOW block 1000 / Seat 200 Seats / Division', 14, '{\"price\":null,\"price_details\":null}', '', 1),
(15, 3, 1, 1, 'PVR Movie Show', 'Venue Details\r\nVenue Name:PVR KoramangalaVenue Region:ThalayolaparambuVenue Location:\r\nDF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India\r\n\r\nAbout Venue:\r\nCosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.\r\n\r\nLayout Details', 14, '{\"price\":null,\"price_details\":null}', '', 1);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -206,11 +222,8 @@ CREATE TABLE `event_date_time` ( ...@@ -206,11 +222,8 @@ CREATE TABLE `event_date_time` (
-- --
INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUES INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUES
(18, 3, '2019-02-18', '11:30', 1), (18, 4, '2019-02-16', '11:30', 1),
(19, 3, '2019-02-15', '11:30', 1),
(20, 4, '2019-02-16', '11:30', 1), (20, 4, '2019-02-16', '11:30', 1),
(61, 3, '2019-02-16', '12:00', 1),
(62, 3, '2019-02-16', '01:00', 1),
(63, 5, '2019-01-01', '02:00', 1), (63, 5, '2019-01-01', '02:00', 1),
(64, 5, '2019-01-01', '03:00', 1), (64, 5, '2019-01-01', '03:00', 1),
(65, 5, '2019-02-14', '12:00', 1), (65, 5, '2019-02-14', '12:00', 1),
...@@ -229,15 +242,37 @@ INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUE ...@@ -229,15 +242,37 @@ INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUE
(78, 5, '2019-01-05', '01:00', 1), (78, 5, '2019-01-05', '01:00', 1),
(79, 5, '2019-01-05', '02:00', 1), (79, 5, '2019-01-05', '02:00', 1),
(80, 5, '2019-01-05', '03:00', 1), (80, 5, '2019-01-05', '03:00', 1),
(105, 6, '2019-02-06', '01:05', 1), (122, 3, '2019-02-15', '11:30', 1),
(106, 2, '2019-02-05', '01:10', 1), (123, 3, '2019-02-15', '12:00', 1),
(107, 2, '2019-02-05', '01:05', 1), (124, 3, '2019-02-15', '01:00', 1),
(108, 2, '2019-02-05', '01:11', 1), (125, 3, '2019-02-16', '11:30', 1),
(109, 2, '2019-02-05', '01:07', 1), (126, 3, '2019-02-16', '12:00', 1),
(110, 2, '2019-02-05', '01:25', 1), (127, 3, '2019-02-16', '01:00', 1),
(111, 2, '2019-02-05', '01:22', 1), (128, 3, '2019-02-17', '11:30', 1),
(112, 2, '2019-02-05', '01:13', 1), (129, 3, '2019-02-17', '12:00', 1),
(113, 2, '2019-02-05', '01:14', 1); (130, 3, '2019-02-17', '01:00', 1),
(131, 3, '2019-02-18', '11:30', 1),
(132, 3, '2019-02-18', '12:00', 1),
(133, 3, '2019-02-18', '01:00', 1),
(134, 6, '2019-02-06', '01:05', 1),
(136, 8, '2019-02-20', '14:00', 1),
(137, 9, '2019-02-20', '13:05', 1),
(138, 7, '2019-02-20', '13:00', 1),
(141, 11, '2019-02-19', '14:00', 1),
(145, 10, '2019-02-27', '14:00', 1),
(170, 12, '2019-02-05', '13:00', 1),
(171, 12, '2019-02-05', '14:00', 1),
(172, 13, '2019-02-13', '13:00', 1),
(173, 14, '2019-02-12', '13:00', 1),
(174, 2, '2019-02-05', '01:10', 1),
(175, 2, '2019-02-05', '01:05', 1),
(176, 2, '2019-02-05', '01:11', 1),
(177, 2, '2019-02-05', '01:07', 1),
(178, 2, '2019-02-05', '01:25', 1),
(179, 2, '2019-02-05', '01:22', 1),
(180, 2, '2019-02-05', '01:13', 1),
(181, 2, '2019-02-05', '01:14', 1),
(191, 15, '2019-02-19', '13:06', 1);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -258,17 +293,16 @@ CREATE TABLE `event_gallery` ( ...@@ -258,17 +293,16 @@ CREATE TABLE `event_gallery` (
-- --
INSERT INTO `event_gallery` (`id`, `event_id`, `media_type`, `media_url`, `status`) VALUES INSERT INTO `event_gallery` (`id`, `event_id`, `media_type`, `media_url`, `status`) VALUES
(1, 3, 0, 'assets/uploads/services/giphy9.gif', 1),
(2, 3, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1), (2, 3, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1),
(3, 3, 1, 'assets/uploads/services/giphy9.gif', 1), (3, 3, 1, 'assets/uploads/services/giphy9.gif', 1),
(4, 3, 1, 'assets/uploads/services/giphy9.gif', 1), (4, 3, 1, 'assets/uploads/services/giphy9.gif', 1),
(5, 3, 1, 'assets/uploads/services/giphy9.gif', 1), (5, 3, 1, 'assets/uploads/services/giphy9.gif', 1),
(6, 3, 2, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1),
(7, 3, 2, 'assets/uploads/services/giphy9.gif', 1),
(8, 3, 3, 'assets/uploads/services/giphy9.gif', 1),
(9, 3, 3, 'assets/uploads/services/giphy9.gif', 1),
(19, 4, 1, 'assets/uploads/services/giphy14.gif', 1), (19, 4, 1, 'assets/uploads/services/giphy14.gif', 1),
(20, 5, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-328.jpeg', 1); (20, 5, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-328.jpeg', 1),
(21, 7, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-329.jpeg', 1),
(22, 12, 1, 'assets/uploads/services/giphy18.gif', 1),
(23, 14, 1, 'assets/uploads/services/giphy19.gif', 1),
(24, 15, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-3210.jpeg', 1);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -290,17 +324,34 @@ CREATE TABLE `event_tags` ( ...@@ -290,17 +324,34 @@ CREATE TABLE `event_tags` (
INSERT INTO `event_tags` (`id`, `event_id`, `tag_id`, `status`) VALUES INSERT INTO `event_tags` (`id`, `event_id`, `tag_id`, `status`) VALUES
(1, 1, 2, 1), (1, 1, 2, 1),
(2, 1, 3, 1), (2, 1, 3, 1),
(5, 3, 3, 1),
(6, 3, 4, 1),
(124, 4, 6, 1), (124, 4, 6, 1),
(125, 4, 2, 1), (125, 4, 2, 1),
(139, 5, 2, 1), (139, 5, 2, 1),
(140, 5, 3, 1), (140, 5, 3, 1),
(141, 5, 4, 1), (141, 5, 4, 1),
(144, 6, 3, 1), (150, 3, 3, 1),
(145, 6, 4, 1), (151, 3, 4, 1),
(146, 2, 2, 1), (152, 6, 3, 1),
(147, 2, 3, 1); (153, 6, 4, 1),
(157, 8, 3, 1),
(158, 9, 2, 1),
(159, 9, 3, 1),
(160, 7, 3, 1),
(161, 7, 4, 1),
(162, 7, 5, 1),
(166, 11, 2, 1),
(167, 11, 3, 1),
(171, 10, 3, 1),
(184, 12, 2, 1),
(185, 12, 3, 1),
(186, 13, 2, 1),
(187, 13, 3, 1),
(188, 14, 2, 1),
(189, 14, 3, 1),
(190, 2, 6, 1),
(191, 2, 2, 1),
(210, 15, 3, 1),
(211, 15, 2, 1);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -472,6 +523,7 @@ CREATE TABLE `setting` ( ...@@ -472,6 +523,7 @@ CREATE TABLE `setting` (
`fav_icon` varchar(150) NOT NULL, `fav_icon` varchar(150) NOT NULL,
`country_flag` varchar(10) NOT NULL DEFAULT 'US', `country_flag` varchar(10) NOT NULL DEFAULT 'US',
`currency` varchar(10) NOT NULL, `currency` varchar(10) NOT NULL,
`service_charge` double NOT NULL DEFAULT '0',
`smtp_host` varchar(150) NOT NULL, `smtp_host` varchar(150) NOT NULL,
`smtp_username` varchar(150) NOT NULL, `smtp_username` varchar(150) NOT NULL,
`smtp_password` varchar(150) NOT NULL, `smtp_password` varchar(150) NOT NULL,
...@@ -482,8 +534,8 @@ CREATE TABLE `setting` ( ...@@ -482,8 +534,8 @@ CREATE TABLE `setting` (
-- Dumping data for table `setting` -- Dumping data for table `setting`
-- --
INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`) VALUES INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `service_charge`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`) VALUES
(1, 'Event - Time Out', 'TimeOut', 'assets/uploads/services/1549257477_Twitch_KingpinSkin_old2_HD.jpg', 'assets/uploads/services/1549257477_sniper.jpg', 'IN', 'INR', '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A'); (1, 'Event - Time Out', 'TimeOut', 'assets/uploads/services/1549257477_Twitch_KingpinSkin_old2_HD.jpg', 'assets/uploads/services/1549257477_sniper.jpg', 'IN', 'INR', 0, '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -548,9 +600,13 @@ CREATE TABLE `users` ( ...@@ -548,9 +600,13 @@ CREATE TABLE `users` (
INSERT INTO `users` (`id`, `username`, `password`, `display_name`, `profile_image`, `user_type`, `status`) VALUES INSERT INTO `users` (`id`, `username`, `password`, `display_name`, `profile_image`, `user_type`, `status`) VALUES
(1, 'admin', '202cb962ac59075b964b07152d234b70', 'Super Admin', 'assets/uploads/services/1549281365_car_ac.jpg', 1, 1), (1, 'admin', '202cb962ac59075b964b07152d234b70', 'Super Admin', 'assets/uploads/services/1549281365_car_ac.jpg', 1, 1),
(2, 'provider', '202cb962ac59075b964b07152d234b70', 'Provide', 'assets/uploads/services/1549342442_Audi-r8.jpg', 2, 1), (2, 'provider', '202cb962ac59075b964b07152d234b70', 'Provide', 'assets/uploads/services/1549342442_Audi-r8.jpg', 2, 1),
(3, 'customer', 'e10adc3949ba59abbe56e057f20f883e', 'Customer', NULL, 3, 1), (3, NULL, 'e10adc3949ba59abbe56e057f20f883e', NULL, NULL, 3, 1),
(10, 'xdcfg', '69879a49afe2a510237c11d0aa05a3fc', 'cdfgh', 'assets/uploads/services/1550152192_image_(1).png', 2, 1), (10, 'xdcfg', '69879a49afe2a510237c11d0aa05a3fc', 'cdfgh', 'assets/uploads/services/1550152192_image_(1).png', 2, 1),
(11, 'sedrftg', '38d7355701b6f3760ee49852904319c1', 'dfrgdr', 'assets/uploads/services/1550152924_giphy.gif', 2, 1); (11, 'sedrftg', '38d7355701b6f3760ee49852904319c1', 'dfrgdr', 'assets/uploads/services/1550152924_giphy.gif', 2, 1),
(12, NULL, 'e10adc3949ba59abbe56e057f20f883e', NULL, NULL, 3, 1),
(13, NULL, 'e10adc3949ba59abbe56e057f20f883e', NULL, NULL, 3, 1),
(14, NULL, NULL, NULL, 'assets/uploads/services/1550658267_234858854male.jpg', 3, 1),
(15, '[email protected]', NULL, 'tdgh', 'assets/uploads/services/1550658421_car1.jpg', 3, 1);
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -577,8 +633,9 @@ CREATE TABLE `venue` ( ...@@ -577,8 +633,9 @@ CREATE TABLE `venue` (
-- --
INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat_id`, `location`, `location_lat`, `location_lng`, `layout`, `layout_details`, `status`) VALUES INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat_id`, `location`, `location_lat`, `location_lng`, `layout`, `layout_details`, `status`) VALUES
(2, 'Empire Restaurant - Church Street', 'Empire Restaurant - Church Street', 4, 2, 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', '19.2746336', '72.8786044', '', '', 1), (2, 'Empire Restaurant - Church Street', 'Empire Restaurant - Church Street', 6, 2, 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', '19.285021', '72.880876', '', '', 1),
(3, 'PVR Koramangala', 'Cosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.', 4, 3, 'DF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India', '22.5908767', '88.4170614', 'assets/uploads/services/1549456988_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"Red\",\"price\":\"150\"},{\"color\":\"Blue\",\"price\":\"500\"},{\"color\":\"Blue R\",\"price\":\"450\"},{\"color\":\"Yellow\",\"price\":\"650\"},{\"color\":\"Yellow Y\",\"price\":\"800\"}]', 1); (3, 'PVR Koramangala', 'Cosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.', 6, 3, 'DF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India', '22.5908767', '88.4170614', 'assets/uploads/services/1550472451_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"RED\",\"price\":\"150\",\"capacity\":\"500\",\"weekend_price\":\"150\"},{\"color\":\"BLUE\",\"price\":\"254\",\"capacity\":\"605\",\"weekend_price\":\"254\"},{\"color\":\"GRAY\",\"price\":\"250\",\"capacity\":\"400\",\"weekend_price\":\"250\"},{\"color\":\"YELLOW\",\"price\":\"1000\",\"capacity\":\"200\",\"weekend_price\":\"1000\"}]', 1),
(4, 'xsaDfc', 'dsretg', 6, 3, 'Techwarelogy Solutions Private Limited (TSPL), Gayatri Vihar, Kanan Vihar, Patia, Bhubaneswar, Odish', '20.3410391', '85.8208971', 'assets/uploads/services/1550474547_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"xdcfg\",\"price\":\"45345\",\"capacity\":\"45\",\"weekend_price\":\"45345\"}]', 1);
-- --
-- Indexes for dumped tables -- Indexes for dumped tables
...@@ -588,9 +645,7 @@ INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat ...@@ -588,9 +645,7 @@ INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat
-- Indexes for table `booking` -- Indexes for table `booking`
-- --
ALTER TABLE `booking` ALTER TABLE `booking`
ADD PRIMARY KEY (`id`,`event_id`,`customer_id`), ADD PRIMARY KEY (`id`) USING BTREE;
ADD KEY `fk_booking_event1_idx` (`event_id`),
ADD KEY `fk_booking_customer1_idx` (`customer_id`);
-- --
-- Indexes for table `customer` -- Indexes for table `customer`
...@@ -728,19 +783,19 @@ ALTER TABLE `booking` ...@@ -728,19 +783,19 @@ ALTER TABLE `booking`
-- AUTO_INCREMENT for table `customer` -- AUTO_INCREMENT for table `customer`
-- --
ALTER TABLE `customer` ALTER TABLE `customer`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
-- --
-- AUTO_INCREMENT for table `customer_auth` -- AUTO_INCREMENT for table `customer_auth`
-- --
ALTER TABLE `customer_auth` ALTER TABLE `customer_auth`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
-- --
-- AUTO_INCREMENT for table `events` -- AUTO_INCREMENT for table `events`
-- --
ALTER TABLE `events` ALTER TABLE `events`
MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
-- --
-- AUTO_INCREMENT for table `event_category` -- AUTO_INCREMENT for table `event_category`
...@@ -752,19 +807,19 @@ ALTER TABLE `event_category` ...@@ -752,19 +807,19 @@ ALTER TABLE `event_category`
-- AUTO_INCREMENT for table `event_date_time` -- AUTO_INCREMENT for table `event_date_time`
-- --
ALTER TABLE `event_date_time` ALTER TABLE `event_date_time`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=192;
-- --
-- AUTO_INCREMENT for table `event_gallery` -- AUTO_INCREMENT for table `event_gallery`
-- --
ALTER TABLE `event_gallery` ALTER TABLE `event_gallery`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
-- --
-- AUTO_INCREMENT for table `event_tags` -- AUTO_INCREMENT for table `event_tags`
-- --
ALTER TABLE `event_tags` ALTER TABLE `event_tags`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=148; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=212;
-- --
-- AUTO_INCREMENT for table `favourite` -- AUTO_INCREMENT for table `favourite`
...@@ -824,13 +879,13 @@ ALTER TABLE `transaction` ...@@ -824,13 +879,13 @@ ALTER TABLE `transaction`
-- AUTO_INCREMENT for table `users` -- AUTO_INCREMENT for table `users`
-- --
ALTER TABLE `users` ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
-- --
-- AUTO_INCREMENT for table `venue` -- AUTO_INCREMENT for table `venue`
-- --
ALTER TABLE `venue` ALTER TABLE `venue`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT; COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment