noalyss Version-9
ajax_calendar_zoom.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
20 /**
21 *@file
22 *@brief zoom the sheduler
23 */
24if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
26
27ob_start();
28if ($notitle==0)
29{
30 echo HtmlInput::title_box(_("Calendrier"), "calendar_zoom_div", "close", "", "y");
31}
33$in=$http->get('in',"string","");
34$notitle=$http->get('notitle',"string","0");
35if ( $in == "") {
36 $in=$cal->get_preference();
37}
38$cal->set_periode($in);
39echo $cal->zoom($distype,$notitle);
40if ( $notitle== 0 ) {
41 echo '<p style="text-align:center">';
42 echo HtmlInput::button_close("calendar_zoom_div");
43 echo '</p>';
44}
45$response= ob_get_clean();
46
48header('Content-type: text/xml; charset=UTF-8');
49echo <<<EOF
50<?xml version="1.0" encoding="UTF-8"?>
51<data>
52<ctl></ctl>
53<html>$html</html>
54</data>
55EOF;
56exit();
57
58
59?>
if( $notitle==0) $response
if($notitle==0) $cal
Display the calendar.
static button_close($div_name, $class='smallbutton')
close button for the HTML popup
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n')
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
manage the http input (get , post, request) and extract from an array
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,...