27namespace Noalyss\Widget;
48 $param = $this->
db->get_value(
"select uw_parameter from user_widget where uw_id=$1",[$this->user_widget_id]);
49 parse_str($param, $aReport);
50 $report=$aReport[
'simple_report'];
53 if ($rapport->exist() ==
false) {
60 <?php echo $this->
title($rapport->get_name()) ;?>
65 alert(
_(
'Aucune periode par defaut'));
71 echo
'<table class="result">';
74 $class = (
$ix % 2 == 0) ?
' class="even" ' :
' class="odd" ';
75 echo
'<tr ' .
$class .
'>';
77 echo
'<td> ' .
$row[
'desc'] .
'</td>';
78 $style =
'style="text-align:right;"';
79 if (
$row[
'montant'] < 0) {
80 $style =
'style="color:red;text-align:right;"';
82 echo
"<td $style>" .
nbm(
$row[
'montant']) .
"</td>";
87 echo
_(
'Aucun résultat');
101 $select=new \ISelect(
'simple_report');
102 $select->value=$this->
db->make_array(
"select fr_id, fr_label from form_definition order by 2");
113 $name = $this->
db->get_value(
"select fr_label from form_definition where fr_id=$1",[$aParam[
'simple_report']]);
115 echo
span(
_(
"Rapport") .
" ".
h(
$name),
'class="widget_param"');
span($p_string, $p_extra='')
nbm($p_number, $p_dec=2)
format the number with a sep.
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
h( $row[ 'oa_description'])
catch(Exception $e) $exercice
_("actif, passif,charge,...")