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$
*
*/
require("./pre.inc.php");
llxHeader();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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