php jrn - param c : control for storing the pcm_val -> javascript account - param l : control for storing the pcm_lib -> javascript label - param ctl : the node to update (ipopup) - param q : the acc_query -> javascript query * - ctl (to return) * * */ require_once ("ac_common.php"); require_once('class_acc_ledger.php'); require_once ('class_database.php'); require_once('function_javascript.php'); require_once('class_acc_account_ledger.php'); extract($_REQUEST); $var=array('gDossier','op','ctl'); $cont=0; /* check if mandatory parameters are given */ foreach ($var as $v) { if ( ! isset ($_REQUEST [$v] ) ) { echo "$v is not set "; $cont=1; } } set_language(); if ( $cont != 0 ) exit(); $cn=new Database(dossier::id()); include_once ("class_user.php"); $User=new User($cn); $User->Check(); if ($User->get_ledger_access(dossier::id()) == 'X') exit(); $xml=""; switch ($op) { /*---------------------------------------------------------------------- * Show the form and the result * ----------------------------------------------------------------------*/ case "sf": $ipopup=$ctl; $attr=sprintf('this.ctl=\'%s\';',$ipopup); $ctl.='_content'; $it=new IText('acc_query'); $it->size=30; $it->value=(isset($q))?$q:''; $str_poste=$it->input(); $str_submit=HtmlInput::submit('sf',_('Recherche')); $r=''; $r.='
$html
EOF;