noalyss Version-9
ajax_auto_anc_card.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4 /**
5 *@file
6 *@brief no used ??
7 */
8if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
10
11
12if ( isset($_REQUEST['pa_id']) )
13{
14 $res=$cn->exec_sql("select po_name,po_description
15 from poste_analytique
16 where
17 pa_id=$1
18 and (po_description ilike '%'|| $2||'%' or po_name ilike '%'|| $3 ||'%')
19 order by po_id limit 12",
20 array($_REQUEST['pa_id'],$_POST['anccard'],$_POST['anccard']));
21}
22else
23{
24 $res=$cn->exec_sql("select po_name,po_description
25 from poste_analytique
26 where
27 po_description ilike '%'|| $1 ||'%'
28 or po_name ilike '%'|| $2||'%'
29 order by po_id limit 12 ",
30 array($_POST['anccard'],$_POST['anccard']));
31}
33 echo "<ul>";
34for ($i = 0;$i< $nb;$i++)
35{
37 echo "<li>";
38 echo $row['po_name'];
39 echo '<span class="informal"> '.$row['po_description'].'</span></li>';
40}
41 echo "</ul>";
42?>
$_REQUEST['ac']
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
static connect()
$_POST['ac']
Definition: do.php:310