* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ $GLOBALS['filters'][U_L]['scale']['active'] = 0; // filter activation SetHTMLTitle(_t('dashboard','section')); // HTML title ////////////////////////////////////////// /////récupération des variables GET et POST ////////////////////////////////////////// include_once(override('../dashboard/display.php')); // if $_REQUEST['parentid'] is not fired, ID's value goes to $scale_id var if(isset($_REQUEST['id'])) { $scale_id=$_REQUEST['id']; } else { $scale_id=1; } // if parentid is fired, ID's value goes to $sdi_id var // and parentid's value goes to $scale_id if (isset($_REQUEST['parentid'])) { $sdi_id=$_REQUEST['id']; $scale_id=$_REQUEST['parentid']; } isset($_REQUEST['altmode']) ? $altmode = true : $altmode = false; $scale = $GLOBALS['sql_object'] -> DBSelect(SQL_getonescale($scale_id)); ////////////////////////////////////////// /////affichage tableau de bord ////////////////////////////////////////// if(!isset($_REQUEST['parentid'])) { if ( ActiveItemKey($GLOBALS['activeitem']) == 'dashboard') { setBreadcrumb(array(ucfirst(_t('dashboard','section')) => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['dashboard']['linkvalue'])))); $link_mainlist = array('rub'=> $GLOBALS['links'][U_L]['dashboard']['linkvalue']); ////////////////////////////////////////// /////affichage liste des indicateurs ////////////////////////////////////////// echo getDataVizSwitcher($altmode, $scale_id); if(isset($_REQUEST['filter']) && $_REQUEST['filter'] == $GLOBALS['filters'][U_L]['tag']['linkvalue'] ) { // getting tags include_once('../class/class.tag.php'); $otag = new tag; $current_tag = $otag->getTagById($_REQUEST['id']); if($current_tag) echo '

'.sprintf(_t('selected', 'by_tag'), ''.$current_tag['name'].'').'

'; echo '
'; echo ''._t('divers','goto_currentlist').''.PHP_EOL; echo '
'; } echo "

"._t('dashboard','list_public'). " - " . formatText($scale[0]['scale_denomination'], '2HTML') ."

".PHP_EOL; GetScaleFilter(); $slot = get_page_slot('dashboard'); // default slot if($slot) $chapo = $slot; else $chapo = _t('dashboard','h1_public_comment'); echo '
'.$chapo.'
'.PHP_EOL; if( $altmode ) { DisplayListProjectByLevelsWithIndicators('P', $GLOBALS['filters'][U_L]['scale']['linkvalue'], 1); } else { DisplayListValuesByLevelsAlt($scale_id, $GLOBALS['filters'][U_L]['scale']['linkvalue']); // DisplayListValuesByLevels($scale_id, $GLOBALS['filters'][U_L]['scale']['linkvalue']); } } ?> DBSelect(SQL_getOnesdiname($sdi_id)); if(!is_array($result)) error_redirect(); // if no record found, we redirect to error page(); SetHTMLTitle(formatText($result[0]['sdii_name'], '2HTML')); setBreadcrumb(array(ucfirst(_t('dashboard','section')) => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['dashboard']['linkvalue'])))); // setBreadcrumb(array(formatText($result[0]['sdii_name'], '2HTML') => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['dashboard']['linkvalue'], 'id' => $sdi_id, 'parentid' => $scale_id, 'name' => formatText($result[0]['sdii_name'], '2HTML'))))); setBreadcrumb(array(formatText($result[0]['sdii_name'], '2HTML') => false)); echo '
'.PHP_EOL; if(commentEnabled('indicator')) { postCommentAction(array('module'=> 'indicator', 'module_id'=> $sdi_id, 'module_pid' => $scale_id)); echo '
'.PHP_EOL; echo getCommentsAnchor(array('module'=> 'indicator', 'module_id'=> $sdi_id)); echo getPostCommentAnchor(); echo '
'.PHP_EOL; } DisplayOneSdi($sdi_id, $scale_id); if(commentEnabled('indicator')) { echo '

'._t('comment', 'section').'

'.PHP_EOL; echo '
'.PHP_EOL; displayComments(array('module'=> 'indicator', 'module_id'=> $sdi_id, 'order_by' => 'ASC'), false, true); displayCommentForm(array('module'=> 'indicator', 'module_id'=> $sdi_id, 'module_pid' => $scale_id)); echo '
'.PHP_EOL; } echo '
'.PHP_EOL; echo ''; }?>