Source for file tpl_publication.php
Documentation is available at tpl_publication.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////////////////////////////////////
/////affichage partie dossier
//////////////////////////////////////////
$GLOBALS['filters'][U_L]['theme']['active'] = 1; // filter activation
$GLOBALS['filters'][U_L]['level']['active'] = 1; // filter activation
$GLOBALS['filters'][U_L]['scale']['active'] = 1; // filter activation
include_once(themePath('../publication/display.php'));
/** préparation des variables
if(ActiveItemKey($GLOBALS['activeitem'])== 'publication') $statut= 'public';
if(ActiveItemKey($GLOBALS['activeitem'])== 'publication-archives') $statut= 'archives_p';
if(isset ($_REQUEST['id'])) $id= $_REQUEST['id']; else $id=- 1;
if(isset ($_REQUEST['debut'])) $debut= $_REQUEST['debut']; else $debut= 0;
if(isset ($_REQUEST['filter'])) {
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['scale']['linkvalue']) $filter= 'SCALE';
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['theme']['linkvalue']) $filter= 'THEME';
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['level']['linkvalue']) $filter= 'LEVEL';
/** Affichage du lien de consultation d'archives ( si nécessaire
if(ActiveItemKey($GLOBALS['activeitem']) != 'publication-archives') {
$link_archive= array('rub'=> $GLOBALS['links'][U_L]['publication-archives']['linkvalue']);
echo '<div class="switchnav">';
echo '<a class="button" href="'. HrefMaker($link_archive). '" title="'. _t('divers','goto_archives'). '">'. _t('divers','goto_archives'). '</a>'. END_LINE;
/** Affichage du lien de consultation de la liste courante ( si nécessaire
if(ActiveItemKey($GLOBALS['activeitem']) == 'publication-archives') {
$link_archive= array('rub'=> $GLOBALS['links'][U_L]['publication']['linkvalue']);
echo '<div class="switchnav">';
echo '<a class="button" href="'. HrefMaker($link_archive). '" title="'. _t('divers','goto_currentlist'). '">'. _t('divers','goto_currentlist'). '</a>'. END_LINE;
/** Affichage du Listing Des Dossiers et Dossiers archivés
if((isset ($_REQUEST['id']) && isset ($_REQUEST['filter'])) || (!isset ($_REQUEST['id']) && !isset ($_REQUEST['filter'])))
if(isset ($_REQUEST['id']) && !isset ($_REQUEST['filter'])) {
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
displayComments(array('module'=> 'publication', 'module_id'=> $id, 'order_by' => 'ASC'), false, true);
if($publi_statut == 'P') displayCommentForm(array('module'=> 'publication', 'module_id'=> $id));
//////////////////////////////////////////
/////affichage rapport de groupe de travail
//////////////////////////////////////////
include_once(themePath('../workshoprep/display.php'));
/** préparation des variables
if(isset ($_REQUEST['id'])) $id= $_REQUEST['id']; else $id=- 1;
if(isset ($_REQUEST['id'])) {
$status = $result[0]['workrep_statut'];
setBreadcrumb(array(formatText($result[0]['workshop_denomination'], '2HTML') => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['workgroup']['linkvalue'], 'id' => $result[0]['workrep_workshop_id'], 'name' => formatText($result[0]['workshop_denomination'], '2HTML')))));
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
displayComments(array('module'=> 'report', 'module_id'=> $id, 'order_by' => 'ASC'), false, true);
//////////////////////////////////////////
///// affichage Parties par parties
///// Rapports de groupe de travail et Dossiers
//////////////////////////////////////////
include_once(themePath('../contents/display.php'));
/** préparation des variables
* $parentid -> default -1
if(isset ($_REQUEST['id'])) $id= $_REQUEST['id']; else $id=- 1;
if(isset ($_REQUEST['parentid'])) $parentid= $_REQUEST['parentid']; else $parentid=- 1;
include_once(themePath('../workshoprep/display.php'));
$status = $result[0]['workrep_statut'];
setBreadcrumb(array(formatText($result[0]['workshop_denomination'], '2HTML') => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['workgroup']['linkvalue'], 'id' => $result[0]['workrep_workshop_id'], 'name' => formatText($result[0]['workshop_denomination'], '2HTML')))));
echo '<div id="anchor-comments">'. END_LINE;
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
displayComments(array('module'=> 'report', 'module_id'=> $parentid, 'order_by' => 'ASC'), false, true);
if($status == 'P') displayCommentForm(array('module'=> 'report', 'module_id'=> $parentid));
include_once(themePath('../publication/display.php'));
$status = $result[0]['publi_statut'];
echo '<div id="anchor-comments">'. END_LINE;
if($status == 'P') echo getPostCommentAnchor(array('module'=> 'publication', 'module_id'=> $parentid));
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
displayComments(array('module'=> 'publication', 'module_id'=> $parentid, 'order_by' => 'ASC'), false, true);
if($status == 'P') displayCommentForm(array('module'=> 'publication', 'module_id'=> $parentid));
//////////////////////////////////////////
/////affichage partie news
//////////////////////////////////////////
$GLOBALS['filters'][U_L]['theme']['active'] = 1; // filter activation
$GLOBALS['filters'][U_L]['level']['active'] = 1; // filter activation
$GLOBALS['filters'][U_L]['scale']['active'] = 1; // filter activation
include_once(themePath('../news/display.php'));
/** préparation des variables
if(ActiveItemKey($GLOBALS['activeitem'])== 'news') $statut= 'public';
if(ActiveItemKey($GLOBALS['activeitem'])== 'news-archives') $statut= 'archives_p';
if(isset ($_REQUEST['id'])) $id= $_REQUEST['id']; else $id=- 1;
if(isset ($_REQUEST['debut'])) $debut= $_REQUEST['debut']; else $debut= 0;
if(isset ($_REQUEST['filter'])) {
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['scale']['linkvalue']) $filter= 'SCALE';
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['theme']['linkvalue']) $filter= 'THEME';
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['level']['linkvalue']) $filter= 'LEVEL';
/** Affichage du lien de consultation d'archives ( si nécessaire
$link_archive= array('rub'=> $GLOBALS['links'][U_L]['news-archives']['linkvalue']);
echo '<div class="switchnav">';
echo '<a class="button" href="'. HrefMaker($link_archive). '" title="'. _t('divers','goto_archives'). '">'. _t('divers','goto_archives'). '</a>'. END_LINE;
/** Affichage du lien de consultation liste principale ( si nécessaire
$link_archive= array('rub'=> $GLOBALS['links'][U_L]['news']['linkvalue']);
echo '<div class="switchnav">';
echo '<a class="button" href="'. HrefMaker($link_archive). '" title="'. _t('divers','goto_currentlist'). '">'. _t('divers','goto_currentlist'). '</a>'. END_LINE;
/** Affichage du Listing Actualité + Archives
if((isset ($_REQUEST['id']) && isset ($_REQUEST['filter'])) || (!isset ($_REQUEST['id']) && !isset ($_REQUEST['filter'])))
/** Détail d'une actualité
if(isset ($_REQUEST['id']) && !isset ($_REQUEST['filter'])) {
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
//////////////////////////////////////////
/////affichage partie projet
//////////////////////////////////////////
include_once(themePath('../project/display.php'));
$GLOBALS['filters'][U_L]['priority']['active'] = 1; // filter activation
/** préparation des variables
if(ActiveItemKey($GLOBALS['activeitem'])== 'project') $statut= 'public';
if(ActiveItemKey($GLOBALS['activeitem'])== 'project-archives') $statut= 'archives_p';
if(isset ($_REQUEST['id'])) $id= $_REQUEST['id']; else $id=- 1;
if(isset ($_REQUEST['debut'])) $debut= $_REQUEST['debut']; else $debut= 0;
if(isset ($_REQUEST['filter'])) {
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['scale']['linkvalue']) $filter= 'SCALE';
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['priority']['linkvalue']) $filter= 'PRIORITY';
if($_REQUEST['filter']== $GLOBALS['filters'][U_L]['theme']['linkvalue']) $filter= 'THEME';
/** Affichage du lien de consultation d'archives ( si nécessaire
if(ActiveItemKey($GLOBALS['activeitem']) != 'project-archives') {
$link_archive= array('rub'=> $GLOBALS['links'][U_L]['project-archives']['linkvalue']);
echo '<div class="switchnav">';
echo '<a class="button" href="'. HrefMaker($link_archive). '" title="'. _t('divers','goto_archives'). '">'. _t('divers','goto_archives'). '</a>'. END_LINE;
/** Affichage du lien de consultation liste principale ( si nécessaire
if(ActiveItemKey($GLOBALS['activeitem']) == 'project-archives') {
$link_archive= array('rub'=> $GLOBALS['links'][U_L]['project']['linkvalue']);
echo '<div class="switchnav">';
echo '<a class="button" href="'. HrefMaker($link_archive). '" title="'. _t('divers','goto_currentlist'). '">'. _t('divers','goto_currentlist'). '</a>'. END_LINE;
/** Affichage du lien de consultation liste principale ( si nécessaire
// if(ActiveItemKey($GLOBALS['activeitem']) == 'project-archives') {
// $link_archive= array('rub'=> $GLOBALS['links'][U_L]['news']['linkvalue']);
// echo '<div class="switchnav">';
// echo '<a class="button" href="'.HrefMaker($link_archive).'" title="'._t('divers','goto_currentlist').'">'._t('divers','goto_currentlist').'</a>'.END_LINE;
/** Affichage du Listing Projets + Archives
if((isset ($_REQUEST['id']) && isset ($_REQUEST['filter'])) || (!isset ($_REQUEST['id']) && !isset ($_REQUEST['filter'])))
if(isset ($_REQUEST['id']) && !isset ($_REQUEST['filter'])) {
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
displayComments(array('module'=> 'project', 'module_id'=> $id, 'order_by' => 'ASC'), false, true);
|