Display the creation date of a resource
Insert these functions in
manager/frontinc/functions.php :
=> this function to
display the date of creation in a $last loop :
function pxLastResDateCreation
($dateformat =
'%Y-%m-%dT%H:%M:%S 00:00',
$s =
'%s')
{
$cd = makeTime
($GLOBALS['_PX_render']['m']->
lres->
f('creationdate'));
echo sprintf($s,
strftime($dateformat,
$cd));
}
=> this function to
display the date of creation in a $res loop :
function pxResDateCreation
($dateformat =
'%Y-%m-%dT%H:%M:%S 00:00',
$s =
'%s')
{
echo strftime($dateformat , makeTime
($GLOBALS['_PX_render']['m']->
res->
f('creationdate')));
}
Afficher la date de création d'une ressource
Il faut créer les fonctions suivantes dans
manager/frontinc/functions.php :
=> cette fonction pour
afficher la date de création dans une boucle $last :
function pxLastResDateCreation
($dateformat =
'%Y-%m-%dT%H:%M:%S 00:00',
$s =
'%s')
{
$cd = makeTime
($GLOBALS['_PX_render']['m']->
lres->
f('creationdate'));
echo sprintf($s,
strftime($dateformat,
$cd));
}
=> cette fonction pour
afficher la date de création dans une boucle $res :
function pxResDateCreation
($dateformat =
'%Y-%m-%dT%H:%M:%S 00:00',
$s =
'%s')
{
echo strftime($dateformat , makeTime
($GLOBALS['_PX_render']['m']->
res->
f('creationdate')));
}