SurveyInit(self::$anketa); self::$db_table = SurveyInfo::getInstance()->getSurveyArchiveDBString(); } } function addCustomReportElement($type, $sub_type, $spr1, $spr2=''){ global $lang; global $global_user_id; if((!isset($_GET['m']) || $_GET['m'] != 'analysis_creport') && $_GET['t'] != 'custom_report'){ $creportProfile = SurveyUserSetting :: getInstance()->getSettings('default_creport_profile'); $creportProfile = isset($creportProfile) ? $creportProfile : 0; $creportAuthor = SurveyUserSetting :: getInstance()->getSettings('default_creport_author'); $creportAuthor = isset($creportAuthor) ? $creportAuthor : $global_user_id; $sql = sisplet_query("SELECT id FROM srv_custom_report WHERE ank_id='".self::$anketa."' AND usr_id='".$creportAuthor."' AND type='$type' AND sub_type='$sub_type' AND spr1='$spr1' AND spr2='$spr2' AND profile='$creportProfile'"); $insert = (mysqli_num_rows($sql)) ? 0 : 1; $id = $type.'-'.$sub_type.'-'.$spr1.'-'.$spr2; // Samo zvezdica (sums, grafi, freq...) if($type < 5) echo '
'.$lang['srv_custom_report_insert_title'].'
'; // Zvezdica s textom else{ echo '
'; echo ''; echo ' '; echo ''; echo ''; echo ''; echo '
'; } } } function displayMissingLegend(){ global $lang; echo '
'; echo '
'; echo ''.$lang['srv_bottom_data_legend_note']; echo '
'; echo '
'; echo ' '; echo '
'; echo '
'; } function displayStatusLegend(){ global $lang; echo '
'; echo '
'; echo ' '.$lang['srv_bottom_data_legend_status_note'].''; echo '
'; echo '
'; echo ' '; echo '
'; echo '
'; } function displayTestLegend(){ global $lang; echo '
'; echo '
'; echo ' '.$lang['srv_bottom_data_legend_test_note'].''; echo '
'; echo '
'; echo ' '; echo '
'; echo '
'; } }