noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
ajax_ledger_show.php
Go to the documentation of this file.
00001 <?php
00002 //This file is part of NOALYSS and is under GPL 
00003 //see licence.txt
00004 
00005 /**
00006  * @brief
00007  * Show a div for selecting ledger
00008  * return a html code for creating a window
00009  * parameter 
00010  *   - type 
00011  *   - div
00012  *   - nbjrn
00013  *   - r_jrn[]
00014  */
00015 // require_once '.php';
00016 require_once 'class_acc_ledger.php';
00017 require_once 'class_html_input.php';
00018 if ( ! isset ($r_jrn)) { $r_jrn=null;}
00019 $ctl='div_jrn'.$div;
00020 ob_start();
00021 echo HtmlInput::select_ledger($type,$r_jrn, $div);
00022 
00023 $response = ob_get_clean();
00024 $html = escape_xml($response);
00025 header('Content-type: text/xml; charset=UTF-8');
00026 echo <<<EOF
00027 <?xml version="1.0" encoding="UTF-8"?>
00028 <data>
00029 <ctl>$ctl</ctl>
00030 <code>$html</code>
00031 </data>
00032 EOF;
00033 exit();
00034 ?>    
 All Data Structures Namespaces Files Functions Variables Enumerations