Fix bug in IE, because prototype.js was included twice Add a popup to see detail of operations (both in list of operation and details)
60 lines
No EOL
1.3 KiB
PHP
60 lines
No EOL
1.3 KiB
PHP
<?php
|
|
if ( count($this->content) == 0 ) :
|
|
?>
|
|
<h2 class="info2"><?=_('Désolé aucun résultat trouvé')?></h2>
|
|
|
|
<? exit();
|
|
endif;?>
|
|
<table class="result">
|
|
<tr>
|
|
<th>
|
|
<?=_('Lettrage')?>
|
|
</th>
|
|
<th>
|
|
<?=_('Date')?>
|
|
</th>
|
|
<th>
|
|
<?=_('Ref')?>
|
|
</th>
|
|
<th>
|
|
<?=_('Description')?>
|
|
</th>
|
|
<th>
|
|
<?=_('Montant')?>
|
|
</th>
|
|
<th>
|
|
<?=_('Debit / Credit')?>
|
|
</th>
|
|
</tr>
|
|
|
|
<?php
|
|
for ($i=0;$i<count($this->content);$i++):
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<?php
|
|
$letter=($this->content[$i]['letter']==-1)?"x":$this->content[$i]['letter'];
|
|
$js="this.gDossier=".dossier::id().
|
|
";this.phpsessid='".$_REQUEST['PHPSESSID']."'".
|
|
";this.j_id=".$this->content[$i]['j_id'].
|
|
";this.obj_type='".$this->object_type."'".
|
|
";dsp_letter(this)";
|
|
|
|
?>
|
|
<A class="detail" href="javascript:<?=$js?>"><?=$letter?></A>
|
|
</td>
|
|
<td> <?=$this->content[$i]['j_date_fmt']?> </td>
|
|
<?php
|
|
$r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:modifyOperation(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')" >%s</A>',
|
|
$this->content[$i]['jr_id'], $_REQUEST['PHPSESSID'],dossier::id(), $this->content[$i]['jr_def_id'],'S', $this->content[$i]['jr_internal']);
|
|
?>
|
|
<td> <?=$r?> </td>
|
|
<td> <?=h($this->content[$i]['jr_comment'])?> </td>
|
|
<td> <?=$this->content[$i]['j_montant']?> </td>
|
|
<td> <?=($this->content[$i]['j_debit']=='t')?'D':'C'?> </td>
|
|
</tr>
|
|
|
|
<?php
|
|
endfor;
|
|
?>
|
|
</table>
|