This commit is contained in:
pero1203 2022-01-06 14:46:11 +01:00
commit 92b0c18fbe
9 changed files with 1481 additions and 1469 deletions

View File

@ -3348,6 +3348,7 @@ class SurveyAdminSettings {
$row = SurveyInfo::getInstance()->getSurveyRow(); $row = SurveyInfo::getInstance()->getSurveyRow();
# če imamo prepoznavanje uporabnik iz CMS, potem ponudimo tudi META_REFERAL_URL # če imamo prepoznavanje uporabnik iz CMS, potem ponudimo tudi META_REFERAL_URL
if ($rowAlert['finish_respondent_cms'] == 1)
echo '<p>'.$lang['srv_alert_instruction_meta_referer_url'].'</p>'; echo '<p>'.$lang['srv_alert_instruction_meta_referer_url'].'</p>';
echo '</div>'; echo '</div>';
@ -10098,7 +10099,7 @@ class SurveyAdminSettings {
$drupal_url = ($lang['id'] == '2') ? $site_url.'d/en/' : $site_url.'d/'; $drupal_url = ($lang['id'] == '2') ? $site_url.'d/en/' : $site_url.'d/';
//echo $userAccess->getPackageName($rowA['package_id']); - ime paketa, v delu @TG
// Ni nobenega paketa // Ni nobenega paketa
if(mysqli_num_rows($sqlA) == 0){ if(mysqli_num_rows($sqlA) == 0){
@ -10106,6 +10107,8 @@ class SurveyAdminSettings {
} }
else{ else{
$rowA = mysqli_fetch_array($sqlA); $rowA = mysqli_fetch_array($sqlA);
$userAccess = UserAccess::getInstance($global_user_id);
$package_name = $userAccess->getPackageName($rowA['package_id']);
// Ce ima paket 2 ali 3 // Ce ima paket 2 ali 3
if($rowA['package_id'] == '2' || $rowA['package_id'] == '3'){ if($rowA['package_id'] == '2' || $rowA['package_id'] == '3'){
@ -10114,21 +10117,21 @@ class SurveyAdminSettings {
if(strtotime($rowA['time_expire']) < time()){ if(strtotime($rowA['time_expire']) < time()){
$package_string = '<span>'; $package_string = '<span>';
$package_string .= $rowA['package_name']; $package_string .= $package_name;
$package_string .= ' ('.$lang['srv_access_package_expire'].' '.date("d.m.Y", strtotime($rowA['time_expire'])).')'; $package_string .= ' ('.$lang['srv_access_package_expire'].' '.date("d.m.Y", strtotime($rowA['time_expire'])).')';
$package_string .= '</span>'; $package_string .= '</span>';
$package_string .= '</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.'izvedi-nakup/'.$rowA['package_id'].'/podatki/\';">'.$lang['srv_narocila_extend'].'</button>'; $package_string .= '</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.'izvedi-nakup/'.$rowA['package_id'].'/podatki/\';">'.$lang['srv_narocila_extend'].'</button>';
} }
else{ else{
$package_string = $rowA['package_name']; $package_string = $package_name;
$package_string .= ' ('.$lang['srv_access_package_valid'].' '.date("d.m.Y", strtotime($rowA['time_expire'])).')'; $package_string .= ' ('.$lang['srv_access_package_valid'].' '.date("d.m.Y", strtotime($rowA['time_expire'])).')';
$package_string .= '</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.'izvedi-nakup/'.$rowA['package_id'].'/podatki/\';">'.$lang['srv_narocila_extend'].'</button>'; $package_string .= '</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.'izvedi-nakup/'.$rowA['package_id'].'/podatki/\';">'.$lang['srv_narocila_extend'].'</button>';
} }
} }
else{ else{
$package_string = $rowA['package_name']; $package_string = $package_name;
$package_string .= ' ('.$lang['srv_access_package_free'].')'; $package_string .= ' ('.$lang['srv_access_package_free'].')';
$package_string .= '</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.''.$lang['srv_narocila_buyurl'].'\';">'.$lang['srv_narocila_buy'].'</button>'; $package_string .= '</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.''.$lang['srv_narocila_buyurl'].'\';">'.$lang['srv_narocila_buy'].'</button>';

View File

@ -477,6 +477,7 @@ class NewSurvey{
echo '<div class="fieldset">'; echo '<div class="fieldset">';
// Naslov // Naslov
echo '<div class="pre-title">' . $lang['srv_newSurvey_survey_archive'] . '</div>';
echo '<div class="title">' . $lang['srv_newSurvey_survey_archive_title'] . '</div>'; echo '<div class="title">' . $lang['srv_newSurvey_survey_archive_title'] . '</div>';
echo '<p class="bottom32">'.$lang['srv_newSurvey_survey_archive_text2'].'</p>'; echo '<p class="bottom32">'.$lang['srv_newSurvey_survey_archive_text2'].'</p>';
@ -487,7 +488,7 @@ class NewSurvey{
echo '<input type="hidden" name="has_data" value="0" />'; echo '<input type="hidden" name="has_data" value="0" />';
//echo '<input type="file" name="restore" onchange="document.restorefrm.submit();" />'; //echo '<input type="file" name="restore" onchange="document.restorefrm.submit();" />';
echo '<input type="file" name="restore" class="pointer" />'; echo '<label class="custom_file_upload">' . $lang['srv_newSurvey_survey_archive_choosefile'] . '<input type="file" name="restore" id="restore" /></label>';
echo $lang['srv_arhiv_datoteka_save_txt2'].'.'; echo $lang['srv_arhiv_datoteka_save_txt2'].'.';
@ -849,7 +850,7 @@ class NewSurvey{
// Dodamo se textbox na zadnjo vrstico ce je potrebno // Dodamo se textbox na zadnjo vrstico ce je potrebno
$text = preg_replace( $text = preg_replace(
'/(<span class="variable_title">[^<>]+<\/span>)\Z/', '/(<span class="variable_title">[^<>]+<\/span>)\Z/',
'$1<br /><input type="text" />', '$1<br /><input type="text" class="large" />',
$text $text
); );
// Dodamo se textbox na prvo vrstico ce je potrebno // Dodamo se textbox na prvo vrstico ce je potrebno

View File

@ -7063,6 +7063,7 @@ $lang = array (
'srv_newSurvey_survey_copy_dropdown' => "-- Izberi anketo --", 'srv_newSurvey_survey_copy_dropdown' => "-- Izberi anketo --",
'srv_newSurvey_survey_copy_text' => "Naslov obstoječe ankete", 'srv_newSurvey_survey_copy_text' => "Naslov obstoječe ankete",
'srv_newSurvey_survey_archive' => "Uvoz .1ka datoteke", 'srv_newSurvey_survey_archive' => "Uvoz .1ka datoteke",
'srv_newSurvey_survey_archive_choosefile' => "Izberi datoteko",
'srv_newSurvey_survey_archive2' => "Uvozi 1ka anketo iz arhiva", 'srv_newSurvey_survey_archive2' => "Uvozi 1ka anketo iz arhiva",
'srv_newSurvey_survey_archive_title' => "Restavriraj anketo iz arhivske .1ka datoteke", 'srv_newSurvey_survey_archive_title' => "Restavriraj anketo iz arhivske .1ka datoteke",
'srv_newSurvey_survey_archive_text' => "Iz arhivske datoteke se bo ustvarila kopija arhivirane ankete", 'srv_newSurvey_survey_archive_text' => "Iz arhivske datoteke se bo ustvarila kopija arhivirane ankete",

View File

@ -6949,6 +6949,7 @@ $lang = array (
'srv_newSurvey_survey_copy_dropdown' => "-- Choose a survey --", 'srv_newSurvey_survey_copy_dropdown' => "-- Choose a survey --",
'srv_newSurvey_survey_copy_text' => "Existing survey title", 'srv_newSurvey_survey_copy_text' => "Existing survey title",
'srv_newSurvey_survey_archive' => ".1ka file import", 'srv_newSurvey_survey_archive' => ".1ka file import",
'srv_newSurvey_survey_archive_choosefile' => "Choose file",
'srv_newSurvey_survey_archive2' => "Import 1ka survey from archive", 'srv_newSurvey_survey_archive2' => "Import 1ka survey from archive",
'srv_newSurvey_survey_archive_title' => "Restore survey from the .1ka archive file", 'srv_newSurvey_survey_archive_title' => "Restore survey from the .1ka archive file",
'srv_newSurvey_survey_archive_text' => "Archived survey copy will be created from the archive file", 'srv_newSurvey_survey_archive_text' => "Archived survey copy will be created from the archive file",

File diff suppressed because it is too large Load Diff

View File

@ -2,24 +2,30 @@
.layout_left_item { .layout_left_item {
width: 308px; width: 308px;
height: 100% !important; height: 100vh !important;
padding: 4px; padding: 4px;
background-color: $white; background-color: $white;
border-right: 1px solid $gray; border-right: 1px solid $gray;
border-left: none;
border-top: none;
border-bottom: none;
box-sizing: border-box; box-sizing: border-box;
flex-shrink: 0; flex-shrink: 0;
position: absolute; margin-right: 100px;
top:0; box-shadow: none;
left:0;
height: fit-content;
.item { .item {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 4px; margin-bottom: 4px;
padding: 24px 0 24px 71px; padding: 24px 0 24px 71px;
border: 1px solid $gray;
color: $black; color: $black;
background-color: $light-gray; background-color: $light-gray;

View File

@ -13,11 +13,13 @@ div#main.hide_header {
height: 100vh; height: 100vh;
width: 100vw; width: 100vw;
background-color: $white; background-color: $white;
padding: 0 !important;
} }
#new_anketa_div { #new_anketa_div {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: 100%;
} }
@import "left_menu"; @import "left_menu";

View File

@ -23,6 +23,7 @@ $skin_selector: $red;
margin-top: 62px; margin-top: 62px;
} }
.layout_right_item{ .layout_right_item{
margin-top: 64px;
.fieldset { .fieldset {
@ -80,46 +81,41 @@ $skin_selector: $red;
.radioSetting_type.active { .radioSetting_type.active {
color: $selectors; color: $selectors;
} }
input {
padding: 0;
margin: 0;
}
select {
padding: 2px 5px;
margin: 0;
width: 302px;
font-size: 12px;
border: 1px solid $blue !important;
border-radius: 1px;
}
input[type="file"] {
height: 24px;
width: 240px;
font-size: 10px;
}
input[type="text"] {
padding: 10px 12px;
width: 310px;
font-size: 15px; //Custom inputi
input[type="file"]#restore {
border: 1px solid $blue !important; display: none;
border-radius: 1px;
} }
#novaanketa_akronim_1_chars {
float: right;
padding-right: 15px;
font-weight: 400; //Button - medium - gray
font-size: 11px; label.custom_file_upload {
} box-sizing: border-box;
#novaanketa_naslov_1_chars { cursor: pointer;
float: right;
padding-right: 7px;
font-weight: 400; font-weight: $semi-bold;
font-size: 11px; font-family: $font_family;
box-shadow: none;
border: 0;
transition: 0.3s;
padding: 10px 32px;
min-width: 160px;
font-size: 16px;
color: $black;
background-color: $gray;
border: 1px $black solid;
&:hover {
background-color: darken($gray, 5%);
} }
}
input[type="radio"] { input[type="radio"] {
margin: 0 8px 4px 0; margin: 0 8px 4px 0;
display: none !important; display: none !important;
@ -182,6 +178,8 @@ $skin_selector: $red;
color: $radio_selector; color: $radio_selector;
} }
} }
.survey_title_text_holder{ .survey_title_text_holder{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -451,7 +449,7 @@ $skin_selector: $red;
margin-right: 32px; margin-right: 32px;
textarea{ textarea{
width: 469px; width: 519px;
height: 509px; height: 509px;
box-sizing: border-box; box-sizing: border-box;
@ -474,7 +472,7 @@ $skin_selector: $red;
flex-shrink: 0; flex-shrink: 0;
#preview_field{ #preview_field{
width: 469px; width: 519px;
height: 509px; height: 509px;
box-sizing: border-box; box-sizing: border-box;
overflow: auto; overflow: auto;

View File

@ -4,21 +4,24 @@ fieldset{
#obvescanje_sidebyside_holder { #obvescanje_sidebyside_holder {
display:flex; display:flex;
flex-direction: row; flex-direction: row;
justify-content: space-between;
#obvescanje_sidebyside_left { #obvescanje_sidebyside_left {
box-sizing: border-box; box-sizing: border-box;
flex-shrink: 0; flex-shrink: 0;
margin-right: 32px;
width: 560px;
} }
#obvescanje_sidebyside_right { #obvescanje_sidebyside_right {
flex-grow: 0; flex-grow: 0;
width: 100%;
div.message_instructions { div.message_instructions {
background-color: $light-gray; background-color: $light-gray;
border: 1px solid $gray; border: 1px solid $gray;
box-sizing: border-box; box-sizing: border-box;
padding: 16px; padding: 16px;
margin-left: 32px;
width: 100%; width: 100%;
div.izpolnjena_spremenljivke { div.izpolnjena_spremenljivke {