function displayListHistoryDownload($idMember, $type) { $tabHistory = getTabHistory($idMember, $type); $i = 0; foreach ($tabHistory as $history) { if ($i % 2 == 0) { $htmlData = $htmlData . '<tr class="odd">' . "\n"; } else { $htmlData = $htmlData . '<tr class="even">' . "\n"; } $htmlData = $htmlData . '<td>' . $history['createdDate'] . '</td>' . "\n"; $htmlData = $htmlData . '<td><a href = "' . $history['filename'] . '">' . $history['filename'] . '</a></td>' . "\n"; $htmlData = $htmlData . '</tr>' . "\n"; $i++; } return $htmlData; }
<center><u><?php echo $member['company_name']; ?> </u></center> <div style = "text-align:left"> <img src = "../logo/<?php echo $member['logo']; ?> " style = "float:right;height:100px;"/> <br/> <?php $tabHistory = getTabHistory($idMember, "connection"); ?> Last connection : <?php echo $tabHistory[count($tabHistory) - 1]['createdDate']; ?> <br/><br/> Registration date : <?php echo $member['date_creation']; ?> <br/><br/> Current status :