widget summary : review appearance
This commit is contained in:
parent
8320336302
commit
cc8f1adeba
2 changed files with 114 additions and 58 deletions
|
|
@ -40,39 +40,41 @@ $gDossier_id=Dossier::id();
|
|||
|
||||
// var refresh : string javascript code to refresh this widget
|
||||
$refresh=sprintf("event_display_main('%s')",Dossier::id());
|
||||
|
||||
$nb_last_operation=count($last_operation);
|
||||
$nb_late_operation=count($late_operation);
|
||||
$nb_supplier_now=count($supplier_now);
|
||||
$nb_supplier_late=count($supplier_late);
|
||||
$nb_customer_now=count($customer_now);
|
||||
$nb_customer_late=count($customer_late);
|
||||
|
||||
?>
|
||||
<?php echo HtmlInput::title_box(_("Résumé"),"situation_div",'none','','n','','',$refresh)?>
|
||||
<table class='result'>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
</th>
|
||||
<th>
|
||||
<?php echo date('d.m.y'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo _('En retard') ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo _("Action"); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (count($last_operation)>0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder;"onclick="event_display_detail(<?=$gDossier_id?>,'action_now')">
|
||||
<span class="notice">
|
||||
<?php echo count($last_operation) ?>
|
||||
<?php echo _("détail"); ?>
|
||||
</span>
|
||||
</A>
|
||||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td >
|
||||
<?php if (count($late_operation)>0): ?>
|
||||
<div id="content">
|
||||
<div id="so_event_main_id">
|
||||
<div class="sect1">
|
||||
<h2> <?=_("Action")?></h2>
|
||||
<div class="sect1_today <?=($nb_last_operation>0)?"highlight":""?> ">
|
||||
<h3>
|
||||
<?php echo date('d.m.y'); ?>
|
||||
</h3>
|
||||
|
||||
<?php if ($nb_last_operation>0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder;"onclick="event_display_detail(<?=$gDossier_id?>,'action_now')">
|
||||
<span class="notice">
|
||||
<?php echo count($last_operation) ?>
|
||||
<?php echo _("détail"); ?>
|
||||
</span>
|
||||
</A>
|
||||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="sect1_late <?=($nb_late_operation>0)?"highlight":""?>">
|
||||
<h3>
|
||||
<?php echo _('En retard') ?>
|
||||
</h3>
|
||||
<?php if ($nb_late_operation >0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'action_late')">
|
||||
<span class="notice"><?php echo count($late_operation) ?>
|
||||
<?php echo _("détail"); ?>
|
||||
|
|
@ -81,15 +83,18 @@ $refresh=sprintf("event_display_main('%s')",Dossier::id());
|
|||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo _("Paiement fournisseur"); ?>
|
||||
</td>
|
||||
<td >
|
||||
<?php if (count($supplier_now)>0): ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<h2>
|
||||
<?php echo _("Paiement fournisseur"); ?>
|
||||
</h2>
|
||||
|
||||
<div class="sect1_today <?=($nb_supplier_now>0)?"highlight":""?>">
|
||||
<h3>
|
||||
<?php echo date('d.m.y'); ?>
|
||||
</h3>
|
||||
<?php if ($nb_supplier_now >0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'supplier_now')">
|
||||
<span class="notice"><?php echo count($supplier_now) ?> <?php echo _("détail"); ?></span>
|
||||
|
||||
|
|
@ -97,9 +102,12 @@ $refresh=sprintf("event_display_main('%s')",Dossier::id());
|
|||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td >
|
||||
<?php if (count($supplier_late)>0): ?>
|
||||
</div>
|
||||
<div class="sect1_late <?=($nb_supplier_late>0)?"highlight":""?>">
|
||||
<h3>
|
||||
<?php echo _('En retard') ?>
|
||||
</h3>
|
||||
<?php if ( $nb_supplier_late >0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'supplier_late')">
|
||||
<span class="notice"><?php echo count($supplier_late) ?> <?php echo _("détail"); ?></span>
|
||||
|
||||
|
|
@ -107,14 +115,19 @@ $refresh=sprintf("event_display_main('%s')",Dossier::id());
|
|||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo _("Paiement client"); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (count($customer_now)>0): ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sect1">
|
||||
<h2>
|
||||
<?php echo _("Paiement client"); ?>
|
||||
</h2>
|
||||
|
||||
<div class="sect1_today <?=($nb_customer_now>0)?"highlight":""?>">
|
||||
<h3>
|
||||
<?php echo date('d.m.y'); ?>
|
||||
</h3>
|
||||
<?php if ($nb_customer_now>0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'customer_now')">
|
||||
<span class="notice"><?php echo count($customer_now) ?> <?php echo _("détail"); ?></span>
|
||||
|
||||
|
|
@ -122,9 +135,12 @@ $refresh=sprintf("event_display_main('%s')",Dossier::id());
|
|||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (count($customer_late)>0): ?>
|
||||
</div>
|
||||
<div class="sect1_late <?=($nb_customer_late>0)?"highlight":""?>">
|
||||
<h3>
|
||||
<?php echo _('En retard') ?>
|
||||
</h3>
|
||||
<?php if ($nb_customer_late >0): ?>
|
||||
<A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'customer_late')">
|
||||
<span class="notice"><?php echo count($customer_late) ?> <?php echo _("détail"); ?></span>
|
||||
|
||||
|
|
@ -132,9 +148,13 @@ $refresh=sprintf("event_display_main('%s')",Dossier::id());
|
|||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<ul class="aligned-block">
|
||||
<li>
|
||||
<?=\HtmlInput::button_action(_("Rafraîchir"),sprintf("event_display_main('%s')",Dossier::id()),uniqid(),"smallbutton")?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue