diff --git a/html/ajax_misc.php b/html/ajax_misc.php index 6337fa401..570b4e98c 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -531,6 +531,8 @@ EOF; require_once 'ajax_update_payment.php'; break; case 'openancsearch': + case 'resultancsearch': require_once('ajax_anc_search.php'); break; + } \ No newline at end of file diff --git a/html/js/anc_script.js b/html/js/anc_script.js index 318aa4c49..001d7f0dd 100644 --- a/html/js/anc_script.js +++ b/html/js/anc_script.js @@ -194,7 +194,7 @@ function search_ca (p_dossier,p_target,p_source) onSuccess:function(req){ try{ remove_waiting_box(); - var pos=fixed_position(250,150)+";width:30%"; + var pos=fixed_position(250,150)+";width:30%;height:50%"; add_div({ id:"searchanc", drag:1, @@ -211,6 +211,30 @@ function search_ca (p_dossier,p_target,p_source) ); } +function search_anc_form(obj) +{ + var qs="op=resultancsearch&ctl=searchanc&gDossier="+obj.gDossier; + qs+=obj.serialize(false); + waiting_box(); + var action=new Ajax.Request ( 'ajax_misc.php', + { + method:'get', + parameters:qs, + onFailure:null, + onSuccess:function(req){ + try{ + remove_waiting_box(); + $('searchanc').innerHTML=req.responseText; + req.responseText.evalScripts(); + + } catch(e){ + alert(e.message); + } + } + } + ); + return false; +} function caod_checkTotal() { var ie4=false; diff --git a/include/ajax_anc_search.php b/include/ajax_anc_search.php index 8829e5004..dc0b7229b 100644 --- a/include/ajax_anc_search.php +++ b/include/ajax_anc_search.php @@ -38,10 +38,14 @@ require_once ('class_anc_account.php'); require_once ('class_anc_plan.php'); require_once('function_javascript.php'); +echo HtmlInput::title_box("Recherche activité", $ctl); + //------------- FORM ---------------------------------- echo '