-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (154 loc) · 7.08 KB
/
index.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<link href='Libraries/StarRatingLib/dist/themes/fontawesome-stars.css' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="Libraries/StarRatingLib/dist/jquery.barrating.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ"
crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet">
<title>Acceuil</title>
<link rel='stylesheet' href='Styles/MainStyles.css'>
<script>
window.onload = function(){
$.ajax({
type: "POST",
url: "Controllers/UserController.php",
data: "&action=displayhomepage",
success: function (data) {
data = JSON.parse(data);
$("#navbar").html(data["navbar"]);
$("#offers_cards").html(data["offers_html"]);
$("#footer").html(data["footer"]);
DisplayAverageRating(data["avg_ratings"]);
RateOffers('');
DisplayUserRating(data["user_ratings"]);
}
});
};
</script>
<script src="Scripts/MainScripts.js"></script>
</head>
<body>
<div class="container-full overlay" id="container">
<!--navbar-->
<nav class="navbar navbar-expand-md navbar-dark" style="background: -webkit-linear-gradient(left, #3931af, #00c6ff);" id="navbar"></nav>
<div class="container main-page">
<!--row4-->
<hr>
<div class="title-block">
<h4 class="titles" id="view_offers_section">Annonces disponibles</h4>
</div>
<br>
<div class="container offers">
<div class="cards">
<div class="offer-cards" id="offers_cards"></div>
</div>
</div>
<br><br><hr>
<div class="title-block">
<h4 class="titles" id="search_offers_section">Chercher Annonce</h4>
</div>
<br>
<div class="container offers">
<div>
<form action="Views/SearchedOffersView.html" method="get">
<div class="row">
<div class="col-sm-2">
<h4>Séance</h4>
<div class="">
<p>Matière</p>
<input type="text" class="form-control" name="subject" style="width:150px;margin:10px">
<p>Prix Max</p>
<input type="number" class="form-control" min="0" max="50000" name="max_price" style="width:150px;margin:10px">
</div>
<br>
</div>
<div class="col-sm-2">
<h4>Lieu</h4>
<div class="">
<p>Wilaya</p>
<input type="text" class="form-control" id="sel1 age" style="width:150px;margin:10px" name='state'>
</div>
<div class="">
<p>Commune</p>
<input type="text" class="form-control" id="sel1 age" style="width:150px;margin:10px" name='commune'>
</div>
<br>
</div>
<div class="col-sm-2">
<h4>Enseignant</h4>
<div class="">
<p>Nom</p>
<input type="text" class="form-control" id="sel1 age" style="width:150px;margin:10px" name='last_name'>
</div>
<div class="">
<p>Prénom</p>
<input type="text" class="form-control" id="sel1 age" style="width:150px;margin:10px" name='first_name'>
</div>
<br>
</div>
<div class="col-sm-2">
<h4>Palier</h4>
<div class="filter-option-1">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="primary" name="level[]">Primaire
</label>
</div>
<br>
<div class="filter-option-1">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="middle" name="level[]">Moyenne
</label>
</div>
<br>
<div class="filter-option-1">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="high" name="level[]">Secondaire
</label>
</div>
<br>
<div class="filter-option-1">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="college" name="level[]">Universitaire
</label>
</div>
<br>
</div>
<div class="col-sm-2">
<h4>Notes</h4>
<div class="filter-option-1">
<label class="form-check-label">
<input type="radio" class="form-check-input" value="DESC" name="rating_direction"><b>Mieux</b> notées en premier
</label>
</div>
<br><br><br>
<div class="filter-option-1">
<label class="form-check-label">
<input type="radio" class="form-check-input" value="ASC" name="rating_direction"><b>Moins</b> notées en premier
</label>
</div>
<br>
</div>
<button type="submit" class="btn btn-primary btn-block" type="submit">Chercher</button>
</div>
</form>
</div>
</div>
<br><br>
<br>
</div>
<!--footer-->
<div class="container-full footer" id="footer"></div>
</div>
</body>
</html>