<?php
include_once( '../../../includes/prepend.php' );
$sTagProjet = $_REQUEST[ 'tag' ];
//enregistrement du projet
if( isset( $_REQUEST[ 'act' ] ) && $_REQUEST[ 'act' ] == 'save' ){
list( $sXml, $sTag ) = $oFramework->oProjets->generatXmlByArray( $_REQUEST );
$oFramework->oProjets->saveXmlByProject( $sTag, $sXml );
}
//recupere les infos du projet
$oData = $oFramework->oProjets->getData( $sTagProjet );
$oTpl_projet_detail = new smarty_site();
$oTpl_projet_detail->assign( 'urlSubmit', 'index.php?act=save&tag='.$sTagProjet );
$oTpl_projet_detail->assign( 'data', $oData );
$oTpl_projet_detail->clear_cache( 'app/projet/projet-detail.html' );
$sFromProjet = $oTpl_projet_detail->fetch( 'app/projet/projet-detail.html' );
$oTemplate->assign( 'body', $sFromProjet );
$oTemplate->clear_cache('index.html');
$oTemplate->display('index.html');
?>