Source for file tpl_dashboard.php
Documentation is available at tpl_dashboard.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
$GLOBALS['filters'][U_L]['scale']['active'] = 1; // filter activation
//////////////////////////////////////////
/////récupération des variables GET et POST
//////////////////////////////////////////
include_once(themePath('../dashboard/display.php'));
// if parentid is not fired ID is scale_id
if(isset ($_REQUEST['id'])) {
$scale_id= $_REQUEST['id'];
// if parentid is fired ID is sdi_id
// and parentid is sclae_id
if (isset ($_REQUEST['parentid'])) {
$scale_id= $_REQUEST['parentid'];
//////////////////////////////////////////
/////affichage tableau de bord
//////////////////////////////////////////
if(!isset ($_REQUEST['parentid'])) {
//////////////////////////////////////////
/////affichage liste des indicateurs classique
//////////////////////////////////////////
echo "<h1>". _t('dashboard','list_public'). "</h1>". END_LINE;
<div class="sub-title"> <?php echo _t('dashboard','h1_public_comment'); ?>
echo '<script type="text/javascript">
$(document).ready(function() {
$("table a.ruler").removeAttr("title");
$("table").removeClass("a.ruler:hover");
$("table a.ruler").hover(
$(this).next().fadeIn("fast");
//////////////////////////////////////////
/////affichage détail d'un indicateur
//////////////////////////////////////////
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')))));
echo '<div id="anchor-comments">'. END_LINE;
if(isset ($_REQUEST['parentid']) && ActiveItemKey($GLOBALS['activeitem'])== 'dashboard') {
if (isset ($_REQUEST['parentid']) && ActiveItemKey($GLOBALS['activeitem'])== 'dashboard-rules') {
if (isset ($_REQUEST['parentid']) && ActiveItemKey($GLOBALS['activeitem'])== 'dashboard-assessment') {
if (isset ($_REQUEST['parentid']) && ActiveItemKey($GLOBALS['activeitem'])== 'dashboard-provider') {
echo '<h3>'. _t('comment', 'section'). '</h3>'. END_LINE;
displayComments(array('module'=> 'indicator', 'module_id'=> $sdi_id, 'order_by' => 'ASC'), false, true);
echo '<script type="text/javascript">
$(document).ready(function() {
$(".valuecomment").hover(
$(".cont", this).fadeIn();
|