altocompta/include/ajax_ledger_show.php
Dany De Bontridder 4ef4dc3dd8 Correction javascript, CSS ....
Task #975 - Comptability with IE
2014-02-11 21:15:27 +01:00

34 lines
No EOL
687 B
PHP

<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
/**
* @brief
* Show a div for selecting ledger
* return a html code for creating a window
* parameter
* - type
* - div
* - nbjrn
* - r_jrn[]
*/
// require_once '.php';
require_once 'class_acc_ledger.php';
require_once 'class_html_input.php';
if ( ! isset ($r_jrn)) { $r_jrn=null;}
$ctl='div_jrn'.$div;
ob_start();
echo HtmlInput::select_ledger($type,$r_jrn, $div);
$response = ob_get_clean();
$html = escape_xml($response);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>$ctl</ctl>
<code>$html</code>
</data>
EOF;
exit();
?>