Uname:
Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software:
Apache
PHP version:
7.4.33 [ PHP INFO ] PHP os:
Linux
Server Ip:
54.36.31.145
Your Ip:
216.73.216.182
User:
homesquasz (91404) | Group:
users (100)
Safe Mode:
OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl
<?php
try
{
$html2pdf = new HTML2PDF('L', 'A4', 'fr', true, 'UTF-8', array(10, 10, 10, 10));
$html2pdf->pdf->SetDisplayMode('fullpage');
ob_start();
?>
<style type="text/css">
<!--
table{width:100% !important;}
table tr td{ text-align:center; padding: 5px; }
table tr th{text-align:center;padding: 5px;}
table tr .title{font-size:10pt; font-weight: bold;}
table tr .content{text-align:left; font-size:9pt;}
h2{
text-align: center;
}
-->
</style>
<page backtop="50mm" backbottom="7mm" footer="page" >
<page_header footer='page' >
<table cellspacing="0" align="center" style="margin-bottom:40px; width: 100%;height:25%; text-align:center;text-align: center; font-size: 10pt;" align="center">
<tr>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;"><h2>Groupe Hammami</h2></td>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;font-weight: bold; font-size:20pt;">Liste des employes</td>
<td style="width: 33%; text-align: center;border: solid 1px black;text-transform: uppercase;"></td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;"></td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;">Page [[page_cu]] </td>
</tr>
</table>
</page_header>
<table class="table table-striped" align="center" border="1">
<tr>
<th>Ordre</th>
<th>Matricule</th>
<th>Nom</th>
<th>Prenom</th>
<th>Tel</th>
<th>Email</th>
<th>Responsable</th>
<th>Interim</th>
<th>Type</th>
</tr>
<?php
$i=1;
foreach($services as $item){
?>
<tr><td colspan="9" align="center"><h3><?php echo $item["libelle"]; ?></h3></td></tr>
<?php
foreach($users as $key=>$d){
if($d['type'] != "2" && $item["id"]== $d["service_id"]){
?>
<tr <?php echo ($i%2==0)?"style='background:#eff0f1;'":""?> >
<td class="content"><?php echo $i; ?></td>
<td class="content"><?php echo $d['matricule']; ?></td>
<td class="content"><?php echo $d['nom']; ?></td>
<td class="content"><?php echo $d['prenom']; ?></td>
<td class="content"><?php echo $d['tel']; ?></td>
<td class="content"><?php echo $d['email']; ?></td>
<td class="content"> <?php echo $d['responsable']; ?> </td>
<td class="content"><?php echo $d['interim']; ?></td>
<td class="content">
<?php
if($d['type']=="0"){
echo "Utilisateur";
}else if($d['type']=="1"){
echo "Responsable";
}else{
echo "Administrateur";
}
?>
</td>
</tr>
<?php $i++;}} }?>
</table>
</page>
<?php
$content = ob_get_clean();
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output("EtatUtilisateur.pdf");
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}
?>