[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4386 - in phpcompta/trunk: html html/js include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4386 - in phpcompta/trunk: html html/js include |
Date: |
Fri, 18 Nov 2011 11:24:19 +0100 (CET) |
Author: danydb
Date: 2011-11-18 11:24:18 +0100 (Fri, 18 Nov 2011)
New Revision: 4386
Modified:
phpcompta/trunk/html/ajax_misc.php
phpcompta/trunk/html/js/anc_script.js
phpcompta/trunk/include/ajax_anc_search.php
Log:
#168 recherche imp. analytique anc
Modified: phpcompta/trunk/html/ajax_misc.php
===================================================================
--- phpcompta/trunk/html/ajax_misc.php 2011-11-18 09:50:18 UTC (rev 4385)
+++ phpcompta/trunk/html/ajax_misc.php 2011-11-18 10:24:18 UTC (rev 4386)
@@ -531,6 +531,8 @@
require_once 'ajax_update_payment.php';
break;
case 'openancsearch':
+ case 'resultancsearch':
require_once('ajax_anc_search.php');
break;
+
}
\ No newline at end of file
Modified: phpcompta/trunk/html/js/anc_script.js
===================================================================
--- phpcompta/trunk/html/js/anc_script.js 2011-11-18 09:50:18 UTC (rev
4385)
+++ phpcompta/trunk/html/js/anc_script.js 2011-11-18 10:24:18 UTC (rev
4386)
@@ -194,7 +194,7 @@
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_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;
Modified: phpcompta/trunk/include/ajax_anc_search.php
===================================================================
--- phpcompta/trunk/include/ajax_anc_search.php 2011-11-18 09:50:18 UTC (rev
4385)
+++ phpcompta/trunk/include/ajax_anc_search.php 2011-11-18 10:24:18 UTC (rev
4386)
@@ -38,10 +38,14 @@
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">';
+echo '<span>'._('Recherche').':';
+
$texte=new IText();
-echo '<span>'._('Recherche').':';
+$texte->value=HtmlInput::default_value('label',"", $_GET);
echo $texte->input('label');
echo '</span>';
echo dossier::hidden();
@@ -77,7 +81,7 @@
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>'.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4386 - in phpcompta/trunk: html html/js include,
phpcompta-dev <=