[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4084 - phpcompta/trunk/html
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4084 - phpcompta/trunk/html |
Date: |
Fri, 13 May 2011 21:19:28 +0200 (CEST) |
Author: danydb
Date: 2011-05-13 21:19:27 +0200 (Fri, 13 May 2011)
New Revision: 4084
Modified:
phpcompta/trunk/html/access.php
Log:
0000257: P?\195?\169riode par d?\195?\169faut
Modified: phpcompta/trunk/html/access.php
===================================================================
--- phpcompta/trunk/html/access.php 2011-05-12 16:52:39 UTC (rev 4083)
+++ phpcompta/trunk/html/access.php 2011-05-13 19:19:27 UTC (rev 4084)
@@ -93,6 +93,18 @@
echo '<a hreF="'.$base.'">'.$a.'</a></h2>';
}
+/*
+ * Set a correct periode for the user
+ */
+$periode=$user->get_periode();
+$oPeriode=new Periode($cn,$periode);
+
+if ($oPeriode->load() == -1 )
+ {
+ $periode=$cn->get_value('select p_id from parm_periode order by p_start
asc limit 1');
+ $user->set_periode($periode);
+ }
+
echo '<div class="u_tmenu">';
echo menu_tool('access.php');
echo '</div>';
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4084 - phpcompta/trunk/html,
phpcompta-dev <=