Nettoyage code

This commit is contained in:
Laurent Destailleur 2008-02-16 14:39:42 +00:00
parent d8c8b17790
commit 9ba95190e2
3 changed files with 21 additions and 19 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -15,14 +15,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/admin/company.php \file htdocs/admin/company.php
\ingroup company
\brief Page d'accueil de l'espace administration/configuration \brief Page d'accueil de l'espace administration/configuration
\version $Revision$ \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -688,7 +687,8 @@ else
$var=!$var; $var=!$var;
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("FiscalMonthStart").'</td><td>'; print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("FiscalMonthStart").'</td><td>';
print monthArrayOrSelected($conf->global->SOCIETE_FISCAL_MONTH_START) . '</td></tr>'; $monthstart=! emptpy($conf->global->SOCIETE_FISCAL_MONTH_START)? $conf->global->SOCIETE_FISCAL_MONTH_START : 1;
print monthArrayOrSelected($monthstart) . '</td></tr>';
print "</table>"; print "</table>";

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -15,15 +15,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/admin/compta.php \file htdocs/admin/compta.php
\ingroup comptabilite \ingroup comptabilite
\brief Page de configuration du module comptabilit<EFBFBD> \brief Page de configuration du module comptabilit<EFBFBD>
\version $Revision$ \version $Id$
*/ */
require('./pre.inc.php'); require('./pre.inc.php');
@ -83,7 +81,7 @@ print '<br>';
print '<table class="noborder" width="100%">'; print '<table class="noborder" width="100%">';
// Cas du param<EFBFBD>tre COMPTA_MODE // Cas du parametre COMPTA_MODE
print '<form action="compta.php" method="post">'; print '<form action="compta.php" method="post">';
print '<input type="hidden" name="action" value="setcomptamode">'; print '<input type="hidden" name="action" value="setcomptamode">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
@ -100,7 +98,7 @@ print "</table>\n";
print "<br>\n"; print "<br>\n";
// Cas des autres param<EFBFBD>tres COMPTA_* // Cas des autres parametres COMPTA_*
$sql ="SELECT rowid, name, value, type, note"; $sql ="SELECT rowid, name, value, type, note";
$sql.=" FROM llx_const"; $sql.=" FROM llx_const";
$sql.=" WHERE name like 'COMPTA_%' and name not in ('COMPTA_MODE')"; $sql.=" WHERE name like 'COMPTA_%' and name not in ('COMPTA_MODE')";
@ -130,8 +128,13 @@ if ($result)
print '<input type="hidden" name="constname" value="'.$obj->name.'">'; print '<input type="hidden" name="constname" value="'.$obj->name.'">';
print '<tr '.$bc[$var].' class="value">'; print '<tr '.$bc[$var].' class="value">';
print '<td>'.stripslashes(nl2br($obj->note))."</td>\n";
// Param
print '<td>'.stripslashes(nl2br($obj->note));
print $obj->name;
print "</td>\n";
// Value
print '<td>'; print '<td>';
if ($obj->type == 'yesno') if ($obj->type == 'yesno')
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -16,14 +16,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/compta/bank/pre.inc.php \file htdocs/compta/bank/pre.inc.php
\ingroup compta \ingroup compta
\brief Fichier gestionnaire du menu compta banque \brief Fichier gestionnaire du menu compta banque
\version $Id$
*/ */
require_once("../../main.inc.php"); require_once("../../main.inc.php");