if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); if (!defined('ALLOWED_ADMIN')) { die(_('Non autorisé')); } require_once NOALYSS_INCLUDE.'/class/package_repository.class.php'; require_once NOALYSS_INCLUDE.'/class/extension.class.php'; $package_repository=new Package_Repository(); $xml=$package_repository->getContent(); $a_template=$xml->xpath('//database_template/dbtemplate'); $nb_template=count($a_template); echo ""; echo tr( th(_("Nom")).th(_("Description")).th(_("Mise à jour")) ); for ($i=0; $i<$nb_template; $i++) { echo ''; echo td($a_template[$i]->name); echo td($a_template[$i]->description); echo td($a_template[$i]->date_update); echo ''; echo ''; } echo "
'; $js=sprintf("onclick=\"install_template('%s')\"", trim($a_template[$i]->code)); echo HtmlInput::button("installTemplate", "Installation modèle", $js); echo '
"; ?>