-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestVote.php
More file actions
112 lines (102 loc) · 4.44 KB
/
testVote.php
File metadata and controls
112 lines (102 loc) · 4.44 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
<?php
session_start();
if(!$_SESSION['pseudo']) {
header('Location: connexion.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<!-- Bootstrap & FontAwesome & jQuery imports -->
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/fontawesome/fontawesome-all.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/js/bootstrap-datepicker.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker3.css"
/>
<!---------------------
_____
| _ |
__ _ __ _ _ __ ___ ___| | | |_ _____ _ __
/ _` |/ _` | '_ ` _ \ / _ \| | | \ \ / / _ \ '__|
| (_| | (_| | | | | | | __/\ \_/ /\ V / __/ |
\__, |\__,_|_| |_| |_|\___| \___/ \_/ \___|_|
__/ |
|___/
L2 Informatique - [Promotion 2017-2018]
-->
<link rel="stylesheet" href="./css/style.css">
<script>
document.getElementById('searchGame').onkeyup = searchSel;
function searchSel()
{
var input = document.getElementById('searchGame').value.toLowerCase();
len = input.length;
output = document.getElementById('game').options;
for(var i=0; i<output.length; i++)
if (output[i].text.toLowerCase().indexOf(input) != -1 ){
output[i].selected = true;
break;
}
if (input == '')
output[0].selected = true;
}
</script>
</head>
<body>
<?php include('./includes/navbar.php') ?>
<div id="banner"></div>
<!-- Content -->
<div class="container-fluid">
<h1><i class="fas fa-gamepad"></i> Ajouter un jeu</h1>
<br />
<?php if($_SESSION['messageSuccesAjouterJeu']) : ?>
<div class="alert alert-success" role="alert" style="text-align: left;">
<?php
// Affichage de la notification
echo $_SESSION['messageSuccesAjouterJeu'];
// Une fois affiché on le détruit
unset($_SESSION['messageSuccesAjouterJeu']);
?>
</div>
<?php endif; ?>
<?php if($_SESSION['messageErreurAjouterJeu']) : ?>
<div class="alert alert-danger" role="alert" style="text-align: left;">
<?php
// Affichage du message d'erreur
echo $_SESSION['messageErreurAjouterJeu'];
// Une fois affiché on le détruit
unset($_SESSION['messageErreurAjouterJeu']);
?>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-12 order-md-1">
<form class="needs-validation" action="./includes/voter.php" method="POST">
<div class="row">
<div class="col-md-12 mb-3">
<div class="form-group">
<!-- Date input -->
<label class="control-label" for="IDtrick">numero ID
<span class="text-muted">*</span>
</label>
<input class="form-control" id="IDtrick" type="NUMBER" name="IDtrick">
</div>
</div>
</div>
<div class="row">
<div class='col-sm-3'>
<button class="btn btn-primary btn-lg btn-block" type="submit">Voter pour l'astuce</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- Content end-->
</body>
</html>