*/ include("session.php"); require_once("class_functions.php"); require_once("class_db.php"); if(file_exists($_SESSION['config']['lang'].'.php')) { include($_SESSION['config']['lang'].'.php'); } else { $_SESSION['error'] = "Language file missing...
"; } $func = new functions(); $db = new dbquery(); $db->connect(); $time = $db->get_session_time_expire(); //The Fileplan if(isset($_REQUEST['fileplan_id'])) { $fileplanId = addslashes($func->wash($_REQUEST['fileplan_id'], "no", _FILEPLAN)); } else { $fileplanId = ""; } //The folder if(!isset($_GET['folder_id']) || empty($_GET['folder_id'])) { $_SESSION['error'] = _SELECT_FOLDER_FIRST; } else { $s_id = addslashes($func->wash($_GET['folder_id'], "no", _THE_FOLDER)); } //The action $action = $_GET['action']; ?> <?php echo _MODIFY_FOLDER;?>
 
wash($_POST['folder_id'], "no", _ID); $cleanDescription = $func->wash($_POST['folders'], "no", _WORDING); $folders->upFolder($_POST['folder_id'], $cleanDescription); $folders->addScope($_POST['folder_id']); $link = "index.php?page=fileplan_perso_up&id=".$fileplanId."&action=".$_POST['action']."&folder_id=".$_POST['folder_id']; ?> query("select DESCRIPTION from ".$_SESSION['tablename']['folders']." where FOLDER_ID = ".$s_id); $res = $db->fetch_object(); $description = stripslashes($res->DESCRIPTION); //Scope $values = array(); $rwValues = array(); $itemValues = $folders->getScope($s_id); $scopeId = $itemValues['scope']; $values = $itemValues['values']; $rwValues = $itemValues['readWrite']; //Select values in form $usersVisibility = 'hidden'; $usersDisplay = 'none'; $departementVisibility = 'hidden'; $departementDisplay = 'none'; $readWriteVisibility = 'hidden'; $readWriteDisplay = 'none'; if ($scopeId =='ALL') {$allIsChecked = 'checked="checked" '; $readWriteVisibility = 'visible'; $readWriteDisplay = 'block';} elseif ($scopeId =='ENTITY') {$entityIsChecked = 'checked="checked" '; $readWriteVisibility = 'visible'; $readWriteDisplay = 'block';} elseif ($scopeId =='ENTITIES') {$entitiesIsChecked = 'checked="checked" '; $departementVisibility = 'visible'; $departementDisplay = 'block';} elseif ($scopeId =='USER') {$usersIsChecked = 'checked="checked" '; $usersVisibility = 'visible'; $usersDisplay = 'block';} elseif($scopeId =='NONE') {$noneIsChecked = 'checked="checked" ';} ?>
DESCRIPTION;?>


:

onclick="showHide('read_write', 'departement', 'users', '');" />

onclick="showHide('read_write', 'departement', 'users', '');" />

id="dep" onclick="showHide('read_write', 'departement', 'users', 'departement');" />

id="user" onclick="showHide('read_write', 'departement', 'users', 'users');" />

onclick="showHide('read_write', '', '', '');" disabled />

value="Y" />

>

query("SELECT u.USER_ID as ID, u.LASTNAME as NOM, u.FIRSTNAME as PRENOM FROM ".$_SESSION['tablename']['users']." u WHERE u.DEPARTMENT IN (".$strServicesID.") AND u.USER_ID <> '".$_SESSION['user']['UserId']."' order by u.LASTNAME asc"); $color = ' class="col"'; while($res = $db->fetch_object()) { if($color == ' class="col"') { $color = ''; } else { $color = ' class="col"'; } ?> >
ID;?> NOM;?> PRENOM; ?>