noalyss
Version-9
include
ajax
ajax_ledger_show.php
Go to the documentation of this file.
1
<?php
2
//This file is part of NOALYSS and is under GPL
3
//see licence.txt
4
5
/**
6
*@file
7
* @brief
8
* Show a div for selecting ledger
9
* return a html code for creating a window
10
* parameter
11
* - type
12
* - div
13
* - nbjrn
14
* - r_jrn[]
15
*/
16
if
( ! defined (
'ALLOWED'
) ) die(
'Appel direct ne sont pas permis'
);
17
18
if
( ! isset (
$r_jrn
)) {
$r_jrn
=
null
;}
19
$ctl
=
'div_jrn'
.$div;
20
ob_start();
21
$ledger
=
new
Acc_Ledger_Search
(
$type
,1,
$ctl
);
22
echo
$ledger
->select_ledger(
$r_jrn
,
$div
);
23
24
$response
= ob_get_clean();
25
$html
=
escape_xml
(
$response
);
26
header(
'Content-type: text/xml; charset=UTF-8'
);
27
echo <<<EOF
28
<?xml version=
"1.0"
encoding=
"UTF-8"
?>
29
<data>
30
<ctl>
$ctl
</ctl>
31
<code>
$html
</code>
32
</data>
33
EOF;
34
exit
();
35
?>
$div
$div
Definition:
ajax_history.php:28
$ledger
$ledger
Definition:
ajax_ledger_show.php:21
$html
$html
Definition:
ajax_ledger_show.php:25
$ctl
if(! isset($r_jrn)) $ctl
Definition:
ajax_ledger_show.php:19
$response
$response
Definition:
ajax_ledger_show.php:24
$type
$type
Definition:
balance_age.inc.php:28
Acc_Ledger_Search
search in ledger
Definition:
acc_ledger_search.class.php:34
exit
for($e=0; $e< count($afiche); $e++) exit
Definition:
export_fiche_balance_csv.php:109
$r_jrn
$r_jrn
Definition:
export_rec_csv.php:19
escape_xml
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...
Definition:
function_javascript.php:2721