Author: danydb
Date: 2011-12-07 20:03:53 +0100 (Wed, 07 Dec 2011)
New Revision: 4577
Modified:
phpcompta/trunk/include/compta_fin_rec.inc.php
phpcompta/trunk/include/constant.php
Log:
cosmetic rec.
Modified: phpcompta/trunk/include/compta_fin_rec.inc.php
===================================================================
--- phpcompta/trunk/include/compta_fin_rec.inc.php 2011-12-07 18:54:12 UTC
(rev 4576)
+++ phpcompta/trunk/include/compta_fin_rec.inc.php 2011-12-07 19:03:53 UTC
(rev 4577)
@@ -27,6 +27,7 @@
* \brief reconcile operation
*
*/
+global $g_failed,$g_succeed;
require_once 'class_acc_ledger_fin.php';
bcscale(2);
echo '<div class="content">';
@@ -66,9 +67,14 @@
$cn->rollback();
alert("D'après l'extrait il y aurait du avoir un
montant de $diff à rapprocher alors qu'il y a $tot rapprochés, mise à jour
annulée, la différence est de $remain");
echo '<div class="error">';
- echo '<p>'._("D'après l'extrait il y aurait du avoir un
montant de $diff à rapprocher alors qu'il y a $tot rapprochés, la différence
est de $remain <br>mise à jour annulée").'</p>';
+ echo '<p>'.$g_failed._("D'après l'extrait il y aurait
du avoir un montant de $diff à rapprocher alors qu'il y a $tot rapprochés, la
différence est de $remain <br>mise à jour annulée").'</p>';
echo '</div>';
}
+ else
+ {
+ echo '<div class="content">'.$g_succeed.' Mise à jour
extrait '.$_POST['ext'].'</div>';
+ }
+
$cn->commit();
}
}
Modified: phpcompta/trunk/include/constant.php
===================================================================
--- phpcompta/trunk/include/constant.php 2011-12-07 18:54:12 UTC (rev
4576)
+++ phpcompta/trunk/include/constant.php 2011-12-07 19:03:53 UTC (rev
4577)
@@ -29,9 +29,10 @@
global $version_phpcompta;
-global $g_captcha;
+global $g_captcha,$g_failed,$g_succeed;
$g_captcha=false;
-
+$g_failed="<span style=\"font-size:18px;color:red\">✖</span>";
+$g_succeed="<span style=\"font-size:18px;color:green\">✓</span>";
/*set to none for production */
/* uncomment for production */
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev