get_display_subtabs(); switch ($sub) { case 'sections': if (SESSrights & CMS_AUTH) { switch ($quoifaire) { case 'valider': for ($i = 0; $i < $nb_avis; $i++) { avis_sections::validate($valid_id_avis[$i]); } break; case 'invalider': for ($i = 0; $i < $nb_avis; $i++) { avis_sections::unvalidate($valid_id_avis[$i]); } break; case 'supprimer': for ($i = 0; $i < $nb_avis; $i++) { avis_sections::delete($valid_id_avis[$i]); } break; default: break; } $avis = new avis_sections(); print $avis->get_display_list_form(); } break; case 'articles': if (SESSrights & CMS_AUTH) { switch ($quoifaire) { case 'valider': for ($i = 0; $i < $nb_avis; $i++) { avis_articles::validate($valid_id_avis[$i]); } break; case 'invalider': for ($i = 0; $i < $nb_avis; $i++) { avis_articles::unvalidate($valid_id_avis[$i]); } break; case 'supprimer' : for ($i = 0; $i < $nb_avis; $i++) { avis_articles::delete($valid_id_avis[$i]); } break; default: break; } $avis = new avis_articles(); print $avis->get_display_list_form(); } break; case 'records': default: switch ($quoifaire) { case 'valider': for ($i = 0; $i < $nb_avis; $i++) { if (avis_records::check_records_edit_rights($valid_id_avis[$i])) { avis_records::validate($valid_id_avis[$i]); } } break; case 'invalider': for ($i = 0; $i < $nb_avis; $i++) { if (avis_records::check_records_edit_rights($valid_id_avis[$i])) { avis_records::unvalidate($valid_id_avis[$i]); } } break; case 'supprimer' : for ($i = 0; $i < $nb_avis; $i++) { if (avis_records::check_records_edit_rights($valid_id_avis[$i])) { avis_records::delete($valid_id_avis[$i]); } } break; default: break; } $avis = new avis_records(); print $avis->get_display_list_form(); break; } jscript_checkbox() ; ?>