-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent-Committees.php
More file actions
134 lines (124 loc) · 3.57 KB
/
Event-Committees.php
File metadata and controls
134 lines (124 loc) · 3.57 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="Pictures/eventoLogo.png"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="jquery.min.js"></script>
<link href="style.css" type="text/css" rel="stylesheet">
<link href='progress.css' rel='stylesheet' />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css">
<style>
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
.row.content {height: 450px}
/* Set gray background color and 100% height */
.sidenav {
padding-top: 20px;
background-color: #f1f1f1;
height: 700px;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: white;
padding: 15px;
}
.btn-toggle {
top: 50%;
transform: translateY(-50%);
}
}
</style>
</head>
<body>
<?php include('MainTabs.php'); ?>
<div class="container-fluid text-center">
<div class="row content">
<?php include ('Event-sidetabs.php') ?>
<div class="col-sm-8 text-left" >
<br>
<div class = "container">
<div class = "col-sm-10">
<!-- APPROVED ACTIVITY PROPOSAL -->
<div class="table"></div>
</div>
</div>
</div>
<!-- PROGRESS BAR -->
<?php include ('progress-section.php'); ?>
</div>
</div>
<div class="modal fade" id="myModal" >
<div class="modal-dialog modal-lg">
<!-- Modal content-->
<!-- Modal From pop-up-select.php !-->
<div id = "show_table">
</div>
</div>
</div>
</body>
</html>
<script>
$(document).ready(function(){
//SHOW THE TABLE OF ACTIVITY PROPOSAL
function fetchEvents() {
$.ajax({
url:"Event-ActivityProposal-Committees-Select.php",
method:"POST",
success:function(data){
$('.table').html(data);
}
});
}
fetchEvents();
function fetchCommittees() {
var id= $('#btn_committeesVerifiy').data("id5");
$.ajax({
type:'POST',
url:'Event-Committees-pop-up.php',
data:{id:id},
dataType:"text",
success:function(data){
$('#show_table').html(data);
}
});
}
///SHOWS MODAL WHEN BUTTON ADD IS CLICKED IN RESERVATION
$(document).on('click','#btn_committeeUP', function (){
var id=$(this).data("id5");
$.ajax({
type:'POST',
url:'Event-Committees-pop-up.php',
data:{id:id},
dataType:"text",
success:function(data){
$('#show_table').html(data);
}
});
});
///SHOWS MODAL WHEN BUTTON ADD IS CLICKED IN RESERVATION
$(document).on('click','#btn_committeesVerifiy', function (){
var id=$(this).data("id5");
var committee = $(this).data("idcom");
$.ajax({
type:'POST',
url:'Event-Committees-Update.php',
data:{id:id,committee:committee},
dataType:"text",
success:function(data){
alert(data);
fetchCommittees();
}
});
});
});
</script>