[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5402 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5402 - phpcompta/trunk/include |
Date: |
Thu, 19 Sep 2013 14:08:00 +0200 (CEST) |
Author: danydb
Date: 2013-09-19 14:08:00 +0200 (Thu, 19 Sep 2013)
New Revision: 5402
Modified:
phpcompta/trunk/include/impress_rapport.inc.php
Log:
fix bug : disabling calendar / periode not working, esthetique for even rows
Modified: phpcompta/trunk/include/impress_rapport.inc.php
===================================================================
--- phpcompta/trunk/include/impress_rapport.inc.php 2013-09-19 11:45:01 UTC
(rev 5401)
+++ phpcompta/trunk/include/impress_rapport.inc.php 2013-09-19 12:08:00 UTC
(rev 5402)
@@ -198,7 +198,7 @@
echo $hidden->input("type","rapport");
echo dossier::hidden();
-echo '<TABLE border="2"><TR>';
+echo '<TABLE><TR>';
$w=new ISelect();
$w->table=1;
print td("Choississez le rapport");
@@ -211,6 +211,7 @@
);
$w->javascript=' onchange=enable_type_periode();';
+$w->id='type_periode';
echo '<tr>';
print td('Type de date : ');
echo $w->input('type_periode',$aCal);
@@ -219,21 +220,28 @@
print '<TR>';
// filter on the current year
$filter_year=" where p_exercice='".sql_string($exercice)."'";
-
+$periode_start_select=new ISelect();
+$periode_start_select->table=1;
+$periode_end_select=new ISelect();
+$periode_end_select->table=1;
$periode_start=$cn->make_array("select p_id,to_char(p_start,'DD-MM-YYYY') from
parm_periode $filter_year order by p_start,p_end");
print td("Période comptable : Depuis");
-echo $w->input('from_periode',$periode_start);
+echo $periode_start_select->input('from_periode',$periode_start);
print td(" jusqu'à ");
$periode_end=$cn->make_array("select p_id,to_char(p_end,'DD-MM-YYYY') from
parm_periode $filter_year order by p_start,p_end");
-print $w->input('to_periode',$periode_end);
+print $periode_end_select->input('to_periode',$periode_end);
print "</TR>";
echo '<tr>';
//--- by date
-$date=new IDate();
+$date_from=new IDate('from_date');
+$date_from->id='from_date';
+$date_to=new IDate('to_date');
+$date_to->id='to_date';
+
echo td("Calendrier depuis :");
-echo td($date->input('from_date'));
+echo td($date_from->input('from_date'));
echo td("jusque");
-echo td($date->input('to_date'));
+echo td($date_to->input('to_date'));
echo '</tr>';
$aStep=array(
@@ -270,7 +278,7 @@
foreach ( $p_array as $op )
{
$i++;
- $class= ( $i % 2 == 0 )?' class="odd"':"";
+ $class= ( $i % 2 == 0 )?' class="odd"':' class="even"';
echo "<TR $class>".
"<TD>".h($op['desc'])."</TD>".
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r5402 - phpcompta/trunk/include,
phpcompta-dev <=