forked from SamTheOracle/UnIndoors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpRequests.html
136 lines (113 loc) · 6.58 KB
/
helpRequests.html
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
135
136
<!doctype html>
<html lang="en">
<head>
<title>Uniboors</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/loginpagestylesheet.css" rel="stylesheet" />
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>
<script src="js/bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.4.0/bootbox.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.9.0/firebase.js"></script>
<!-- ydtuyiwueiljqoòkldkfj-->
<script src="https://www.gstatic.com/firebasejs/4.9.0/firebase.js"></script>
<link href="css/helprequeststylesheet.css" rel="stylesheet">
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script type="text/javascript" src="js/helprequests.js"></script>
<script src="js/navbar.js"></script>
<script src="js/operators.js"></script>
<script type="text/javascript" src="js/customalert.js"></script>
<script type="text/x-javascript" src="js/userstatus.js"></script>
</head>
<body id="b">
<nav class="navbar navbar-dark bg-dark fixed-top navbar-expand-lg">
<a class="navbar-brand" href="index.html"> <img height="80px" width="230px" src="logo.png"> </a>
<button id="button_toggle" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#menu_start" aria-controls="menu_start"
aria-expanded="false" aria-label="Toggle navigation" onclick="onCollapseMenuClick()">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu_start">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0 ">
<li class="nav-item">
<a class="nav-link" href="#">Features
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="helpRequests.html">Requests list</a>
</li>
</ul>
<ul class="navbar-nav navbar-right" id="login_signup_navbar">
<li class="nav-item">
<a class="nav-link active" href="SignUp.html">Sign up</a>
</li>
<li class="vl"></li>
<li class="nav-item" id="login">
<a class="nav-link active" href="LogIn.html">Log in</a>
</li>
</ul>
</div>
</nav>
<style>
.toggle.ios, .toggle-on.ios, .toggle-off.ios { border-radius: 20px; border: 2px solid gray; }
.toggle.ios .toggle-handle { border-radius: 20px; border: 2px solid gray; }
</style>
<!-- Button trigger modal -->
<div class="container-fluid mx-auto" style="margin-top: 120px; height: 100vh;" id='table_container'>
<h2 class="display-4 text-center" >List of open requests
<input id="toggle-event" type="checkbox" data-toggle="toggle" data-style="ios" data-off="Filter" data-on="off"> </h2>
<h1 class="display-4"style="display: block;text-align: center;font-size: 20px"> Pending requests: <span class="badge badge-pill badge-danger" id="myBadgeReq">...</span></h1>
<script>
$(function() {
$('#toggle-event').bootstrapToggle();
})
$(function() {
$('#toggle-event').change(function() {
var propState = $(this).prop('checked').toString()
if(propState=='true'){
myFunction('yes')
}else{
myFunction('no')
}
})
})
</script>
<!-- TABELLA RICHIESTE -->
<table class="table" id="myTable">
<thead>
<tr>
<th scope="col">Request Id</th>
<th scope="col">From</th>
<th scope="col">Status</th>
<th scope="col">Message</th>
<th scope="col">Place</th>
<th scope="col">Accept?</th>
</tr>
</thead>
<tbody id="table_body">
<!--- This part is filled by the js called at the end of the page -->
</tbody>
</table>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"><div class="modal-dialog modal-dialog-centered" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title" id="exampleModalLongTitle">Reply to student:</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body"><form><div class="form-group"><label class="col-form-label">Message:</label><textarea class="form-control" id="MERDA"></textarea></div></form></div><div class="modal-footer"><button type="button" class="btn btn-primary" id="REP" >Send Message</button></div></div></div></div>
<div class="container-fluid" style=" margin-top: 30px; margin-bottom: 0px; background-color:#424949;" align="middle">
<p> </p>
<div class="col" align="middle" style="margin-top:30px;">
<img height="80" width="200" src=logo.png>
<h6 style="color:white; font-weight:100;">2018 - All rights reserved ©</h6>
<p> </p>
</div>
</div>
</body>
<script>
$(document).ready(myFunction('no'))
$(document).ready(setNavbar())
</script>
<script type="text/javascript" src="js/responsive.js"></script>
</html>