-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnection_client.php
More file actions
executable file
·240 lines (198 loc) · 6.19 KB
/
connection_client.php
File metadata and controls
executable file
·240 lines (198 loc) · 6.19 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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?php
session_start();
include('db_connect.php');
if ($_GET['logout'] == "on")
{
session_destroy();
}
if (!empty($_SESSION['idconnect']) AND $_GET['logout'] != "on")
{
$class_client = mysql_query ("SELECT * FROM client WHERE id='".$_SESSION['idconnect']."'") or die ('EREUR'.mysql_error() );
$donnees_client = mysql_fetch_array($class_client);
if ($_GET['page'] == "ma_commande")
{
$page = $_GET['page'];
}
elseif ($_GET['page'] == "mon_site")
{
$page = $_GET['page'];
$class_realisation = mysql_query ("SELECT * FROM realisation WHERE idclient='".$_SESSION['idconnect']."'") or die ('EREUR'.mysql_error() );
$donnees_realisation = mysql_fetch_array($class_realisation);
}
elseif ($_GET['page'] == "cahier_des_charges")
{
$page = $_GET['page'];
$class_realisation = mysql_query ("SELECT * FROM realisation WHERE idclient='".$_SESSION['idconnect']."'") or die ('EREUR'.mysql_error() );
$donnees_realisation = mysql_fetch_array($class_realisation);
}
else
{
$page = "ma_commande";
}
}
else
{
if (!empty($_POST['login']) AND !empty($_POST['password']))
{
$class_client = mysql_query ("SELECT * FROM client WHERE login='".$_POST['login']."' AND password='".$_POST['password']."'") or die ('EREUR'.mysql_error() );
if (mysql_num_rows($class_client) > 0)
{
$donnees_client = mysql_fetch_array($class_client);
$_SESSION['idconnect'] = $donnees_client['id'];
$page = "ma_commande";
}
else
{
$page = "connection";
}
}
else
{
$page = "connection";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Création de site Internet, Agence Multimédia : GetWeb</title>
<META NAME="Description" CONTENT="Nous réalisons votre site Internet clef en main et sur mesure, à partir de 500€. Une solution économique et performante, adaptée à toutes les entreprises, associations ou particuliers.">
<meta name="keywords" content="création, creation, site, internet, projet, entreprise, particulier, association, pme, réalisation, realisation, agence, multimedia, lyon, paris, rhones, alpes, commerce, e-commerce, e commerce, vitrine, clef, en, main, solution">
<!-- BANNIERE -->
<script type="text/javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<!-- ///////////////////////////// -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-4187190-1";
urchinTracker();
</script>
<style type="text/css">
<!--
.style1 {
color: #009900;
font-weight: bold;
}
.style2 {color: #0000FF}
#lien_cliquez_ici a {font-size: 14px;
color: #009900;
font-weight: bold;}
label { display:block;
font-size:12px;
width:200px;
height:15px;
float:left;}
.style3 {font-size: 14px}
.style12 {font-size: 14px; color: #FF9933; }
.task {
height: 61px;
clear: both;
border-top: 1px solid #FFFFFF;
border-bottom: 1px solid #D5D5D5;
background: #F1F3F5;
padding-left: 2px;
padding-left: 0px;
font-family:Arial, Geneva, Helvetica, sans-serif;
font-size:11px;
}
.task div {
padding: 1px;
}
.task div img {
display: block;
margin: 2px;
margin-left: auto;
margin-right: auto;
clear: both;
}
.task .enabled, .task .disabled, .hover {
float: left;
width: 100px;
height: 50px;
margin: 3px 2px;
text-align: center;
}
.task .enabled {
cursor: pointer;
border: 1px solid #D5D5D5;
color: #333333;
}
.task .disabled {
border: 1px solid #D5D5D5;
color: #999999;
}
.task .hover {
cursor: pointer;
border: 1px solid #30559C;
background-color: #EBF1FC;
color: #333333;
}
-->
</style>
</head>
<body>
<!-- EN TETE -->
<div id="top">
<?php include("top.php"); ?>
</div>
<!-- TEXTES DU CENTRE -->
<div id="centre" style="background-color:#202031">
<div class="indice_top"><img src="images/espace_client.gif" alt="nos_services"/></div>
<!-- IMAGES TITRES -->
<?php
if ($page == "connection")
{
?>
<div class="nos_solutions" style="background-color:#202031"><!-- CONNECTION ESPACE CLIENT -->
<table cellspacing="1" cellpadding="6" id="login" align="center" style="color:#cdcfcd;background-color:#3e71ae;border-top:1px solid #fed661;border-left:1px solid #fed661;border-bottom:1px solid #fed661;border-right:1px solid #fed661;">
<tr>
<td><img src="images/login2.png" /></td>
<td id="login_form"><form action="<?php echo $PHP_SELF?>" method="post" enctype="multipart/form-data">
<table cellpadding="1" style="font-size:13px;">
<tr>
<td>Nom d'utilisateur</td>
</tr>
<tr>
<td><input type="text" name="login" /></td>
</tr>
<tr>
<td>Mot de passe</td>
</tr>
<tr>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td><input type="submit" value="Connection" id="login_button" style="border: 1px solid #FECD38;"/></td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
<div class="nos_offres" style="clear:both;"><!-- NOS OFFRES -->
<img src="images/nos_offres.gif" alt="nos_offres" /><br/>
<a href="images/plaquette_identite.pdf"><img src="images/pack_identite.gif" width="270" alt="pack_identité" border="0"/></a><a href="images/plaquette_interactif.pdf"><img src="images/pack_interactif.gif" width="269" alt="pack_interactif" border="0"/></a><a href="images/plaquette_flash.pdf"><img src="images/pack_flash.gif" width="261" alt="pack_flash" border="0"/></a>
</div>
<!-- PIED DE PAGE -->
<?php
}
elseif ($page == "ma_commande")
{
include ("ma_commande.php");
}
elseif ($page == "mon_site")
{
include ("mon_site.php");
}
elseif ($page == "cahier_des_charges")
{
include ("cahier_des_charges.php");
}
?>
</div>
<div id="bas" align="center"><?php include("bottom.php"); ?></div>
</body>
</html>