Nettoyage du code
This commit is contained in:
parent
f214c461c6
commit
5473c209a0
@ -24,8 +24,6 @@ llxHeader();
|
||||
|
||||
print_titre("Boites affichées");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($HTTP_POST_VARS["action"] == 'add')
|
||||
{
|
||||
|
||||
|
||||
@ -35,7 +35,6 @@ print '<TD>Note</TD>';
|
||||
print "<TD>Action</TD>";
|
||||
print "</TR>\n";
|
||||
|
||||
$db = new Db();
|
||||
$form = new Form($db);
|
||||
$typeconst=array('yesno','texte','chaine');
|
||||
if ($user->admin)
|
||||
|
||||
@ -30,8 +30,6 @@ if (!$user->admin)
|
||||
exit;
|
||||
}
|
||||
|
||||
$db = new Db();
|
||||
|
||||
$def = array();
|
||||
|
||||
// positionne la variable pour le nombre de rss externes
|
||||
|
||||
@ -29,8 +29,6 @@ if (!$user->admin)
|
||||
exit;
|
||||
}
|
||||
|
||||
$db = new Db();
|
||||
|
||||
// positionne la variable pour le test d'affichage de l'icone
|
||||
|
||||
$ficheinter_addon_var_pdf = FICHEINTER_ADDON_PDF;
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'add') {
|
||||
$auteur = new Auteur($db);
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="lower(e.nom)";
|
||||
}
|
||||
|
||||
@ -20,13 +20,10 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'addga') {
|
||||
$client = new Client($db);
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="lower(c.customers_lastname)";
|
||||
}
|
||||
|
||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "")
|
||||
{
|
||||
$sortfield="date_purchased";
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'add')
|
||||
{
|
||||
$livre = new Livre($db);
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "")
|
||||
{
|
||||
$sortfield="lower(l.title)";
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "")
|
||||
{
|
||||
$sortfield="lower(l.ref)";
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'add') {
|
||||
$newsletter = new Newsletter($db);
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="datec";
|
||||
}
|
||||
|
||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'add') {
|
||||
$editeur = new Editeur($db);
|
||||
|
||||
|
||||
@ -25,7 +25,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="lower(c.customers_lastname)";
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="lower(p.products_name)";
|
||||
}
|
||||
|
||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($id)
|
||||
{
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="o.orders_status ASC, o.date_purchased";
|
||||
}
|
||||
|
||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
||||
*
|
||||
*/
|
||||
|
||||
$db = new Db();
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
|
||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
||||
*
|
||||
*/
|
||||
|
||||
$db = new Db();
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
|
||||
@ -30,8 +30,6 @@ if ($user->societe_id > 0)
|
||||
$socidp = $user->societe_id;
|
||||
}
|
||||
|
||||
$db = new Db();
|
||||
|
||||
$html = new Form($db);
|
||||
|
||||
if ($action == 'valid')
|
||||
|
||||
@ -33,8 +33,6 @@ if ($user->societe_id > 0)
|
||||
$socid = $user->societe_id;
|
||||
}
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'note')
|
||||
{
|
||||
$sql = "UPDATE societe SET note='$note' WHERE idp=$socid";
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
require("./pre.inc.php3");
|
||||
require("./paiementfourn.class.php");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
*/
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
require("./pre.inc.php");
|
||||
require("./pnarticle.class.php");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
|
||||
if ($action == 'update' && !$cancel)
|
||||
{
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "")
|
||||
{
|
||||
$sortfield="lower(p.pn_title)";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user