noalyss  Version-9
pcmn_update.php
Go to the documentation of this file.
1 <?php
2 /*
3  * This file is part of NOALYSS.
4  *
5  * NOALYSS isfree 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 isdistributed 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 (2014) Author Dany De Bontridder <dany@alchimerys.be>
20 
21 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
22 
23 /**
24  * @file
25  * @brief
26  * @param type $name Descriptionara
27  */
28 echo HtmlInput::title_box(_("Poste comptable"), "acc_update", "hide");
29 ?>
30 <span id="acc_update_info" class="notice"></span>
31 <div class="content" style="margin:5px;padding: 5px" >
32 <form method="post" id="acc_update_frm_id" onsubmit="pcmn_save();return false;">
33  <p style="text-align: left">
34 <table >
35 <?php
36 $r= td(_('Poste comptable'),'style="width:auto;width:9rem;text-align:right"').td($val->input());
37 echo tr($r);
38 $r= td(_('Description'),'style="width:auto;text-align:right"').td($lib->input());
39 echo tr($r);
40 $r= td(_('Parent'),'style="width:auto;text-align:right"').td($parent->input());
41 echo tr($r);
42 $r= td(_('Type'),'style="width:auto;text-align:right"').td($type->input());
43 echo tr($r);
44 ?>
45 </table>
46 <?php
47 echo HtmlInput::hidden('p_oldu',$pcmn_val);
48 echo HtmlInput::hidden('p_action',$action);
49 echo dossier::hidden();
50 $checkbox=new ICheckBox("delete_acc");
51 echo _('Cocher pour effacer')." ".$checkbox->input();
52 echo '<hr>';
53 echo HtmlInput::submit('update',_('Sauve'));
54 echo HtmlInput::button('hide',_('Annuler'),'onClick="$(\'acc_update\').hide();return true;"');
55 ?>
56 </p>
57 </form>
58 </div>
style
$opd_description style
Definition: ajax_mod_predf_op.php:52
HtmlInput\button
static button($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Definition: html_input.class.php:206
p
p($p_string)
Definition: ac_common.php:39
tr
tr($p_string, $p_extra='')
Definition: ac_common.php:88
$type
$type
Definition: balance_age.inc.php:28
HtmlInput\title_box
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".
Definition: html_input.class.php:838
$action
$action
Definition: admin_repo.inc.php:32
HtmlInput\submit
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Definition: html_input.class.php:199
$val
$val
Definition: test-tableau-postgres.php:23
table
$all table
Definition: company.inc.php:138
span
span($p_string, $p_extra='')
Definition: ac_common.php:43
ICheckBox
Html Input.
Definition: icheckbox.class.php:30
$r
$r
Definition: pcmn_update.php:36
td
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
HtmlInput\hidden
static hidden($p_name, $p_value, $p_id="")
Definition: html_input.class.php:218
$checkbox
$checkbox
Definition: pcmn_update.php:50