diff --git a/admin/survey/BranchingAjax.php b/admin/survey/BranchingAjax.php
index 531b6a3ba..c07c93009 100644
--- a/admin/survey/BranchingAjax.php
+++ b/admin/survey/BranchingAjax.php
@@ -1929,89 +1929,22 @@ class BranchingAjax {
$sql = sisplet_query("SELECT * FROM post WHERE 1=0");
}
- if (mysqli_num_rows($sql) > 0) {
- if ($view == 1) {
- //echo ''.$lang['srv_forum_go'].'';
- $rows = mysqli_num_rows($sql);
- if ($rows > 0) echo '
';
- echo '
';
- } elseif ($view == 3) {
- echo '
';
- echo '
'.$lang['comments'].'';
- $rows = mysqli_num_rows($sql);
- if ($rows > 0) echo '
';
- echo '
';
- }
- }
-
- // textarea za oddat komentar - zgoraj
+ /*/ textarea za oddat komentar - zgoraj
if ($addfieldposition == 1) {
$this->add_comment_field($spremenljivka, $type, $view);
echo '
';
- }
+ }*/
- if (mysqli_num_rows($sql) > 0) {
-
- $i = 0;
- $rows = mysqli_num_rows($sql);
- while ($row = mysqli_fetch_array($sql)) {
-
- // Prikazemo zgodovino glede na nastavitev
- if($comment_history == '2' || (($comment_history == '0' || $comment_history == '') && $row['uid'] == $global_user_id)){
- if ($row['ocena'] == 0) echo '
';
- elseif ($row['ocena'] == 1) echo '';
- elseif ($row['ocena'] == 2) echo '';
- elseif ($row['ocena'] == 3) echo '';
- else echo '';
-
- echo ''.$f->user($row['uid']).' ('.$f->datetime1($row['time']).'):';
-
- if ($admin_type <= 1 || $rowi['insert_uid']==$global_user_id || $commentmarks_who==0) {
-
- echo '';
-
- if ($commentmarks == 1) {
- echo '
';
- } else {
- echo '
= 2?' checked':'').' />
';
- }
- //echo '
'.$lang['srv_comment_comment'].'';
- echo '
';
- }
-
- echo '
'.$row['vsebina'].'
';
-
- echo '';
- }
-
- //}
- $i++;
-
- // Nastavimo oglede foruma in teme
- if ($global_user_id > 0) {
- $sqla2 = sisplet_query("SELECT time FROM views WHERE pid='" .$row['id'] ."' AND uid='$global_user_id'");
- if (mysqli_num_rows($sqla2) > 0) {
- $sqla3 = sisplet_query("UPDATE views SET time=NOW() WHERE pid='" .$row['id'] ."' AND uid='$global_user_id'");
- } else {
- $sqla3 = sisplet_query("INSERT INTO views (pid, uid, time) VALUES ('" .$row['id'] ."', '$global_user_id', NOW())");
- }
- }
- }
- }
// textarea za oddat komentar - spodaj
if ($addfieldposition == 0 || $addfieldposition == '') {
- echo '
';
- $this->add_comment_field($spremenljivka, $type, $view);
+ echo '';
}
} else {
- $this->add_comment_field($spremenljivka, $type, $view);
+ //$this->add_comment_field($spremenljivka, $type, $view);
}
if ($_REQUEST['refresh'] != '1' || $view==3)
diff --git a/admin/survey/SurveyAdmin.php b/admin/survey/SurveyAdmin.php
index 67a217d87..c9ee72973 100644
--- a/admin/survey/SurveyAdmin.php
+++ b/admin/survey/SurveyAdmin.php
@@ -1431,7 +1431,7 @@ class SurveyAdmin
echo $lang['comments'];
echo ' ';
- $comment_link = 'window.location.href=\'' . $site_url . 'admin/survey/index.php?anketa='.$row['id'].'&a=komentarji\'; return false;';
+ $comment_link = 'window.location.href=\'' . $site_url . 'admin/survey/index.php?anketa='.$row['id'].'&a=komentarji_anketa\'; return false;';
echo '';
echo $lang['srv_testiranje_komentarji_anketa_title'];
echo ' (' . $comment_count['question']['unresolved'];
@@ -1439,7 +1439,7 @@ class SurveyAdmin
echo '';
echo '
';
- $comment_link = 'window.location.href=\'' . $site_url . 'admin/survey/index.php?anketa='.$row['id'].'&a=komentarji_anketa\'; return false;';
+ $comment_link = 'window.location.href=\'' . $site_url . 'admin/survey/index.php?anketa='.$row['id'].'&a=komentarji\'; return false;';
echo '';
echo $lang['srv_testiranje_komentarji_title'];
echo ' (' . ($comment_count['survey_resp']['unresolved'] + $comment_count['survey_admin']['unresolved']); //nerešeni