noalyss Version-9
followup-show-action-add.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * PhpCompta is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2002-2020) Author Dany De Bontridder <danydb@noalyss.eu>
21
22if (!defined('ALLOWED'))
23 die('Appel direct ne sont pas permis');
24
26$sup_parameter=HtmlInput::array_to_string(["sc","sb","f_id","qcode"], $_REQUEST,"&amp;");
28/**
29 * @file
30 * @brief display a button for adding an followup action
31 */
32global $g_user;
33if ( ! empty ($g_user->get_writable_profile()))
34{
35 echo HtmlInput::button(uniqid(), _("Ajout action"),
36 'onclick="document.getElementById(\'action_add_d\').style.display=\'block\';"');
37}
38?>
39<div id="action_add_d" class="inner_box" style="position:fixed;min-width:25rem;display:none;top:10rem;">
40 <?php echo HtmlInput::title_box(_("Choississez une action"), "action_add_d"); ?>
41 <div style="text-align: center">
42<?=\Noalyss\Dbg::echo_file(__FILE__)?>
43 <form method="get" >
44
45 <?php
46 echo HtmlInput::array_to_hidden(["ac", "sc", "sb", "f_id", "qcode", "gDossier"], $_REQUEST);
47 if ( ! empty ($pa_param)) {
48 foreach ($pa_param as $key=> $value)
49 {
50 echo HtmlInput::hidden($key,$value);
51
52 }
53 }
54 ?>
55
56 <?php
57 $action=new ISelect("action_type");
58 $action->style='style="width:95%"';
59 $action->value=$cn->make_array("select dt_id,dt_value from document_type order by 2");
60 $action->selected=$action->value[0]['value'];
61 $action->rowsize=10;
62 echo $action->input();
63 ?>
64 <ul class="aligned-block">
65
66 <li>
67 <?php echo HtmlInput::submit("add_action", _("Ajout")); ?>
68 </li>
69 <li>
70 <?php echo HtmlInput::button_hide("action_add_d") ?>
71 </li>
72 </ul>
73 </form>
74 </div>
75</div>
76<?php
77include "show-all-variable.php";
$_REQUEST['ac']
static connect()
static button_hide($div_name)
Hide the HTML popup.
static button($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
static hidden($p_name, $p_value, $p_id="")
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".
static array_to_string($array, $global_array, $start="?")
transform request data to string
static array_to_hidden($array, $global_array)
transform request data to hidden
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static echo_file($msg, $print=true)
display the file
Definition: dbg.php:88
global $g_user
if(! empty($pa_param)) $action
$action style