Redesign - popravki napak - komentarji
This commit is contained in:
parent
b24e3024fa
commit
92de6a8c7e
@ -6815,61 +6815,6 @@ class SurveyAdminSettings {
|
||||
|
||||
}
|
||||
|
||||
function testiranje_komentarji_links($comment_count){
|
||||
global $lang;
|
||||
global $site_url;
|
||||
global $site_path;
|
||||
global $admin_type;
|
||||
global $global_user_id;
|
||||
|
||||
|
||||
if($_GET['a'] == 'komentarji_anketa'){
|
||||
|
||||
// Gumb nazaj
|
||||
echo '<div class="switch_button '.($_GET['a'] == A_KOMENTARJI ? ' active' : '').'">';
|
||||
echo '<a href="index.php?anketa=' . $this->anketa . '&a='.A_KOMENTARJI.'" title="' . $lang['srv_testiranje_komentarji_title'] . '">' . $lang['srv_q_comments_back'] . '</a>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<span class="bold"> (';
|
||||
if($comment_count['question']['unresolved'] > 0)
|
||||
echo '<span class="orange">';
|
||||
echo $comment_count['question']['unresolved'];
|
||||
if($comment_count['question']['unresolved'] > 0)
|
||||
echo '</span>';
|
||||
echo '/'.$comment_count['question']['all'];
|
||||
echo ')</span>';
|
||||
}
|
||||
else{
|
||||
|
||||
echo '<span id="comment_question_note">';
|
||||
|
||||
echo $lang['srv_komentarji_imate'].' ';
|
||||
if($comment_count['question']['unresolved'] > 0) echo '<span class="red">';
|
||||
echo $this->string_format((int)$comment_count['question']['unresolved'], 'srv_cnt_komentarji');
|
||||
if($comment_count['question']['unresolved'] > 0) echo '</span>';
|
||||
|
||||
echo ' '.$lang['srv_komentarji_odskupno'].' ';
|
||||
echo $this->string_format((int)$comment_count['question']['all'], 'srv_cnt_komentar_na_vprs');
|
||||
|
||||
echo '</span>';
|
||||
|
||||
|
||||
// Gumb splosni komentarji
|
||||
echo '<div class="switch_button '.($_GET['a'] == A_KOMENTARJI_ANKETA ? ' active' : '').'">';
|
||||
echo '<a href="index.php?anketa=' . $this->anketa . '&a='.A_KOMENTARJI_ANKETA.'" title="' . $lang['srv_testiranje_komentarji_anketa_title'] . '">' . $lang['srv_testiranje_komentarji_anketa_title'] . '</a>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<span class="bold"> (';
|
||||
if($comment_count['survey_resp']['unresolved']+$comment_count['survey_admin']['unresolved'] > 0)
|
||||
echo '<span class="orange">';
|
||||
echo ($comment_count['survey_resp']['unresolved']+$comment_count['survey_admin']['unresolved']);
|
||||
if($comment_count['survey_resp']['unresolved']+$comment_count['survey_admin']['unresolved'] > 0)
|
||||
echo '</span>';
|
||||
echo '/'.($comment_count['survey_resp']['all']+$comment_count['survey_admin']['all']);
|
||||
echo ')</span>';
|
||||
}
|
||||
}
|
||||
|
||||
function string_format($cnt,$lang_root) {
|
||||
global $lang;
|
||||
|
||||
|
@ -387,15 +387,13 @@ class SurveyStaticHtml
|
||||
echo '<div id="additional_navigation">';
|
||||
|
||||
// Komentarji na vprasanja
|
||||
echo '<span>';
|
||||
echo '<span '.($_GET['a'] == A_KOMENTARJI_ANKETA ? 'class="active"' : '').'>';
|
||||
|
||||
echo '<a href="index.php?anketa=' . $this->sid . '&a=' . A_KOMENTARJI_ANKETA . '" title="' . $lang['srv_testiranje_komentarji_anketa_title'] . '">';
|
||||
echo '<span ' . ($_GET['a'] == A_KOMENTARJI_ANKETA ? 'class="active"' : '') . '>';
|
||||
echo $lang['srv_testiranje_komentarji_anketa_title'];
|
||||
echo '</span>';
|
||||
echo '</a>';
|
||||
|
||||
echo '<span class="bold" style="margin-right: 50px;"> (';
|
||||
echo '<span class="bold">(';
|
||||
if ($comment_count['survey_resp']['unresolved'] + $comment_count['survey_admin']['unresolved'] > 0)
|
||||
echo '<span class="orange">';
|
||||
echo($comment_count['survey_resp']['unresolved'] + $comment_count['survey_admin']['unresolved']);
|
||||
@ -408,15 +406,13 @@ class SurveyStaticHtml
|
||||
|
||||
|
||||
// Komentarji na anketo
|
||||
echo '<span>';
|
||||
echo '<span '.($_GET['a'] == A_KOMENTARJI ? ' class="active"' : '').'>';
|
||||
|
||||
echo '<a href="index.php?anketa=' . $this->sid . '&a=' . A_KOMENTARJI . '" title="' . $lang['srv_testiranje_komentarji_title'] . '">';
|
||||
echo '<span ' . ($_GET['a'] == A_KOMENTARJI ? ' class="active"' : '') . '>';
|
||||
echo $lang['srv_testiranje_komentarji_title'];
|
||||
echo '</span>';
|
||||
echo '</a>';
|
||||
|
||||
echo '<span class="bold"> (';
|
||||
echo '<span class="bold">(';
|
||||
if ($comment_count['question']['unresolved'] > 0)
|
||||
echo '<span class="orange">';
|
||||
echo $comment_count['question']['unresolved'];
|
||||
|
@ -136,13 +136,15 @@ class SurveyStatusProfiles
|
||||
if (($_podstran == A_COLLECT_DATA && $_GET['m'] == 'quick_edit') || $_POST['podstran'] == 'quick_edit') {
|
||||
$_podstran = 'vpogled';
|
||||
}
|
||||
|
||||
|
||||
self::$currentProfileId = SurveyUserSetting :: getInstance()->getSettings('default_status_profile_'.$_podstran);
|
||||
|
||||
if (!self::$currentProfileId) {
|
||||
|
||||
#self::$currentProfileId = 2;
|
||||
self::$currentProfileId = self::$survayDefaultUstrezni; # je lahko 2 ali 3
|
||||
}
|
||||
|
||||
# ustrezni je lahko samo če so kakšni ustrezni zapisi v bazi ob pogoju da pa neustrezni obstajajao
|
||||
if (self::$allValidCount == 0 && self::$allUserCount > 0) {
|
||||
if (self::$currentProfileId == 2 || self::$currentProfileId == 3 ) {
|
||||
@ -153,16 +155,22 @@ class SurveyStatusProfiles
|
||||
|
||||
# ce imamo nastavljen curent pid in profil z tem pid ne obstaja nastavomo na privzet profil
|
||||
if (self::$currentProfileId != 1) {
|
||||
|
||||
if (!isset(self::$profiles[self::$currentProfileId])) {
|
||||
self::$currentProfileId = 1;
|
||||
}
|
||||
}
|
||||
// Ce smo preklopili default ustrezni iz status 5,6 na 6 ali obratno
|
||||
elseif(self::$currentProfileId == 2 || self::$currentProfileId == 3){
|
||||
self::$currentProfileId = self::$survayDefaultUstrezni;
|
||||
}
|
||||
}
|
||||
|
||||
# ce ne obstajajo podatki za cpid damo error
|
||||
if (!isset(self::$profiles[self::$currentProfileId])) {
|
||||
die("Profile data is missing!");
|
||||
return false;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -1214,14 +1222,16 @@ class SurveyStatusProfiles
|
||||
}
|
||||
|
||||
static function changeOnlyValidRadio() {
|
||||
|
||||
if (isset($_POST['checked']) && (int)$_POST['checked'] > 0) {
|
||||
$dpid = (int)$_POST['checked'];
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
#$dpid = 2;
|
||||
$dpid = (int)self::$survayDefaultUstrezni;
|
||||
}
|
||||
|
||||
self::setDefaultProfileId($dpid);
|
||||
|
||||
}
|
||||
|
||||
/** preveri obstoj profila in vrne enak id če obstaja, če ne vrne id privzetega profila
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -147,6 +147,18 @@ div.page_komentarji_anketa {
|
||||
padding: 0;
|
||||
margin: 32px 0 0 0;
|
||||
|
||||
// V vprasanju tukaj odstranimo urejanje
|
||||
.spremenljivka_content{
|
||||
|
||||
.icons_holder{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.add-variable{
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
div.question_comment_holder {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@ -326,14 +338,21 @@ div.page_komentarji_anketa {
|
||||
|
||||
|
||||
}
|
||||
|
||||
#topSettingsHolder.komentarji,
|
||||
#topSettingsHolder.komentarji_anketa {
|
||||
|
||||
#additional_navigation {
|
||||
a {
|
||||
span {
|
||||
padding: 2px 0px 2px 0;
|
||||
}
|
||||
}
|
||||
|
||||
span.bold {
|
||||
margin: 0 0 0 8px;
|
||||
font-size: 14px;
|
||||
|
||||
span{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user