function _listOFEnfantHtml(&$PDOdb, $Tid) { global $langs; $html = ''; if (empty($Tid)) { return ''; } $html .= '<table class="border" width="100%">'; $html .= '<tr class="liste_titre"><td>' . $langs->trans('OF') . '</td><td>' . $langs->trans('DateBesoin') . '</td><td>' . $langs->trans('DateLaunch') . '</td><td>' . $langs->trans('Status') . '</td></tr>'; foreach ($Tid as $id) { $of = new TAssetOF(); $of->withChild = false; $of->load($PDOdb, $id); $html .= '<tr><td>' . $of->getNomUrl(1) . '</td><td>' . $of->get_date('date_besoin') . '</td><td>' . $of->get_date('date_lancement') . '</td><td>' . $of->getLibStatus() . '</td></tr>'; } $html .= '</table>'; return $html; }