~dont_cache()
~includeonce('../config.tmpl')
~add_javascript('~relative_base()js/form.js')
~include('../updateuser.tmpl')
~includeonce('../lib/html.tmpl')
~includeonce('../lib/admin.tmpl')
~includeonce('../site/thumbnail.tmpl')
~includeonce('../admin/filter.tmpl')
~includeonce('../lib/ressources.tmpl')
~includeonce('../lib/ressources_ressources.tmpl')
~map_filenamevar('res_table','form','title_id','id_id','searchtxt')
~set('res_type',~res_table_to_res_type(~get('res_table')))
~get_res_info(~get('res_type'),'res')
~if(! (~get('is_admin')||~get('is_moderator')),~http_error(404))
~if(~get('searchtxt'),
~set('body_onload',"~get('body_onload')document.forms['admin'].elements['text'].value='~urldecode(~get('searchtxt'))';"))
~include('../site/simple.header.tmpl')
~html_form_start('admin','~relative_templeet_script()admin/pick,~get('res[table]'),~get('form'),~get('title_id'),~get('id_id').html')
Recherche :
~html_form_text('text',~getpost('text'))
~defunc('ressource_link',
"
~list_tags(~get('res_type'), ~fld('id'), 'topic', ', ')
- ~fld('title')
~get_thumbnail(~get('res_type'), ~fld('id'),'img_none')
"
)
~set('text',~ifne(~simple_fi('text'),~urldecode(~get('searchtxt'))))
~if(~get('text'),
~lookup_ressources( ~get('res_type'),
~get('text'),
'ressource_link'
)
)
~html_form_submit('submit','Recherche')
~html_form_end()
~include('../site/simple.footer.tmpl')