Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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 ?>