Ajout PU pour detail ach & ven

ajout ajax pour direct form
This commit is contained in:
Dany De Bontridder 2011-11-13 17:28:49 +00:00
parent c16c32ca48
commit f2cbfd77d3
8 changed files with 122 additions and 133 deletions

19
html/direct.php Normal file
View file

@ -0,0 +1,19 @@
<?
require_once ("class_database.php");
require_once 'class_user.php';
$cn=new Database($_GET['gDossier']);
$user=new User($cn);
$user->Check();
$user->check_dossier($_GET['gDossier']);
$res=$cn->exec_sql("select code,description from get_profile_menu($1) where code ~* $2 limit 8",array($user->login,$_POST['acs']));
$nb=Database::num_row($res);
echo "<ul>";
for ($i = 0;$i< $nb;$i++)
{
$row=Database::fetch_array($res,$i);
echo "<li>";
echo $row['code'];
echo '<span class="informal"> '.$row['description'].'</span></li>';
}
echo "</ul>";
?>