Redesign - forma in glasovanje

This commit is contained in:
pero1203 2022-05-24 13:51:58 +02:00
parent 11d795479d
commit 3efda50b97
8 changed files with 1913 additions and 2044 deletions

View File

@ -132,44 +132,39 @@ class Branching {
$gl = new Glasovanje($this->anketa); $gl = new Glasovanje($this->anketa);
//div z nastavitvami za glasovanje // div z nastavitvami za glasovanje
echo ' <div class="glas_settings_holder">';
echo ' <div id="glas_settings">'; echo ' <div id="glas_settings">';
//$this->display_glasovanje_settings();
$gl->display_glasovanje_settings(); $gl->display_glasovanje_settings();
echo ' </div> <!-- /glas_settings -->'; echo ' </div>';
echo ' </div>';
echo '<div id="placeholder">'; echo '<div id="placeholder">';
echo '<div id="branching" class="branching_new expanded branching_glasovanje">'; echo ' <div id="branching" class="branching_new expanded branching_glasovanje">';
//$this->branching_struktura();
$gl = new Glasovanje($this->anketa); $gl = new Glasovanje($this->anketa);
$gl->vprasanja(); $gl->vprasanja();
echo ' </div>'; // #branching
echo '</div>'; // #branching echo ' <div id="vprasanje_float_editing" class="float_glasovanje"></div>';
//$this->vprasanje_float_editing();
echo '<div id="vprasanje_float_editing" class="float_glasovanje"></div>';
echo '</div>'; // #placeholder echo '</div>'; // #placeholder
$this->toolbox();
} }
// Navadna anketa ali forma // Navadna anketa ali forma
else{ else{
echo '<div id="placeholder">';
echo '<div id="branching" class="branching_new'.($this->expanded?' expanded':' collapsed').($this->survey_type==1?' branching_forma':'').'">';
Common::Init($this->anketa); Common::Init($this->anketa);
echo '<div id="placeholder">';
echo ' <div id="branching" class="branching_new'.($this->expanded?' expanded':' collapsed').($this->survey_type==1?' branching_forma':'').'">';
echo Common::checkStruktura(); echo Common::checkStruktura();
$this->branching_struktura(); $this->branching_struktura();
echo ' </div>';
echo '</div>'; // #branching echo ' <div id="vprasanje_float_editing"></div>';
$this->vprasanje_float_editing();
echo '</div>'; // #placeholder echo '</div>'; // #placeholder
@ -177,11 +172,11 @@ class Branching {
} }
// forma in glasovanje - hitre nastavitve na desni - ce imamo odprto knjiznico ne prikazemo zaradi prekrivanja // forma in glasovanje - hitre nastavitve na desni - ce imamo odprto knjiznico ne prikazemo zaradi prekrivanja
if ( ($this->survey_type == 1 || $this->survey_type == 0) && ($row['toolbox'] < 3) ) { if ( $this->survey_type == 1 || $this->survey_type == 0 ) {
echo '<div id="quick_settings_holder" '.($this->survey_type==0 ? ' class="glas_quick_settings"':'').'>'; echo '<div id="quick_settings_holder" '.($this->survey_type==0 ? ' class="glas_quick_settings"':'').'>';
echo '<div id="quick_settings" '.($this->survey_type==0 ? ' class="glas_quick_settings"':'').'>'; echo ' <div id="quick_settings" '.($this->survey_type==0 ? ' class="glas_quick_settings"':'').'>';
$this->toolbox_settings(); $this->toolbox_settings();
echo '</div>'; echo ' </div>';
echo '</div>'; echo '</div>';
} }
@ -193,18 +188,6 @@ class Branching {
} }
?><script> var vprasanje_tracking = <?=$row['vprasanje_tracking']?>; </script><?php ?><script> var vprasanje_tracking = <?=$row['vprasanje_tracking']?>; </script><?php
/*echo '<script>';
echo 'alert(document.getElementsByTagName("*").length);';
echo '</script>';*/
}
function vprasanje_float_editing () {
echo '<div id="vprasanje_float_editing"></div>';
} }
@ -314,7 +297,6 @@ class Branching {
echo '<div class="toolbox_holder open">'; echo '<div class="toolbox_holder open">';
if($this->survey_type != 0)
$this->toolbox_basic2(); $this->toolbox_basic2();
echo '<script> $(function(){ init_toolbox(); }) </script>'; echo '<script> $(function(){ init_toolbox(); }) </script>';
@ -324,6 +306,7 @@ class Branching {
echo '</div>'; echo '</div>';
// Mobile add question // Mobile add question
MobileSurveyAdmin::displayAddQuestion($this->anketa); MobileSurveyAdmin::displayAddQuestion($this->anketa);
} }
@ -1576,7 +1559,7 @@ class Branching {
$emailDiv = SurveySetting::getInstance()->getSurveyMiscSetting('srvtoolbox_form_email'); $emailDiv = SurveySetting::getInstance()->getSurveyMiscSetting('srvtoolbox_form_email');
//OBVESCANJE // OBVESCANJE
$sqlAlert = sisplet_query("SELECT * FROM srv_alert WHERE ank_id = '$this->anketa'"); $sqlAlert = sisplet_query("SELECT * FROM srv_alert WHERE ank_id = '$this->anketa'");
if (!$sqlAlert) if (!$sqlAlert)
echo mysqli_error($GLOBALS['connect_db']); echo mysqli_error($GLOBALS['connect_db']);
@ -1584,52 +1567,49 @@ class Branching {
$rowAlert['finish_other'] == 1 || ($rowAlert['finish_other_emails'] && $rowAlert['finish_other'] != 0) ? $checked = true : $checked = false; $rowAlert['finish_other'] == 1 || ($rowAlert['finish_other_emails'] && $rowAlert['finish_other'] != 0) ? $checked = true : $checked = false;
echo '<p style="margin: 6px 0;">';
$alertDiv == 1 ? $obvescanje = 0 : $obvescanje = 1; $alertDiv == 1 ? $obvescanje = 0 : $obvescanje = 1;
echo '<a href="#" onClick="change_form_quicksettings(\'form_settings_obvescanje\');">';
$img = ($status1 == 'none') ? ' class="faicon icon-blue plus"' : ' class="faicon icon-blue minus"';
echo '<span '.$img.' id="obvescanje_switch" style="cursor:pointer;"></span> ';
echo '<b>' . $lang['srv_alert_link_form'] . '</b></a>'; echo '<div class="header" onClick="change_form_quicksettings(\'form_settings_obvescanje\');">';
echo '</p>'; echo '<span>'.$lang['srv_alert_link_form'].'</span><span id="obvescanje_switch" class="faicon '.($status1 == 'none' ? 'arrow2_d' : 'arrow2_u').'"></span>';
echo '</div>';
//echo '<span class="nastavitveSpan4" style="width: 100%;"><label>' . $lang['srv_alert_prejemnik'] . '</label></span><br />';
$sas = new SurveyAdminSettings(); $sas = new SurveyAdminSettings();
echo '<div id="form_settings_obvescanje" class="form_bottom_settings" style="display: '.$status1.';">'; echo '<div id="form_settings_obvescanje" class="form_bottom_settings" style="display: '.$status1.';">';
// avtor ankete oz osebe z dostopom // avtor ankete oz osebe z dostopom
echo '<p class="whole"><input type="checkbox" name="alert_finish_author" id="alert_finish_author" value="1" onChange="quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_author\'); return false;"' . ($rowAlert['finish_author'] == 1 ? ' checked' : '') . '>'; echo '<div class="setting_row">';
echo '<span id="label_alert_finish_author">'; echo '<input type="checkbox" name="alert_finish_author" id="alert_finish_author" value="1" onChange="quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_author\'); return false;"' . ($rowAlert['finish_author'] == 1 ? ' checked' : '') . '>';
echo ' <span id="label_alert_finish_author">';
$sas->display_alert_label('finish_author',($rowAlert['finish_author'] == 1), true); $sas->display_alert_label('finish_author',($rowAlert['finish_author'] == 1), true);
echo '</span></p>'; echo ' </span>';
echo '</div>';
// posebej navedeni maili // posebej navedeni maili
echo '<div class="setting_row">';
echo '<p class="whole"><input type="checkbox" name="alert_finish_other" id="alert_finish_other" value="1"' . ($checked ? ' checked' : '') . ' onchange="toggleStatusAlertOtherCheckbox(\'finish_other\'); quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_other\'); return false;"><label for="alert_finish_other">' . $lang['email_prejemniki'] . ($checked ? $lang['email_one_per_line'] : '' ) . '</label></p>'; echo '<p class="whole"><input type="checkbox" name="alert_finish_other" id="alert_finish_other" value="1"' . ($checked ? ' checked' : '') . ' onchange="toggleStatusAlertOtherCheckbox(\'finish_other\'); quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_other\'); return false;"><label for="alert_finish_other">' . $lang['email_prejemniki'] . ($checked ? $lang['email_one_per_line'] : '' ) . '</label></p>';
echo '<p id="alert_holder_finish_other_emails" '.($rowAlert['finish_other'] == 0 ? 'class="hidden"' : '' ).'>'; echo '<p id="alert_holder_finish_other_emails" '.($rowAlert['finish_other'] == 0 ? 'class="hidden"' : '' ).'>';
echo '<label for="alert_finish_other_emails">' . $lang['email'] . ':</label>'; echo '<label for="alert_finish_other_emails">' . $lang['email'] . ':</label>';
echo '<textarea name="alert_finish_other_emails" id="alert_finish_other_emails" style="height:100px; width:60%; margin-left: 10px;" onBlur="quick_settings(\'' . $row2['spr_id'] . '\', this.value, \'finish_other_emails\');">' . $rowAlert['finish_other_emails'] . '</textarea>'; echo '<textarea name="alert_finish_other_emails" id="alert_finish_other_emails" style="height:100px; width:60%; margin-left: 10px;" onBlur="quick_settings(\'' . $row2['spr_id'] . '\', this.value, \'finish_other_emails\');">' . $rowAlert['finish_other_emails'] . '</textarea>';
echo '</p>'; echo '</div>';
//respondent iz cms // respondent
/*echo '<p><input type="checkbox" name="alert_finish_respondent_cms" id="alert_finish_respondent_cms" value="1" onChange="quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_respondent_cms\'); return false;" ' . ($rowAlert['finish_respondent_cms'] == 1 ? ' checked' : '') . '>'; echo '<div class="setting_row">';
echo '<span id="label_alert_finish_respondent_cms">';
$sas->display_alert_label('finish_respondent_cms',($rowAlert['finish_respondent_cms'] == 1), true);
echo '</span></p>';*/
//respondent
echo '<p class="whole"><input type="checkbox" class="enka-admin-custom" name="alert_finish_respondent" id="alert_finish_respondent" value="1" onChange="quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_respondent\'); return false;" ' . ($rowAlert['finish_respondent'] == 1 ? ' checked' : '') . '>'; echo '<p class="whole"><input type="checkbox" class="enka-admin-custom" name="alert_finish_respondent" id="alert_finish_respondent" value="1" onChange="quick_settings(\'' . $row2['spr_id'] . '\', this, \'finish_respondent\'); return false;" ' . ($rowAlert['finish_respondent'] == 1 ? ' checked' : '') . '>';
echo '<span class="enka-checkbox-radio "></span>'; echo '<span class="enka-checkbox-radio "></span>';
echo '<span id="label_alert_finish_respondent">'; echo '<span id="label_alert_finish_respondent">';
$sas->display_alert_label('finish_respondent',($rowAlert['finish_respondent'] == 1), true); $sas->display_alert_label('finish_respondent',($rowAlert['finish_respondent'] == 1), true);
echo '</span></p>'; echo '</span></p>';
echo '<a style=" margin: 5px 0 5px 10px;" href="index.php?anketa=' . $this->anketa . '&a=alert" ><span class="strong">'.$lang['srv_detail_settings'].'</span></a>';
echo '</div>'; echo '</div>';
echo '<div id="clr" class="clr" ></div>'; echo '<div class="setting_row">';
echo ' <a href="index.php?anketa=' . $this->anketa . '&a=alert" >'.$lang['srv_detail_settings'].'<span class="faicon arrow2_r"></span></a>';
echo '</div>';
echo '</div>';
} }
/** /**
@ -7706,7 +7686,7 @@ class Branching {
echo '<a class="ovalbutton ovalbutton_gray" href="#" onclick="vrednost_condition_editing_close(\''.$vrednost.'\', \''.$if.'\'); return false;"><span>'.$lang['srv_zapri'].'</span></a>'; echo '<a class="ovalbutton ovalbutton_gray" href="#" onclick="vrednost_condition_editing_close(\''.$vrednost.'\', \''.$if.'\'); return false;"><span>'.$lang['srv_zapri'].'</span></a>';
echo '</span>'; echo '</span>';
echo '<span class="buttonwrapper spaceRight floatRight">'; echo '<span class="buttonwrapper spaceRight floatRight">';
echo '<a class="ovalbutton ovalbutton_gray" href="#" onclick="vrednost_if_remove(\''.$if.'\', \''.$vrednost.'\'); return false;" title="'.$lang['srv_if_rem'].'"><span>'.$lang['srv_if_rem'].'</span></a>'."\n\r"; echo 'aaa<a class="ovalbutton ovalbutton_gray" href="#" onclick="vrednost_if_remove(\''.$if.'\', \''.$vrednost.'\'); return false;" title="'.$lang['srv_if_rem'].'"><span>'.$lang['srv_if_rem'].'</span></a>'."\n\r";
echo '</span>'; echo '</span>';
} }

View File

@ -100,130 +100,158 @@ class Glasovanje {
global $site_path; global $site_path;
global $admin_type; global $admin_type;
echo '<div class="header_holder">'.NEW_LINE; echo '<div class="header">';
echo '<div class="header_content">'.NEW_LINE; echo $lang['srv_glasovanja_settings'].Help :: display('srv_type_glasovanje');
echo ' <div class="header_left">' . $lang['srv_glasovanja_settings'] . Help :: display('srv_type_glasovanje') . '</div>' . NEW_LINE;
echo '<div class="clr"></div>';
echo '</div>';
echo '</div>'; echo '</div>';
$sql2 = sisplet_query("SELECT * FROM srv_glasovanje WHERE ank_id='$this->anketa'"); $sql2 = sisplet_query("SELECT * FROM srv_glasovanje WHERE ank_id='$this->anketa'");
$row2 = mysqli_fetch_array($sql2); $row2 = mysqli_fetch_array($sql2);
$row = Cache::srv_spremenljivka($row2['spr_id']); $row = Cache::srv_spremenljivka($row2['spr_id']);
$rowA = SurveyInfo::getInstance()->getSurveyRow(); $rowA = SurveyInfo::getInstance()->getSurveyRow();
//Vkljucenost ankete (embeddana ali samostojna)
// Vkljucenost ankete (embeddana ali samostojna)
echo '<fieldset>'; echo '<fieldset>';
echo '<legend>' . $lang['glasovanja_embed'] . '</legend>';
echo '<label for="glasovanja_embed_0" class="pointer"><input type="radio" name="glasovanja_embed" value="0" id="glasovanja_embed_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'embed\')" ' . ($row2['embed'] == 0 ? ' checked' : '') . '/>' . $lang['glasovanja_embed_off'] . '</label><br /> '; echo ' <div class="setting_title">' . $lang['glasovanja_embed'] . ':</div>';
echo '<label for="glasovanja_embed_1" class="pointer"><input type="radio" name="glasovanja_embed" value="1" id="glasovanja_embed_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'embed\')" ' . ($row2['embed'] == 1 ? ' checked' : '') . '/>' . $lang['glasovanja_embed_on']; echo ' <div class="setting_row">';
if($row2['embed'] != 0) echo ' <input type="radio" name="glasovanja_embed" value="0" id="glasovanja_embed_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'embed\')" ' . ($row2['embed'] == 0 ? ' checked' : '') . '/><label for="glasovanja_embed_0">'.$lang['glasovanja_embed_off'] .'</label>';
echo ' (<a href="index.php?anketa=' . $this->anketa . '&a=vabila&m=url&js=open">' . $lang['srv_embed_link'] . '</a>)'; echo ' </div>';
echo '</label> '; echo ' <div class="setting_row">';
echo ' <input type="radio" name="glasovanja_embed" value="1" id="glasovanja_embed_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'embed\')" ' . ($row2['embed'] == 1 ? ' checked' : '') . '/><label for="glasovanja_embed_1">'.$lang['glasovanja_embed_on'].'</label> ';
echo ' </div>';
echo '</fieldset>'; echo '</fieldset>';
//Izbira spola ob resevanju // Izbira spola ob resevanju
echo '<fieldset>'; echo '<fieldset>';
echo '<legend>' . $lang['glasovanja_spol'] . '</legend>';
//echo '<span class="nastavitveSpan4"><label>' . $lang['srv_alert_respondent'] . ':</label></span>'; echo ' <div class="setting_title">' . $lang['glasovanja_spol'] . ':</div>';
echo '<label for="glasovanja_spol_1" class="pointer"><input type="radio" name="glasovanja_spol" value="1" id="glasovanja_spol_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'spol\')" ' . ($row2['spol'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label> '; echo ' <div class="setting_row">';
echo '<label for="glasovanja_spol_0" class="pointer"><input type="radio" name="glasovanja_spol" value="0" id="glasovanja_spol_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'spol\')" ' . ($row2['spol'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label> '; echo ' <input type="radio" name="glasovanja_spol" value="1" id="glasovanja_spol_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'spol\')" ' . ($row2['spol'] == 1 ? ' checked' : '') . '/><label for="glasovanja_spol_1">' . $lang['yes'] . '</label> ';
echo ' <input type="radio" name="glasovanja_spol" value="0" id="glasovanja_spol_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'spol\')" ' . ($row2['spol'] == 0 ? ' checked' : '') . '/><label for="glasovanja_spol_0">' . $lang['no1'] . '</label> ';
echo ' </div>';
echo '</fieldset>'; echo '</fieldset>';
//Prikaz dodatnih strani // Prikaz dodatnih strani
echo '<fieldset>'; echo '<fieldset>';
echo '<legend>' . $lang['glasovanja_strani'] . '</legend>';
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_strani_intro'] . ':</label></span>'; echo '<div class="setting_title">' . $lang['glasovanja_strani_intro'] . ':</div>';
echo '<label for="glasovanja_intro_1" class="pointer"><input type="radio" name="glasovanja_intro" value="1" id="glasovanja_intro_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_intro\')" ' . ($rowA['show_intro'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label> '; echo ' <div class="setting_row">';
echo '<label for="glasovanja_intro_0" class="pointer"><input type="radio" name="glasovanja_intro" value="0" id="glasovanja_intro_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_intro\')" ' . ($rowA['show_intro'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label><br /> '; echo ' <input type="radio" name="glasovanja_intro" value="1" id="glasovanja_intro_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_intro\')" ' . ($rowA['show_intro'] == 1 ? ' checked' : '') . '/><label for="glasovanja_intro_1">' . $lang['yes'] . '</label>';
echo ' <input type="radio" name="glasovanja_intro" value="0" id="glasovanja_intro_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_intro\')" ' . ($rowA['show_intro'] == 0 ? ' checked' : '') . '/><label for="glasovanja_intro_0">' . $lang['no1'] . '</label>';
echo ' </div>';
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_strani_outro'] . ':</label></span>'; echo ' <div class="setting_title">' . $lang['glasovanja_strani_outro'] . ':</div>';
echo '<label for="glasovanja_concl_1" class="pointer"><input type="radio" name="glasovanja_concl" value="1" id="glasovanja_concl_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_concl\')" ' . ($rowA['show_concl'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label> '; echo ' <div class="setting_row">';
echo '<label for="glasovanja_concl_0" class="pointer"><input type="radio" name="glasovanja_concl" value="0" id="glasovanja_concl_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_concl\')" ' . ($rowA['show_concl'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label> '; echo ' <input type="radio" name="glasovanja_concl" value="1" id="glasovanja_concl_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_concl\')" ' . ($rowA['show_concl'] == 1 ? ' checked' : '') . '/><label for="glasovanja_concl_1">' . $lang['yes'] . '</label> ';
echo ' <input type="radio" name="glasovanja_concl" value="0" id="glasovanja_concl_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_concl\')" ' . ($rowA['show_concl'] == 0 ? ' checked' : '') . '/><label for="glasovanja_concl_0">' . $lang['no1'] . '</label> ';
echo ' </div>';
echo '</fieldset>'; echo '</fieldset>';
// Prikaz naslova... // Prikaz naslova...
echo '<fieldset>'; echo '<fieldset>';
echo '<legend>' . $lang['glasovanja_naslov'] . '</legend>';
// prikaz naslova ankete // prikaz naslova ankete
SurveySetting::getInstance()->Init($this->anketa); SurveySetting::getInstance()->Init($this->anketa);
$survey_hide_title = SurveySetting::getInstance()->getSurveyMiscSetting('survey_hide_title'); $survey_hide_title = SurveySetting::getInstance()->getSurveyMiscSetting('survey_hide_title');
echo '<span class="nastavitveSpan4" style="width: 140px;"><label>' . $lang['glasovanja_results_survey_title'] . ':</label></span>';
echo '<label><input type="radio" name="survey_hide_title" value="0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'survey_hide_title\')" '.($survey_hide_title == 0 ? ' checked="checked"' : '').'>' . $lang['yes'] . '</label> '; echo ' <div class="setting_title">' . $lang['glasovanja_results_survey_title'] . ':</div>';
echo '<label><input type="radio" name="survey_hide_title" value="1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'survey_hide_title\')" '.($survey_hide_title == 1 ? ' checked="checked"' : '').'>' . $lang['no1'] . '</label><br />'; echo ' <div class="setting_row">';
echo ' <input type="radio" name="survey_hide_title" id="survey_hide_title_0" value="0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'survey_hide_title\')" '.($survey_hide_title == 0 ? ' checked="checked"' : '').'><label for="survey_hide_title_0">' . $lang['yes'] . '</label>';
echo ' <input type="radio" name="survey_hide_title" id="survey_hide_title_1" value="1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'survey_hide_title\')" '.($survey_hide_title == 1 ? ' checked="checked"' : '').'><label for="survey_hide_title_1">' . $lang['no1'] . '</label>';
echo ' </div>';
//anketa v arhivu - prikaz arhiva //anketa v arhivu - prikaz arhiva
echo '<span class="nastavitveSpan4" style="width: 140px;"><label>' . $lang['glasovanja_results_archive'] . ':</label>'. Help :: display('srv_glasovanje_archive').'</span>'; echo ' <div class="setting_title">' . $lang['glasovanja_results_archive'].' '.Help :: display('srv_glasovanje_archive').':</div>';
echo '<label for="stat_archive_1" class="pointer"><input type="radio" name="stat_archive" value="1" id="stat_archive_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_archive\')" ' . ($row2['stat_archive'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label> '; echo ' <div class="setting_row">';
echo '<label for="stat_archive_0" class="pointer"><input type="radio" name="stat_archive" value="0" id="stat_archive_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_archive\')" ' . ($row2['stat_archive'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label><br /> '; echo ' <input type="radio" name="stat_archive" value="1" id="stat_archive_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_archive\')" ' . ($row2['stat_archive'] == 1 ? ' checked' : '') . '/><label for="stat_archive_1">' . $lang['yes'] . '</label>';
echo ' <input type="radio" name="stat_archive" value="0" id="stat_archive_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_archive\')" ' . ($row2['stat_archive'] == 0 ? ' checked' : '') . '/><label for="stat_archive_0">' . $lang['no1'] . '</label>';
echo ' </div>';
echo '</fieldset>'; echo '</fieldset>';
//Prikaz statistike - nastavitve // Prikaz statistike - nastavitve
echo '<fieldset>'; echo '<fieldset>';
echo '<legend>' . $lang['glasovanja_results'] . '</legend>';
//prikaz statistike echo '<div class="setting_title">' . $lang['glasovanja_results'] . ':</div>';
echo '<span class="nastavitveSpan4" style="width: 100%;"><label>' . $lang['srv_stat_on'] . ':</label></span><br />'; echo ' <div class="setting_row">';
echo '<label for="show_stat_1" class="pointer"><input type="radio" name="show_stat" value="1" id="show_stat_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat\')" ' . ($row['stat'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label> '; echo ' <input type="radio" name="show_stat" value="1" id="show_stat_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat\')" ' . ($row['stat'] == 1 ? ' checked' : '') . '/><label for="show_stat_1">' . $lang['yes'] . '</label>';
echo '<label for="show_stat_0" class="pointer"><input type="radio" name="show_stat" value="0" id="show_stat_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat\')" ' . ($row['stat'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label> '; echo ' <input type="radio" name="show_stat" value="0" id="show_stat_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat\')" ' . ($row['stat'] == 0 ? ' checked' : '') . '/><label for="show_stat_0">' . $lang['no1'] . '</label>';
echo '<label for="show_stat_2" class="pointer"><input type="radio" name="show_stat" value="2" id="show_stat_2" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat\')" ' . ($row['stat'] == 2 ? ' checked' : '') . '/>' . $lang['glasovanja_results_admin'] . '</label><br /> '; echo ' <input type="radio" name="show_stat" value="2" id="show_stat_2" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat\')" ' . ($row['stat'] == 2 ? ' checked' : '') . '/><label for="show_stat_2">' . $lang['glasovanja_results_admin'] . '</label>';
echo ' </div>';
if($row['stat'] > 0){ if($row['stat'] > 0){
// prikaz stevila glasov, v procentih in z grafom // prikaz stevila glasov, v procentih in z grafom
echo '<div>'; echo ' <div class="setting_title">' . $lang['glasovanja_results_type'] . ':</div>';
echo '<span class="nastavitveSpan5" style="width: 100%;"><label>' . $lang['glasovanja_results_type'] . ':</label></span><br />'; echo ' <div class="setting_row">';
echo '<label for="glasovanja_results" class="pointer"><input type="checkbox" name="glasovanja_results" value="1" id="glasovanja_results" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this, \'show_results\')" ' . ($row2['show_results'] == 1 ? ' checked' : '') . '/>' . $lang['glasovanja_results_count'] . '</label> '; echo ' <input type="checkbox" name="glasovanja_results" value="1" id="glasovanja_results" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this, \'show_results\')" ' . ($row2['show_results'] == 1 ? ' checked' : '') . '/><label for="glasovanja_results">' . $lang['glasovanja_results_count'] . '</label> ';
echo '<label for="glasovanja_percent" class="pointer"><input type="checkbox" name="glasovanja_percent" value="1" id="glasovanja_percent" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this, \'show_percent\')" ' . ($row2['show_percent'] == 1 ? ' checked' : '') . '/>' . $lang['glasovanja_results_percent'] . '</label> '; echo ' <input type="checkbox" name="glasovanja_percent" value="1" id="glasovanja_percent" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this, \'show_percent\')" ' . ($row2['show_percent'] == 1 ? ' checked' : '') . '/><label for="glasovanja_percent">' . $lang['glasovanja_results_percent'] . '</label> ';
echo '<label for="glasovanja_graph" class="pointer"><input type="checkbox" name="glasovanja_graph" value="1" id="glasovanja_graph" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this, \'show_graph\')" ' . ($row2['show_graph'] == 1 ? ' checked' : '') . '/>' . $lang['glasovanja_results_graph'] . '</label><br /> '; echo ' <input type="checkbox" name="glasovanja_graph" value="1" id="glasovanja_graph" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this, \'show_graph\')" ' . ($row2['show_graph'] == 1 ? ' checked' : '') . '/><label for="glasovanja_graph">' . $lang['glasovanja_results_graph'] . '</label><br /> ';
echo '</div>'; echo ' </div>';
// prikaz stevila glasov // prikaz stevila glasov
echo '<div>'; echo ' <div class="setting_title">' . $lang['glasovanja_results_allcount'] . ':</div>';
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_results_allcount'] . ':</label></span>'; echo ' <div class="setting_row">';
echo '<label for="glasovanja_count_0" class="pointer"><input type="radio" name="glasovanja_count" value="0" id="glasovanja_count_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_count\')" ' . ($row2['stat_count'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label> '; echo ' <input type="radio" name="glasovanja_count" value="0" id="glasovanja_count_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_count\')" ' . ($row2['stat_count'] == 0 ? ' checked' : '') . '/><label for="glasovanja_count_0">' . $lang['no1'] . '</label>';
echo '<label for="glasovanja_count_1" class="pointer"><input type="radio" name="glasovanja_count" value="1" id="glasovanja_count_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_count\')" ' . ($row2['stat_count'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label><br /> '; echo ' <input type="radio" name="glasovanja_count" value="1" id="glasovanja_count_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_count\')" ' . ($row2['stat_count'] == 1 ? ' checked' : '') . '/><label for="glasovanja_count_1">' . $lang['yes'] . '</label>';
echo '</div>'; echo ' </div>';
// prikaz casa glasovanja // prikaz casa glasovanja
echo '<div>'; echo '<div class="setting_title">' . $lang['glasovanja_results_time'] . ':</div>';
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_results_time'] . ':</label></span>'; echo ' <div class="setting_row">';
echo '<label for="glasovanja_time_0" class="pointer"><input type="radio" name="glasovanja_time" value="0" id="glasovanja_time_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_time\')" ' . ($row2['stat_time'] == 0 ? ' checked' : '') . '/>' . $lang['no1'] . '</label> '; echo ' <input type="radio" name="glasovanja_time" value="0" id="glasovanja_time_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_time\')" ' . ($row2['stat_time'] == 0 ? ' checked' : '') . '/><label for="glasovanja_time_0">' . $lang['no1'] . '</label>';
echo '<label for="glasovanja_time_1" class="pointer"><input type="radio" name="glasovanja_time" value="1" id="glasovanja_time_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_time\')" ' . ($row2['stat_time'] == 1 ? ' checked' : '') . '/>' . $lang['yes'] . '</label><br /> '; echo ' <input type="radio" name="glasovanja_time" value="1" id="glasovanja_time_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'stat_time\')" ' . ($row2['stat_time'] == 1 ? ' checked' : '') . '/><label for="glasovanja_time_1">' . $lang['yes'] . '</label>';
echo '</div>'; echo ' </div>';
// prikaz naslova vprasanja // prikaz naslova vprasanja
echo '<div>'; echo '<div class="setting_title">' . $lang['glasovanja_results_title'] . ':</div>';
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_results_title'] . ':</label></span>'; echo ' <div class="setting_row">';
echo '<label for="glasovanja_title_1" class="pointer"><input type="radio" name="glasovanja_title" value="1" id="glasovanja_title_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_title\')" ' . ($row2['show_title'] == 1 ? ' checked' : '') . '/>' . $lang['no1'] . '</label> '; echo ' <input type="radio" name="glasovanja_title" value="1" id="glasovanja_title_1" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_title\')" ' . ($row2['show_title'] == 1 ? ' checked' : '') . '/><label for="glasovanja_title_1">' . $lang['no1'] . '</label>';
echo '<label for="glasovanja_title_0" class="pointer"><input type="radio" name="glasovanja_title" value="0" id="glasovanja_title_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_title\')" ' . ($row2['show_title'] == 0 ? ' checked' : '') . '/>' . $lang['yes'] . '</label> '; echo ' <input type="radio" name="glasovanja_title" value="0" id="glasovanja_title_0" onClick="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'show_title\')" ' . ($row2['show_title'] == 0 ? ' checked' : '') . '/><label for="glasovanja_title_0">' . $lang['yes'] . '</label>';
echo '</div>'; echo ' </div>';
} }
echo '</fieldset>'; echo '</fieldset>';
// SPODNJE EXTRA NASTAVITVE // SPODNJE EXTRA NASTAVITVE
// gumb VEC
echo '<div class="expand_holder">';
if($displayExtra==1){
echo '<span class="more" style="display:none;"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_publication_survey_settings_more'].'<span class="faicon arrow2_d"></span></a></span>';
echo '<span class="less"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_publication_survey_settings_less'].'<span class="faicon arrow2_u"></span></a></span>';
}
else{
echo '<span class="more"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_publication_survey_settings_more'].'<span class="faicon arrow2_d"></span></a></span>';
echo '<span class="less" style="display:none;"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_publication_survey_settings_less'].'<span class="faicon arrow2_u"></span></a></span>';
}
echo '</div>';
echo '<div id="glas_extra_settings" '.($displayExtra==0 ? ' style="display: none;"' : '').' >'; echo '<div id="glas_extra_settings" '.($displayExtra==0 ? ' style="display: none;"' : '').' >';
// TRAJANJE // TRAJANJE
echo ' <fieldset>'. NEW_LINE; echo '<fieldset>';
echo ' <legend>' . $lang['duration'] . '</legend>'. NEW_LINE;
echo '<span class="nastavitveSpan4" style="width: 100%;"><label>' . $lang['srv_starts'] . ':</label></span>'; echo ' <div class="setting_row half-half">';
echo '<p><input id="starts" type="text" name="starts" value="' . date('d.m.Y', strtotime($rowA['starts'])) . '" disabled autocomplete="off"></p>'; echo ' <div class="setting_title">' . $lang['srv_starts2'] . ':</div>';
echo ' <input id="starts" class="small" type="text" name="starts" value="' . date('d.m.Y', strtotime($rowA['starts'])) . '" disabled autocomplete="off">';
echo ' </div>';
echo '<span class="nastavitveSpan4" style="width: 100%;"><label>' . $lang['srv_expire'] . ':</label></span>'; echo ' <div class="setting_row half-half">';
echo '<p><input id="expire" type="text" name="expire" value="' . date('d.m.Y', strtotime($rowA['expire'])) . '" disabled autocomplete="off"></p>'; echo ' <div class="setting_title">' . $lang['srv_expire2'] . ':</div>';
echo ' <input id="expire" class="small" type="text" name="expire" value="' . date('d.m.Y', strtotime($rowA['expire'])) . '" disabled autocomplete="off">';
echo ' </div>';
echo '<script type="text/javascript"> echo '<script type="text/javascript">
@ -261,15 +289,12 @@ class Glasovanje {
// Izbira skina za glasovanje // Izbira skina za glasovanje
echo '<fieldset>'; echo '<fieldset>';
echo '<legend>' . $lang['srv_themes'] . '</legend>';
// Izbira skina za anketo // Izbira skina za anketo
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_theme'] . ':</label></span>'; echo ' <div class="setting_row half-half">';
echo ' <div class="setting_title">' . $lang['glasovanja_theme2'] . '</div>';
echo '<select name="skin_anketa" id="skin_anketa" onChange="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'skin_anketa\')">' . NEW_LINE; echo ' <select name="skin_anketa" id="skin_anketa" class="dropdown small" onChange="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'skin_anketa\')">';
$st = new SurveyTheme(); $st = new SurveyTheme();
$skins = $st->getGroups(); $skins = $st->getGroups();
@ -279,43 +304,34 @@ class Glasovanje {
// Default skin po novem izkljucimo // Default skin po novem izkljucimo
if ($simple_name != 'Default') { if ($simple_name != 'Default') {
echo ' <option value="'.$simple_name.'"' . ($rowA['skin'] == $simple_name ? ' selected="selected"' : '') . '>'.($simple_name == '1kaBlue' ? $simple_name.' (' . $lang['default'] . ')' : $simple_name).'</option>' . NEW_LINE; echo ' <option value="'.$simple_name.'"' . ($rowA['skin'] == $simple_name ? ' selected="selected"' : '') . '>'.($simple_name == '1kaBlue' ? $simple_name.' (' . $lang['default'] . ')' : $simple_name).'</option>';
} }
} }
echo '</select><br>' . NEW_LINE; echo ' </select>';
echo ' </div>';
// Izbira skina za statistiko // Izbira skina za statistiko
echo '<span class="nastavitveSpan4"><label>' . $lang['glasovanja_stat_theme'] . ':</label></span>'; echo ' <div class="setting_row half-half">';
echo ' <div class="setting_title">' . $lang['glasovanja_stat_theme2'] . ':</div>';
echo ' <select name="skin" id="skin" class="dropdown small" onChange="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'skin\')">';
$dir = opendir($site_path . 'main/survey/skins/glasovanje/'); $dir = opendir($site_path . 'main/survey/skins/glasovanje/');
echo '<select name="skin" id="skin" onChange="edit_glasovanje(\'' . $row2['spr_id'] . '\', this.value, \'skin\')">' . NEW_LINE;
while ($file = readdir($dir)) { while ($file = readdir($dir)) {
if ($file != '.' && $file != '..' && $file != '.svn' && strtolower(substr($file, -4, 4)) == '.css') if ($file != '.' && $file != '..' && $file != '.svn' && strtolower(substr($file, -4, 4)) == '.css')
echo ' <option value="' . substr($file, 0, -4) . '"' . ($row2['skin'] == substr($file, 0, -4) ? ' selected="selected"' : '') . '>' . substr($file, 0, -4) . '</option>' . NEW_LINE; echo ' <option value="' . substr($file, 0, -4) . '"' . ($row2['skin'] == substr($file, 0, -4) ? ' selected="selected"' : '') . '>' . substr($file, 0, -4) . '</option>';
elseif ($file != '.' && $file != '..' && $file != '.svn' && strtolower(substr($file, -4, 4)) != '.css') { elseif ($file != '.' && $file != '..' && $file != '.svn' && strtolower(substr($file, -4, 4)) != '.css') {
if (is_file($site_path . 'main/survey/skins/' . $file . '/' . $file . '.css')) { if (is_file($site_path . 'main/survey/skins/' . $file . '/' . $file . '.css')) {
echo ' <option value="' . $file . '"' . ($row2['skin'] == $file ? ' selected="selected"' : '') . '>' . $file . '</option>' . NEW_LINE; echo ' <option value="' . $file . '"' . ($row2['skin'] == $file ? ' selected="selected"' : '') . '>' . $file . '</option>';
} }
} }
} }
echo '</select>' . NEW_LINE; echo ' </select>';
echo ' </div>';
echo '</fieldset>'; echo '</fieldset>';
echo '</div>'; echo '</div>';
// gumb VEC
if($displayExtra==1){
echo '<span class="more" style="display:none;"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_more'].'</a></span>';
echo '<span class="less"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_less'].'</a></span>';
}
else{
echo '<span class="more"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_more'].'</a></span>';
echo '<span class="less" style="display:none;"><a href="#" onClick="glas_extra_settings();">'.$lang['srv_less'].'</a></span>';
}
} }
/** /**

View File

@ -3241,19 +3241,9 @@ function edit_glasovanje(spremenljivka, results, what){
function glas_extra_settings(){ function glas_extra_settings(){
$('.more').toggle(); $('.more').toggle();
$('.less').toggle(); $('.less').toggle();
$('#glas_extra_settings').toggle(); $('#glas_extra_settings').slideToggle();
} }
//reload za editiranje uvoda/zakljucka pri formi
/*function load_formIO(spremenljivka, what){
$("#question_holder").load('ajax.php?a=form_extra', {anketa: srv_meta_anketa_id, spremenljivka: spremenljivka, what: what});
}
//reload za editiranje uvoda/zakljucka pri glasovanju
function load_glasIO(spremenljivka, what){
$("#question_holder").load('ajax.php?a=form_extra', {anketa: srv_meta_anketa_id, spremenljivka: spremenljivka, what: what});
}*/
//hitre nastavitve za formo - what je spremenljivka, ki jo spreminjamo //hitre nastavitve za formo - what je spremenljivka, ki jo spreminjamo
function edit_form_settings(spremenljivka, results, what){ function edit_form_settings(spremenljivka, results, what){

View File

@ -2532,7 +2532,9 @@ $lang = array (
"srv_survey_non_active_expired" => "Anketa več ni aktivna. Končala se je dne: ", "srv_survey_non_active_expired" => "Anketa več ni aktivna. Končala se je dne: ",
"srv_survey_non_active_expired1" => "Anketa več ni aktivna. Končala se je dne: ", "srv_survey_non_active_expired1" => "Anketa več ni aktivna. Končala se je dne: ",
"srv_starts" => "Datum začetka ankete", "srv_starts" => "Datum začetka ankete",
"srv_starts2" => "Začetek ankete",
"srv_expire" => "Datum zaključka ankete", "srv_expire" => "Datum zaključka ankete",
"srv_expire2" => "Zaključek ankete",
"srv_vote_limit" => "Omejitev &#154;tevila odgovorov", "srv_vote_limit" => "Omejitev &#154;tevila odgovorov",
"srv_vote_quotas" => "Kvote (omejitev &#154;tevila odgovorov)", "srv_vote_quotas" => "Kvote (omejitev &#154;tevila odgovorov)",
"srv_vote_quotas_2" => "Kvote", "srv_vote_quotas_2" => "Kvote",
@ -3055,7 +3057,9 @@ $lang = array (
"glasovanja_embed_on" => "Vklju&#269;ena v drugo spletno mesto", "glasovanja_embed_on" => "Vklju&#269;ena v drugo spletno mesto",
"glasovanja_embed_off" => "Samostojna anketa", "glasovanja_embed_off" => "Samostojna anketa",
"glasovanja_theme" => "Izberi temo za anketo", "glasovanja_theme" => "Izberi temo za anketo",
"glasovanja_theme2" => "Tema za anketo",
"glasovanja_stat_theme" => "Izberi temo za statistiko", "glasovanja_stat_theme" => "Izberi temo za statistiko",
"glasovanja_stat_theme2" => "Tema za statistiko",
"oblikovanje_if" => "Nastavitve pogoja", "oblikovanje_if" => "Nastavitve pogoja",
"oblikovanje_blok" => "Nastavitve bloka", "oblikovanje_blok" => "Nastavitve bloka",
"sintaksa_if" => "Predogled pogojev", "sintaksa_if" => "Predogled pogojev",

View File

@ -2506,7 +2506,9 @@ $lang = array (
"srv_survey_non_active_notStarted" => "Survey is not active. Survey starts on: ", "srv_survey_non_active_notStarted" => "Survey is not active. Survey starts on: ",
"srv_survey_non_active_expired" => "Survey is not active. Survey expired on: ", "srv_survey_non_active_expired" => "Survey is not active. Survey expired on: ",
"srv_starts" => "Date of survey start", "srv_starts" => "Date of survey start",
"srv_starts2" => "Survey start",
"srv_expire" => "Date of survey expiration", "srv_expire" => "Date of survey expiration",
"srv_expire2" => "Survey expiration",
"srv_vote_limit" => "Limit number of responses", "srv_vote_limit" => "Limit number of responses",
"srv_vote_quotas" => "Quotas (limit number of responses)", "srv_vote_quotas" => "Quotas (limit number of responses)",
"srv_vote_quotas_2" => "Quotas", "srv_vote_quotas_2" => "Quotas",
@ -3027,7 +3029,9 @@ $lang = array (
"glasovanja_embed_on" => "Embedded survey", "glasovanja_embed_on" => "Embedded survey",
"glasovanja_embed_off" => "Stand alone survey", "glasovanja_embed_off" => "Stand alone survey",
"glasovanja_theme" => "Select voting theme", "glasovanja_theme" => "Select voting theme",
"glasovanja_theme2" => "Voting theme",
"glasovanja_stat_theme" => "Select statistics theme", "glasovanja_stat_theme" => "Select statistics theme",
"glasovanja_stat_theme2" => "Statistics theme",
"oblikovanje_if" => "Condition settings", "oblikovanje_if" => "Condition settings",
"oblikovanje_blok" => "Block settings", "oblikovanje_blok" => "Block settings",
"sintaksa_if" => "Syntax of conditions", "sintaksa_if" => "Syntax of conditions",

File diff suppressed because it is too large Load Diff

View File

@ -1,69 +1,22 @@
/* /*
To change this license header, choose License Headers in Project Properties. Forma - urejanje
To change this template file, choose Tools | Templates
and open the template in the editor.
*/ */
/*
Created on : 03-Aug-2018, 13:34:26
Author : podkrizniku
*/
#branching.expanded.branching_forma {
ul.first {
li.empty_vrivanje {
margin-top: -45px !important;
}
margin-top: 59px !important;
}
}
#branching.collapsed.branching_forma {
ul.first {
margin-top: 66px !important;
}
}
#anketa_edit.forma { #anketa_edit.forma {
position: relative;
display: flex;
#quick_settings_holder{
position: absolute;
right: 5%;
top: 235px;
height: auto;
width: 310px;
border: 0;
background-color: transparent;
#quick_settings{ /* Srednji del */
padding: 5px 15px; #placeholder{
width: 315px;
box-sizing: border-box;
float: right;
background-color: $blue; #branching {
border: 1px solid $blue; margin-top: 80px;
fieldset {
border: 1px $gray solid;
} }
.form_bottom_settings { #vprasanje_float_editing{
margin: 0 8px 10px 8px; margin-top: 80px !important;
padding: 0 0 5px 10px;
background-color: inherit;
}
#form_settings_obvescanje {
padding: 1px 0 10px 10px;
textarea#alert_finish_other_emails {
&:focus {
padding: 2px;
border: 0;
background-color: $yellow;
} }
} }
}
}
}
} }

View File

@ -1,165 +1,149 @@
/* /*
To change this license header, choose License Headers in Project Properties. Glasovanje - urejanje
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : 03-Aug-2018, 11:04:39
Author : podkrizniku
*/ */
#anketa_edit.glasovanje {
position: relative;
.nastavitveSpan4 {
display: table-cell;
float: left;
font-weight: 500;
width: 55%;
clear: both;
}
.nastavitveSpan5 {
display: table-cell;
float: left;
font-weight: 500;
width: 25%;
clear: both;
}
select#skin_anketa {
max-width: 120px;
margin-bottom: 2px;
}
select#skin {
max-width: 120px;
margin: 4px 0 2px 0;
}
#quick_settings {
}
#anketa_edit.page_.subpage_.glasovanje {
.anketa_edit_main{
display: flex; display: flex;
/* Leve nastavitve */ /* Leve nastavitve */
.glas_settings_holder{
#glas_settings { #glas_settings {
width: 330px; display: flex;
min-width: 290px; flex-direction: column;
margin: 20px 0 0 0; width: 304px;
padding: 0; margin: 0 64px 0 32px;
padding-bottom: 16px;
line-height: 18px; border: 1px solid $gray;
border-radius: 2px;
background-color: white; .header {
border: 1px solid $blue; padding: 12px 16px;
.more { font-size: 14px;
float: right; font-weight: 600;
margin: 5px 20px 10px 0; text-transform: uppercase;
font-weight: 500;
} background-color: $light-gray;
.less {
float: right;
margin: 5px 20px 10px 0;
font-weight: 500;
} }
.header_holder {
height: 35px;
font-size: 16px;
font-weight: 500;
background-color: $blue;
width: 100%;
//border-bottom: #d2d5d5;
}
.header_content {
padding: 8px 0px 7px 0px;
.header_left {
color: $blue;
font-size: 16px;
font-weight: 500;
width: auto;
float: left;
padding-left: 10px;
}
}
fieldset { fieldset {
margin: 11px 10px; padding: 0 16px 0;
padding: 3px 5px;
border: 0;
border-top: 1px solid $blue;
}
legend {
margin: 0; margin: 0;
padding: 0 10px 0 5px; border: 0;
background-color: rgba(0, 0, 0, 0);
color: $blue; .setting_title{
font-weight: 500; margin-top: 16px;
font-weight: 600;
font-size: 14px;
}
.setting_row{
display: flex;
margin: 8px 0 0 0;
font-size: 14px;
label{
font-size: 14px;
}
&.half-half{
justify-content: space-between;
align-items: center;
margin-top: 16px;
.setting_title{
width: 50%;
margin-top: 0;
}
input{
margin-top: 0;
width: 112px;
}
select{
margin-top: 0;
width: 135px;
}
}
}
}
.expand_holder{
margin: 16px 16px 0 16px;
a{
font-size: 14px;
text-decoration: none;
.faicon::before{
margin-left: 8px;
font-size: 12px;
}
}
}
} }
} }
/* Srednji del */ /* Srednji del */
#placeholder{ #placeholder{
margin: 85px 0 0 20px;
max-width: 1100px;
#branching.branching_glasovanje { #branching {
padding: 3px;
min-height: 400px; min-height: 400px;
width: calc(96% - 315px); width: calc(100% - 421px);
margin: 80px 0 0 0;
ul.first {
margin: 1px 0 0 0 !important;
}
ul {
li {
margin-left: 0px !important;
}
}
} }
#vprasanje_float_editing{ #vprasanje_float_editing{
margin-top: 45px !important; margin-top: 80px !important;
} }
} }
}
/* Desne nastavitve */ /* Desne nastavitve */
#quick_settings_holder{ #quick_settings_holder{
position: absolute; position: absolute;
right: calc(3% + 5px); right: 32px;
margin-left: -5px;
top: 222px;
height: auto; height: auto;
width: 310px;
border: 0;
background-color: transparent;
#quick_settings{ #quick_settings{
padding: 5px 15px; width: 325px;
width: 315px;
box-sizing: border-box; box-sizing: border-box;
float: right;
background-color: $blue; padding: 12px 16px;
border: 1px solid $blue;
fieldset { border: 1px solid $gray;
border: 1px $gray solid; border-radius: 2px;
span,
label{
font-size: 14px;
} }
.form_bottom_settings { .header{
margin: 0 8px 10px 8px; cursor: pointer;
display: flex;
justify-content: space-between;
font-weight: 600;
text-transform: uppercase;
}
#form_settings_obvescanje.form_bottom_settings {
/*margin: 0 8px 10px 8px;
padding: 0 0 5px 10px; padding: 0 0 5px 10px;
background-color: inherit; background-color: inherit;
}
#form_settings_obvescanje {
padding: 1px 0 10px 10px; padding: 1px 0 10px 10px;
textarea#alert_finish_other_emails { textarea#alert_finish_other_emails {
&:focus { &:focus {
@ -167,12 +151,11 @@ select#skin {
border: 0; border: 0;
background-color: $yellow; background-color: $yellow;
} }
} }*/
}
}
}
}
.setting_row{
margin: 16px 0 0 0;
}
}
}
} }