[ 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 = $_POST["id_rubrique"]; 10 $id_contact = $_POST["id_contact"]; 11 12 include_ecrire ("inc_barre.php"); 13 debut_page("Edition des contacts", "contact", "contact"); 14 debut_gauche(); 15 debut_droite(); 16 debut_cadre_formulaire(); 17 18 echo "\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">"; 19 echo "<tr width=\"100%\">"; 20 echo "<td>"; 21 icone(_T('icone_retour'), "contact_edit.php?id_rubrique=$id_rubrique", "rubrique-24.gif", "rien.gif"); 22 echo "</td>"; 23 echo "<td><img src=\"img_pack/rien.gif\" width=\"10\"></td>\n"; 24 echo "<td width=\"100%\">"; 25 echo "Modification d'un contact"; 26 gros_titre($titre); 27 echo "</td></tr></table>"; 28 echo "<p>"; 29 echo "<P><HR><P>"; 30 $logo_parent = "contact.gif"; 31 debut_cadre_relief("$logo_parent"); 32 echo "<B>Liste des contacts :</B>\n"; 33 echo "<table width=\"600px\">"; 34 $loadOK = $contactMetier->load($id_contact); 35 if (PEAR :: isError($loadOK)) { 36 die($loadOK->getMessage()); 37 } 38 echo "<form method=\"post\" action=\"do_contact_modify.php\">"; 39 echo "<tr><td >Sujet : </td><td><input type=\"text\" name=\"sujet\" value=\"".$contactMetier->getSujet()."\" style=\"width: 400px;\"></td></tr>"; 40 echo "<tr><td >Destinataires : </td><td><input type=\"text\" name=\"destinataires\" value=\"".$contactMetier->getDestinataires()."\" style=\"width: 400px;\"></td></tr>"; 41 echo "<tr><td >Copie : </td><td><input type=\"text\" name=\"copie\" value=\"".$contactMetier->getCopie()."\" style=\"width: 400px;\"></td></tr>"; 42 echo "<tr><td colspan=\"2\"><input type=\"checkbox\" name=\"delete\" /> Supprimer ce contact</td></tr>"; 43 echo "<input type=\"hidden\" name=\"id_rubrique\" value=\"$id_rubrique\">"; 44 echo "<input type=\"hidden\" name=\"id_contact\" value=\"".$id_contact."\">"; 45 echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" CLASS=\"fondo\" value=\"Valider\">"; 46 echo "</td></tr>"; 47 echo "</form>"; 48 echo "</table>"; 49 50 fin_cadre_relief(); 51 fin_cadre_formulaire(); 52 fin_page(); 53 ?>
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 |