-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainRechercheHandler.php
More file actions
67 lines (45 loc) · 1.7 KB
/
MainRechercheHandler.php
File metadata and controls
67 lines (45 loc) · 1.7 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
<?php
require_once('controller.php');
$langue = $_POST['langue'];
$type_traduction = $_POST['type_traduction'];
$nom = $_POST['nom'];
$pro_traductorD = $_POST['type_traducteur'];
$tc = new traductor_controller();
$result = $tc->getTraductor_Nom_Asserm_Type_Lang($nom,$pro_traductorD, $langue, $type_traduction);
foreach($result as $rs){
echo '<div class="row result">
<div class="col-2">
<img src="./uploads/profile_pics/'.$rs["Image"].'" class="img-fluid"/>
</div>
<div class="col-10 row justify-content-center">
<div class="col-5">
<div>
<h4>'.$rs["Nom"].' '.$rs["Prenom"].'</h4>
<br/>
</div>
<div>';
$r = $tc->getTypes($rs['userid']);
foreach($r as $type){
echo '<div class="btn btn-default '.$type["Type"].'-tag">'.$type["Type"].'</div>';
}
echo '</div>
</div>
<div class="col-7 d-flex flex-column align-items-end justify-content-between pr-5">
<div class="row">
<h6 class="mr-2">Rating</h6>';
for ($i =0; $i < $rs["note"]; $i++){
echo '<i class="fa fa-star active-star"></i>';
}
for ($i = $rs["note"]; $i < 5; $i++){
echo ' <i class="fa fa-star"></i>';
}
echo '<br/>
</div>
<br/>
<div class="btn btn-default visit-profil-btn">Visiter Profil</div>
</div>
</div>
</div>
<hr style="width: 75%;"/>';
}
?>