noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
ajax_ledger+input_file.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS 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 * NOALYSS 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 NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19*/
20// Copyright Author Dany De Bontridder danydb@aevalys.eu 22/10/23
21
22
23/**
24 * @file
25 * @brief display form to add supplemental files to an operation
26 * var $gDossier (int) dossier
27 * var $jr_id (int) jrn.jr_id operation
28 * var $cn (Database) database cnx
29 * var $dgbox name of the dgbox
30 * var $div is the DIV
31 * supplement_div_list<?=$div?> list of files to update after uploading
32 */
33
34$dgbox=$http->request("dgbox");
35$form_id="save_file{$div}";
36$progress="progress{$div}";
37$max_post_size=convert_ini_unit(ini_get("post_max_size"));
38
39echo \HtmlInput::title_box(_("Ajout de fichier"), $dgbox);
40?>
41<div class="p-1">
42
43
44<p>
45 <?=_("Ajouter des fichiers à cette opération")?>
46</p>
47<FORM method="POST" enctype="multipart/form-data" onsubmit="return false" id="<?=$form_id?>">
48 <input type="hidden" id="MAX_FILE_SIZE" name="MAX_FILE_SIZE" value="<?= MAX_FILE_SIZE ?>">
49 <input type="hidden" id="post_max_size" name="post_max_size" value="<?= $max_post_size ?>">
50 <?=\HtmlInput::hidden("jr_id",$jr_id)?>
51 <?=\HtmlInput::hidden("gDossier",$gDossier)?>
52 <?=\HtmlInput::hidden("op","ledger")?>
53 <?=\HtmlInput::hidden("act","save_file")?>
54 <?=\HtmlInput::hidden("div",$div)?>
55 <?=\HtmlInput::hidden("dgbox",$dgbox)?>
56 <input type="FILE" name="document_supplemental[]" id="doc_sup" multiple>
57 <div id="feedback<?=$div?>"></div>
58 <ul class="aligned-block">
59 <li>
60 <input type='SUBMIT' class="smallbutton" name="upload" value="<?=_("Sauve")?>" onclick="return Supplement_Document.save_file('<?=$form_id?>');">
61 </li>
62 <li>
63 <?=\HtmlInput::button_close($dgbox)?>
64 </li>
65 </ul>
66</FORM>
67<progress style="height:auto;width: 100%;appearance: none;" id="progress_upload1b" max="100" value="0"></progress>
68</div>
p($p_string, $p_extra='')
Definition ac_common.php:39
convert_ini_unit($p_value)
convert a value in Mbytes, kb ... in byte
$jr_id
$opd_description style
$from_poste name
_("actif, passif,charge,...")
$input_from type