noalyss Version-9
status_operation_event-main_display.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 17/04/23
20/*!
21 * \file
22 * \brief main display for situation
23 */
24
28
30
31// Supplier late and now
32$supplier_now=$Ledger->get_supplier_now();
33$supplier_late=$Ledger->get_supplier_late();
34
35// Customer late and now
36$customer_now=$Ledger->get_customer_now();
37$customer_late=$Ledger->get_customer_late();
38
40?>
41 <?php echo HtmlInput::title_box(_("Situation"),"situation_div",'none','','n')?>
42 <table class='result'>
43 <tr>
44 <th>
45
46 </th>
47 <th>
48 <?php echo date('d.m.y'); ?>
49 </th>
50 <th>
51 <?php echo _('En retard') ?>
52 </th>
53 </tr>
54 <tr>
55 <td>
56 <?php echo _("Action"); ?>
57 </td>
58 <td>
59 <?php if (count($last_operation)>0): ?>
60 <A class="mtitle" style="font-weight: bolder;"onclick="event_display_detail(<?=$gDossier_id?>,'action_now')">
61 <span class="notice">
62 <?php echo count($last_operation) ?>
63 &nbsp;<?php echo _("détail"); ?>
64 </span>
65 </A>
66 <?php else: ?>
67 0
68 <?php endif; ?>
69 </td>
70
71 <td >
72 <?php if (count($late_operation)>0): ?>
73 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'action_late')">
74 <span class="notice"><?php echo count($late_operation) ?>
75 &nbsp;<?php echo _("détail"); ?>
77 </A>
78 <?php else: ?>
79 0
80 <?php endif; ?>
81 </td>
82
83 </tr>
84 <tr>
85 <td>
86 <?php echo _("Paiement fournisseur"); ?>
87 </td>
88 <td >
89 <?php if (count($supplier_now)>0): ?>
90 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'supplier_now')">
91 <span class="notice"><?php echo count($supplier_now) ?>&nbsp;<?php echo _("détail"); ?></span>
93 </A>
94 <?php else: ?>
95 0
96 <?php endif; ?>
97 </td>
98 <td >
99 <?php if (count($supplier_late)>0): ?>
100 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'supplier_late')">
101 <span class="notice"><?php echo count($supplier_late) ?>&nbsp;<?php echo _("détail"); ?></span>
103 </A>
104 <?php else: ?>
105 0
106 <?php endif; ?>
107 </td>
108 </tr>
109 <tr>
110 <td>
111 <?php echo _("Paiement client"); ?>
112 </td>
113 <td>
114 <?php if (count($customer_now)>0): ?>
115 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'customer_now')">
116 <span class="notice"><?php echo count($customer_now) ?>&nbsp;<?php echo _("détail"); ?></span>
118 </A>
119 <?php else: ?>
120 0
121 <?php endif; ?>
122 </td>
123 <td>
124 <?php if (count($customer_late)>0): ?>
125 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'customer_late')">
126 <span class="notice"><?php echo count($customer_late) ?>&nbsp;<?php echo _("détail"); ?></span>
128 </A>
129 <?php else: ?>
130 0
131 <?php endif; ?>
132 </td>
133 </tr>
134 </table>
135<ul class="aligned-block">
136 <li>
137 <?=\HtmlInput::button_action(_("Rafraîchir"),sprintf("event_display_main('%s')",Dossier::id()),uniqid(),"smallbutton")?>
138 </li>
139
140</ul>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
span($p_string, $p_extra='')
Definition: ac_common.php:43
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
$opd_description style
static id()
return the 'gDossier' value after a check
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