phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4916 - phpcompta/trunk/include/template


From: phpcompta-dev
Subject: [Phpcompta-dev] r4916 - phpcompta/trunk/include/template
Date: Sat, 16 Jun 2012 20:52:27 +0200 (CEST)

Author: danydb
Date: 2012-06-16 20:52:27 +0200 (Sat, 16 Jun 2012)
New Revision: 4916

Modified:
   phpcompta/trunk/include/template/ledger_detail_ach.php
   phpcompta/trunk/include/template/ledger_detail_fin.php
   phpcompta/trunk/include/template/ledger_detail_ven.php
Log:
D?\195?\169tail journaux : voir fiche plut?\195?\180t qu'historique

Modified: phpcompta/trunk/include/template/ledger_detail_ach.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_ach.php      2012-06-16 
18:28:01 UTC (rev 4915)
+++ phpcompta/trunk/include/template/ledger_detail_ach.php      2012-06-16 
18:52:27 UTC (rev 4916)
@@ -37,9 +37,8 @@
                                                        $bk=new 
Fiche($cn,$obj->det->array[0]['qp_supplier']);
                                                        echo 
td(_('Fournisseur'));
 
-                                                       $view_history= 
sprintf('<A class="line" HREF="javascript:view_history_card(\'%s\',\'%s\')" 
>%s</A>',
-                                                                               
        $bk->id, $gDossier, $bk->get_quick_code());
-                                                       echo 
td(h($bk->getName())).td($view_history);;
+                                                       
$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()),
 ' class="line" ');
+                                                       echo 
td($view_card_detail);
                                                        ?>
                                                        </td>
                                                        </tr>
@@ -137,10 +136,8 @@
     $row='';
     $q=$obj->det->array[$e];
     $fiche=new Fiche($cn,$q['qp_fiche']);
-   $view_history= sprintf('<A class="detail" style="text-decoration:underline" 
HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>',
-                               $fiche->id, $gDossier, 
$fiche->strAttribut(ATTR_DEF_QUICKCODE));
-
-   $row=td($view_history);
+       
$view_card_detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),"",
 ' class="line" ');
+   $row=td($view_card_detail);
    $sym_tva='';
 
    if ( $owner->MY_TVA_USE=='Y' && $q['qp_vat_code'] != '') {

Modified: phpcompta/trunk/include/template/ledger_detail_fin.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_fin.php      2012-06-16 
18:28:01 UTC (rev 4915)
+++ phpcompta/trunk/include/template/ledger_detail_fin.php      2012-06-16 
18:52:27 UTC (rev 4916)
@@ -27,9 +27,8 @@
 <tr>
 <?
 $bk=new Fiche($cn,$obj->det->array[0]['qf_bank']);
-$view_history= sprintf('<A class="line" 
HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>',
-                               $bk->id, $gDossier, $bk->get_quick_code());
-echo td('Compte en banque').td(h($bk->getName())).td($view_history);;
+$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()),
 ' class="line" ');
+echo td('Compte en banque').td($view_card_detail).td();;
 
 ?>
 </tr>
@@ -37,10 +36,9 @@
 <?
 
 $bk=new Fiche($cn,$obj->det->array[0]['qf_other']);
-$view_history= sprintf('<A class="line" 
HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>',
-                               $bk->id, $gDossier, $bk->get_quick_code());
-echo td('Tiers').td(h($bk->getName()));
-echo td($view_history);
+$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()),
 ' class="line" ');
+
+echo td('Tiers').td($view_card_detail);
 ?>
 </tr>
 

Modified: phpcompta/trunk/include/template/ledger_detail_ven.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_ven.php      2012-06-16 
18:28:01 UTC (rev 4915)
+++ phpcompta/trunk/include/template/ledger_detail_ven.php      2012-06-16 
18:52:27 UTC (rev 4916)
@@ -37,9 +37,8 @@
                                                $bk=new 
Fiche($cn,$obj->det->array[0]['qs_client']);
                                                echo td(_('Client'));
 
-                                               $view_history= sprintf('<A 
class="line" HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>',
-                                                                               
$bk->id, $gDossier, $bk->get_quick_code());
-                                               echo 
td(h($bk->getName())).td($view_history);;
+                                               
$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()),
 ' class="line" ');
+                                                       echo 
td($view_card_detail);
                                                ?>
                                                </td>
                                                </tr>
@@ -135,11 +134,9 @@
     $row='';
     $q=$obj->det->array[$e];
     $fiche=new Fiche($cn,$q['qs_fiche']);
-    $view_history= sprintf('<A class="line" 
HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>',
-                               $fiche->id, $gDossier, 
$fiche->strAttribut(ATTR_DEF_QUICKCODE));
-
-    $row = td($view_history);
-    if ($owner->MY_UPDLAB == 'Y')
+       
$view_card_detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),"",
 ' class="line" ');
+       $row.=td($view_card_detail);
+       if ($owner->MY_UPDLAB == 'Y')
     {
         $l_lib = ($q['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : 
$q['j_text'];
         $hidden = HtmlInput::hidden("j_id[]", $q['j_id']);



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]