SurveyInit(self::$anketa); self::$db_table = SurveyInfo::getInstance()->getSurveyArchiveDBString(); } } function addCustomReportElement($type, $sub_type, $spr1, $spr2=''){ global $lang; global $global_user_id; if($_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 ''; // Zvezdica s textom else{ echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; } } } function displayMissingLegend(){ global $lang; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo ''; echo '
'; } function displayStatusLegend(){ global $lang; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo ''; echo '
'; } function displayTestLegend(){ global $lang; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo ''; echo '
'; } }