noalyss Version-9
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 */
16if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
17
18if ( ! isset ($r_jrn)) { $r_jrn=null;}
19$ctl='div_jrn'.$div;
20ob_start();
22echo $ledger->select_ledger($r_jrn,$div);
23
24$response = ob_get_clean();
26header('Content-type: text/xml; charset=UTF-8');
27echo <<<EOF
28<?xml version="1.0" encoding="UTF-8"?>
29<data>
30<ctl>$ctl</ctl>
31<code>$html</code>
32</data>
33EOF;
34exit();
35?>
$div
if(! isset($r_jrn)) $ctl
for($e=0; $e< count($afiche); $e++) exit
$r_jrn
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...