noalyss Version-9
status_operation_event-display_operation.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 14/04/23
20/*!
21 * \file
22 * \brief
23 */
24
25?>
26<?php
27echo HtmlInput::title_box($p_title, $this->dialog_box_id,"close","","y")
28?>
29
30 <?php if (count($p_array)>0) :?>
31 <table class="result">
32 <tr>
33 <th><?php echo _('Date')?></th>
34 <th><?php echo _('Code Interne')?></th>
35 <th><?php echo _('Pièce')?></th>
36 <th><?php echo _('Description')?></th>
37 <th>
38 <?php echo _('Montant')?>
39 </th>
40
41 </tr>
42 <?php
43 for ($i=0;$i<count($p_array);$i++):
44 ?>
45 <tr class="<?php echo (($i%2)==0)?'odd':'even';?>">
46 <td>
47 <?php echo smaller_date(format_date($p_array[$i]['jr_date']) );?>
48 </td>
49 <td>
50 <?php echo HtmlInput::detail_op($p_array[$i]['jr_id'], $p_array[$i]['jr_internal']) ?>
51 </td>
52 <td>
53 <?php echo h($p_array[$i]['jr_pj_number'])?>
54 </td>
55 <td>
56 <?php echo h($p_array[$i]['jr_comment']) ?>
57 </td>
58 <td>
59 <?php echo nbm($p_array[$i]['jr_montant']) ?>
60 </td>
61 </tr>
62 <?php
63 endfor;
64 ?>
65 </table>
66
67 <?php else: ?>
68 <h2 class="notice"><?php echo _('Aucune donnée')?></h2>
69 <?php
70 endif;
71 ?>
72 <ul class="aligned-block">
73 <li>
74 <?=\HtmlInput::button_action(_("Rafraîchir"),sprintf("event_display_detail('%s','%s')",Dossier::id(),$p_what),uniqid(),"smallbutton")?>
75 </li>
76 <li>
77 <?php echo HtmlInput::button_close($this->dialog_box_id)?>
78
79 </li>
80 </ul>
format_date($p_date, $p_from_format='YYYY-MM-DD', $p_to_format='DD.MM.YYYY')
format the date, when taken from the database the format is MM-DD-YYYY
Definition: ac_common.php:852
h2($p_string, $p_class="", $raw="")
Definition: ac_common.php:68
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
smaller_date($p_date)
shrink the date, make a date shorter for the printing
Definition: ac_common.php:837
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
nbm($p_number, $p_dec=2)
format the number with a sep.
Definition: ac_common.php:137
h( $row[ 'oa_description'])
static id()
return the 'gDossier' value after a check
static button_close($div_name, $class='smallbutton')
close button for the HTML popup
static detail_op($p_jr_id, $p_mesg)
return a string containing the html code for calling the modifyOperation
static button_action($action, $javascript, $id=NULL, $p_class="button", $p_symbole="")
button Html with javascript
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".
$all table
endfor