komentarji) * */ class SurveyComments { var $anketa; var $db_table = ''; public function __construct($anketa){ if($anketa == null || $anketa <= 0) return 'ID ankete ne obstaja!'; $this->anketa = $anketa; $this->db_table = SurveyInfo::getInstance()->getSurveyArchiveDBString(); } // Izpis komentarjev (testiranje -> komentarji) public function display_komentarji(){ // Izpisemo meni (2 zavihka na vrhu) $this->display_menu_komentarji(); // Izpisemo vsebino glede na zavihek if($_GET['a'] == 'komentarji'){ $this->display_komentarji_na_vprasanja(); } else{ $this->display_splosni_komentarji(); } } // Meni na vrhu (preklop med splosnimi in komentarji na vprasanja) private function display_menu_komentarji() { global $lang; // Prestejemo komentarje (nereseni/vsi) $comment_count = $this->testiranje_komentarji_count(); echo '
'.$lang['srv_comments_user'].''.$f->user($row['uid']).' ('.$datetime.')
'; if ($admin_type <= 1 || $rowa['insert_uid']==$global_user_id || $commentmarks_who==0) { echo ' '; //options } echo ''.$lang['srv_no_comments_solved'].'
'; } else{ echo ''.$lang['srv_no_comments'].'
'; } } // Dodajanje novega komentarja echo 'Respondent ('.$datetime.')
'; } else{ $sqlU = sisplet_query("SELECT name FROM users WHERE id='$row[usr_id]'"); $rowU = mysqli_fetch_array($sqlU); $user = $rowU['name']; echo ''.$lang['srv_comments_user'].''.$user.' ('.$datetime.')
'; } if ($admin_type <= 1 || $rowa['insert_uid']==$global_user_id || $commentmarks_who==0) { echo ' '; //options } echo ''.$lang['srv_no_comments_solved'].'
'; } else{ echo ''.$lang['srv_no_comments'].'
'; } } echo ''.$lang['srv_comments_add_comment'].'
'; echo ' '; } echo ''.$lang['srv_comments_user'].''.$f->user($rowt['uid']).' ('.$datetime.')
'; if ($admin_type <= 1 || $rowi['insert_uid']==$global_user_id || $commentmarks_who==0) { echo ' '; //options } echo ''.nl2br($row1['note']).'
'; echo ''.$lang['srv_comments_add_comment'].'
'; echo ' '; } echo ''.$lang['srv_comments_user'].''.$f->user($rowt['uid']).' ('.$datetime.')
'; if ($admin_type <= 1 || $rowi['insert_uid']==$global_user_id || $commentmarks_who==0) { echo ' '; //options } echo 'Respondent ('.$datetime.')
'; if ($admin_type <= 1 || $rowi['insert_uid']==$global_user_id || $commentmarks_who==0) { echo ' '; //options } echo ''.$f->user($rowP['uid']).' ('.$datetime.')
'; // Razresi echo ''; echo $lang['srv_comments_archive'].'
'; } else { echo ''; echo $lang['srv_comments_unarchive'].'
'; } echo 'Respondent ('.$datetime.')
'; // Razresi echo ''; echo $lang['srv_comments_archive'].'
'; } else { echo ''; echo $lang['srv_comments_unarchive'].'
'; } echo ''.$f->user($rowP['uid']).' ('.$datetime.')
'; // Razresi echo ''; echo $lang['srv_comments_archive'].'
'; } else { echo ''; echo $lang['srv_comments_unarchive'].'
'; } echo '