From 2086ba845893334556f60f00c14be62c9541df99 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 21 Aug 2005 19:07:13 +0000 Subject: [PATCH] Nettoyage du code --- htdocs/comm/propal.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 68dec8a0d1a..aac73939864 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -30,16 +30,16 @@ require("./pre.inc.php"); -$langs->load('companies'); -$langs->load('propal'); -$langs->load('compta'); -$langs->load('bills'); - $user->getrights('propale'); if (!$user->rights->propale->lire) accessforbidden(); +$langs->load('companies'); +$langs->load('propal'); +$langs->load('compta'); +$langs->load('bills'); + if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); require_once('./propal_model_pdf.class.php'); @@ -50,8 +50,8 @@ require_once(DOL_DOCUMENT_ROOT.'/lib/CMailFile.class.php'); // Sécurité accés client if ($user->societe_id > 0) { - $action = ''; - $socidp = $user->societe_id; + $action = ''; + $socidp = $user->societe_id; } if ($_GET["socidp"]) { $socidp=$_GET["socidp"]; } @@ -59,14 +59,11 @@ if (isset($_GET["msg"])) { $msg=urldecode($_GET["msg"]); } $year=isset($_GET["year"])?$_GET["year"]:""; $month=isset($_GET["month"])?$_GET["month"]:""; - // Nombre de ligne pour choix de produit/service prédéfinis $NBLINES=4; $form=new Form($db); - - /******************************************************************************/ /* Actions */ /******************************************************************************/ @@ -1012,7 +1009,6 @@ if ($_GET['propalid'] > 0) print ''; - /* * Action presend * @@ -1023,9 +1019,10 @@ if ($_GET['propalid'] > 0) print_titre($langs->trans('SendPropalByMail')); $liste[0]=" "; - foreach ($societe->contact_email_array() as $key=>$value) { - $liste[$key]=$value; - } + foreach ($societe->contact_email_array() as $key=>$value) + { + $liste[$key]=$value; + } // Créé l'objet formulaire mail include_once('../html.formmail.class.php'); @@ -1126,6 +1123,7 @@ else print "\n"; // Lignes des champs de filtre print '
'; + print ''; print ''; print '';