Nettoyage du code
This commit is contained in:
parent
ebfad464e2
commit
259fbed339
@ -19,7 +19,6 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'add') {
|
||||
$concert = new Concert($db);
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="c.date_concert";
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
|
||||
@ -25,8 +25,6 @@ require("../service.class.php3");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($action == 'add') {
|
||||
$service = new Service($db);
|
||||
|
||||
|
||||
@ -24,7 +24,6 @@ require("./pre.inc.php3");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
if ($sortfield == "") {
|
||||
$sortfield="lower(p.ref)";
|
||||
}
|
||||
|
||||
@ -34,8 +34,6 @@ if ($user->societe_id > 0)
|
||||
|
||||
|
||||
llxHeader();
|
||||
$db = new Db();
|
||||
|
||||
|
||||
if ($action == 'add')
|
||||
{
|
||||
|
||||
@ -33,11 +33,8 @@ if ($user->societe_id > 0)
|
||||
$socid = $user->societe_id;
|
||||
}
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($sortorder == "") {
|
||||
$sortorder="ASC";
|
||||
}
|
||||
|
||||
@ -29,7 +29,6 @@ if ($user->societe_id > 0)
|
||||
}
|
||||
|
||||
llxHeader();
|
||||
$db = new Db();
|
||||
|
||||
if ($HTTP_POST_VARS["action"] == 'add')
|
||||
{
|
||||
|
||||
@ -32,8 +32,6 @@ if ($user->societe_id > 0)
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($sortorder == "")
|
||||
{
|
||||
$sortorder="ASC";
|
||||
|
||||
@ -22,7 +22,6 @@
|
||||
|
||||
require("./pre.inc.php3");
|
||||
|
||||
$db = new Db();
|
||||
$form = new Form($db);
|
||||
|
||||
if ($subaction == 'addrights' && $user->admin)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user