-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooking.php
183 lines (44 loc) · 1.61 KB
/
booking.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
class booking extends CI_Controller
{
public function add_booking()
{
$this->load->library('form_validation');
$this->form_validation->set_rules('email', 'Email', 'required');
$this->form_validation->set_rules('password', 'Password', 'required');
$this->form_validation->set_error_delimiters('<div style="color: red;">', '</div>');
if ($this->form_validation->run() == FALSE)
{
// $data['content'] = 'admin/tickets_insert';
$this->load->view('signup_insert');
}
else
{
$data=array(
'email'=>$this->input->post('email'),
'password'=>$this->input->post('password'),
);
$this->gpi_model->insert($data,'login');
// header("Location: ".base_url()."admin/tickets/tickets_view");
}
}
function delete_tickets($id)
{
$table="tickets";
$primary="ticket_id";
$this->db->delete($table, array($primary => $id));
header("Location: ".base_url()."admin/tickets/tickets_view");
}
function update_tickets()
{
if(isset($_POST['book']))
{
echo 'hello';
/* $data=array(
'ticket_qty'=>$this->input->post($book),
);
$this->gpi_model->update($data,"tickets",$this->input->post('vid'),"ticket_id");
//header("Location: ".base_url()."admin/tickets/tickets_view");*/
}
}
}