Remplacement de garradin par paheko
This commit is contained in:
parent
9a67da0ed5
commit
d46d7b00dc
BIN
materiels.tar.gz
BIN
materiels.tar.gz
Binary file not shown.
@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
|
|||||||
state the exclusion of warranty; and each file should have at least
|
state the exclusion of warranty; and each file should have at least
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
garradin-plugin-materiels
|
paheko-plugin-materiels
|
||||||
Copyright (C) 2021 JBthePenguin
|
Copyright (C) 2021 JBthePenguin
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
$session->requireAccess($session::SECTION_USERS, $session::ACCESS_WRITE);
|
$session->requireAccess($session::SECTION_USERS, $session::ACCESS_WRITE);
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
// create variable with Category class
|
// create variable with Category class
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Category;
|
use Paheko\Plugin\Materiels\Category;
|
||||||
|
|
||||||
$cat = new Category;
|
$cat = new Category;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// check if add form is submitted
|
// check if add form is submitted
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
|
|
||||||
// get the category requested and his name
|
// get the category requested and his name
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
// edit a specific category
|
// edit a specific category
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the category requested
|
// get the category requested
|
||||||
$cat_requested = $cat->get((int) qg('id'));
|
$cat_requested = $cat->get((int) qg('id'));
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the category selected
|
// get the category selected
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
// historic of movements (entry and output) for a specific Equipment
|
// historic of movements (entry and output) for a specific Equipment
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Plugin\Materiels\Category;
|
use Paheko\Plugin\Materiels\Category;
|
||||||
use Garradin\Plugin\Materiels\Movement;
|
use Paheko\Plugin\Materiels\Movement;
|
||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
// lists of all equiments owned, no owned and just listed
|
// lists of all equiments owned, no owned and just listed
|
||||||
// ordered by category for each one.
|
// ordered by category for each one.
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
if ($plugin->needUpgrade())
|
if ($plugin->needUpgrade())
|
||||||
{
|
{
|
||||||
@ -12,7 +12,7 @@ if ($plugin->needUpgrade())
|
|||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
|
|
||||||
$eqmt = new Equipment;
|
$eqmt = new Equipment;
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
// edit a specific equipment
|
// edit a specific equipment
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/_inc.php';
|
require_once __DIR__ . '/_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Plugin\Materiels\Category;
|
use Paheko\Plugin\Materiels\Category;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the equipment requested
|
// get the equipment requested
|
||||||
$eqmt = new Equipment;
|
$eqmt = new Equipment;
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
// create variable with Movement class
|
// create variable with Movement class
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Movement;
|
use Paheko\Plugin\Materiels\Movement;
|
||||||
|
|
||||||
$mvt = new Movement;
|
$mvt = new Movement;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
// add entry for materiel not listed
|
// add entry for materiel not listed
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Category;
|
use Paheko\Plugin\Materiels\Category;
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
// add entry for materiel listed
|
// add entry for materiel listed
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// check if add form is submitted
|
// check if add form is submitted
|
||||||
$csrf_key = 'add_entry';
|
$csrf_key = 'add_entry';
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
// add entry for materiel in return
|
// add entry for materiel in return
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the list of equipments for possible return (loan or rent)
|
// get the list of equipments for possible return (loan or rent)
|
||||||
$eqmt = new Equipment;
|
$eqmt = new Equipment;
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
// delete a specific entry
|
// delete a specific entry
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the entry to delete
|
// get the entry to delete
|
||||||
$entry_to_delete = $mvt->get((int) qg('id'));
|
$entry_to_delete = $mvt->get((int) qg('id'));
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
// add output for a borrowed equipment
|
// add output for a borrowed equipment
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
$eqmt = new Equipment;
|
$eqmt = new Equipment;
|
||||||
$selected_eqmt = "";
|
$selected_eqmt = "";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
// add output for an available equipment
|
// add output for an available equipment
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the list of all available equipments ordered by category
|
// get the list of all available equipments ordered by category
|
||||||
$eqmt = new Equipment;
|
$eqmt = new Equipment;
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
// delete a specific entry
|
// delete a specific entry
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
require_once __DIR__ . '/../_inc.php';
|
require_once __DIR__ . '/../_inc.php';
|
||||||
|
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
use Garradin\Utils;
|
use Paheko\Utils;
|
||||||
|
|
||||||
// get the output to delete
|
// get the output to delete
|
||||||
$output_to_delete = $mvt->get((int) qg('id'));
|
$output_to_delete = $mvt->get((int) qg('id'));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
$db = DB::getInstance();
|
$db = DB::getInstance();
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin\Plugin\Materiels;
|
namespace Paheko\Plugin\Materiels;
|
||||||
|
|
||||||
use Garradin\DB;
|
use Paheko\DB;
|
||||||
|
|
||||||
class Category
|
class Category
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin\Plugin\Materiels;
|
namespace Paheko\Plugin\Materiels;
|
||||||
|
|
||||||
use Garradin\DB;
|
use Paheko\DB;
|
||||||
use Garradin\Plugin\Materiels\Category;
|
use Paheko\Plugin\Materiels\Category;
|
||||||
|
|
||||||
class Equipment
|
class Equipment
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin\Plugin\Materiels;
|
namespace Paheko\Plugin\Materiels;
|
||||||
|
|
||||||
use Garradin\DB;
|
use Paheko\DB;
|
||||||
use Garradin\Plugin\Materiels\Equipment;
|
use Paheko\Plugin\Materiels\Equipment;
|
||||||
|
|
||||||
class Movement
|
class Movement
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Garradin;
|
namespace Paheko;
|
||||||
|
|
||||||
$db = DB::getInstance();
|
$db = DB::getInstance();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user