noalyss Version-9
operation_exercice-input_transfer.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 7/01/24
20/*!
21 * \file
22 * \brief propose to transfer
23 */
26?>
27<?=HtmlInput::button_action(_("Transfert"),"$('operation_exercice_transfer_info').update();$('oe_transfer_div').show()")?>
28<div class="inner_box" id="oe_transfer_div" style="display:none;position: fixed;top:25%;overflow-scrolling: auto">
29 <?= HtmlInput::title_box(_("Transfert à la comptabilité"), "oe_transfer_div") ?>
30 <form method="POST" id="operation_exercice_transfer_frm" onsubmit="operation_exercice.transfer();return false;">
31 <?php
32 echo HtmlInput::array_to_hidden(array("ac", "gDossier"), $_REQUEST);
33 echo HtmlInput::hidden("op", "operation_exercice+transfer");
34 echo HtmlInput::hidden("oe_id", $this->operation_exercice_sql->oe_id);
35 // show the ledger
36
38 $wLedger = $ledger->select_ledger('ODS', 2, FALSE);
39 if ($wLedger == null)
40 throw new Exception(_('Pas de journal disponible'));
41
42 echo _("Journal destination"), $wLedger->input();
43
44 ?>
45 <div id="operation_exercice_transfer_info" ></div>
46 <p>
47
48 <ul class="aligned-block">
49 <li>
50 <?= \HtmlInput::submit("save", _("Sauve")) ?>
51 </li>
52 <li>
53 <?= \HtmlInput::button_hide("oe_transfer_div") ?>
54 </li>
55
56 </ul>
57 </p>
58 </form>
59</div>
p($p_string)
Definition: ac_common.php:39
$opd_description style
$_REQUEST['ac']
static connect()
static button_hide($div_name)
Hide the HTML popup.
static button_action($action, $javascript, $id=NULL, $p_class="button", $p_symbole="")
button Html with javascript
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_hidden($array, $global_array)
transform request data to hidden
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
static echo_file($msg, $print=true)
display the file
Definition: dbg.php:88