~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','