~includeonce('../config.tmpl') ~includeonce('../lib/ressources.tmpl') ~includeonce('../lib/admin.tmpl') ~includeonce('../config/spell.tmpl') ~mapfilenamevar('res_table') ~if(~integer(~get('res_table'))>0, { ~get_res_info(~get('res_table'),'res'), ~redirect('~get_site_url()admin/check,~get('res[table]').html') }) ~set('res_type',~res_table_to_res_type(~get('res_table'))) ~get_res_info(~get('res_type'),'res') ~set('res_name',~get('res[name]')) ~include('../site/admin.header.tmpl','Vérification ~get('res_name')') ~if( ~file_exists('~getconf('templatedir')lib/~get('res_table').tmpl'), ~includeonce('../lib/~get('res_table').tmpl') )

~img('img/svg/plus.svg','Ajouter','intxt') Ajouter ~spell_article('un', ~get('res[gender]'), ~get('res_name'))
~img('img/svg/admin-manage.svg','Gestion','intxt') Gestion des ~spell_plural(~get('res_name'))

~if( ~file_exists('~getconf('templatedir')admin/~get('res_table').menu'), ~include('~get('res_table').menu') )
~if( ~file_exists('~getconf('templatedir')admin/~get('res_table').check'), ~include('~get('res_table').check') ) ~list(~get('database'), "OPTIMIZE TABLE ~get('res_table')" ) ~include("../site/admin.footer.tmpl")