~includeonce('../site/editarea.tmpl') ~includeonce('../lib/images.tmpl') ~include('../site/admin.header.tmpl','Edite l\'image ~get_filenamevar(1)') ~img('img/svg/up-a.svg','Gestion','intxt') Gestion des images / ~if(~get_filenamevar(1),' ~img('img/svg/left-a.svg','Précédente','intext') Image précédente / ~img('img/svg/right-a.svg','Suivante','intxt') Image suivante ')
~setl('query', ~if(~get_filenamevar(1), "SELECT images.id,images.name,images.alt, images.section_id,section,path_id,path, images.update_timestamp + 0 as timestamp, images.description, users.homesite,users.login, news_author.name AS author, news_author.contact FROM images,images_path,images_sections,users,news_author WHERE images.id=~integer(~get_filenamevar(1)) AND images_path.id=images.path_id AND images.section_id=images_sections.id AND users.id=images.user_id AND news_author.id=images.author_id ", "SELECT images.id,images.name,images.alt, images.section_id,section,path_id,path, images.update_timestamp + 0 as timestamp, images.description, users.homesite,users.login, news_author.name AS author, news_author.contact FROM images,images_ressources,images_path,images_sections,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.section_id=images_sections.id AND users.id=images.user_id AND news_author.id=images.author_id ") ) ~list(~get('database'), ~getl('query'), 'LF','
','LM',' ~setl('section_id_tmp',~fld('section_id')) ~setl('path_id_tmp',~fld('path_id')) ~setl('counter', ~gfld('counter')) ~rem(~getl('section_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')
Date de création : ~format_unixtimestamp("%d/%m/%Y @ %H:%M:%S",~ls_fld('ctime'))
Taille : ~round(~ls_fld('size')/1024.0,1) ko
~image_size('~fld('path')~fld('name')')
')
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')) ) AND is_avatar=0 ORDER BY id DESC", 'LF', '
', 'LM', '' )
Section : ~list(~get('database'), "SELECT images_sections.id, images_sections.longname AS section FROM images_sections WHERE images_sections.state=~get('state_ok') AND images_sections.main=1 ORDER BY section", 'LF', '
', 'LM', '' )
Agrandir les images trop petites :
Légende :
Auteur (facultatif) :
Contact (facultatif):
Description (facultatif pour les diaporamas) [+] :
~editarea('fdescription~gfld('counter')','admin')
~display_return(~fld('id'))
~include('news_moderated.tmpl',~get('res_type_images'),~fld('id'))
', 'LL','
', 'LD', 'L\'image n\'existe pas.
' ) ~include("../site/admin.footer.tmpl")