[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <? 2 include ("inc.php"); 3 include_ecrire ("inc_documents.php"); 4 5 require_once 'inc_presentation.php'; 6 require_once (dirname(__FILE__)."/include/bd/inc_contact_factory.php"); 7 8 $contactMetier = & recuperer_instance_contact(); 9 $id_rubrique = $_GET["id_rubrique"]; 10 11 include_ecrire ("inc_barre.php"); 12 debut_page("Edition des contacts", "contact", "contact"); 13 debut_gauche(); 14 debut_droite(); 15 debut_cadre_formulaire(); 16 17 echo "\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">"; 18 echo "<tr width=\"100%\">"; 19 echo "<td>"; 20 icone(_T('icone_retour'), "naviguer.php?coll=$id_rubrique", "rubrique-24.gif", "rien.gif"); 21 echo "</td>"; 22 echo "<td><img src=\"img_pack/rien.gif\" width=\"10\"></td>\n"; 23 echo "<td width=\"100%\">"; 24 echo "Edition des contacts"; 25 gros_titre($titre); 26 echo "</td></tr></table>"; 27 echo "<p>"; 28 echo "<P><HR><P>"; 29 $logo_parent = "contact.gif"; 30 debut_cadre_relief("$logo_parent"); 31 echo "<B>Liste des contacts :</B>\n"; 32 $contactIds = $contactMetier->getContacts(); 33 echo "<table width=\"600px\">"; 34 echo "<tr><td width=\"200px\"><b><u><i>Sujet</i></u></b></td>"; 35 echo "<td width=\"150px\"><b><u><i>Destinataires</i></u></b></td>"; 36 echo "<td width=\"150px\"><b><u><i>Copie</i></u></b></td><td width=\"50px\"> </td></tr>"; 37 if (! (PEAR :: isError($contactIds))) { 38 foreach ($contactIds as $contact) { 39 $loadOK = $contactMetier->load($contact); 40 if (PEAR :: isError($loadOK)) { 41 die($loadOK->getMessage()); 42 } 43 $dest = str_replace(',', '<br />', $contactMetier->getDestinataires()); 44 $dest = str_replace(';', '<br />', $dest); 45 $copie = str_replace(',', '<br />', $contactMetier->getCopie()); 46 $copie = str_replace(';', '<br />', $copie); 47 echo "<form method=\"post\" action=\"contact_modify.php\">"; 48 echo "<tr><td width=\"200px\" valign=\"top\">".$contactMetier->getSujet()."</td>"; 49 echo "<td width=\"150px\" valign=\"top\">$dest</td>"; 50 echo "<td width=\"150px\" valign=\"top\">$copie</td>"; 51 echo "</td><td align=\"center\" width=\"50px\" valign=\"top\">"; 52 echo "<input type=\"hidden\" name=\"id_contact\" value=\"".$contact."\">"; 53 echo "<input type=\"hidden\" name=\"id_rubrique\" value=\"$id_rubrique\">"; 54 echo "<input type=\"submit\" CLASS=\"fondo\" value=\"Modifier\">"; 55 echo "</td></tr>"; 56 echo "</form>"; 57 } 58 } 59 echo "</table>"; 60 icone_horizontale("Ajouter un contact", "contact_insert.php?id_rubrique=$id_rubrique", "edit_contact.gif","edit_contact.gif"); 61 62 fin_cadre_relief(); 63 fin_cadre_formulaire(); 64 65 fin_page(); 66 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |