-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_admin.php
197 lines (175 loc) · 9.58 KB
/
page_admin.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Base</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, text/html; charset=utf-8" />
<link rel="stylesheet" href="style_base.css">
<script type="text/javascript" src="script_base.js"></script>
<script src="https://code.iconify.design/2/2.2.1/iconify.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body onload="testCo()">
<div class="page" id="page">
<div class="haut">
<div class="logo_slogan">
<div class="logo">
<img id="img_logo" src="Image/Logo_Omnes_Sport_bordure.png">
</div>
<div class="slogan" id="slogan">
<span class="text_slogan">Omnes Sport</span>
</div>
</div>
<div class="div_button">
<button class="nav-button" id="accueil"><a class="nav-page" href="accueil.html">Accueil</a></button>
<button class="nav-button" id="parcourir"><a class="nav-page" href="toutParcourir.html">Tout
parcourir</a></button>
<button class="nav-button" id="rdv"><a class="nav-page" href="Rendezvous.html">Rendez vous</a></button>
</div>
<div class="search-box-co">
<div class="search-box">
<input type="text" id="search" placeholder="Rechercher..." />
<div id="display"></div>
<script type="text/javascript">
$(document).ready(function() {
$("#search").keyup(function() {
var name = $('#search').val();
if (name == "") {
$("#display").html("");
} else {
$.ajax({
type: "POST",
url: "ajax.php",
data: {
search: name
},
success: function(html) {
$("#display").html(html).show();
}
});
}
});
});
</script>
</div>
<div class="btnRegLog">
<button class="reg-log" id="disco" onclick="btnDeco()"><i class="iconify" id="deco" data-icon="material-symbols:exit-to-app"></i></button>
<button class="reg-log" id="reg-log" onclick="openForm()"><i class="iconify" id="compte" data-icon="uil:user"></i></button>
</div>
</div>
</div>
<div class="milieu" id="content">
<?php
$xml_file = 'CV.xml';
$xsl_file = 'CV.xsl';
$dom_object = new DOMDocument();
if (!file_exists($xml_file)) {
exit('failed to open $xml_file');
}
$dom_object->load($xml_file);
$xsl_obj = new DomDocument();
if (!file_exists($xsl_file)) {
exit('failed to open $xsl_file');
}
$xsl_obj->load($xsl_file);
$proc = new XSLTProcessor;
$proc->importStylesheet($xsl_obj);
$html_fragment = $proc->transformToXml($dom_object);
print($html_fragment);
?>
<form action="gestionPlanning.php" method="post">
<label for="start">Gestionnaire de planning : ajouter un jour de travail a un coach avec son ID :</label>
<input type="number" id="id_coach" name="IDCoach" min=1 required> </br>
Heure de départ :
<input type="time" id="HeureDepart" name="HeureDepart" value=09:00> </br>
Heure de fin :
<input type="time" id="HeureFin" name="HeureFin" value=17:00> </br>
Temps d'une consultation en minutes :
<input type="time" id="TempsConsult" name="TempsConsult" value=01:00 min=01:00 max=04:00 required> </br>
Jour :
<input type="date" id="jour_travail" name="JourTravail" value="2022-06-02" min="2022-06-02" max="2022-07-10" required>
<input type="submit" name="JourRDV" value="Ajouter au planning"><input type="reset">
</form>
</div>
<div class="footer" id="footer">
<div class="copyright">
<p>ceci est un copyright</p>
</div>
<div class="text">
<p>footer</p>
</div>
</div>
</div>
<!--Form de Connection/Inscription-->
<div id="CoIns-window">
<div class="section" id="section-form">
<div id="img-CoIns"><img id="imgCoIns" src="Image/marbreblanc.jpg" width="100%" height="100%"></div>
<div class="CoIns">
<div id="closeForm-container">
<button class="closeForm"><i class="iconify" id="close" data-icon="eva:close-circle-outline" onclick="closeForm()"></i></button>
</div>
<nav class="nav nav-tabs" id="myTab">
<a class="nav-item nav-link active" id="tab-co" href="#Co" data-toggle="tab">Connexion</a>
<a class="nav-item nav-link" id="tab-ins" href="#Ins" data-toggle="tab">Inscription</a>
</nav>
<div class="tab-content">
<div class="tab-pane active" id="Co">
<form action="Connexion.php" method="post">
<div class="form-input">
<input type="email" name="mail" class="form-style" placeholder="Votre e-mail" id="mail" autocomplete="off">
<i class="input-icon uil uil-at"></i>
</div>
<div class="form-input mt-2">
<input type="password" name="password" class="form-style" placeholder="Votre Mot de passe" id="mdp" autocomplete="off">
<i class="input-icon uil uil-lock-alt"></i>
</div>
<input type="submit" class="btnValid" name="Se_Connecter" value="Envoyer">
<div class="mdp-forget-container">
<p class="mdp-forget"><a href="#0" class="link">Mot de passe oublié ?</a></p>
</div>
</form>
</div>
<div class="tab-pane" id="Ins">
<form action="Connexion.php" method="post">
<div class="form-input">
<input type="text" name="nom" class="form-style" placeholder="Votre nom" id="nom" autocomplete="off">
<i class="input-icon uil uil-user"></i>
</div>
<div class="form-input">
<input type="email" name="mail" class="form-style" placeholder="Votre e-mail" id="mail" autocomplete="off">
<i class="input-icon uil uil-at"></i>
</div>
<div class="form-input">
<input type="password" name="mdp" class="form-style" placeholder="Votre mot de passe" id="mdp" autocomplete="off">
<i class="input-icon uil uil-lock-alt"></i>
</div>
<input type="submit" class="btnValid" name="creer_Compte" value="Validate">
</form>
</div>
</div>
</div>
</div>
</div>
<!--Fin du Form de Connection/Inscription-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js"></script>
<script>
const options = {
bottom: '64px', // default: '32px'
right: 'unset', // default: '32px'
left: '32px', // default: 'unset'
time: '0.5s', // default: '0.3s'
mixColor: '#fff', // default: '#fff'
backgroundColor: '#fff', // default: '#fff'
buttonColorDark: '#100f2c', // default: '#100f2c'
buttonColorLight: '#fff', // default: '#fff'
saveInCookies: true, // default: true,
label: '🌓', // default: ''
autoMatchOsTheme: true // default: true
}
const darkmode = new Darkmode(options);
darkmode.showWidget();
</script>
<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://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>