-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplanning-old.php
50 lines (48 loc) · 1.66 KB
/
planning-old.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
<?php
include('header.php');
if (isset($_REQUEST["rv"])){
$id_rencontre=$_REQUEST["rv"];
$LaRencontreSel = getEnregistrement('rencontre', $id_rencontre);
$LaSocieteSel = getEnregistrement('societe', $LaRencontreSel->id_societe);
}
?>
<div id="contenu">
<div id="liste_planning">
<?php
$datejour='';
echo '<ul>';
foreach (GetListeRencontresFutures() AS $LaRencontre){
$nouveaudatejour=datefrSansHeure($LaRencontre->date_rencontre);
if ($nouveaudatejour != $datejour){
echo '</ul> <div class="jour_planning">'.dateFrancaiseLitterale($LaRencontre->date_rencontre).'</div><ul>';
$datejour= $nouveaudatejour;
}
if (isset($id_rencontre) && $LaRencontre->id == $id_rencontre) $class_li='class="class_li"'; else $class_li='';
echo '<li '.$class_li.'><a href="planning.php?rv='.$LaRencontre->id.'">'.HeurefrFrancaise($LaRencontre->date_rencontre).' <br/> '.NomSocieteDId($LaRencontre->id_societe).'</a></li>';
}
?>
</ul>
</div>
<?php if (isset ($LaSocieteSel)){ ?>
<div id="resume_planning">
<div>
<h1><?php echo $LaSocieteSel->nom; ?></h1>
<?php
echo 'Rappeler le : '.dateFrancaiseLitterale($LaRencontreSel->date_rencontre).' a '.HeurefrFrancaise($LaRencontreSel->date_rencontre);
echo $LaRencontreSel->commentaire; ?>
</div>
<div>
<h2> Contact </h2>
<?php echo $LaSocieteSel->prenom_contact.' '. $LaSocieteSel->nom_contact;
echo 'Téléphone : '. $LaSocieteSel->tel_contact;
echo 'Portable : '. $LaSocieteSel->portable_contact;
echo 'Email : '. $LaSocieteSel->email_contact;
?>
</div>
</div>
<?php } ?>
<div style="clear:both"> </div>
</div>
<?php
include ('footer.php');
?>