Ejemplo n.º 1
0
             $loc_select .= ">" . htmlentities($value[1], ENT_QUOTES, $charset) . "</option>";
         }
         $loc_select .= "\n\t\t\t\t</select>\n\t\t\t</div>";
     }
     $groupexpl_form = str_replace('!!location!!', $loc_select, $groupexpl_form);
     print $groupexpl_form;
     break;
 case 'update':
     require_once "{$class_path}/groupexpl.class.php";
     $groupexpl = new groupexpl();
     $value['name'] = $name;
     $value['location'] = $f_loc;
     $value['statut_principal'] = $statut_principal;
     $value['statut_others'] = $statut_others;
     $value['comment'] = $comment;
     $groupexpl->save($value);
     $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);
     print $sel_search_form;
     print $jscript;
     show_results($dbh, $user_input, $nbr_lignes, $page);
     break;
 case "add_expl":
     if ($id_groupexpl) {
         print $jscript;
         $informations = array();
         $groupexpl = new groupexpl($id_groupexpl);
         $exemplaires = explode(",", $expl_list);
         $flag_error = 0;
         if (count($exemplaires)) {
             foreach ($exemplaires as $cb) {
Ejemplo n.º 2
0
     print $groupexpl->get_see_form();
     break;
 case "do_check":
     $groupexpl = new groupexpl($id);
     $groupexpl->do_check($form_cb_expl);
     print $groupexpl->get_see_form();
     break;
 case 'save':
     $groupexpl = new groupexpl($id);
     $data['name'] = $name;
     $data['comment'] = $comment;
     $data['location'] = $f_loc;
     $data['statut_principal'] = $statut_principal;
     $data['statut_others'] = $statut_others;
     $data['resp_expl_num'] = $resp_expl_num;
     $groupexpl->save($data);
     $groupexpls = new groupexpls();
     print $groupexpls->get_list();
     break;
 case 'delete':
     $groupexpl = new groupexpl($id);
     $groupexpl->delete();
     $groupexpls = new groupexpls();
     print $groupexpls->get_list();
     break;
 case "add_expl":
     $groupexpl = new groupexpl($id);
     $groupexpl->add_expl($form_cb_expl);
     print $groupexpl->get_form();
     break;
 case "search_expl":