Nettoyage du code

This commit is contained in:
Rodolphe Quiedeville 2005-08-21 19:07:13 +00:00
parent 3410c20160
commit 2086ba8458

View File

@ -30,16 +30,16 @@
require("./pre.inc.php"); require("./pre.inc.php");
$langs->load('companies');
$langs->load('propal');
$langs->load('compta');
$langs->load('bills');
$user->getrights('propale'); $user->getrights('propale');
if (!$user->rights->propale->lire) if (!$user->rights->propale->lire)
accessforbidden(); 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->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php');
if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php');
require_once('./propal_model_pdf.class.php'); require_once('./propal_model_pdf.class.php');
@ -59,14 +59,11 @@ if (isset($_GET["msg"])) { $msg=urldecode($_GET["msg"]); }
$year=isset($_GET["year"])?$_GET["year"]:""; $year=isset($_GET["year"])?$_GET["year"]:"";
$month=isset($_GET["month"])?$_GET["month"]:""; $month=isset($_GET["month"])?$_GET["month"]:"";
// Nombre de ligne pour choix de produit/service prédéfinis // Nombre de ligne pour choix de produit/service prédéfinis
$NBLINES=4; $NBLINES=4;
$form=new Form($db); $form=new Form($db);
/******************************************************************************/ /******************************************************************************/
/* Actions */ /* Actions */
/******************************************************************************/ /******************************************************************************/
@ -1012,7 +1009,6 @@ if ($_GET['propalid'] > 0)
print '</td></tr></table>'; print '</td></tr></table>';
/* /*
* Action presend * Action presend
* *
@ -1023,7 +1019,8 @@ if ($_GET['propalid'] > 0)
print_titre($langs->trans('SendPropalByMail')); print_titre($langs->trans('SendPropalByMail'));
$liste[0]="&nbsp;"; $liste[0]="&nbsp;";
foreach ($societe->contact_email_array() as $key=>$value) { foreach ($societe->contact_email_array() as $key=>$value)
{
$liste[$key]=$value; $liste[$key]=$value;
} }
@ -1126,6 +1123,7 @@ else
print "</tr>\n"; print "</tr>\n";
// Lignes des champs de filtre // Lignes des champs de filtre
print '<form method="get" action="propal.php">'; print '<form method="get" action="propal.php">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print '<td class="liste_titre" valign="right">'; print '<td class="liste_titre" valign="right">';
print '<input class="flat" size="10" type="text" name="search_ref" value="'.$_GET['search_ref'].'">'; print '<input class="flat" size="10" type="text" name="search_ref" value="'.$_GET['search_ref'].'">';