noalyss Version-9
ajax_search_display_tag.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19// Copyright Author Dany De Bontridder danydb@aevalys.eu
20if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
21/**
22 *@file
23 *@brief remove tag , call from follow up
24 *@see Tag
25 */
26
27
28try {
29 $caller_obj=$http->request("caller_obj");
30 $prefix=$http->request("pref");
31} catch (Exception $ex) {
32 echo $ex->getMessage();
33 return;
34}
35
36if ( $caller_obj == 'Tag_Action' ) {
37 $tag=new Tag_Action($cn);
38}elseif ($caller_obj=='Tag_Operation')
39{
41} else {
42 throw new Exception("AJD001 invalid caller [$caller_obj]");
43}
44
45
46$response= $tag->select_search($pref);
47
49header('Content-type: text/xml; charset=UTF-8');
50echo <<<EOF
51<?xml version="1.0" encoding="UTF-8"?>
52<data>
53<ctl></ctl>
54<code>$html</code>
55</data>
56EOF;
57exit();
58
59
60?>
$ex
Definition: balance.inc.php:45
concerns the tags linked to an action
concerns the tags linked to an accountancy writing
for($e=0; $e< count($afiche); $e++) exit
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...
if( $delta< 0) elseif( $delta==0)