noalyss Version-9
action.inc.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/*! \file
21 * \brief Page who manage the different actions (meeting, letter)
22 */
23if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
24global $g_user;
26
28 HtmlInput::request_to_string(array("closed_action","remind_date_end","remind_date","sag_ref","only_internal",
29 "state","ac","gDossier","qcode","ag_dest_query","action_query","tdoc","date_start","date_end","hsstate",
30 "searchtag",
31 "closed_action",
32 "tag_option",)),
33 "","","smallbutton");
34//-----------------------------------------------------
35// Follow_Up
36//-----------------------------------------------------
37/*!\brief Show the list of action, this code should be common
38 * to several webpage. But for the moment we keep like that
39 * because it is used only by this file.
40 *\param $cn database connection
41 * \param $retour button for going back
42 * \param $h_url calling url
43 */
44
45// We need a sub action (3rd level)
46// show a list of already taken action
47// propose to add one
48// permit also a search
49// show detail
50$sub_action=$http->request("sa","string","");
51/* if ag_id is set then we give it otherwise we have problem
52 * with the generation of document
53 */
54$ag_id=$http->request("ag_id","string","0");
55
56$base="do.php?".http_build_query(["ac"=>$http->request("ac"),"gDossier"=>Dossier::id()]);
57echo '<div class="content">';
58require_once NOALYSS_INCLUDE.'/action.common.inc.php';
59echo "</div>";
60
61?>
$ag_id
Definition: action.inc.php:54
$sub_action
Show the list of action, this code should be common to several webpage. But for the moment we keep li...
Definition: action.inc.php:50
global $g_user
Definition: action.inc.php:24
$http
Definition: action.inc.php:25
$retour
Definition: action.inc.php:27
$base
Definition: action.inc.php:56
static id()
return the 'gDossier' value after a check
static request_to_string($array, $start="?")
transform $_REQUEST data to string
static button_anchor($p_label, $p_value, $p_name="", $p_javascript="", $p_class="smallbutton")
create a button with a ref
manage the http input (get , post, request) and extract from an array