} $first = false; } $categ_list .= "</td>"; } else { $categ_list .= "<td> </td>"; } } if ($notice_count && $notice_count != 0) { $categ_list .= "<td onmousedown=\"document.location='./catalog.php?categ=search&mode=1&etat=aut_search&aut_type=categ&aut_id={$categ->categ_id}'\">" . $notice_count . "</a></td>"; } else { $categ_list .= "<td> </td>"; } $categ_list .= "</tr>"; } // fin while pmb_mysql_free_result($res); //Création barre de navigation $url_base = './autorites.php?categ=categories&sub=search&id_thes=' . $id_thes . '&user_input=' . rawurlencode(stripslashes($user_input)) . '&lg_search=' . $lg_search; if (!$last_param) { $nav_bar = aff_pagination($url_base, $nbr_lignes, $nb_per_page, $page, 10, false, true); } else { $nav_bar = ""; } // affichage du résultat list_categ(stripslashes($user_input), $categ_list, $nav_bar); } else { // la requête n'a produit aucun résultat categ_browser::search_form($parent); error_message($msg[211], str_replace('!!categ_cle!!', stripslashes($user_input), $msg["categ_no_categ_found_with"]), 0, './autorites.php?categ=categories&sub=search'); }
break; case "edit": $categ_name = ''; $categ_sets = array(); if ($id) { $the_categ = new connector_out_setcateg($id); if ($the_categ->error) { $id = 0; } else { $categ_name = $the_categ->name; $categ_sets = $the_categ->sets; } } show_categ_form($id, $categ_name, $categ_sets); break; case "update": if (update_setcateg_from_form()) { list_categ(); } break; case "del": if ($id) { $the_categ = new connector_out_setcateg($id); $the_categ->delete(); } list_categ(); break; default: list_categ(); break; }