$style =''; $text = '(autres)'; } } echo '<span' . $style . '>' . $responsable_eleve[$cpt_responsable]['civilite']. ' ' .strtoupper($responsable_eleve[$cpt_responsable]['nom']).' ' .ucfirst($responsable_eleve[$cpt_responsable]['prenom']) . $text . '</span>'; $telephone = ''; if ( !empty($responsable_eleve[$cpt_responsable]['tel_pers']) ) { $telephone = $telephone.'Tél. <strong>'.present_tel($responsable_eleve[$cpt_responsable]['tel_pers']).'</strong> '; } if ( !empty($responsable_eleve[$cpt_responsable]['tel_prof']) ) { $telephone = $telephone.'Prof. <strong>'.present_tel($responsable_eleve[$cpt_responsable]['tel_prof']).'</strong> '; } if ( !empty($responsable_eleve[$cpt_responsable]['tel_port']) ) { $telephone = $telephone.'<br />Port.<img src="../images/attention.png" alt="Attention numéro surtaxé" title="Attention numéro surtaxé" border="0" height="14" width="14" /> '.present_tel($responsable_eleve[$cpt_responsable]['tel_port']); } //ajout adresse didier if ( !empty($responsable_eleve[$cpt_responsable]['adr1']) ) { $telephone = $telephone.'<br />Adr. <strong>'.$responsable_eleve[$cpt_responsable]['adr1'].' </strong> '; } if ( !empty($responsable_eleve[$cpt_responsable]['cp']) ) { $telephone = $telephone.'- <strong>'.$responsable_eleve[$cpt_responsable]['cp'].' </strong> '; } if ( !empty($responsable_eleve[$cpt_responsable]['commune']) ) { $telephone = $telephone.'<strong>'.$responsable_eleve[$cpt_responsable]['commune'].'<br /></strong> '; } echo '<div style="margin-left: 0px; font-size: 13px;">'.$telephone.'</div>'; $cpt_responsable = $cpt_responsable + 1; } ?> </div>
{ $nbre = count($info_responsable); for ($i = 0 ; $i < $nbre ; $i++){ if ($info_responsable[$i]['resp_legal'] == '1') { $ident_resp = ' <span style="font-size: 0.8em;">(' . $info_responsable[$i]['nom'] . ' ' . $info_responsable[$i]['prenom'] . ' : resp n° ' . $info_responsable[$i]['resp_legal'] . ')</span>'; if ( $info_responsable[$i]['tel_pers'] != '' ) { $telephone_pers = '<br />Pers. <strong>'.present_tel($info_responsable[$i]['tel_pers']).'</strong> '; } if ( $info_responsable[$i]['tel_prof'] != '' ) { $telephone_prof = '<br />Prof. <strong>'.present_tel($info_responsable[$i]['tel_prof']).'</strong> '; } if ( $info_responsable[$i]['tel_port'] != '' ) { $telephone_port = '<br />Port.<img src="../images/attention.png" alt="Attention numéro surtaxé" title="Attention numéro surtaxé" border="0" height="14" width="14" /> '.present_tel($info_responsable[$i]['tel_port']); } } } } if ( $telephone_pers != '' and $telephone_prof === '' ) { $telephone = $telephone_pers; } if ( $telephone_pers === '' and $telephone_prof != '' ) { $telephone = $telephone_prof; } if ( $telephone_pers != '' and $telephone_prof != '' ) { $telephone = $telephone_pers . ' ' . $telephone_prof; } if ( $telephone_pers === '' and $telephone_prof === '' and $telephone_port != '' ) { $telephone = $telephone_port . ' ! surtaxe'; } if ( $telephone_pers != '' or $telephone_prof != '' or $telephone_port != '' ) { $telephone = 'Téléphone responsable : '.$telephone; } else { $telephone = 'Aucun numéro de téléphone disponible'; } echo $telephone . $ident_resp . $telephone_port;