~includeonce('../site/editarea.tmpl') ~includeonce('../img/utils.tmpl') ~include('../site/admin.header.tmpl','Edite l\'image ~get_filenamevar(1)') Gestion des images / ~if(~get_filenamevar(1),' Image précédente / Image suivante ')
~setl('query', ~if(~get_filenamevar(1), "SELECT images.id,images.name,images.alt, imsection_id,section,path_id,path, images.timestamp + 0 as timestamp, images.description, users.homesite,users.login, news_author.name AS author, news_author.contact FROM images,images_path,imsections,users,news_author WHERE images.id=~integer(~get_filenamevar(1)) AND images_path.id=images.path_id AND images.imsection_id=imsections.id AND users.id=images.user_id AND news_author.id=images.author_id ", "SELECT images.id,images.name,images.alt, imsection_id,section,path_id,path, images.timestamp + 0 as timestamp, images.description, users.homesite,users.login, news_author.name AS author, news_author.contact FROM images,images_ressources,images_path,imsections,users,news_author WHERE images.id=images_ressources.image_id AND images_ressources.res_type=~integer(~get_filenamevar(2)) AND images_ressources.res_id=~integer(~get_filenamevar(3)) AND images_path.id=images.path_id AND images.imsection_id=imsections.id AND users.id=images.user_id AND news_author.id=images.author_id ") ) ~list(~get('database'), ~getl('query'), 'LF','
','LM',' ~setl('imsection_id_tmp',~fld('imsection_id')) ~setl('path_id_tmp',~fld('path_id')) ~setl('counter', ~gfld('counter')) ~rem(~getl('imsection_id_tmp')<=1,' ')

~setl('src','~relative_base()~fld('path')~fld('name')') ~fld('alt')
~fld('alt')

~ls(~fld('path'),'/^~fld('name')$/','file','M',0,,'LM', 'Fichier : ~ls_fld('file')
création : ~format_unixtimestamp("%d/%m/%Y @ %H:%M:%S",~ls_fld('ctime'))
taille : ~ls_fld('size') octets')
Chemin : ~list(~get('database'),"SELECT path,id FROM images_path WHERE state=~get('state_ok') OR tmp=1 OR id=~integer(~getl('path_id_tmp')) ORDER BY id DESC", 'LF', '
', 'LM', '' )
Section : ~list(~get('database'), "SELECT id,section FROM imsections WHERE state=~get('state_ok') ORDER BY section", 'LF', '
', 'LM', '' )
Agrandir les images trop petites :
Légende :
Auteur (facultatif) :
Contact (facultatif):
Description (pour les galeries, facultatif) [+] :
~display_return(~fld('id'))
', 'LL','
', 'LD', 'L\'image n\'existe pas.
' ) ~include("../site/admin.footer.tmpl")