Author: danydb Date: 2013-12-30 16:15:57 +0100 (Mon, 30 Dec 2013) New Revision: 5635
Modified: phpcompta/trunk/ phpcompta/trunk/include/class_filetosend.php phpcompta/trunk/include/config_file.php phpcompta/trunk/include/template/dashboard.php Log: Merged revisions 5633-5634 via svnmerge from svn+ssh://[email protected]/svn/phpcompta/tags/rel671 ........ r5633 | danydb | 2013-12-30 16:13:16 +0100 (lun., 30 d?\195?\169c. 2013) | 1 line Final bug ........ r5634 | danydb | 2013-12-30 16:15:04 +0100 (lun., 30 d?\195?\169c. 2013) | 1 line add todo ........ Property changes on: phpcompta/trunk ___________________________________________________________________ Name: svnmerge-integrated - /phpcompta/tags/rel671:1-5631 + /phpcompta/tags/rel671:1-5634 Modified: phpcompta/trunk/include/class_filetosend.php =================================================================== --- phpcompta/trunk/include/class_filetosend.php 2013-12-30 15:15:04 UTC (rev 5634) +++ phpcompta/trunk/include/class_filetosend.php 2013-12-30 15:15:57 UTC (rev 5635) @@ -63,7 +63,7 @@ $this->type="application/zip"; break; default: - $this->type="application/octect"; + $this->type="application/octet"; } } @@ -72,7 +72,9 @@ */ function compute_name($p_filename) { - + /** + * @todo compute a filename + */ } } Modified: phpcompta/trunk/include/config_file.php =================================================================== --- phpcompta/trunk/include/config_file.php 2013-12-30 15:15:04 UTC (rev 5634) +++ phpcompta/trunk/include/config_file.php 2013-12-30 15:15:57 UTC (rev 5635) @@ -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/trunk/include/template/dashboard.php =================================================================== --- phpcompta/trunk/include/template/dashboard.php 2013-12-30 15:15:04 UTC (rev 5634) +++ phpcompta/trunk/include/template/dashboard.php 2013-12-30 15:15:57 UTC (rev 5635) @@ -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'])." €</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'])." €</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 _______________________________________________ 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
