Nettoyage du code
This commit is contained in:
parent
ebfad464e2
commit
259fbed339
@ -19,7 +19,6 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -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)";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,8 +34,6 @@ if ($user->societe_id > 0)
|
|||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
|
|
||||||
if ($action == 'add')
|
if ($action == 'add')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -32,8 +32,6 @@ if ($user->societe_id > 0)
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortorder == "")
|
if ($sortorder == "")
|
||||||
{
|
{
|
||||||
$sortorder="ASC";
|
$sortorder="ASC";
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user