<?php
include_once( '../../../includes/prepend.php' );
$sTagProjet = $_REQUEST[ 'tag' ];
//recupere les infos du projet
$oData = $oFramework->oProjets->getData( $sTagProjet );
$oTpl_projet_detail = new smarty_site();
$oTpl_projet_detail->assign( 'data', $oData );
$oTpl_projet_detail->clear_cache( 'app/generation/generation-detail.html' );
$sFromProjet = $oTpl_projet_detail->fetch( 'app/generation/generation-detail.html' );
//ajout du fichier javascript
$oTemplate->assign( 'header', '<script src="generation.js"></script>'.
'<script>'.
'window.generationPrj = new generationPrj( "'.$sTagProjet.'" );'.
'</script>' );
$oTemplate->assign( 'body', $sFromProjet );
$oTemplate->clear_cache('index.html');
$oTemplate->display('index.html');
?>