Ejemplo n.º 1
0
session_start();
if ($_SESSION['GL_USER']['SESSIONID'] != session_id()) {
    header("location:dbuser.php?do=logout");
}
if ($_SESSION['GL_USER']['DROIT']['par_aff']['VISIBLE'] != 1) {
    header("location:accessinterdit.php?selectedTab=home");
}
require_once '../lib/phpfuncLib.php';
//All commun functions
require_once 'menus.php';
require_once 'funcaffectation.php';
//Top Menu
$selectedTab = $_GET['selectedTab'];
$menu = topMenus($selectedTab, $_SESSION['GL_USER']['DROIT']);
//Left Menu
$leftMenu = parametersMenus($selectedTab, $_SESSION['GL_USER']['DROIT']);
//DOIT MAJ
$droitMAJ = $_SESSION['GL_USER']['DROIT']['par_uti'];
//Rsest
if (isset($_GET['rst']) && $_GET['rst'] == 1) {
    $_SESSION['WHERE'] = "";
}
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 = "";
    $_SESSION['WHERE'] = "";
    isset($_POST['personnel']) && $_POST['personnel'] != '0' ? $where .= "compte.NUM_MLLE LIKE '" . addslashes(trim($_POST['personnel'])) . "' AND " : ($where .= "");
    isset($_POST['compte']) && $_POST['compte'] != '0' ? $where .= "compte.LOGIN \t LIKE '" . addslashes(trim($_POST['compte'])) . "' AND " : ($where .= "");
    if ($where != '') {
Ejemplo n.º 2
0
window.focus();
</script>

  </td>
  </tr>
</table>
<table width="100%" height="80%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="80%" align="left" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="5" height="48">&nbsp;</td>
        <td width="180" align="left" valign="top"><table width="200" border="0" cellpadding="1" cellspacing="0">
          <tr>
            <td width="180"><?php 
$selectedTab = $_GET['selectedTab'];
echo parametersMenus($selectedTab, $droit);
?>
</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="85%" height="80%" align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td><table width="100%" border="0" align="left" cellpadding="1" cellspacing="1">
          <tr>
            <td width="43"  bgcolor="#FFCC66" class="leftHeader"><?php 
echo getlang(106);
?>
 &rarr; Les découpages GL_USERistratives</td>
          </tr>