コード例 #1
0
ファイル: indexint.inc.php プロジェクト: hogsim/PMB
         $indexint->replace_form();
     } else {
         // routine de remplacement
         $indexint = new indexint($id, $id_pclass);
         $rep_result = $indexint->replace($n_indexint_id, $aut_link_save);
         if (!$rep_result) {
             include './autorites/indexint/indexint_list.inc.php';
         } else {
             error_message($msg[132], $rep_result, 1, "./autorites.php?categ=indexint&sub=indexint_form&id={$id}");
         }
     }
     break;
 case 'update':
     // mettre à jour
     $indexint = new indexint($id, $id_pclass);
     $indexint->update($indexint_nom, $indexint_comment, $id_pclass);
     include './autorites/indexint/indexint_list.inc.php';
     break;
 case 'indexint_form':
     // création
     if (!$id) {
         // affichage du form pour création
         $indexint = new indexint(0, $id_pclass);
         $indexint->show_form();
     } else {
         // affichage du form pour modification
         $indexint = new indexint($id, $id_pclass);
         $indexint->show_form($id);
     }
     break;
 case 'indexint_last':
コード例 #2
0
// affichage des membres de la page
if ($bt_ajouter == "no") {
    $bouton_ajouter = "";
} else {
    $bouton_ajouter = "<div class='row'><input type='button' class='bouton_small' onclick=\"document.location='{$base_url}&action=add&deb_rech='+document.forms['search_form'].f_user_input.value+'{$pclass_url}'\" value='{$msg['indexint_create_button']}'></div>";
}
switch ($action) {
    case 'add':
        $indexint_form = str_replace("!!deb_saisie!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $indexint_form);
        print $indexint_form;
        break;
    case 'update':
        $value = $indexint_nom;
        require_once "{$class_path}/indexint.class.php";
        $indexint = new indexint(0);
        $indexint->update($value, $indexint_comment, $id_pclass);
        $sel_search_form = str_replace("!!bouton_ajouter!!", $bouton_ajouter, $sel_search_form);
        $sel_search_form = str_replace("!!deb_rech!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $sel_search_form);
        if ((string) $exact == "") {
            $exact = 1;
        }
        if ($exact) {
            $sel_search_form = str_replace("!!check1!!", "checked", $sel_search_form);
            $sel_search_form = str_replace("!!check0!!", "", $sel_search_form);
        } else {
            $sel_search_form = str_replace("!!check1!!", "", $sel_search_form);
            $sel_search_form = str_replace("!!check0!!", "checked", $sel_search_form);
        }
        print $sel_search_form;
        print $jscript;
        show_results($dbh, $indexint_nom, 0, 0, $indexint->indexint_id);
コード例 #3
0
         if (!$rep_result) {
             include './autorites/indexint/indexint_list.inc.php';
         } else {
             error_message($msg[132], $rep_result, 1, "./autorites.php?categ=indexint&sub=indexint_form&id={$id}");
         }
     }
     break;
 case 'duplicate':
     $indexint = new indexint($id);
     $id = 0;
     $indexint->show_form(true);
     break;
 case 'update':
     // mettre à jour
     $indexint = new indexint($id, $id_pclass);
     $indexint->update($indexint_nom, $indexint_comment, $id_pclass, $authority_statut);
     include './autorites/indexint/indexint_list.inc.php';
     break;
 case 'indexint_form':
     // création
     if (!$id) {
         // affichage du form pour création
         $indexint = new indexint(0, $id_pclass);
         $indexint->show_form();
     } else {
         // affichage du form pour modification
         $indexint = new indexint($id, $id_pclass);
         $indexint->show_form($id);
     }
     break;
 case 'indexint_last':