~include('../site/admin.header.tmpl','Gestion images')
~include('filter.tmpl')
~defunc('disp_img','[~format_timestamp('%d/%m %H:%M',~fld('timestamp'))] ~fld('name')
')
~if(~getpost('text'),
~list(~get('database'),
"SELECT id, name FROM images
WHERE name LIKE '%~call('simple_fi','text')%'
ORDER BY name",
'LM',
'
~fld('name')',
'LD','Pas de rubrique contenant ~getpost('text')'
)
)
Vérifier les images
Dernières images modifiées: (1 mois):
~list(~get('database'),
"SELECT name,id,timestamp + 0 as timestamp FROM images
WHERE timestamp >= date_sub(current_timestamp(), interval 31 day)
ORDER BY id DESC LIMIT 20",
'LM',~call('disp_img')
)
~list(~get('database'),
"SELECT name,id,timestamp + 0 as timestamp FROM images WHERE state=~get('state_wait') ORDER BY id LIMIT 20",
'LF','
Images effacée :
',
'LL','
',
'LM',~call('disp_img')
)
~list(~get('database'),
"SELECT name,id,timestamp + 0 as timestamp FROM images WHERE state=~get('state_new') ORDER BY id LIMIT 20",
'LF','
Images temporaires :
',
'LL','
',
'LM',~call('disp_img')
)
~list(~get('database'),
"SELECT count(*) as count FROM images",
'LF',~set('num',~fld('count'))
)
~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'),20)
~list(~get('database'),
"SELECT id,name,timestamp + 0 as timestamp FROM images ORDER BY id DESC LIMIT 20 OFFSET ~get('indice')",
'LM',~call('disp_img')
)
~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'),20)
~include("../site/admin.footer.tmpl")