From e304c8ea0a572442b1ed25a5b7c6ae47c0359bd3 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 14 Sep 2013 08:44:37 +0000 Subject: [PATCH] Ajout du navigateur : amelioration, dans fenetre interieure --- html/ajax_misc.php | 3 ++ html/js/scripts.js | 37 ++++++++++++++++ .../{navigator.inc.php => ajax_navigator.php} | 10 +++-- include/pref.inc.php | 4 +- sql/upgrade.sql | 42 ++++++++++--------- 5 files changed, 70 insertions(+), 26 deletions(-) rename include/{navigator.inc.php => ajax_navigator.php} (92%) diff --git a/html/ajax_misc.php b/html/ajax_misc.php index d34fff071..24f2e3b54 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -574,6 +574,9 @@ EOF; case 'minrow': require_once 'ajax_min_row.php'; break; + case 'navigator': + require_once 'ajax_navigator.php'; + break; default: var_dump($_GET); } diff --git a/html/js/scripts.js b/html/js/scripts.js index 5cee7cd07..e59e0a055 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -1795,4 +1795,41 @@ function info_message (p_message) function info_hide() { $('info_div').style.display="none"; +} +/** + * Show the navigator in a internal window + * @returns {undefined} + */ +function ask_navigator() { + try { + waiting_box(); + removeDiv('navi_div') + var p_dossier=$('gDossier').value; + var queryString="gDossier="+p_dossier+"&op=navigator"; + var action = new Ajax.Request( + "ajax_misc.php" , + { + method:'get', parameters:queryString, + onFailure:ajax_misc_failure, + onSuccess:function(req){ + remove_waiting_box(); + add_div({id:'navi_div',style:'top:2em;left:2em;width:90%',cssclass:'inner_box'}); + $('navi_div').innerHTML=req.responseText; + try + { + req.responseText.evalScripts(); + sorttable.makeSortable($("navi_tb")); + } + catch(e) + { + alert("answer_box Impossible executer script de la reponse\n"+e.message); + } + + } + } + ); + } catch (e) { + info_message(e.getMessage); + } + } \ No newline at end of file diff --git a/include/navigator.inc.php b/include/ajax_navigator.php similarity index 92% rename from include/navigator.inc.php rename to include/ajax_navigator.php index d7a14e11d..d5b7b9a9b 100644 --- a/include/navigator.inc.php +++ b/include/ajax_navigator.php @@ -21,7 +21,7 @@ // Copyright Author Dany De Bontridder dany@alchimerys.be if ( ! defined ('ALLOWED')) die('Appel direct ne sont pas permis'); - +echo HtmlInput::title_box("Navigateur", "navi_div"); $sql=" select code, me_code,me_description,coalesce(me_description_etendue,me_description) as me_description_etendue,v1menu,v2menu,v3menu,p_type_display from @@ -33,16 +33,15 @@ $a_menu=$cn->get_array($sql,array($_SESSION['g_user'])); ?>
-

Navigateur

Vous permet d'accèder rapidement au menu qui vous intéresse, utiliser le filtre pour trouver plus rapidement

Filtre :

- +