<?php

//Session
session_start();
if ($_SESSION['GL_USER']['SESSIONID'] != session_id()) {
    header("location:dbuser.php?do=logout");
}
require_once '../lib/phpfuncLib.php';
//All commun functions
require_once 'menus.php';
require_once 'funcdecoupage.php';
$droit = getDroit('PERSONNEL ,UTILISATEUR, GROUPE, LOG,	CATEGORIE, PRODUIT,	CONDITIONNEMENT, 	UNITE, BAREME, TYPELOCALITE, LOCALITE, TYPESERVICE, SERVICE, magasin, RESPONSABLE, FOURNISSEUR, TYPEBENEFICIAIRE, BENEFICIAIRE, AFFECTATION, EXERCICE, TYPEDOTATION, PARAMETRE', $_SESSION['GL_USER']['GROUPE']);
$droitTOPMENUS = getDroitTOPMENUS($_SESSION['GL_USER']['GROUPE']);
$droitMAJ = getDroitMAJ('LOCALITE', $_SESSION['GL_USER']['GROUPE']);
isset($_GET['page']) ? $page = $_GET['page'] : ($page = 1);
isset($_POST['viewLength']) ? $_SESSION['GL_USER']['ELEMENT'] = $_POST['viewLength'] : '';
//
if (isset($_GET['do']) && $_GET['do'] == "search") {
    $where = "";
    isset($_POST['grplocalite']) && $_POST['grplocalite'] != '0' ? $where .= "decoupageadm.ID_GRPLOC LIKE '" . addslashes(trim($_POST['grplocalite'])) . "' AND " : ($where .= "");
    isset($_POST['decoupage']) && $_POST['decoupage'] != '' ? $where .= "decoupageadm.LOC_NOM LIKE '" . addslashes(trim($_POST['decoupage'])) . "%' AND " : ($where .= "");
    isset($_POST['dependance']) && $_POST['dependance'] != '' ? $where .= "decoupageadm.LOC_LIEN LIKE '" . addslashes(trim($_POST['dependance'])) . "%' AND " : ($where .= "");
    if ($where != '') {
        $where = substr($where, 0, strlen($where) - 4);
        $_SESSION['WHERE'] = $where;
    } elseif ($_SESSION['WHERE'] != '') {
        $where = $_SESSION['WHERE'];
    }
    $link = 'decoupage.php?selectedTab=par&do=search';
    $retour = ligneCondecoupage($where, '', '', $page, $_SESSION['GL_USER']['ELEMENT']);
    //$where, $order, $sens, $page=1, $nelt
<?php

//Session
session_start();
if ($_SESSION['GL_USER']['SESSIONID'] != session_id()) {
    header("location:dbuser.php?do=logout");
}
require_once '../lib/phpfuncLib.php';
//All commun functions
require_once 'menus.php';
require_once 'funccategorie.php';
$droit = getDroit('GRP_PERSONNEL ,GRP_UTILISATEUR, GRP_GROUPE, GRP_LOG,	GRP_CATEGORIE, GRP_PRODUIT,	GRP_CONDITIONNEMENT, GRP_UNITE, GRP_BAREME, GRP_REGION, GRP_PROVINCE, GRP_TYPESERVICE, GRP_SERVICE, GRP_MAGASIN, GRP_RESPONSABLE, GRP_FOURNISSEUR, GRP_TYPEBENEFICIAIRE, GRP_BENEFICIAIRE, GRP_AFFECTATION, GRP_DONNANNUELLE, GRP_EXERCICE, GRP_TYPEDOTATION, GRP_PARAMETRE, GRP_DB', $_SESSION['GL_USER']['GROUPE']);
$droitTOPMENUS = getDroitTOPMENUS($_SESSION['GL_USER']['GROUPE']);
$droitMAJ = getDroitMAJ('GRP_COMMANDE', $_SESSION['GL_USER']['GROUPE']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="refresh" CONTENT="" >
<title><?php 
echo TITLE;
?>
</title>
<LINK REL="SHORTCUT ICON" HREF="../images/favicon0.ico">
<link href="../css/neutralcss.css" rel="stylesheet" type="text/css">
<link href="../lib/JQuerySpinBtn.css" rel="stylesheet" type="text/css">
<link href="../lib/jquery.alerts.css" rel="stylesheet" type="text/css">
<!-- Begin of JS code  -->
<script type="text/javascript" src="../lib/jquery.js"></script>
<script type="text/javascript" src="../lib/jslib.js"></script>
<?php

//Session
session_start();
if ($_SESSION['GL_USER']['SESSIONID'] != session_id()) {
    header("location:dbuser.php?do=logout");
}
require_once '../lib/phpfuncLib.php';
//All commun functions
require_once 'menus.php';
require_once 'funcprogramme.php';
unset($_SESSION['WHERE']);
$droit = getDroit('PROGRAMMATION, REVERSEMENT', $_SESSION['GL_USER']['GROUPE']);
$droitTOPMENUS = getDroitTOPMENUS($_SESSION['GL_USER']['GROUPE']);
$droitMAJ = getDroitMAJ('PROGRAMMATION', $_SESSION['GL_USER']['GROUPE']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="refresh" CONTENT="" >
<title><?php 
echo TITLE;
?>
</title>
<LINK REL="SHORTCUT ICON" HREF="../images/favicon0.ico">
<link href="../css/neutralcss.css" rel="stylesheet" type="text/css">
<link href="../lib/JQuerySpinBtn.css" rel="stylesheet" type="text/css">
<link href="../lib/jquery.alerts.css" rel="stylesheet" type="text/css">
<!-- Begin of JS code  -->
<script type="text/javascript" src="../lib/jquery.js"></script>
<?php

//Session
session_start();
if ($_SESSION['GL_USER']['SESSIONID'] != session_id()) {
    header("location:dbuser.php?do=logout");
}
if ($_SESSION['GL_USER']['DROIT']['par_uti']['MODIF'] != 1) {
    header("location:accessinterdit.php?selectedTab=home");
}
require_once '../lib/phpfuncLib.php';
//All commun functions
require_once 'menus.php';
require_once 'funcreconditionnement.php';
$droit = getDroit('GRP_DOTATION, GRP_DECLASSEMENT,GRP_TRANSFERT,GRP_RECONDITIONNEMENT, GRP_REPORT', $_SESSION['GL_USER']['GROUPE']);
$droitMAJ = getDroitMAJ('GRP_RECONDITIONNEMENT', $_SESSION['GL_USER']['GROUPE']);
isset($_SESSION['DATA_RECD']['xid']) ? $xid = $_SESSION['DATA_RECD']['xid'] : ($xid = '');
isset($_SESSION['DATA_RECD']['exercice']) ? $exercice = $_SESSION['DATA_RECD']['exercice'] : ($exercice = '');
isset($_SESSION['DATA_RECD']['datesortie']) ? $datesortie = $_SESSION['DATA_RECD']['datesortie'] : ($datesortie = '');
isset($_SESSION['DATA_RECD']['codereconditionnement']) ? $codereconditionnement = $_SESSION['DATA_RECD']['codereconditionnement'] : ($codereconditionnement = '');
isset($_SESSION['DATA_RECD']['raison']) ? $raison = $_SESSION['DATA_RECD']['raison'] : ($raison = '');
isset($_SESSION['DATA_RECD']['nbreLigne']) ? $nbreLigne = $_SESSION['DATA_RECD']['nbreLigne'] : ($nbreLigne = '');
isset($_SESSION['DATA_RECD']['ligne']) ? $data = $_SESSION['DATA_RECD']['ligne'] : ($data = array());
//Ligne
$ligne = ligneaddReconditionnement($nbreLigne, $data);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="refresh" CONTENT="" >
Example #5
0
<?php

//Session
session_start();
require_once '../lib/phpfuncLib.php';
//All commun functions
require_once 'topmenus.php';
require_once 'menus.php';
$droit = getDroit('GRP_ETAT', $_SESSION['GL_USER']['GROUPE']);
$droitTOPMENUS = getDroitTOPMENUS($_SESSION['GL_USER']['GROUPE']);
$droitMAJ = getDroitMAJ('GRP_ETAT', $_SESSION['GL_USER']['GROUPE']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="refresh" CONTENT="" >
<title><?php 
echo TITLE;
?>
</title>
<LINK REL="SHORTCUT ICON" HREF="../images/favicon0.ico">
<link href="../css/neutralcss.css" rel="stylesheet" type="text/css">
<link href="../lib/JQuerySpinBtn.css" rel="stylesheet" type="text/css">
<link href="../lib/jquery.alerts.css" rel="stylesheet" type="text/css">
<!-- Begin of JS code  -->
<script type="text/javascript" src="../lib/jquery.js"></script>
<script type="text/javascript" src="../lib/jslib.js"></script>
<script>
window.focus();
</script>