phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r305 - in tag/rel601/coprop/include: . template


From: phpcompta-dev
Subject: [Phpcompta-dev] r305 - in tag/rel601/coprop/include: . template
Date: Thu, 22 Mar 2012 21:47:12 +0100 (CET)

Author: danydb
Date: 2012-03-22 21:47:12 +0100 (Thu, 22 Mar 2012)
New Revision: 305

Modified:
   tag/rel601/coprop/include/ajax_add_key.php
   tag/rel601/coprop/include/key.inc.php
   tag/rel601/coprop/include/template/key_detail.php
Log:
0000550: Ajout clef : classement des lots

Modified: tag/rel601/coprop/include/ajax_add_key.php
===================================================================
--- tag/rel601/coprop/include/ajax_add_key.php  2012-03-22 20:34:46 UTC (rev 
304)
+++ tag/rel601/coprop/include/ajax_add_key.php  2012-03-22 20:47:12 UTC (rev 
305)
@@ -38,7 +38,7 @@
 
 $str_message="Ajout d'une clef de répartition";
 $alot=$cn->get_array("select f_id,vw_name as name,quick_code as qcode, 
vw_description as desc, 0 as l_part
-       from vw_fiche_attr where 
fd_id=$1",array($g_copro_parameter->categorie_lot));
+       from vw_fiche_attr where fd_id=$1 order by 2 
",array($g_copro_parameter->categorie_lot));
 $init_tantieme=0;
 echo '<form id="fkey" method="post">';
 require_once 'template/key_detail.php';

Modified: tag/rel601/coprop/include/key.inc.php
===================================================================
--- tag/rel601/coprop/include/key.inc.php       2012-03-22 20:34:46 UTC (rev 
304)
+++ tag/rel601/coprop/include/key.inc.php       2012-03-22 20:47:12 UTC (rev 
305)
@@ -45,10 +45,7 @@
 }
 
 
-$sql="select cr_id,cr_name,cr_note,cr_tantieme from coprop.clef_repartition ";
-/**
- * @todo ajouter tri
- */
+$sql="select cr_id,cr_name,cr_note,cr_tantieme from coprop.clef_repartition 
order by cr_name";
 
 $a_key=$cn->get_array($sql);
 ?>
@@ -61,7 +58,7 @@
                        Note
                </th>
                 <th>
-                    Tantième 
+                    Tantième
                 </th>
                 <th></th>
        </tr>
@@ -86,7 +83,7 @@
                        echo HtmlInput::anchor("enlever","",$js);
                         ?>
                 </td>
-                
+
        </tr>
 <?
 endfor;

Modified: tag/rel601/coprop/include/template/key_detail.php
===================================================================
--- tag/rel601/coprop/include/template/key_detail.php   2012-03-22 20:34:46 UTC 
(rev 304)
+++ tag/rel601/coprop/include/template/key_detail.php   2012-03-22 20:47:12 UTC 
(rev 305)
@@ -53,15 +53,24 @@
 Description
 <?=$note->input()?>
 <h2>Détail des lots</h2>
-<table>
+<table class="result">
+       <tr>
+               <th>QuickCode</th>
+               <th>Nom</th>
+               <th>Description</th>
+               <th>Montant</th>
+       </tr>
 <?
        for ($i=0;$i<count($alot);$i++):
 ?>
        <tr>
                <td>
-                       
<?=HtmlInput::card_detail($alot[$i]['qcode'],$alot[$i]['name'])?>
+                       
<?=HtmlInput::card_detail($alot[$i]['qcode'],$alot[$i]['qcode'],' 
class="line"')?>
                        <?=HtmlInput::hidden('f_id[]',$alot[$i]['f_id'])?>
                </td>
+               <td>
+                       <?=$alot[$i]['name']?>
+               </td>
                 <td>
                     <?=$alot[$i]['desc']?>
                 </td>



---
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]