-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
185 lines (180 loc) · 8.17 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Loading Flat UI -->
<link href="css/flat-ui.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<title>Mon site ! </title>
</head>
<body>
<section id="hero1" class="hero">
<div class="inner">
<div class="copy">
<h1>Martin & sons Agency</h1>
<p>Its like im actually there! But sitting at a computer. Wow, the future is intense!</p>
</div>
</div>
</section>
<div class = "bandeaumenu">
<div class="container">
<ul id="menu">
<div class="row">
<div class="col-lg-1">
<li class="limenu"><a href="#">Home</a>
<ul class="dropdown-menu pull-right" style="left: 40px; background-color:rgba(236, 240, 241,0.5); ">
<li><a href="../include/base.php" >Base</a></li>
</ul>
</li>
</div>
<div class="col-lg-1">
<li class="limenu" >Prix
<ul class="dropdown-menu pull-right" style="left: -40px; background-color:rgba(236, 240, 241,0.5); -webkit-transition: .25s; transition: .25s;">
<li class="lislider">
<div class="row">
<div class="col-lg-offset-1 col-lg-8">
<div id="slider"></div>
</div>
<div class="col-lg-offset-1 col-lg-2">
<input class="btn btn-default" type="button" value="Submit" onclick="post_prix('../include/consultPrix.php', {name: 'prix'})">
</div>
</div>
<div class="row">
<div class=" col-lg-offset-1 col-lg-3">
<span style=" letter-spacing: 0px; font-size: 14px;">200K€</span>
</div>
<div class="col-lg-offset-0 col-lg-3">
<span style=" letter-spacing: 0px; font-size: 14px; ">200-300K€</span>
</div>
<div class="col-lg-offset-1 col-lg-3 ">
<span style=" letter-spacing: 0px; font-size: 14px;">300K€</span>
</div>
</div>
</li>
</ul>
</li>
</div>
<div class="col-lg-2">
<li class="limenu" >Catégories
<span class="categories">
<ul class="dropdown-menu pull-right" style="left: -120px; background-color:rgba(236, 240, 241,0.5); margin-top: 9px;">
<li style="-webkit-transition: .25s; transition: .25s;"><a class="red" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Une Piece'})" ><span> 1 Piece</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="blue" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Deux Pieces'})" ><span> 2 pieces</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="orange" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Trois Pieces'})" ><span> 3 pieces</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="green" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Quatre Pieces'})" ><span> 4 pieces</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="red" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Cinq Pieces'})" ><span> 5 Piece</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="blue" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Six Pieces'})" ><span> 6 pieces</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="orange" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Sept Pieces'})" ><span> 7 pieces</span></a></li>
<li style="-webkit-transition: .25s; transition: .25s;"><a class="green" onclick="post_categories('../include/consultCat.php', {Rubrique: 'Plus de 7 Pieces'})" ><span> + de 7 pieces</span></a></li>
</ul>
</span>
</li>
</div>
<div class="col-lg-3">
<li class="limenu">
<form action="#" role="search" method="post" id="fromrechercher">
<span class="form-group">
<span class="input-group">
<input class="form-control" type="search" placeholder="Recherche" id="arecherche" name="arecherche" style="height: 35px; margin-top: 3px;">
<span class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style=" height: 35px;">un bien<span class="caret"></span></button>
<ul class="dropdown-menu pull-right" style="background-color:rgba(236, 240, 241,0.5); left: -380px;">
<li><a href="#" onClick="rechercher('../include/rechercheBien.php')" >un bien</a></li>
<li><a href="#" onClick="rechercher('../include/rechercheBiens.php')" >Plusieurs Biens</a></li>
</ul>
</span><!-- /btn-group -->
</span><!-- /input-group -->
</span>
</form>
</li>
</div>
<div class="col-lg-5">
<form class="navbar-form navbar-right" role="form" style="margin-top: 3px;">
<div class="col-lg-5">
<div class="form-group">
<input type="text" placeholder="idClient" class="form-control">
</div>
</div>
<div class="col-lg-5">
<div class="form-group">
<input type="password" placeholder="mail" class="form-control">
</div>
</div>
<div class="col-lg-2">
<button type="submit" class="btn btn-success">Sign in</button>
</div>
</form>
</div>
</div> <!-- fin row -->
</ul><!--fim menu-->
</div>
</div>
<div class="container">
<br/>
<br/>
<br/>
<div>
<!-- Le pied de page -->
<div id="pied_page">
<center> Edwin Martin -
<a href="http://edwinmrtn.github.io/cv/">edwinmrtn.github.io/cv/</center>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/flat-ui.min.js"></script>
<script src="js/application.js"></script>
<script>
function post_prix(path, params) {
var nbr = $('#slider').slider('value');
// The rest of this code assumes you are not using a library.
// It can be made less wordy if you use one.
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", path);
for(var key in params) {
if(params.hasOwnProperty(key)) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", "prix");
hiddenField.setAttribute("value", nbr);
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit();
}
function post_categories(path, params) {
// The rest of this code assumes you are not using a library.
// It can be made less wordy if you use one.
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", path);
for(var key in params) {
if(params.hasOwnProperty(key)) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", key);
hiddenField.setAttribute("value", params[key]);
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit();
}
function rechercher(goto){
if(goto == "../include/rechercheBien.php"){
document.getElementById('fromrechercher').setAttribute("action","../include/rechercheBien.php");
document.getElementById('fromrechercher').submit();
}
else{
document.getElementById('fromrechercher').setAttribute("action","../include/rechercheBiens.php");
document.getElementById('fromrechercher').submit();
}
}
</script>
</body>
</html>