noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
direct.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 require_once '../include/constant.php';
00022 require_once ("class_database.php");
00023 require_once 'class_user.php';
00024 $cn=new Database($_GET['gDossier']);
00025 global $g_user;
00026 $g_user=new User($cn);
00027 $g_user->Check();
00028 $g_user->check_dossier($_GET['gDossier']);
00029 $res=$cn->exec_sql("select code,description from get_profile_menu($1) where code ~* $2 or description ~* $3 limit 8",array($g_user->login,$_POST['acs'],$_POST['acs']));
00030 $nb=Database::num_row($res);
00031         echo "<ul>";
00032 for ($i = 0;$i< $nb;$i++)
00033 {
00034         $row=Database::fetch_array($res,$i);
00035         echo "<li>";
00036         echo $row['code'];
00037         echo '<span class="informal"> '.$row['description'].'</span></li>';
00038 }
00039         echo "</ul>";
00040 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations