コード例 #1
0
ファイル: stat_query.class.php プロジェクト: bouchra012/PMB
 function proceed()
 {
     global $dbh;
     global $msg, $id;
     global $pmb_procs_force_execution, $force_exec;
     switch ($this->action) {
         case 'configure':
             $hp = new parameters($this->id_query, "statopac_request");
             $hp->show_config_screen("admin.php?categ=opac&sub=stat&section=view_list&act=update_config&id_req={$this->id_query}", "admin.php?categ=opac&sub=stat&section=view_list");
             break;
         case 'update_config':
             $hp = new parameters($this->id_query, "statopac_request");
             $hp->update_config("admin.php?categ=opac&sub=stat&section=view_list");
             break;
         case 'update_request':
             //Ajout/Modification d'une requete
             if (!$this->id_vue_liee) {
                 $this->id_vue_liee = $this->get_vue_associee($this->id_query);
             }
             print $this->do_form_request($this->id_query, $this->id_vue_liee);
             break;
         case 'save_request':
             if (!$this->id_vue_liee) {
                 $this->id_vue_liee = $this->get_vue_associee($this->id_query);
             }
             $this->save_request($this->id_query, $this->id_vue_liee);
             break;
         case 'suppr_request':
             //Suppression d'une vue
             $this->delete_request($this->id_query);
             break;
         case 'final':
             $hp = new parameters($this->id_query, "statopac_request");
             if (preg_match_all("|!!(.*)!!|U", $hp->proc->requete, $query_parameters)) {
                 $hp->get_final_query();
                 $code = $hp->final_query;
                 $id = $this->id_query;
             }
             include "./admin/opac/stat/execute.inc.php";
             break;
         case 'exec_req':
             // form pour params et validation
             $this->run_form($this->id_query, $dbh);
             break;
         default:
             break;
     }
 }
コード例 #2
0
ファイル: proc.inc.php プロジェクト: bouchra012/PMB
                    break;
            }
            $parameters_display .= '</tr>';
        }
        $parameters_display .= '</table>';
        $admin_proc_view_remote = str_replace('!!parameters_content!!', $parameters_display, $admin_proc_view_remote);
    }
    $admin_proc_view_remote = str_replace('!!parameters_title!!', "", $admin_proc_view_remote);
    $admin_proc_view_remote = str_replace('!!parameters_content!!', "", $admin_proc_view_remote);
    print confirmation_delete("./admin.php?categ=proc&sub=proc&action=del&id=");
    print $admin_proc_view_remote;
}
switch ($action) {
    case 'configure':
        $hp = new parameters($id_query, "procs");
        $hp->show_config_screen("admin.php?categ=proc&sub=proc&action=update_config", "admin.php?categ=proc&sub=proc");
        break;
    case 'update_config':
        $hp = new parameters($id_query, "procs");
        $hp->update_config("admin.php?categ=proc&sub=proc");
        break;
    case 'final':
        $hp = new parameters($id_query, "procs");
        $param_proc_hidden = "";
        if (preg_match_all("|!!(.*)!!|U", $hp->proc->requete, $query_parameters)) {
            $hp->get_final_query();
            $code = $hp->final_query;
            $id = $id_query;
            $param_proc_hidden = $hp->get_hidden_values();
            //Je mets les paramêtres en champ caché en cas de forçage
            $param_proc_hidden .= "<input type='hidden' name='id_query'  value='" . $id_query . "' />";
コード例 #3
0
ファイル: procs.inc.php プロジェクト: bouchra012/PMB
}
function run_form($id, $dbh)
{
    global $msg;
    global $charset;
    $hp = new parameters($id, "empr_caddie_procs");
    if (preg_match_all("|!!(.*)!!|U", $hp->proc->requete, $query_parameters)) {
        $hp->gen_form("circ.php?categ=caddie&sub=gestion&quoi=procs&action=final&id={$id}");
    } else {
        echo "<script>document.location='circ.php?categ=caddie&sub=gestion&quoi=procs&action=final&id={$id}'</script>";
    }
}
switch ($action) {
    case 'configure':
        $hp = new parameters($id_query, "empr_caddie_procs");
        $hp->show_config_screen("circ.php?categ=caddie&sub=gestion&quoi=procs&action=update_config", "circ.php?categ=caddie&sub=gestion&quoi=procs");
        break;
    case 'update_config':
        $hp = new parameters($id_query, "empr_caddie_procs");
        $hp->update_config("circ.php?categ=caddie&sub=gestion&quoi=procs");
        break;
    case 'final':
        $hp = new parameters($id_query, "empr_caddie_procs");
        if (preg_match_all("|!!(.*)!!|U", $hp->proc->requete, $query_parameters)) {
            $hp->get_final_query();
            $code = $hp->final_query;
            $id = $id_query;
        }
        include "./circ/caddie/gestion/execute.inc.php";
        break;
    case 'execute':