35if ( ! defined(
'ALLOWED')) die (
_(
'Non authorisé'));
37require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
38require_once NOALYSS_INCLUDE.
'/lib/function_javascript.php';
39mb_internal_encoding(
"UTF-8");
57 $attr=sprintf(
'this.ctl=\'%s\';',$ipopup);
59 $it=
new IText(
'acc_query');
61 $it->value=(isset(
$q))?
$q:
'';
62 $str_poste=$it->input();
68 $r.=
'<form id="sp" method="get" onsubmit="'.$attr.
'search_get_poste(this);return false;">';
70 require_once NOALYSS_TEMPLATE.
'/account_search.php';
71 $r.=ob_get_contents();
73 $r.=dossier::hidden();
74 $r.=(isset (
$c))?HtmlInput::hidden(
'account',
$c):
"";
75 $r.=(isset (
$l))?HtmlInput::hidden(
'label',
$l):
"";
76 $r.=(isset ($j))?HtmlInput::hidden(
'jrn',$j):
"";
77 $r.=(isset ($nover))?HtmlInput::hidden(
'nover',
'1'):
"";
78 $r.=(isset ($nosearch))?HtmlInput::hidden(
'nosearch',
'1'):
"";
79 $r.=(isset ($bracket))?HtmlInput::hidden(
'bracket',
'1'):
"";
84 select pcm_val,pcm_lib,array_to_string(array_agg(j_qcode) , ',') as acode
85 from tmp_pcmn left join vw_poste_qcode on (j_poste=pcm_val) ";
88 if ( isset($j) && $j > 0 &&
isNumber($j))
95 $sql.=
" $sep (".$fd_id.
')';
103 $sql.=sprintf(
" $sep ( pcm_val::text like '%s%%' or pcm_lib::text ilike '%%%s%%') ",
106 $sql.=
' group by pcm_val,pcm_lib,pcm_val_parent, pcm_type order by pcm_val::text limit 50';
118 if ( isset($bracket))
120 $pcm_val=
'['.$pcm_val.
']';
125 $str=sprintf(
"$('%s').value=$('%s').value+' '+'%s';",
131 $str=sprintf(
"$('%s').value='%s';",
137 $str.=sprintf(
"set_value('%s',g('%s').innerHTML);",
141 $str.=
"removeDiv('search_account');";
146 require_once NOALYSS_TEMPLATE.
'/account_result.php';
147 $r.=ob_get_contents();
155if (headers_sent() && DEBUGNOALYSS > 0) {
160 header(
'Content-type: text/xml; charset=UTF-8');
164<?xml version=
"1.0" encoding=
"UTF-8"?>
noalyss_strlentrim($p_string)
sql_string($p_string)
Fix the problem with the quote char for the database.
global $g_user
if no group available , then stop
if(headers_sent() &&DEBUGNOALYSS > 0) $html
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
_("actif, passif,charge,...")
Manage the account from the table jrn, jrnx or tmp_pcmn.
for($e=0; $e< count($afiche); $e++) exit
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...