From 94a1a6ff7cc4d0fbface4a754550d9ea262ed15d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 4 Nov 2011 21:27:50 +0000 Subject: [PATCH] =?UTF-8?q?#317=20IConcerne=20:=20r=C3=A9=C3=A9criture,=20?= =?UTF-8?q?=C3=A0=20l'avenir=20sera=20dans=20une=20fen=C3=AAtre=20interne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/ajax_misc.php | 19 ++ html/jrn_search.php | 303 --------------------- html/js/acc_ledger.js | 77 ------ html/js/scripts.js | 147 +++++++++-- html/recherche.php | 2 + html/style-color.css | 31 +++ html/style-light.css | 31 +++ html/style.css | 31 +++ include/class_acc_ledger.php | 308 +++++++++++++++------- include/class_html_input.php | 4 +- include/class_iconcerned.php | 21 +- include/search.inc.php | 141 ++++++++++ include/template/ledger_detail_bottom.php | 18 +- include/template/search_top.php | 42 +++ 14 files changed, 663 insertions(+), 512 deletions(-) delete mode 100644 html/jrn_search.php create mode 100644 include/search.inc.php create mode 100644 include/template/search_top.php diff --git a/html/ajax_misc.php b/html/ajax_misc.php index 4b6263cac..88a378712 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -460,4 +460,23 @@ case 'mod_predf': case 'save_predf': require_once('save_predf_op.php'); break; +case 'search_op': + /*put_global(array + (array('key'=>'ac','value'=>'JSSEARCH')), + (array('key'=>'ledger_type','value'=>'ALL')) + );*/ + ob_start(); + require_once 'search.inc.php'; + $content=ob_get_contents(); + ob_clean(); + $html=escape_xml($content); + header('Content-type: text/xml; charset=UTF-8'); + echo << + +$ctl +$html + +EOF; + break; } diff --git a/html/jrn_search.php b/html/jrn_search.php deleted file mode 100644 index e514ee67b..000000000 --- a/html/jrn_search.php +++ /dev/null @@ -1,303 +0,0 @@ -Check(); - - -html_min_page_start($User->theme,"onLoad='window.focus();'"); - -require_once('class_dossier.php'); -$gDossier=dossier::id(); - -// Javascript - -if ( isset( $p_jrn )) -{ - $p_jrn=$p_jrn; - $_SESSION[ "p_jrn"]=$p_jrn; - -} -if (isset ($_GET['p_ctl'])) $p_ctl=$_GET['p_ctl']; -if (isset($_POST['p_ctl'])) $p_ctl=$_POST['p_ctl']; -$opt='