phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5633 - in phpcompta/tags/rel671/include: . template


From: phpcompta-dev
Subject: [Phpcompta-dev] r5633 - in phpcompta/tags/rel671/include: . template
Date: Mon, 30 Dec 2013 16:13:16 +0100 (CET)

Author: danydb
Date: 2013-12-30 16:13:16 +0100 (Mon, 30 Dec 2013)
New Revision: 5633

Modified:
   phpcompta/tags/rel671/include/class_filetosend.php
   phpcompta/tags/rel671/include/config_file.php
   phpcompta/tags/rel671/include/template/dashboard.php
Log:
Final bug

Modified: phpcompta/tags/rel671/include/class_filetosend.php
===================================================================
--- phpcompta/tags/rel671/include/class_filetosend.php  2013-12-30 14:57:05 UTC 
(rev 5632)
+++ phpcompta/tags/rel671/include/class_filetosend.php  2013-12-30 15:13:16 UTC 
(rev 5633)
@@ -63,7 +63,7 @@
                 $this->type="application/zip";
                 break;
             default:
-                $this->type="application/octect";
+                $this->type="application/octet";
         }
         
     }

Modified: phpcompta/tags/rel671/include/config_file.php
===================================================================
--- phpcompta/tags/rel671/include/config_file.php       2013-12-30 14:57:05 UTC 
(rev 5632)
+++ phpcompta/tags/rel671/include/config_file.php       2013-12-30 15:13:16 UTC 
(rev 5633)
@@ -62,7 +62,7 @@
         /* default value */
         $ctmp=($os==1)?'/tmp':'c:/tmp';
         $cpath=($os==1)?'/usr/bin':'c:/phpcompta/postgresql/bin';
-        $cuser='phpcompta';
+        $cuser='phpcompta_sql';
         $cpasswd='dany';
         $cport=5432;
         $cdomain='';

Modified: phpcompta/tags/rel671/include/template/dashboard.php
===================================================================
--- phpcompta/tags/rel671/include/template/dashboard.php        2013-12-30 
14:57:05 UTC (rev 5632)
+++ phpcompta/tags/rel671/include/template/dashboard.php        2013-12-30 
15:13:16 UTC (rev 5633)
@@ -1,8 +1,71 @@
 <!-- left div -->
-<div style="float:right;max-width: 49%">
+<div style="float:left;max-width: 49%">
+    
+<div style="float:left;width: 100%">
+<fieldset >
+<legend><?php echo _('Calendrier')?>
+</legend>
+<?php echo HtmlInput::calendar_zoom($obj); ?>
+<?php echo $cal->display('short'); ?>
+</fieldset>
+</div>
+<!-- Mini rapport -->
+<div style="float:left;width: 100%">
+<?php
+/*
+ * Mini Report
+ */
+$report=$g_user->get_mini_report();
 
+$rapport=new Acc_Report($cn);
+$rapport->id=$report;
+if ( $rapport->exist() == false ) {
+  $g_user->set_mini_report(0);
+  $report=0;
+}
+
+if ( $report != 0 ) : ?>
+<fieldset style="min-height:50%;"><legend><?php echo 
$rapport->get_name()?></legend>
+<?php    
+  $exercice=$g_user->get_exercice();
+  if ( $exercice == 0 ) {
+    alert(_('Aucune periode par defaut'));
+  } else {
+    $periode=new Periode($cn);
+    $limit=$periode->limit_year($exercice);
+
+    $result=$rapport->get_row($limit['start'],$limit['end'],'periode');
+    $ix=0;
+    echo '<table border="0" width="100%">';
+    foreach ($result as $row) {
+      $ix++;
+         $class=($ix%2==0)?' class="even" ':' class="odd" ';
+      echo '<tr '.$class.'>';
+
+      echo '<td> '.$row['desc'].'</td>'.
+       '<td style="text-align:right">'.nbm($row['montant'])." &euro;</td>";
+      echo '</tr>';
+    }
+    echo '</table>';
+  }
+  ?>
+  </fieldset>
 <?php
+  else :
+?>
+  <fieldset style="height:50%;width:80%;background-color:white"><legend><?php 
_('Aucun rapport défini')?></legend>
+  <a href="javascript:void(0)" class="cell" onclick="set_preference('<?php 
echo dossier::id()?>')"><?php echo _('Cliquez ici pour mettre à jour vos 
préférences')?></a>
 
+</fieldset>
+<?php
+endif;
+?>
+</div>
+</div>
+<div style="float:left;max-width: 49%">
+
+<?php
+
 /*
  * Todo list
  */
@@ -252,71 +315,9 @@
 </div>
 
 </div>
-<div style="float:right;max-width: 49%">
-    
-<div style="float:left;width: 100%">
-<fieldset >
-<legend><?php echo _('Calendrier')?>
-</legend>
-<?php echo HtmlInput::calendar_zoom($obj); ?>
-<?php echo $cal->display('short'); ?>
-</fieldset>
-</div>
-<!-- Mini rapport -->
-<div style="float:left;width: 100%">
-<?php
-/*
- * Mini Report
- */
-$report=$g_user->get_mini_report();
 
-$rapport=new Acc_Report($cn);
-$rapport->id=$report;
-if ( $rapport->exist() == false ) {
-  $g_user->set_mini_report(0);
-  $report=0;
-}
 
-if ( $report != 0 ) : ?>
-<fieldset style="min-height:50%;"><legend><?php echo 
$rapport->get_name()?></legend>
-<?php    
-  $exercice=$g_user->get_exercice();
-  if ( $exercice == 0 ) {
-    alert(_('Aucune periode par defaut'));
-  } else {
-    $periode=new Periode($cn);
-    $limit=$periode->limit_year($exercice);
 
-    $result=$rapport->get_row($limit['start'],$limit['end'],'periode');
-    $ix=0;
-    echo '<table border="0" width="100%">';
-    foreach ($result as $row) {
-      $ix++;
-         $class=($ix%2==0)?' class="even" ':' class="odd" ';
-      echo '<tr '.$class.'>';
-
-      echo '<td> '.$row['desc'].'</td>'.
-       '<td style="text-align:right">'.nbm($row['montant'])." &euro;</td>";
-      echo '</tr>';
-    }
-    echo '</table>';
-  }
-  ?>
-  </fieldset>
-<?php
-  else :
-?>
-  <fieldset style="height:50%;width:80%;background-color:white"><legend><?php 
_('Aucun rapport défini')?></legend>
-  <a href="javascript:void(0)" class="cell" onclick="set_preference('<?php 
echo dossier::id()?>')"><?php echo _('Cliquez ici pour mettre à jour vos 
préférences')?></a>
-
-</fieldset>
-<?php
-endif;
-?>
-</div>
-</div>
-
-
 <div id="add_todo_list" >
        <script charset="utf-8" type="text/javascript" language="javascript">
                new Draggable($('add_todo_list'),{});



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