Nettoyage du code

This commit is contained in:
Rodolphe Quiedeville 2003-08-25 17:39:21 +00:00
parent ebfad464e2
commit 259fbed339
13 changed files with 6 additions and 28 deletions

View File

@ -19,7 +19,6 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
llxHeader(); llxHeader();

View File

@ -19,7 +19,6 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
llxHeader(); llxHeader();

View File

@ -24,8 +24,6 @@ require("./pre.inc.php");
llxHeader(); llxHeader();
$db = new Db();
if ($action == 'add') { if ($action == 'add') {
$concert = new Concert($db); $concert = new Concert($db);

View File

@ -24,7 +24,6 @@ require("./pre.inc.php");
llxHeader(); llxHeader();
$db = new Db();
if ($sortfield == "") { if ($sortfield == "") {
$sortfield="c.date_concert"; $sortfield="c.date_concert";
} }

View File

@ -19,31 +19,26 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
llxHeader(); llxHeader();
if ($action == 'add') { if ($action == 'add')
{
$groupart = new Groupart($db); $groupart = new Groupart($db);
$groupart->nom = $nom; $groupart->nom = $nom;
$id = $groupart->create($user); $id = $groupart->create($user);
} }
if ($action == 'update') { if ($action == 'update') {
$groupart = new Groupart($db); $groupart = new Groupart($db);
$groupart->nom = $nom; $groupart->nom = $nom;
$groupart->update($id, $user); $groupart->update($id, $user);
} }
if ($action == 'updateosc') { if ($action == 'updateosc') {
$groupart = new Groupart($db); $groupart = new Groupart($db);
$result = $groupart->fetch($id); $result = $groupart->fetch($id);
$groupart->updateosc($user); $groupart->updateosc($user);
} }

View File

@ -19,16 +19,16 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
llxHeader(); llxHeader();
$db = new Db(); if ($sortfield == "")
if ($sortfield == "") { {
$sortfield="lower(g.nom)"; $sortfield="lower(g.nom)";
} }
if ($sortorder == "") { if ($sortorder == "")
{
$sortorder="ASC"; $sortorder="ASC";
} }

View File

@ -25,8 +25,6 @@ require("../service.class.php3");
llxHeader(); llxHeader();
$db = new Db();
if ($action == 'add') { if ($action == 'add') {
$service = new Service($db); $service = new Service($db);

View File

@ -24,7 +24,6 @@ require("./pre.inc.php3");
llxHeader(); llxHeader();
$db = new Db();
if ($sortfield == "") { if ($sortfield == "") {
$sortfield="lower(p.ref)"; $sortfield="lower(p.ref)";
} }

View File

@ -34,8 +34,6 @@ if ($user->societe_id > 0)
llxHeader(); llxHeader();
$db = new Db();
if ($action == 'add') if ($action == 'add')
{ {

View File

@ -33,11 +33,8 @@ if ($user->societe_id > 0)
$socid = $user->societe_id; $socid = $user->societe_id;
} }
llxHeader(); llxHeader();
$db = new Db();
if ($sortorder == "") { if ($sortorder == "") {
$sortorder="ASC"; $sortorder="ASC";
} }

View File

@ -29,7 +29,6 @@ if ($user->societe_id > 0)
} }
llxHeader(); llxHeader();
$db = new Db();
if ($HTTP_POST_VARS["action"] == 'add') if ($HTTP_POST_VARS["action"] == 'add')
{ {

View File

@ -32,8 +32,6 @@ if ($user->societe_id > 0)
llxHeader(); llxHeader();
$db = new Db();
if ($sortorder == "") if ($sortorder == "")
{ {
$sortorder="ASC"; $sortorder="ASC";

View File

@ -22,7 +22,6 @@
require("./pre.inc.php3"); require("./pre.inc.php3");
$db = new Db();
$form = new Form($db); $form = new Form($db);
if ($subaction == 'addrights' && $user->admin) if ($subaction == 'addrights' && $user->admin)