Author: danydb
Date: 2012-06-14 22:16:38 +0200 (Thu, 14 Jun 2012)
New Revision: 4899
Modified:
phpcompta/trunk/html/user_pref.php
phpcompta/trunk/include/template/dashboard.php
Log:
Cosmetic dashboard + PREFERENCE
Modified: phpcompta/trunk/html/user_pref.php
===================================================================
--- phpcompta/trunk/html/user_pref.php 2012-06-14 20:00:19 UTC (rev 4898)
+++ phpcompta/trunk/html/user_pref.php 2012-06-14 20:16:38 UTC (rev 4899)
@@ -44,6 +44,7 @@
}
global $g_user;
+$g_user=new User($cn);
// Met a jour le theme utilisateur (style)
if ( isset ( $_POST['style_user']) )
Modified: phpcompta/trunk/include/template/dashboard.php
===================================================================
--- phpcompta/trunk/include/template/dashboard.php 2012-06-14 20:00:19 UTC
(rev 4898)
+++ phpcompta/trunk/include/template/dashboard.php 2012-06-14 20:16:38 UTC
(rev 4899)
@@ -91,8 +91,9 @@
<table style="width: 100%">
<?php
for($i=0;$i<count($last_ledger);$i++):
+ $class=($i%2==0)?' class="even" ':' class="odd" ';
?>
-<tr>
+<tr <?=$class?> >
<td><?= smaller_date($last_ledger[$i]['jr_date_fmt'])?>
</td>
<td>
@@ -102,7 +103,7 @@
<?=h(mb_substr($last_ledger[$i]['jr_comment'],0,40,'UTF-8'))?>
</td>
<td>
-<?=$last_ledger[$i]['jr_internal']?>
+<?=HtmlInput::detail_op($last_ledger[$i]['jr_id'],
$last_ledger[$i]['jr_internal'])?>
</td>
<td class="num">
<?=nbm($last_ledger[$i]['jr_montant'])?>
@@ -142,8 +143,8 @@
echo '<table border="0" width="100%">';
foreach ($result as $row) {
$ix++;
- $bgcolor=($ix%2==0)?' style="background-color:lightgrey"':'';
- echo '<tr'.$bgcolor.'">';
+ $class=($ix%2==0)?' class="even" ':' class="odd" ';
+ echo '<tr'.$class.'">';
echo '<td> '.$row['desc'].'</td>'.
'<td style="text-align:right">'.nbm($row['montant'])." €</td>";
@@ -155,7 +156,7 @@
echo '</div>';
} else {
echo '<fieldset style="width:50%;background-color:white"><legend>'._('Aucun
rapport défini').'</legend>';
- echo '<a href="user_pref.php?'.dossier::get().'">'._('Cliquez ici pour
mettre à jour vos préférences').'</a>';
+ echo '<a href="do.php?'.dossier::get().'&ac=PREFERENCE">'._('Cliquez ici
pour mettre à jour vos préférences').'</a>';
echo '</fieldset>';
}
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev