noalyss Version-9
acc_report-create.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-2021) Author Dany De Bontridder <danydb@noalyss.eu>
21
22if (!defined('ALLOWED'))
23 die('Appel direct ne sont pas permis');
24
25/**
26 * @file
27 * @brief display a form to enter a new Report definition
28 */
30?>
31<div id="acc_report_create_div" class="inner_box" style="display:none">
32<?=HtmlInput::title_box(_("Nouveau rapport"), "acc_report_create_div","hide")?>
33<form method="POST" enctype="multipart/form-data" >
34 <?=HtmlInput::hidden("ac", $http->request("ac"))?>
35 <?=HtmlInput::hidden("action", "add")?>
36 <?=Dossier::hidden()?>
37 <label for="fr_name"><?=_("Nom")?></label>
38 <input type="text" name="fr_name" autofocus class="input_text" required>
39 <?php
40 echo '<h3> Importation</h3>';
42 $wUpload->name='report';
43 $wUpload->value='report_value';
44 echo _('Importer ce rapport').' ';
45 echo $wUpload->input();
46 ?>
47 <ul class="aligned-block">
48 <li><?=HtmlInput::submit(uniqid(),_("Sauver"))?></li>
49 <li><?=HtmlInput::button_hide("acc_report_create_div")?></li>
50 </ul>
51</form>
52</div>
$wUpload name
$ret label
$opd_description style
$input_from type
Definition: balance.inc.php:65
static hidden()
return a string to set gDossier into a FORM
static button_hide($div_name)
Hide the HTML popup.
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 submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
manage the http input (get , post, request) and extract from an array
Html Input for uploading file, must be in a form with enctype="multipart/form-data".
Definition: ifile.class.php:31