You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
756 B

  1. <?php
  2. if (!defined('_ECRIRE_INC_VERSION')) return;
  3. function formulaires_spipr_educ_ajout_bloc_charger_dist($page) {
  4. $valeurs = array (
  5. 'page' => $page
  6. );
  7. return $valeurs;
  8. }
  9. function formulaires_spipr_educ_ajout_bloc_traiter_dist($page) {
  10. if ((_request('nom_bloc', $_POST)!='') AND (_request('nom_secteur', $_POST)!='')) {
  11. include_spip('inc/spipr_educ_deplacement_bloc');
  12. spipr_educ_ajout_bloc_personnel($page,$_POST['nom_secteur'],$_POST['nom_bloc']);
  13. echo "<script type='text/javascript'>if (window.jQuery) ajaxReload('".$page."_"._request('nom_secteur', $_POST)."');</script>";
  14. $res['message_ok'] = _T('config_info_enregistree');
  15. }
  16. else {$res['message_erreur'] = 'Configuration non enregistrée';}
  17. return $res;
  18. }
  19. ?>