X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins%2Fauto%2Fcouteau_suisse%2Fcouteau_suisse%2Foutils%2Fglossaire_action_rapide.php;fp=www%2Fplugins%2Fauto%2Fcouteau_suisse%2Fcouteau_suisse%2Foutils%2Fglossaire_action_rapide.php;h=291d635e2420daf29c4ddae052dadd9b87f5eea6;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hp=0000000000000000000000000000000000000000;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c;p=velocampus%2Fweb%2Fwww.git diff --git a/www/plugins/auto/couteau_suisse/couteau_suisse/outils/glossaire_action_rapide.php b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/glossaire_action_rapide.php new file mode 100644 index 0000000..291d635 --- /dev/null +++ b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/glossaire_action_rapide.php @@ -0,0 +1,51 @@ +mot'.$gi['id_mot'].']'; + $b = '['.$gj['titre'].'->mot'.$gj['id_mot'].']'; + $res[] = "• "._T('couteauprive:glossaire_erreur', array('mot1'=>$a, 'mot2'=>$b))."\n_ "; + } + } + if(count($res)) return propre(join('', $res)._T('couteauprive:glossaire_inverser')); + return ''; +} + + +function glossaire_action_rapide() { + if(_request('test_bd')) { + $info = glossaire_verifie($count); + $info = $info + ?('
'.$info.'
') + :('
'._T('couteauprive:glossaire_ok', array('nb'=>$count)).'
'); + } else $info = ''; + return ajax_action_auteur('action_rapide', 'test', 'admin_couteau_suisse', "arg=glossaire|description_outil&cmd=descrip#cs_action_rapide", + "\n
"._T('couteau:test_base')."
$info"); +} + +// fonction {$outil}_{$arg}_action() appelee par action/action_rapide.php +function glossaire_test_action() { + // lancer la verification des mots du glossaire + redirige_vers_exec(array('test_bd' => 1)); +} + +?> \ No newline at end of file