';
- print '| ';
+ print ' | ';
print $commandestatic->getNomUrl(1);
print ' | ';
diff --git a/htdocs/compta/dons/index.php b/htdocs/compta/dons/index.php
index f36059e3703..972d21b33f3 100644
--- a/htdocs/compta/dons/index.php
+++ b/htdocs/compta/dons/index.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004-2010 Laurent Destailleur
+ * Copyright (C) 2004-2011 Laurent Destailleur
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
/**
* \file htdocs/compta/dons/index.php
* \ingroup don
- * \brief Page accueil espace don
+ * \brief Home page of donation module
* \version $Id$
*/
@@ -56,17 +56,17 @@ $result = $db->query($sql);
if ($result)
{
- $num = $db->num_rows($result);
- $i = 0;
- while ($i < $num)
+ $num = $db->num_rows($result);
+ $i = 0;
+ while ($i < $num)
{
- $objp = $db->fetch_object($result);
+ $objp = $db->fetch_object($result);
- $somme[$objp->fk_statut] = $objp->somme;
- $nb[$objp->fk_statut] = $objp->nb;
- $i++;
+ $somme[$objp->fk_statut] = $objp->somme;
+ $nb[$objp->fk_statut] = $objp->nb;
+ $i++;
}
- $db->free($result);
+ $db->free($result);
} else {
dol_print_error($db);
}
@@ -109,15 +109,15 @@ print '
';
$var=true;
foreach ($listofstatus as $status)
{
- $var=!$var;
- print "";
- print '| '.$donstatic->LibStatut($status,4).' | ';
- print ''.$nb[$status].' | ';
- print ''.($nb[$status]?price($somme[$status],'MT'):' ').' | ';
- print ''.($nb[$status]?price(price2num($somme[$status]/$nb[$status],'MT')):' ').' | ';
- $totalnb += $nb[$status];
- $total += $somme[$status];
- print "
";
+ $var=!$var;
+ print "";
+ print '| '.$donstatic->LibStatut($status,4).' | ';
+ print ''.$nb[$status].' | ';
+ print ''.($nb[$status]?price($somme[$status],'MT'):' ').' | ';
+ print ''.($nb[$status]?price(price2num($somme[$status]/$nb[$status],'MT')):' ').' | ';
+ $totalnb += $nb[$status];
+ $total += $somme[$status];
+ print "
";
}
print '';
@@ -170,7 +170,7 @@ if ($resql)
$donation_static->id=$obj->rowid;
$donation_static->ref=$obj->ref?$obj->ref:$obj->rowid;
- print '| ';
+ print ' | ';
print $donation_static->getNomUrl(1);
print ' | ';
@@ -185,7 +185,7 @@ if ($resql)
print '';
// Date
- print ''.dol_print_date($db->jdate($obj->datec),'day').' | ';
+ print ''.dol_print_date($db->jdate($obj->datem),'day').' | ';
print ''.$donation_static->LibStatut($obj->fk_statut,5).' | ';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 6e21bd3f9eb..c1f1c17335e 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -3350,13 +3350,19 @@ class Form
if ($dir)
{
+ $cache='0';
if ($file && file_exists($dir."/".$file))
{
- $ret.='
';
+ // TODO Link to large image
+ $ret.='';
+ $ret.='
';
+ $ret.='';
}
else if ($altfile && file_exists($dir."/".$altfile))
{
- $ret.='
';
+ $ret.='';
+ $ret.='
';
+ $ret.='';
}
else
{
@@ -3364,16 +3370,40 @@ class Form
{
global $dolibarr_main_url_root;
$ret.='';
- $ret.='
';
+ $ret.='
';
}
else
{
- $ret.='
';
+ $ret.='
';
}
}
}
else dol_print_error('','Call of showphoto with wrong parameters');
+ /* Disabled. lightbox seems to not work. I don't know why.
+ $ret.="\n\n";
+
+ $ret.="\n\n";
+ */
+
return $ret;
}
diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php
index 648a8afda5c..ad02cd337c0 100644
--- a/htdocs/fourn/commande/index.php
+++ b/htdocs/fourn/commande/index.php
@@ -286,7 +286,7 @@ if ($resql)
$commandestatic->ref=$obj->ref;
print '';
- print '| ';
+ print ' | ';
print $commandestatic->getNomUrl(1);
print ' | ';
@@ -354,7 +354,7 @@ else dol_print_error($db);
$commandestatic->ref=$obj->ref;
print '';
- print '| ';
+ print ' | ';
print $commandestatic->getNomUrl(1);
print ' | ';
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index c5be8eb78cd..de48ca72de7 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -906,7 +906,8 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
if (!empty($conf->global->MAIN_USE_JQUERY_THEME)) $jquerytheme = $conf->global->MAIN_USE_JQUERY_THEME;
print ''."\n"; // JQuery
print ''."\n"; // Tooltip
- print ''."\n"; // JNotify
+ print ''."\n"; // JNotify
+ //print ''."\n"; // Lightbox
}
print ''."\n";
@@ -950,13 +951,14 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$ext='.js';
if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x01)) { $ext='.jgz'; } // mini='_mini', ext='.gz'
- // JQuery. Must be before other includes (prototype/scriptaculous/...)
+ // JQuery. Must be before other includes
print ''."\n";
print ''."\n";
print ''."\n";
print ''."\n";
- print ''."\n";
- // jQuery Layout
+ print ''."\n";
+ //print ''."\n";
+ // jQuery Layout
if (!empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) || defined('REQUIRE_JQUERY_LAYOUT'))
{
print ''."\n";
diff --git a/htdocs/viewimage.php b/htdocs/viewimage.php
index 409a5dcb0c1..f7273746288 100644
--- a/htdocs/viewimage.php
+++ b/htdocs/viewimage.php
@@ -21,8 +21,8 @@
/**
* \file htdocs/viewimage.php
- * \brief Wrapper permettant l'affichage de fichiers images Dolibarr
- * \remarks Call to wrapper is '
'
+ * \brief Wrapper to show images into Dolibarr screens
+ * \remarks Call to wrapper is '
'
* \version $Id$
*/