* @author Claire Figueras
* @author Jimmy Cédric Ndoumba
*/
include("session.php");
if(file_exists($_SESSION['config']['lang'].'.php'))
{
include($_SESSION['config']['lang'].'.php');
}
else
{
$_SESSION['error'] = "Language file missing...
";
}
require_once("class_functions.php");
require_once("class_db.php");
$func = new functions();
$db = new dbquery();
$db->connect();
$time = $db->get_session_time_expire();
?>
query("UPDATE ".$_SESSION['tablename']['notes']." SET
INFO = '".addslashes($_POST['notes'])."', DATE = '".date("Y")."-".date("m")."-".date("d")." ".date("H:i:s")."', ACCESS_USERS = '".$accessUsersValue."', ACCESS_SERVICES = '".$accessServicesValue."'
WHERE ID = ".$s_id);
//Mise � jour de l'historique
if($_SESSION['history']['notesup'])
{
require_once("class_history.php");
$hist = new history();
$hist->add($_SESSION['tablechoice'], $resid ,"UP", _NOTE_UPDATED);
}
?>
query("select ID, RECORD_ID, INFO, DATE, USER_ID, ACCESS_SERVICES, ACCESS_USERS
from ".$_SESSION['tablename']['notes']."
where ID= ".$s_id." and USER_ID = '".$_SESSION['user']['UserId']."'");
//$db->show();
$line = $db->fetch_object();
?>
ACCESS_USERS);
if($line->ACCESS_SERVICES == 'not'){echo 'checked="checked"';} ?> />