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='