* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// //////////// Check Droits utilisateur //////////// if (!$l21auth->hasRight('dashboard')) ReloadIndex('admin'); //////////// include_once("../lib/input_helpers.php"); include_once("../dashboard/common.php"); include_once("../dashboard/display.php"); include_once(override('../level/display.php', THEME_ADMIN_PATH)); include_once('../class/class.tag.php'); // getting tags menu filter $otag = new tag(); $tags =$otag->getTags('indicator', -1, false); $filter_menu = getMenuFilter($tags); $firstlevels = $sql_object->DBSelect(SQL_getLevelsList(true)); $sdi = $sql_object -> DBSelect(SQL_getListSdi("R", 0)); $bdd_nb_sdi = get_unique_indicators($sdi, true); $sdi = add_root_level($sdi, 'sdii_level', 'level_root'); // we add extra field with level root // Number of records $bdd_nb_sdi_display = '' .$bdd_nb_sdi['count'] .' ' . _t('sdi','nb_total').'
'. PHP_EOL; $link_list_scale=$rub_link."&todo=list&scale_id="; if (!isset($_GET['scale_id']) && !isset($_POST['scale_id'])) { $scale_id = 1; } else { if (isset($_POST['scale_id'])) $scale_id = $_POST['scale_id']; if (isset($_GET['scale_id'])) $scale_id = $_GET['scale_id']; } $resultscale2 = $sql_object -> DBSelect(SQL_getonescale($scale_id)); function getIndicatorsTable($levels, $indicators, $scale_id, $status, $sql_object) { global $rub_link; $sdi_object= new sdi; if($status=='all') $test = true; if($status=='attached') $test='Y'; if($status=='not-attached') $test='N'; $listing = '
' . PHP_EOL; $link_add=$rub_link."&todo=add&id="; $link_det=$rub_link."&todo=det&id="; $current_level=''; $a = array(); // do not display twice an indicator if(!is_array($indicators)) return ''; // no indicators, we exit function // levels loop for ($i=0;$i '') { $listing.=""; } if ($levels[$i]['level_id'] != $current_level) { // $current_level = $levels[$i]['level_id']; // $listing.="

".formatText($levels[$i]['level_name'], '2HTML')."

"; // $listing.="
\n"; // $listing.="