forked from Wavyzz/dolibarr
New: Ajout info date cloture dans methode dolibarr_print_object_info
This commit is contained in:
@@ -353,29 +353,29 @@ function dolibarr_print_object_info($object)
|
||||
{
|
||||
global $langs;
|
||||
|
||||
if (isset($object->user_creation))
|
||||
if (isset($object->user_creation) && $object->user_creation->fullname)
|
||||
print $langs->trans("CreatedBy")." : " . $object->user_creation->fullname . '<br>';
|
||||
|
||||
if (isset($object->date_creation))
|
||||
print $langs->trans("DateCreation")." : " . dolibarr_print_date($object->date_creation,"%A %d %B %Y %H:%M:%S") . '<br>';
|
||||
|
||||
if (isset($object->user_modification))
|
||||
if (isset($object->user_modification) && $object->user_modification->fullname)
|
||||
print $langs->trans("ModifiedBy")." : " . $object->user_modification->fullname . '<br>';
|
||||
|
||||
if (isset($object->date_modification))
|
||||
print $langs->trans("DateModification")." : " . dolibarr_print_date($object->date_modification,"%A %d %B %Y %H:%M:%S") . '<br>';
|
||||
print $langs->trans("DateLastModification")." : " . dolibarr_print_date($object->date_modification,"%A %d %B %Y %H:%M:%S") . '<br>';
|
||||
|
||||
if (isset($object->user_validation))
|
||||
if (isset($object->user_validation) && $object->user_validation->fullname)
|
||||
print $langs->trans("ValidatedBy")." : " . $object->user_validation->fullname . '<br>';
|
||||
|
||||
if (isset($object->date_validation))
|
||||
print $langs->trans("DateValidation")." : " . dolibarr_print_date($object->date_modification,"%A %d %B %Y %H:%M:%S") . '<br>';
|
||||
|
||||
if (isset($object->user_cloture))
|
||||
if (isset($object->user_cloture) && $object->user_cloture->fullname )
|
||||
print $langs->trans("ClosedBy")." : " . $object->user_cloture->fullname . '<br>';
|
||||
|
||||
if (isset($object->date_cloture))
|
||||
print $langs->trans("DateClosing")." : " . dolibarr_print_date($object->date_modification,"%A %d %B %Y %H:%M:%S") . '<br>';
|
||||
print $langs->trans("DateClosing")." : " . dolibarr_print_date($object->date_cloture,"%A %d %B %Y %H:%M:%S") . '<br>';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -429,6 +429,7 @@ function dolibarr_trunc($string,$size=40)
|
||||
\brief Affiche logo propre <20> une notion (fonction g<>n<EFBFBD>rique)
|
||||
\param alt Texte sur le alt de l'image
|
||||
\param object Objet pour lequel il faut afficher le logo (exemple: user, group, action, bill, contract, propal, product, ...)
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_object($alt, $object)
|
||||
{
|
||||
@@ -440,6 +441,7 @@ function img_object($alt, $object)
|
||||
\brief Affiche logo action
|
||||
\param alt Texte sur le alt de l'image
|
||||
\param numaction Determine image action
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_action($alt = "default", $numaction)
|
||||
{
|
||||
@@ -454,9 +456,28 @@ function img_action($alt = "default", $numaction)
|
||||
return '<img align="absmiddle" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/stcomm'.$numaction.'.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Affiche logo statut
|
||||
\param num Num<75>ro statut
|
||||
\param text Texte a afficher sur alt
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_statut($num,$alt = "default")
|
||||
{
|
||||
global $conf,$langs;
|
||||
if ($alt=="default") {
|
||||
if ($num == 0) $alt=$langs->trans("Draft");
|
||||
if ($num == 1) $alt=$langs->trans("Late");
|
||||
if ($num == 4) $alt=$langs->trans("Running");
|
||||
if ($num == 5) $alt=$langs->trans("Closed");
|
||||
}
|
||||
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/statut'.$num.'.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Affiche logo fichier
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_file($alt = "default")
|
||||
{
|
||||
@@ -468,6 +489,7 @@ function img_file($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo dossier
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_folder($alt = "default")
|
||||
{
|
||||
@@ -479,6 +501,7 @@ function img_folder($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo nouveau fichier
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_file_new($alt = "default")
|
||||
{
|
||||
@@ -490,6 +513,7 @@ function img_file_new($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo pdf
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_pdf($alt = "default")
|
||||
{
|
||||
@@ -501,6 +525,7 @@ function img_pdf($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo +
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_edit_add($alt = "default")
|
||||
{
|
||||
@@ -511,6 +536,7 @@ function img_edit_add($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo -
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_edit_remove($alt = "default")
|
||||
{
|
||||
@@ -522,6 +548,7 @@ function img_edit_remove($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo editer/modifier fiche
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_edit($alt = "default")
|
||||
{
|
||||
@@ -533,6 +560,7 @@ function img_edit($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo effacer
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_delete($alt = "default")
|
||||
{
|
||||
@@ -544,6 +572,7 @@ function img_delete($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo d<>sactiver
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_disable($alt = "default")
|
||||
{
|
||||
@@ -556,6 +585,7 @@ function img_disable($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo info
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_info($alt = "default")
|
||||
{
|
||||
@@ -567,6 +597,7 @@ function img_info($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo warning
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_warning($alt = "default")
|
||||
{
|
||||
@@ -578,6 +609,7 @@ function img_warning($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo warning
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_error($alt = "default")
|
||||
{
|
||||
@@ -589,6 +621,7 @@ function img_error($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo alerte
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_alerte($alt = "default")
|
||||
{
|
||||
@@ -600,6 +633,7 @@ function img_alerte($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo t<>l<EFBFBD>phone in
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_phone_in($alt = "default")
|
||||
{
|
||||
@@ -611,6 +645,7 @@ function img_phone_in($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo t<>l<EFBFBD>phone out
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_phone_out($alt = "default")
|
||||
{
|
||||
@@ -622,6 +657,7 @@ function img_phone_out($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo suivant
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_next($alt = "default")
|
||||
{
|
||||
@@ -635,6 +671,7 @@ function img_next($alt = "default")
|
||||
/**
|
||||
\brief Affiche logo pr<70>c<EFBFBD>dent
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_previous($alt = "default")
|
||||
{
|
||||
@@ -647,6 +684,7 @@ function img_previous($alt = "default")
|
||||
\brief Affiche logo bas
|
||||
\param alt Texte sur le alt de l'image
|
||||
\param selected Affiche version "selected" du logo
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_down($alt = "default", $selected=1)
|
||||
{
|
||||
@@ -660,6 +698,7 @@ function img_down($alt = "default", $selected=1)
|
||||
\brief Affiche logo haut
|
||||
\param alt Texte sur le alt de l'image
|
||||
\param selected Affiche version "selected" du logo
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_up($alt = "default", $selected=1)
|
||||
{
|
||||
@@ -673,6 +712,7 @@ function img_up($alt = "default", $selected=1)
|
||||
/**
|
||||
\brief Affiche logo tick
|
||||
\param alt Texte sur le alt de l'image
|
||||
\return string Retourne tags <img>
|
||||
*/
|
||||
function img_tick($alt = "default")
|
||||
{
|
||||
@@ -681,6 +721,7 @@ function img_tick($alt = "default")
|
||||
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/tick.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
\brief Affiche formulaire de login
|
||||
\remarks il faut changer le code html dans cette fonction pour changer le design
|
||||
|
||||
Reference in New Issue
Block a user