#168 recherche imp. analytique anc
This commit is contained in:
parent
c2c7fa2ed3
commit
c56efa7671
3 changed files with 33 additions and 3 deletions
|
|
@ -531,6 +531,8 @@ EOF;
|
|||
require_once 'ajax_update_payment.php';
|
||||
break;
|
||||
case 'openancsearch':
|
||||
case 'resultancsearch':
|
||||
require_once('ajax_anc_search.php');
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 '<FORM METHOD="GET" onsubmit="search_anc_form(this);return false">';
|
||||
$texte=new IText();
|
||||
echo '<span>'._('Recherche').':';
|
||||
|
||||
$texte=new IText();
|
||||
$texte->value=HtmlInput::default_value('label',"", $_GET);
|
||||
echo $texte->input('label');
|
||||
echo '</span>';
|
||||
echo dossier::hidden();
|
||||
|
|
@ -77,7 +81,7 @@ if ( isset($_REQUEST['go']))
|
|||
echo '<table>';
|
||||
foreach ($array as $line)
|
||||
{
|
||||
$button->javascript=sprintf("set_inparent('%s','%s');window.close();",
|
||||
$button->javascript=sprintf("$('%s').value='%s'",
|
||||
$_REQUEST['c1'],
|
||||
$line['po_name']);
|
||||
echo '<tr>'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue