Merge branch 'master' of https://git.1ka.si/git/1ka
This commit is contained in:
commit
9328a4d0e0
@ -106,20 +106,20 @@ class SurveyAdminSettings {
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<label for="anketa_polnoIme">'.$lang['srv_novaanketa_polnoime'].':</label>';
|
||||
echo '<input type="text" class="large" id="anketa_polnoIme" name="anketa_polnoIme" value="' . $row['naslov'] . '" onblur="edit_anketa_naslov(\'' . $row['id'] . '\');" maxlength="'.ANKETA_NASLOV_MAXLENGTH.'" style="width:400px;"/>';
|
||||
echo '<span class="charalimit" id="anketa_polnoIme_chars" style="width:400px;">' . strlen($row['naslov']) . '/'.ANKETA_NASLOV_MAXLENGTH.'</span>';
|
||||
echo '<input type="text" class="large" id="anketa_polnoIme" name="anketa_polnoIme" value="' . $row['naslov'] . '" onblur="edit_anketa_naslov(\'' . $row['id'] . '\');" maxlength="'.ANKETA_NASLOV_MAXLENGTH.'"/>';
|
||||
echo '<span class="charalimit" id="anketa_polnoIme_chars">' . strlen($row['naslov']) . '/'.ANKETA_NASLOV_MAXLENGTH.'</span>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<label for="anketa_akronim">'.$lang['srv_novaanketa_kratkoime'].':</label>';
|
||||
echo '<input type="text" class="large" id="anketa_akronim" name="anketa_akronim" value="' . $row['akronim'] . '" onblur="edit_anketa_akronim(\'' . $row['id'] . '\');" maxlength="'.ANKETA_AKRONIM_MAXLENGTH.'" style="width:800px;"/>';
|
||||
echo '<span class="charalimit" id="anketa_akronim_chars" style="width:800px;">' . strlen($row['akronim']) . '/'.ANKETA_AKRONIM_MAXLENGTH.'</span>';
|
||||
echo '<input type="text" class="large" id="anketa_akronim" name="anketa_akronim" value="' . $row['akronim'] . '" onblur="edit_anketa_akronim(\'' . $row['id'] . '\');" maxlength="'.ANKETA_AKRONIM_MAXLENGTH.'"/>';
|
||||
echo '<span class="charalimit" id="anketa_akronim_chars">' . strlen($row['akronim']) . '/'.ANKETA_AKRONIM_MAXLENGTH.'</span>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<label for="anketa_note">'.$lang['srv_note'].':</label>';
|
||||
echo '<textarea id="anketa_note" name="anketa_note" onblur="edit_anketa_note(\'' . $row['id'] . '\');" maxlength="'.ANKETA_NOTE_MAXLENGTH.'" style="width:800px;height:120px;">' . $row['intro_opomba'] . '</textarea>';
|
||||
echo '<span class="charalimit" id="anketa_note_chars" style="width:800px;">' . strlen($row['intro_opomba']) . '/'.ANKETA_NOTE_MAXLENGTH.'</span>';
|
||||
echo '<textarea id="anketa_note" name="anketa_note" onblur="edit_anketa_note(\'' . $row['id'] . '\');" maxlength="'.ANKETA_NOTE_MAXLENGTH.'">' . $row['intro_opomba'] . '</textarea>';
|
||||
echo '<span class="charalimit" id="anketa_note_chars";">' . strlen($row['intro_opomba']) . '/'.ANKETA_NOTE_MAXLENGTH.'</span>';
|
||||
echo '</div>';
|
||||
|
||||
// Ce ima uporabnik mape, lahko izbere v katero mapo se anketa uvrsti
|
||||
@ -1743,7 +1743,7 @@ class SurveyAdminSettings {
|
||||
if(SurveyInfo::getInstance()->checkSurveyModule('voting')){
|
||||
$voting_disabled = ' disabled';
|
||||
|
||||
echo '<p class="red">'.$lang['srv_voting_warning_paradata'].'</p>';
|
||||
echo '<p class="red">'.$lang['srv_voting_warning_paradata'].'</p><br>';
|
||||
}
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
@ -1798,49 +1798,49 @@ class SurveyAdminSettings {
|
||||
|
||||
echo '<legend>'.$lang['srv_sledenje_ip_title'].'</legend>';
|
||||
|
||||
if($ip == 0 && $ip_show != 1) {
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<p class="red">'.$lang['srv_sledenje_ip_alert'].'</p>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
//Shranjuj IP naslov respondenta
|
||||
echo '<div class="setting_holder '.(($ip == 0) ? '' : ' no_margin').'" id="save_IP">';
|
||||
echo '<span class="setting_title">'.$lang['srv_sledenje_ip'].':</span>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="survey_ip" id="survey_ip_1" value="1"'.($ip==1?' checked':'').' '.$voting_disabled.'>';
|
||||
echo '<input type="radio" name="survey_ip" id="survey_ip_1" value="1"'.($ip==1?' checked':'').' '.$voting_disabled.' onClick="toggleParapodatki();">';
|
||||
echo '<label for="survey_ip_1">'.$lang['no'].'</label>';
|
||||
echo '</div>';
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="survey_ip" id="survey_ip_0" value="0"'.($ip==0?' checked':'').' '.$voting_disabled.'>';
|
||||
echo '<input type="radio" name="survey_ip" id="survey_ip_0" value="0"'.($ip==0?' checked':'').' '.$voting_disabled.' onClick="toggleParapodatki();">';
|
||||
echo '<label for="survey_ip_0">'.$lang['yes'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class=" '.(($ip == 1 && $ip_show == 0) ? 'displayNone' : '').'" id="save_IP_warning">';
|
||||
echo '<p class="red">'.$lang['srv_sledenje_ip_alert'].'</p><br>';
|
||||
echo '</div>';
|
||||
|
||||
//Poveži IP v bazi s podatki
|
||||
if ($admin_type == 0 || $admin_type == 1){
|
||||
echo '<div class="'.(($ip == 0) ? '' : ' displayNone').'" id="connect_IP">';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title">'.$lang['srv_show_ip'].':</span>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="survey_show_ip" id="survey_show_ip_0" value="0"'.($ip_show==0?' checked':'').' '.$voting_disabled.' onClick="toggleParapodatki();">';
|
||||
echo '<label for="survey_show_ip_0">'.$lang['no'].'</label>';
|
||||
echo '</div>';
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="survey_show_ip" id="survey_show_ip_1" value="1"'.($ip_show==1?' checked':'').' '.$voting_disabled.' onClick="toggleParapodatki();">';
|
||||
echo '<label for="survey_show_ip_1">'.$lang['yes'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
if($ip == 0 && ($admin_type == 0 || $admin_type == 1)){
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title">'.$lang['srv_show_ip'].':</span>';
|
||||
echo '<div class=" '.(($ip_show == 1) ? '' : ' displayNone').'" id="connect_IP_warning">';
|
||||
echo '<p class="red">'.$lang['srv_show_ip_alert'].'</p>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="survey_show_ip" id="survey_show_ip_0" value="0"'.($ip_show==0?' checked':'').' '.$voting_disabled.'>';
|
||||
echo '<label for="survey_show_ip_0">'.$lang['no'].'</label>';
|
||||
echo '</div>';
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="survey_show_ip" id="survey_show_ip_1" value="1"'.($ip_show==1?' checked':'').' '.$voting_disabled.'>';
|
||||
echo '<label for="survey_show_ip_1">'.$lang['yes'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
if($ip_show == 1) {
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<p class="red">'.$lang['srv_show_ip_alert'].'</p>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</fieldset>';
|
||||
|
||||
@ -1854,21 +1854,19 @@ class SurveyAdminSettings {
|
||||
echo '<span class="setting_title">'.$lang['srv_sledenje_identifikatorji'].':</span>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="show_email" id="show_email_0" value="0"'.($row['show_email']==0?' checked':'').' '.$voting_disabled.'>';
|
||||
echo '<input type="radio" name="show_email" id="show_email_0" value="0"'.($row['show_email']==0?' checked':'').' '.$voting_disabled.' onClick="toggleParapodatki();">';
|
||||
echo '<label for="show_email_0">'.$lang['no'].'</label>';
|
||||
echo '</div>';
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input type="radio" name="show_email" id="show_email_1" value="1"'.($row['show_email']==1?' checked':'').' '.$voting_disabled.'>';
|
||||
echo '<input type="radio" name="show_email" id="show_email_1" value="1"'.($row['show_email']==1?' checked':'').' '.$voting_disabled.' onClick="toggleParapodatki();">';
|
||||
echo '<label for="show_email_1">'.$lang['yes'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
if($row['show_email'] == 1) {
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<p class="red">'.$lang['srv_show_mail_with_data3'].'</p>';
|
||||
echo '<div class="setting_holder '.(($row['show_email'] == 1) ? '' : ' displayNone').'" id="connect_identifier_warning">';
|
||||
echo '<p class="red">'.$lang['srv_show_mail_with_data3'].'.</p>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</fieldset>';
|
||||
}
|
||||
@ -8627,17 +8625,15 @@ class SurveyAdminSettings {
|
||||
echo '<legend>'.$lang['srv_activate_duration_2'].' '.Help::display('srv_activity_quotas').'</legend>';
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title">' . $lang['srv_activate_duration_manual_from'].'</span>';
|
||||
echo '<div class="mock-input-holder">';
|
||||
echo '<input id="startsManual1" type="text" class="large borderless" readonly="true" name="durationStarts" value="' . $starts . '" autocomplete="off"/>';
|
||||
echo '<a id="datepicker-trigger-starts"><span class="faicon calendar_icon normal"></span></a>';
|
||||
echo '<div class="icon_holder">';
|
||||
echo '<input id="startsManual1" type="text" class="large" readonly="true" name="durationStarts" value="' . $starts . '" autocomplete="off"/>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title">' . $lang['srv_activate_duration_manual_to'].'</span>';
|
||||
echo '<div class="mock-input-holder">';
|
||||
echo '<input id="expireManual1" type="text" class="large borderless" readonly="true" name="durationExpire" value="' . $expire . '" autocomplete="off"/>';
|
||||
echo '<a id="datepicker-trigger-expire"><span class="faicon calendar_icon normal"></span></a>';
|
||||
echo '<div class="icon_holder">';
|
||||
echo '<input id="expireManual1" type="text" class="large" readonly="true" name="durationExpire" value="' . $expire . '" autocomplete="off"/>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
|
||||
@ -8649,18 +8645,13 @@ class SurveyAdminSettings {
|
||||
echo '</fieldset>';
|
||||
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#startsManual1").datepicker();
|
||||
$("#datepicker-trigger-starts").click(function(){
|
||||
$("#startsManual1").datepicker("show");
|
||||
});
|
||||
$("#expireManual1").datepicker();
|
||||
$("#datepicker-trigger-expire").click(function(){
|
||||
$("#expireManual1").datepicker("show");
|
||||
});
|
||||
datepicker("#startsManual1");
|
||||
datepicker("#expireManual1");
|
||||
});
|
||||
</script>';
|
||||
</script>';
|
||||
|
||||
}
|
||||
|
||||
function DisplayNastavitveMaxGlasov() {
|
||||
|
@ -122,42 +122,56 @@ class GDPR{
|
||||
|
||||
echo ' <fieldset><legend>'.$lang['srv_gdpr_user_settings_title'].'</legend>';
|
||||
|
||||
echo '<p class="italic">'.$lang['srv_gdpr_user_settings_desc1'].'<br />';
|
||||
echo $lang['srv_gdpr_user_settings_desc2'].'<br /><br />';
|
||||
echo $lang['srv_gdpr_user_settings_desc3'].'</p>';
|
||||
echo '<p class="setting_text">'.$lang['srv_gdpr_user_settings_desc1'].'</p>';
|
||||
echo '<p class="setting_text">'.$lang['srv_gdpr_user_settings_desc2'].'</p>';
|
||||
echo '<p class="setting_text">'.$lang['srv_gdpr_user_settings_desc3'].'</p>';
|
||||
|
||||
|
||||
// PODATKI AVTORJA
|
||||
// Opozorilo za obvezna polja
|
||||
if($user_settings['firstname'] == '' || $user_settings['lastname'] == '' || $user_settings['email'] == '')
|
||||
echo '<p><span class="red bold">'.$lang['srv_gdpr_user_settings_err'].'</span></p>';
|
||||
else
|
||||
echo '<br />';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['firstname'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_firstname'].':</label></span> ';
|
||||
echo ' <input class="text" name="firstname" value="'.$user_settings['firstname'].'" type="text"></div>';
|
||||
echo '<p class="red setting_text">'.$lang['srv_gdpr_user_settings_err'].'</p>';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['lastname'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_lastname'].':</label></span> ';
|
||||
echo ' <input class="text" name="lastname" value="'.$user_settings['lastname'].'" type="text"></div>';
|
||||
echo '<div class="setting_horizontal_wrapper">';
|
||||
|
||||
$email = ($user_settings['email'] == '') ? User::getInstance()->primaryEmail() : $user_settings['email'];
|
||||
echo ' <div class="setting '.($user_settings['email'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_email'].':</label></span> ';
|
||||
echo ' <input class="text '.(isset($error['email']) ? ' red' : '').'" name="email" value="'.$email.'" type="text"> '.(isset($error['email']) ? '<span class="red italic">'.$lang['srv_remind_email_hard'].'</span>' : '').'</div>';
|
||||
echo '<div class="setting_holder '.($user_settings['firstname'] == '' ? ' red' : '').'">';
|
||||
echo '<label for="firstname">'.$lang['srv_gdpr_user_settings_firstname'].'*:</label>';
|
||||
echo '<input class="large w200" id="firstname" name="firstname" value="'.$user_settings['firstname'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_phone'].':</label></span> ';
|
||||
echo ' <input class="text" name="phone" value="'.$user_settings['phone'].'" type="text"></div>';
|
||||
echo '<div class="setting_holder '.($user_settings['lastname'] == '' ? ' red' : '').'">';
|
||||
echo '<label for="lastname">'.$lang['srv_gdpr_user_settings_lastname'].'*:</label>';
|
||||
echo '<input class="large w200" id="lastname" name="lastname" value="'.$user_settings['lastname'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo ' <br />';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_horizontal_wrapper">';
|
||||
|
||||
$email = ($user_settings['email'] == '') ? User::getInstance()->primaryEmail() : $user_settings['email'];
|
||||
echo '<div class="setting_holder '.($user_settings['email'] == '' ? ' red' : '').'">';
|
||||
echo '<label for="email">'.$lang['srv_gdpr_user_settings_email'].'*:</label>';
|
||||
echo '<input class="large w200 '.(isset($error['email']) ? ' red' : '').'" id="email" name="email" value="'.$email.'" type="text"> '.(isset($error['email']) ? '<span class="red italic">'.$lang['srv_remind_email_hard'].'</span>' : '');
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<label>'.$lang['srv_gdpr_user_settings_phone'].':</label>';
|
||||
echo '<input class="large w200" name="phone" value="'.$user_settings['phone'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_horizontal_wrapper">';
|
||||
// Naslov in drzava
|
||||
echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_address'].':</label></span> ';
|
||||
echo ' <input class="text" name="address" value="'.$user_settings['address'].'" type="text"></div>';
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<label for="address">'.$lang['srv_gdpr_user_settings_address'].':</label>';
|
||||
echo '<input class="large w200" name="address" value="'.$user_settings['address'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_country'].':</label></span> ';
|
||||
|
||||
echo ' <select name="country" onChange="editGDPRAuthority(this.value); return false;">';
|
||||
//echo ' <option value="" '.($user_settings['country'] == '' ? ' selected="selected"' : '').'>'.$lang['srv_gdpr_user_settings_country_select'].'</option>';
|
||||
$country_filter = array();
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<label for="country">'.$lang['srv_gdpr_user_settings_country'].':</label>';
|
||||
echo '<select class="dropdown large w200" id="country" name="country" onChange="editGDPRAuthority(this.value); return false;">';
|
||||
$country_filter = array();
|
||||
foreach(self::$authorities as $authority){
|
||||
|
||||
if (in_array($authority['country'], $country_filter)) {
|
||||
@ -171,89 +185,125 @@ class GDPR{
|
||||
|
||||
$country_filter[] = $authority['country'];
|
||||
}
|
||||
echo ' </select>';
|
||||
echo ' </div>';
|
||||
|
||||
|
||||
echo ' <br />';
|
||||
|
||||
echo '</select>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
// ORGANIZACIJA ALI ZASEBNIK
|
||||
echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_type'].':</label></span> ';
|
||||
echo ' <label for="type_0"><input class="radio" name="type" id="type_0" value="0" type="radio" '.($user_settings['type'] != '1' ? ' checked="checked"' : '').' onClick="toggleGDPRDPO();"> '.$lang['srv_gdpr_user_settings_type_0'].'</label>';
|
||||
echo ' <label for="type_1"><input class="radio" name="type" id="type_1" value="1" type="radio" '.($user_settings['type'] == '1' ? ' checked="checked"' : '').' onClick="toggleGDPRDPO();"> '.$lang['srv_gdpr_user_settings_type_1'].'</label>';
|
||||
echo ' </div>';
|
||||
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title">'.$lang['srv_gdpr_user_settings_type'].':</span> ';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input class="radio" name="type" id="type_0" value="0" type="radio" '.($user_settings['type'] != '1' ? ' checked="checked"' : '').' onClick="toggleGDPRDPO();">';
|
||||
echo '<label for="type_0"> '.$lang['srv_gdpr_user_settings_type_0'].'</label>';
|
||||
echo '</div>';
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input class="radio" name="type" id="type_1" value="1" type="radio" '.($user_settings['type'] == '1' ? ' checked="checked"' : '').' onClick="toggleGDPRDPO();">';
|
||||
echo '<label for="type_1"> '.$lang['srv_gdpr_user_settings_type_1'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
// PODATKI PODJETJA
|
||||
echo ' <div id="gdpr_organization" '.($user_settings['type'] != '1' ? ' style="display:none;"' : '').'>';
|
||||
echo ' <div id="gdpr_organization" '.($user_settings['type'] != '1' ? ' class="displayNone"' : '').'>';
|
||||
|
||||
// Opozorilo za obvezna polja
|
||||
if($user_settings['organization'] == '' || $user_settings['organization_maticna'] == '')
|
||||
echo '<p><span class="red bold">'.$lang['srv_gdpr_user_settings_err2'].'</span></p>';
|
||||
echo '<p class="red setting_text">'.$lang['srv_gdpr_user_settings_err'].'</p>';
|
||||
|
||||
echo '<div class="setting_horizontal_wrapper">';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['organization'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_organization'].':</label></span> ';
|
||||
echo ' <input class="text" name="organization" value="'.$user_settings['organization'].'" type="text"></div>';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['organization_maticna'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_organization_maticna'].':</label></span> ';
|
||||
echo ' <input class="text" name="organization_maticna" value="'.$user_settings['organization_maticna'].'" type="text"></div>';
|
||||
|
||||
/*echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_organization_davcna'].':</label></span> ';
|
||||
echo ' <input class="text" name="organization_davcna" value="'.$user_settings['organization_davcna'].'" type="text"></div>';*/
|
||||
|
||||
echo ' </div>';
|
||||
echo '<div class="setting_holder '.($user_settings['organization'] == '' ? 'red' : '').'">';
|
||||
echo '<label for="organization">'.$lang['srv_gdpr_user_settings_organization'].'*:</label>';
|
||||
echo '<input class="large w200" id="organization" name="organization" value="'.$user_settings['organization'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder '.($user_settings['organization_maticna'] == '' ? 'red' : '').'">';
|
||||
echo '<label for="organization_maticna">'.$lang['srv_gdpr_user_settings_organization_maticna'].'*:</label>';
|
||||
echo '<input class="large w200" id="organization_maticna" name="organization_maticna" value="'.$user_settings['organization_maticna'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
// IMA DPO
|
||||
echo ' <div id="gdpr_has_dpo" '.($user_settings['type'] != '0' ? ' style="display:none;"' : '').'>';
|
||||
|
||||
echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_has_dpo'].':</label></span> ';
|
||||
echo ' <label for="has_dpo_0"><input class="radio" name="has_dpo" id="has_dpo_0" value="0" type="radio" '.($user_settings['has_dpo'] != '1' ? ' checked="checked"' : '').' onClick="toggleGDPRHasDPO();"> '.$lang['no'].'</label>';
|
||||
echo ' <label for="has_dpo_1"><input class="radio" name="has_dpo" id="has_dpo_1" value="1" type="radio" '.($user_settings['has_dpo'] == '1' ? ' checked="checked"' : '').' onClick="toggleGDPRHasDPO();"> '.$lang['yes'].'</label>';
|
||||
echo ' </div>';
|
||||
|
||||
echo '<br /><br />';
|
||||
echo '<div id="gdpr_has_dpo" '.($user_settings['type'] != '0' ? ' class="displayNone"' : '').'>';
|
||||
|
||||
echo ' </div>';
|
||||
echo '<div class="setting_holder">';
|
||||
echo '<span class="setting_title">'.$lang['srv_gdpr_user_settings_has_dpo'].':</span>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input class="radio" name="has_dpo" id="has_dpo_0" value="0" type="radio" '.($user_settings['has_dpo'] != '1' ? ' checked="checked"' : '').' onClick="toggleGDPRHasDPO();">';
|
||||
echo '<label for="has_dpo_0"> '.$lang['no'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo '<input class="radio" name="has_dpo" id="has_dpo_1" value="1" type="radio" '.($user_settings['has_dpo'] == '1' ? ' checked="checked"' : '').' onClick="toggleGDPRHasDPO();">';
|
||||
echo '<label for="has_dpo_1"> '.$lang['yes'].'</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
// DPO
|
||||
echo ' <div id="gdpr_dpo" '.($user_settings['type'] != '1' && $user_settings['has_dpo'] != '1' ? ' style="display:none;"' : '').'>';
|
||||
|
||||
echo '<div id="gdpr_dpo" '.($user_settings['type'] != '1' && $user_settings['has_dpo'] != '1' ? ' class="displayNone"' : '').'>';
|
||||
|
||||
echo ' <p class="bold">'.$lang['srv_gdpr_user_settings_dpo'].':</p>';
|
||||
echo '<p class="setting_text">'.$lang['srv_gdpr_user_settings_dpo'].':</p>';
|
||||
|
||||
// Opozorilo za obvezna polja
|
||||
if($user_settings['dpo_firstname'] == '' || $user_settings['dpo_lastname'] == '' || $user_settings['dpo_email'] == '')
|
||||
echo '<p><span class="red bold">'.$lang['srv_gdpr_user_settings_err'].'</span></p>';
|
||||
else
|
||||
echo '<br />';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['dpo_firstname'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_dpo_firstname'].':</label></span> ';
|
||||
echo ' <input class="text" name="dpo_firstname" value="'.$user_settings['dpo_firstname'].'" type="text"></div>';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['dpo_lastname'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_dpo_lastname'].':</label></span> ';
|
||||
echo ' <input class="text" name="dpo_lastname" value="'.$user_settings['dpo_lastname'].'" type="text"></div>';
|
||||
|
||||
echo ' <div class="setting '.($user_settings['dpo_email'] == '' ? ' red' : '').'"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_dpo_email'].':</label></span> ';
|
||||
echo ' <input class="text '.(isset($error['dpo_email']) ? ' red' : '').'" name="dpo_email" value="'.$user_settings['dpo_email'].'" type="text"> '.(isset($error['dpo_email']) ? '<span class="red italic">'.$lang['srv_remind_email_hard'].'</span>' : '').'</div>';
|
||||
|
||||
echo ' <div class="setting"><span class="nastavitveSpan2"><label>'.$lang['srv_gdpr_user_settings_dpo_phone'].':</label></span> ';
|
||||
echo ' <input class="text" name="dpo_phone" value="'.$user_settings['dpo_phone'].'" type="text"></div>';
|
||||
|
||||
echo ' </div>';
|
||||
echo '<p class="red setting_text">'.$lang['srv_gdpr_user_settings_err'].'</p>';
|
||||
|
||||
echo '<div class="setting_horizontal_wrapper">';
|
||||
|
||||
echo '<div class="setting_holder '.($user_settings['dpo_firstname'] == '' ? ' red' : '').'">';
|
||||
echo '<label for="dpo_firstname">'.$lang['srv_gdpr_user_settings_dpo_firstname'].':</label>';
|
||||
echo '<input class="large w200" id="dpo_firstname" name="dpo_firstname" value="'.$user_settings['dpo_firstname'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder '.($user_settings['dpo_lastname'] == '' ? ' red' : '').'">';
|
||||
echo '<label for="dpo_lastname">'.$lang['srv_gdpr_user_settings_dpo_lastname'].':</label>';
|
||||
echo '<input class="large w200" id="dpo_lastname" name="dpo_lastname" value="'.$user_settings['dpo_lastname'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_horizontal_wrapper">';
|
||||
|
||||
echo '<div class="setting_holder '.($user_settings['dpo_email'] == '' ? ' red' : '').'">';
|
||||
echo '<label for="dpo_email">'.$lang['srv_gdpr_user_settings_dpo_email'].':</label>';
|
||||
echo '<input class="large w200 '.(isset($error['dpo_email']) ? ' red' : '').'" id="dpo_email" name="dpo_email" value="'.$user_settings['dpo_email'].'" type="text"> '.(isset($error['dpo_email']) ? '<span class="red italic">'.$lang['srv_remind_email_hard'].'</span>' : '');
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="setting_holder ">';
|
||||
echo '<label>'.$lang['srv_gdpr_user_settings_dpo_phone'].':</label>';
|
||||
echo '<input class="large w200" name="dpo_phone" value="'.$user_settings['dpo_phone'].'" type="text">';
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
// Podatki trenutne avtoritete
|
||||
echo '<div id="gdpr_authority_info">';
|
||||
echo '<div class="setting_holder" id="gdpr_authority_info">';
|
||||
self::displayGDPRAuthority($user_settings['country']);
|
||||
echo '</div>';
|
||||
|
||||
echo ' </fieldset>';
|
||||
echo '</fieldset>';
|
||||
|
||||
|
||||
// Gumb shrani
|
||||
echo '<div class="buttonwrapper floatLeft spaceLeft"><a class="ovalbutton ovalbutton_orange btn_savesettings" href="#" onclick="editGDPRProfile(); return false;"><span>'.$lang['edit1337'].'</span></a></div>';
|
||||
|
||||
echo '<div class="button_holder">';
|
||||
echo '<button class="medium white-blue" onClick="window.location='.$preklici_url.';return false;">'.$lang['edit1338'].'</button>';
|
||||
echo '<button class="medium blue" onclick="editGDPRProfile(); return false;">'.$lang['edit1337'].'</button>';
|
||||
echo '</div>';
|
||||
|
||||
// div za prikaz uspešnosti shranjevanja
|
||||
if ($_GET['s'] == '1') {
|
||||
echo '<span class="clr"></span>';
|
||||
@ -280,7 +330,7 @@ class GDPR{
|
||||
$current_authorities[] = $authority;
|
||||
}
|
||||
|
||||
echo '<p class="bold">'.$lang['srv_gdpr_user_settings_authority'].':</p>';
|
||||
echo '<p class="setting_text">'.$lang['srv_gdpr_user_settings_authority'].':</p>';
|
||||
|
||||
// Prikazemo podatke za vse avtoritete (lahko jih je vec na drzavo)
|
||||
foreach ($current_authorities as $authority) {
|
||||
@ -1155,6 +1205,8 @@ class GDPR{
|
||||
global $lang;
|
||||
global $site_url;
|
||||
|
||||
echo '<fieldset><legend>DPA</legend>';
|
||||
|
||||
echo '<p>'.$lang['srv_gdpr_dpa_text'].'</p>';
|
||||
echo '<ul>';
|
||||
echo ' <li><a href="'.$site_url.'uploadi/dokumenti/DPA_SLO.pdf">'.$lang['srv_gdpr_dpa_slo'].'</a>,</li>';
|
||||
@ -1162,6 +1214,7 @@ class GDPR{
|
||||
echo '</ul>';
|
||||
|
||||
echo '<p>'.$lang['srv_gdpr_dpa_info'].'</p>';
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
|
||||
|
@ -679,28 +679,6 @@ class SurveyCopy {
|
||||
$pre_set = array('sid' => "'".$new_survey_id."'");
|
||||
$new_missing_values_ids = self::preformCopyTable('srv_missing_values', null, $arr_src['srv_missing_values'], $pre_set);
|
||||
|
||||
|
||||
// vrednosti - prestavljeno pod srv_if da se ne porusijo notranji pogoji! Patrik - zakaj je bilo to prestavljeno višje??
|
||||
/*$new_vrednosti_ids = array();
|
||||
if ( count($new_spremenljivke_ids) > 0) {
|
||||
foreach( $new_spremenljivke_ids AS $old_spremenljivka_id => $new_spremenljivka_id) {
|
||||
|
||||
// vrednosti, tabela srv_vrednost
|
||||
$src_srv_vrednost = self::arrayfilter($arr_src['srv_vrednost'], 'spr_id', $old_spremenljivka_id);
|
||||
$pre_set = array('id' => "NULL",
|
||||
'spr_id' => array('field'=>'spr_id', 'from'=>$new_spremenljivke_ids),
|
||||
'vre_id' => array('field'=>'vre_id', 'from'=>$new_vrednosti_ids));
|
||||
$tmp_vrednosti_ids = self :: preformCopyTable('srv_vrednost', 'id', $src_srv_vrednost, $pre_set);
|
||||
|
||||
// shranimo stare in nove id-je spremenljivk
|
||||
if ( count($tmp_vrednosti_ids) > 0 )
|
||||
|
||||
foreach ($tmp_vrednosti_ids as $key => $value){
|
||||
$new_vrednosti_ids[$key] = $value;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
// splosne nastavitve ankete, tabela srv_survey_misc
|
||||
$pre_set = array('sid' => "'".$new_survey_id."'");
|
||||
|
@ -923,13 +923,6 @@ class SurveyDataSettingProfiles {
|
||||
(($cp['chartFP']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_chart_frontpage'] ;
|
||||
echo '</label>';
|
||||
// prikaz textovnih odgovorov (vec)
|
||||
/*echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="chartTableMore" name="chartTableMore" type="checkbox" ' .
|
||||
(($cp['chartTableMore']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_chart_table_more'] ;
|
||||
echo '</label>';*/
|
||||
// prikaz nicelnih vrednosti v kroznih grafih
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
@ -938,125 +931,6 @@ class SurveyDataSettingProfiles {
|
||||
echo $lang['srv_chart_pieZeros'] ;
|
||||
echo '</label>';
|
||||
echo '</fieldset>';
|
||||
|
||||
# echo '<label>'.$lang['srv_displaydata_showIcon'].'</label>';
|
||||
# echo ' <input id="dataShowIcons0" name="dataShowIcons" type="radio" value="0"' .
|
||||
# (($cp['dataShowIcons'] != 1) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
# echo '<label for="dataShowIcons0">'.$lang['no'].'</label>';
|
||||
#
|
||||
# echo ' <input id="dataShowIcons1" name="dataShowIcons" type="radio" value="1"' .
|
||||
# (($cp['dataShowIcons'] == 1) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
# echo '<label for="dataShowIcons1">'.$lang['yes'].'</label>';
|
||||
# echo '<br/>';
|
||||
|
||||
|
||||
#Nastavitve za izvoz podatkov - PRESTAVLJENO V SPLOSNE NASTAVITVE ANKETE
|
||||
/*echo '<fieldset style="width: 43%; float: left;">';
|
||||
echo '<legend>'.$lang['srv_export_results_settings'].'</legend>';
|
||||
|
||||
echo '<label>' . $lang['srv_displaydata_type'] . ': </label>';
|
||||
echo '<select name="dataPdfType" id="dataPdfType" >';
|
||||
echo ' <option value="0"'.((int)$cp['dataPdfType'] == 0 ? ' selected="selected"' : '').'>' . $lang['srv_displaydata_type0'] . '</option>';
|
||||
echo ' <option value="1"'.((int)$cp['dataPdfType'] == 1 ? ' selected="selected"' : '').'>' . $lang['srv_displaydata_type1'] . '</option>';
|
||||
echo ' <option value="2"'.((int)$cp['dataPdfType'] == 2 ? ' selected="selected"' : '').'>' . $lang['srv_displaydata_type2'] . '</option>';
|
||||
echo '</select>';
|
||||
echo Help :: display('displaydata_pdftype');
|
||||
|
||||
// ostevilcevanje vprasanj pri izvozih
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataNumbering" name="exportDataNumbering" type="checkbox" ' .
|
||||
(($cp['exportDataNumbering']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_nastavitveStevilcenje'];
|
||||
echo '</label>';
|
||||
// prikaz recnumov respondentov pri izvozih
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataShowRecnum" name="exportDataShowRecnum" type="checkbox" ' .
|
||||
(($cp['exportDataShowRecnum']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_show_recnum'];
|
||||
echo '</label>';
|
||||
// page break med posameznimi respondenti
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataPB" name="exportDataPB" type="checkbox" ' .
|
||||
(($cp['exportDataPB']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_pagebreak'];
|
||||
echo '</label>';
|
||||
// izpusti vprasanja brez odgovora
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataSkipEmpty" name="exportDataSkipEmpty" type="checkbox" ' .
|
||||
(($cp['exportDataSkipEmpty']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_skip_empty'];
|
||||
echo '</label>';
|
||||
// izpusti podvprasanja brez odgovora
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataSkipEmptySub" name="exportDataSkipEmptySub" type="checkbox" ' .
|
||||
(($cp['exportDataSkipEmptySub']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_skip_empty_sub'];
|
||||
echo '</label>';
|
||||
// landscape postavitev izvoza - V DELU
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataLandscape" name="exportDataLandscape" type="checkbox" ' .
|
||||
(($cp['exportDataLandscape']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_landscape'];
|
||||
echo '</label>';
|
||||
// prikaz pogojev pri izvozih
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportDataShowIf" name="exportDataShowIf" type="checkbox" ' .
|
||||
(($cp['exportDataShowIf']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_if'];
|
||||
echo '</label>';
|
||||
// velikost pisave v izvozih
|
||||
echo '<br /><label>' . $lang['srv_export_font'] . ': </label>';
|
||||
echo '<select name="exportDataFontSize" id="exportDataFontSize" >';
|
||||
echo ' <option value="8"'.((int)$cp['exportDataFontSize'] == 8 ? ' selected="selected"' : '').'>8</option>';
|
||||
echo ' <option value="10"'.((int)$cp['exportDataFontSize'] == 10 ? ' selected="selected"' : '').'>10</option>';
|
||||
echo ' <option value="12"'.((int)$cp['exportDataFontSize'] == 12 ? ' selected="selected"' : '').'>12</option>';
|
||||
echo '</select>';
|
||||
|
||||
echo '</fieldset>';
|
||||
|
||||
|
||||
#Nastavitve za izvoz vprasalnika - PRESTAVLJENO V SPLOSNE NASTAVITVE ANKETE
|
||||
echo '<fieldset style="width: 43%; float: right; margin-bottom: 40px;">';
|
||||
echo '<legend>'.$lang['srv_export_survey_settings'].'</legend>';
|
||||
|
||||
// ostevilcevanje vprasanj pri izvozih
|
||||
echo '<label>';
|
||||
echo '<input id="exportNumbering" name="exportNumbering" type="checkbox" ' .
|
||||
(($cp['exportNumbering']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_nastavitveStevilcenje'];
|
||||
echo '</label>';
|
||||
// prikaz pogojev pri izvozih
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportShowIf" name="exportShowIf" type="checkbox" ' .
|
||||
(($cp['exportShowIf']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_if'];
|
||||
echo '</label>';
|
||||
// velikost pisave v izvozih
|
||||
echo '<br /><label>' . $lang['srv_export_font'] . ': </label>';
|
||||
echo '<select name="exportFontSize" id="exportFontSize" >';
|
||||
echo ' <option value="8"'.((int)$cp['exportFontSize'] == 8 ? ' selected="selected"' : '').'>8</option>';
|
||||
echo ' <option value="10"'.((int)$cp['exportFontSize'] == 10 ? ' selected="selected"' : '').'>10</option>';
|
||||
echo ' <option value="12"'.((int)$cp['exportFontSize'] == 12 ? ' selected="selected"' : '').'>12</option>';
|
||||
echo '</select>';
|
||||
|
||||
// prikaz uvoda pri izvozih
|
||||
echo '<br />';
|
||||
echo '<label>';
|
||||
echo '<input id="exportShowIntro" name="exportShowIntro" type="checkbox" ' .
|
||||
(($cp['exportShowIntro']) ? ' checked="checked" ' : '') . ' autocomplete="off"/>';
|
||||
echo $lang['srv_export_intro'];
|
||||
echo '</label>';
|
||||
echo '</fieldset>';*/
|
||||
|
||||
//echo '<span class="clr"></span>';
|
||||
}
|
||||
|
||||
public static function ajax() {
|
||||
@ -1093,17 +967,7 @@ class SurveyDataSettingProfiles {
|
||||
case 'refreshDropdown':
|
||||
self::DisplayLinkDropdown();
|
||||
break;
|
||||
/*
|
||||
case 'show_inspectListSpr':
|
||||
self::showInspectListSpr();
|
||||
break;
|
||||
case 'saveInspectListVars':
|
||||
self::saveInspectListVars();
|
||||
break;
|
||||
case 'displayInspectVars':
|
||||
self::displayInspectVars();
|
||||
break;
|
||||
*/
|
||||
|
||||
case 'removeKategoriesProfile':
|
||||
self::removeKategoriesProfile();
|
||||
break;
|
||||
|
@ -85,19 +85,19 @@ class SurveySkupine {
|
||||
|
||||
}
|
||||
|
||||
if($spr_id != 0){
|
||||
|
||||
|
||||
// izpis skupin za anketo
|
||||
$vrednosti = $this->getVrednosti($spr_id);
|
||||
echo '<table id="groups_table">';
|
||||
echo '<table id="groups_table" '.(($spr_id == 0) ? 'class="displayNone"' : '').'>';
|
||||
|
||||
echo '<tr>';
|
||||
echo '<th></th>';
|
||||
echo '<th>'.$lang['group_name'].'</th>';
|
||||
echo '<th>'.$lang['group_URL'].'</th>';
|
||||
echo '<th>'.$lang['group_answernumber'].'</th>';
|
||||
echo '</tr>';
|
||||
|
||||
if($spr_id != 0){
|
||||
foreach($vrednosti as $vrednost){
|
||||
|
||||
echo '<tr>';
|
||||
@ -109,12 +109,10 @@ class SurveySkupine {
|
||||
$link = $vrednost['nice_url'];
|
||||
echo '<td><a href="'.$link.'" target="_blank" title="URL skupine '.$vrednost['naslov'].'">'.$link.'</a><a href="#"><span class="faicon copy link-left empty" onclick="CopyToClipboard(\''. $link .'\');" return false;"></span></a></td>';
|
||||
|
||||
echo '<td class="right">42 - temp</td>';
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo '</fieldset>';
|
||||
@ -327,8 +325,6 @@ class SurveySkupine {
|
||||
$link = $this->getUrl($spr_id, $vre_id);
|
||||
echo '<td><a href="'.$link.'" target="_blank" title="URL skupine '.stripslashes($naslov_vrednost).'">'.$link.'</a><a href="#"><span class="faicon copy link-left empty" onclick="CopyToClipboard(\''. $link .'\');" return false;"></span></a></td>';
|
||||
}
|
||||
echo '<td class="right">42 - temp</td>';
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -145,17 +145,17 @@ function toggleGDPRDPO(){
|
||||
var has_dpo = $('input[name=has_dpo]:checked').val();
|
||||
|
||||
if(organization == '1' || has_dpo == '1')
|
||||
$("#gdpr_dpo").show();
|
||||
$("#gdpr_dpo").removeClass('displayNone');
|
||||
else
|
||||
$("#gdpr_dpo").hide();
|
||||
$("#gdpr_dpo").addClass('displayNone');
|
||||
|
||||
if(organization == '1'){
|
||||
$("#gdpr_organization").show();
|
||||
$("#gdpr_has_dpo").hide();
|
||||
$("#gdpr_organization").removeClass('displayNone');
|
||||
$("#gdpr_has_dpo").addClass('displayNone');
|
||||
}
|
||||
else{
|
||||
$("#gdpr_organization").hide();
|
||||
$("#gdpr_has_dpo").show();
|
||||
$("#gdpr_organization").addClass('displayNone');
|
||||
$("#gdpr_has_dpo").removeClass('displayNone');
|
||||
}
|
||||
}
|
||||
// Prikazemo/skrijemo nastavitve organizacije in dpo-ja (ce je zasebnik)
|
||||
@ -164,9 +164,9 @@ function toggleGDPRHasDPO(){
|
||||
var has_dpo = $('input[name=has_dpo]:checked').val();
|
||||
|
||||
if(has_dpo == '1')
|
||||
$("#gdpr_dpo").show();
|
||||
$("#gdpr_dpo").removeClass('displayNone');
|
||||
else
|
||||
$("#gdpr_dpo").hide();
|
||||
$("#gdpr_dpo").addClass('displayNone');
|
||||
}
|
||||
|
||||
// Nastavimo zahtevo za izbris da je opravljena
|
||||
|
@ -17,8 +17,6 @@ function datepicker (selector, event_trigger, datetime) {
|
||||
dateFormat: "dd.mm.yy",
|
||||
showAnim: "slideDown",
|
||||
showOn: "button",
|
||||
/*buttonImage: srv_site_url + "admin/survey/script/calendar/calendar.gif",
|
||||
buttonImageOnly: true,*/
|
||||
buttonText: "",
|
||||
controlType: 'select',
|
||||
oneLine: true,
|
||||
@ -42,9 +40,7 @@ function datepicker (selector, event_trigger, datetime) {
|
||||
changeYear: true,
|
||||
dateFormat: "dd.mm.yy",
|
||||
showAnim: "slideDown",
|
||||
showOn: "button",
|
||||
/*buttonImage: srv_site_url + "admin/survey/script/calendar/calendar.gif",*/
|
||||
/*buttonImageOnly: true,*/
|
||||
showOn: "both",
|
||||
buttonText: "",
|
||||
onSelect: function(selected,evnt) {
|
||||
if (event_trigger) {
|
||||
|
@ -4420,11 +4420,14 @@ function setExpirePermanent() {
|
||||
$.post('ajax.php?a=setExpirePermanent', {anketa:srv_meta_anketa_id, makePermanent:makePermanent}, function (data) {
|
||||
data = jQuery.parseJSON(data);
|
||||
if (data.permanent == '0') {
|
||||
// pokažemo koledarcek
|
||||
$("#expire_img_manual1").show();
|
||||
// enablamo polje
|
||||
$("#expireManual1").removeClass("disabled");
|
||||
$(".ui-datepicker-trigger").removeClass("displayNone");
|
||||
|
||||
} else {
|
||||
// skrijemo koledarcek
|
||||
$("#expire_img_manual1").hide();
|
||||
// disablamo polje
|
||||
$("#expireManual1").addClass("disabled");
|
||||
$(".ui-datepicker-trigger").addClass("displayNone");
|
||||
}
|
||||
$("#expireManual1").val(data.expire);
|
||||
});
|
||||
@ -5562,3 +5565,38 @@ function genericAlertPopupClose(){
|
||||
$('#fade').fadeOut('slow');
|
||||
$('#popup_note').removeClass('popup_orange');
|
||||
}
|
||||
|
||||
//Toggle za prikaz nastavitev in opozoril v parapodatkih
|
||||
function toggleParapodatki(){
|
||||
|
||||
var survey_ip = $('input[name=survey_ip]:checked').val();
|
||||
var survey_show_ip = $('input[name=survey_show_ip ]:checked').val();
|
||||
var show_email = $('input[name=show_email ]:checked').val();
|
||||
|
||||
if(survey_ip == '0') {
|
||||
$("#save_IP_warning").removeClass('displayNone');
|
||||
$("#save_IP").removeClass('no_margin');
|
||||
$("#connect_IP").removeClass('displayNone');
|
||||
}
|
||||
|
||||
else {
|
||||
$("#save_IP_warning").addClass('displayNone');
|
||||
$("#save_IP").addClass('no_margin');
|
||||
$("#connect_IP").addClass('displayNone');
|
||||
}
|
||||
|
||||
if(survey_show_ip == '1')
|
||||
$("#connect_IP_warning").removeClass('displayNone');
|
||||
|
||||
else
|
||||
$("#connect_IP_warning").addClass('displayNone');
|
||||
|
||||
if(show_email == '1')
|
||||
$("#connect_identifier_warning").removeClass('displayNone');
|
||||
|
||||
else
|
||||
$("#connect_identifier_warning").addClass('displayNone');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ function add_skupina(skupine){
|
||||
var text = $('input[name=skupina]').val();
|
||||
|
||||
$.post('ajax.php?t=skupine&a=add_skupina', {anketa: srv_meta_anketa_id, spr_id:spr_id, text:text, skupine:skupine}, function(response){
|
||||
window.location.reload();
|
||||
$('#groups_table').removeClass('displayNone');
|
||||
$('#groups_table tr:last').after(response);
|
||||
$('input[name=skupina]').val('').focus();
|
||||
});
|
||||
|
@ -1144,7 +1144,6 @@ $lang = array (
|
||||
"group_new" => "Nova skupina",
|
||||
"group_name" => "Ime skupine",
|
||||
"group_URL" => "URL Povezava",
|
||||
"group_answernumber" => "Število odgovorov",
|
||||
"admin_edit_groups" => "Urejanje skupin za",
|
||||
"admin_edit_groups_no" => "Ni skupin. Dodajte jih.",
|
||||
"mass_select_group" => "Izberite skupino(e) uporabnikov",
|
||||
@ -7709,11 +7708,11 @@ $lang = array (
|
||||
'srv_gdpr_general_settings' => "Splošne GDPR nastavitve",
|
||||
'srv_gdpr_general_settings_warning' => "Prosimo izpolnite osebne podatke GDPR profila!",
|
||||
'srv_gdpr_user_settings' => "Splošne nastavitve",
|
||||
'srv_gdpr_user_settings_title' => "GDPR nastavitve profila",
|
||||
'srv_gdpr_user_settings_title' => "Splošne GDPR nastavitve",
|
||||
'srv_gdpr_user_settings_desc1' => "S 25. majem 2018 je v veljavi nova Splošna uredba o varstvu podatkov (<a href=\"http://www.eugdpr.org/\" target=\"_blank\"><span class=\"bold\">GDPR</span></a>), ki opredeljuje tudi način zbiranja podatkov in respondentom zagotavlja možnost izbrisa, vpogleda, prenosa, omejitve obdelave ali spremembe zbranih osebnih in/ali anketnih podatkov.",
|
||||
'srv_gdpr_user_settings_desc2' => "V skladu s tem je na vaši strani, kot izvajalcu ankete in s tem upravljalcu osebnih podatkov, <a href=\"https://www.1ka.si/d/sl/pomoc/prirocniki/pravice-respondentov-odgovornosti-urednikov-anket-okviru-gdpr\" target=\"_blank\"><span class=\"bold\">odgovornost</span></a>, da izvršite omenjene zahteve, ki jih na vaših anketah podajo respondenti (zahteva za izbris, vpogled ali spremembo osebnih in/ali anketnih podatkov).",
|
||||
'srv_gdpr_user_settings_desc3' => "Prosimo vas, da izpolnite spodnji obrazec s svojimi podatki. Podatke potrebujemo za pripravo informacij, ki morajo biti v skladu z GDPR na voljo posamezniku (respondentu). Če gre za organizacijo, vnesite tudi podatke o pooblaščeni osebi za varstvo osebnih podatkov (<a href=\"https://www.uradni-list.si/e-bilten/novica/pooblascena-oseba-za-varstvo-podatkov\" target=\"_blank\"><span class=\"bold\">DPO</span></a>). Vnesene podatke bomo uporabili zgolj za namene procesiranja zahtevkov.",
|
||||
'srv_gdpr_user_settings_err' => "Polja \"Ime\", \"Priimek\" in \"E-pošta\" so obvezna!",
|
||||
'srv_gdpr_user_settings_err' => "Polja označena z * so obvezna.",
|
||||
'srv_gdpr_user_settings_err2' => "Polji \"Ime organizacije\" in \"Matična številka\" sta obvezni!",
|
||||
'srv_gdpr_user_settings_type' => "Organizacija ali zasebnik",
|
||||
'srv_gdpr_user_settings_type_0' => "Zasebnik",
|
||||
|
@ -1127,7 +1127,6 @@ $lang = array (
|
||||
"group_new" => "New group",
|
||||
"group_name" => "Group name",
|
||||
"group_URL" => "URL Address",
|
||||
"group_answernumber" => "Number of answers",
|
||||
"admin_edit_groups" => "Editing groups for",
|
||||
"admin_edit_groups_no" => "There are no groups. You should add some",
|
||||
"mass_select_group" => "Select group(s) of users",
|
||||
@ -7596,11 +7595,11 @@ $lang = array (
|
||||
'srv_gdpr_general_settings' => "General GDPR settings",
|
||||
'srv_gdpr_general_settings_warning' => "Please fill in your personal data in your GDPR profile!",
|
||||
'srv_gdpr_user_settings' => "General settings",
|
||||
'srv_gdpr_user_settings_title' => "GDPR profile settings",
|
||||
'srv_gdpr_user_settings_title' => "General GDPR settings",
|
||||
'srv_gdpr_user_settings_desc1' => "Since May 25th, 2018, a new regulation on the protection of personal data (<a href=\"http://www.eugdpr.org/\" target=\"_blank\"><span class=\"bold\">GDPR</span></a>) is in force. New regulation also defines the method of collecting data and provides options for respondents, such as deletion, insight and modifying collected personal and/or survey data.",
|
||||
'srv_gdpr_user_settings_desc2' => "Accordingly, it is your <a href=\"https://www.1ka.si/d/sl/pomoc/prirocniki/pravice-respondentov-odgovornosti-urednikov-anket-okviru-gdpr\" target=\"_blank\"><span class=\"bold\">responsibility</span></a> to comply with these requirements, which respondents provide in your surveys (request for the deletion, insight or modification of personal and/or survey data).",
|
||||
'srv_gdpr_user_settings_desc3' => "Please fill in the form below with your details. We need the data to produce the information that must be made available to the individual (respondent) in accordance with the GDPR. In case you are an organization, enter also the data about the data protection officer (<a href=\"https://edps.europa.eu/data-protection/data-protection/reference-library/data-protection-officer-dpo_en\" target=\"_blank\"><span class=\"bold\">DPO</span></a>), authorized person for the protection of personal data. We will only use the data entered for the purpose of processing requests.",
|
||||
'srv_gdpr_user_settings_err' => "Fields \"Name\" and \"Registration numbe\" are mandatory!",
|
||||
'srv_gdpr_user_settings_err' => "Fields marked with * are mandatory.",
|
||||
'srv_gdpr_user_settings_err2' => "Fields \"Organization name\" \"Surname\" and \"Email\" are mandatory!",
|
||||
'srv_gdpr_user_settings_type' => "Organization or individual",
|
||||
'srv_gdpr_user_settings_type_0' => "Individual",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -50,6 +50,21 @@ a.faicon{
|
||||
}
|
||||
}
|
||||
|
||||
//Wrapper (za ikone desno ob elementih)
|
||||
div.icon_holder {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
box-sizing: border-box;
|
||||
|
||||
align-items: center;
|
||||
|
||||
span.faicon,
|
||||
a.faicon,
|
||||
button.ui-datepicker-trigger{
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@import "radio";
|
||||
@import "standard";
|
||||
|
@ -459,8 +459,8 @@ span.faicon.reload_large::before{
|
||||
/* CALENDAR */
|
||||
span.faicon.calendar_icon::before,
|
||||
button.ui-datepicker-trigger::before{
|
||||
font-family: $fontawesome;
|
||||
font-weight: 400;
|
||||
font-family: $fontawesome;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
content: "\f073";
|
||||
}
|
||||
@ -596,17 +596,3 @@ span.faicon.minus_circle::before{
|
||||
span.faicon.calendar_icon::before{
|
||||
content: "\f073";
|
||||
}
|
||||
|
||||
//Wrapper (za ikone desno ob elementih)
|
||||
div.icon_holder {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
box-sizing: border-box;
|
||||
|
||||
align-items: center;
|
||||
|
||||
span.faicon,
|
||||
a.faicon{
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
@ -12,4 +12,8 @@ p,span {
|
||||
&.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
&.bold {
|
||||
font-weight: $extra-bold;
|
||||
}
|
||||
}
|
@ -111,4 +111,18 @@ div.button_holder {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Trigger button za koledar
|
||||
button.ui-datepicker-trigger {
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
min-width: auto;
|
||||
color: $blue;
|
||||
&:hover {
|
||||
color: darken($blue, 3%);
|
||||
}
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
@ -48,6 +48,10 @@ select.dropdown {
|
||||
}
|
||||
}
|
||||
|
||||
&.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline-style: none;
|
||||
box-shadow: none;
|
||||
|
@ -17,6 +17,19 @@ fieldset{
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
p.setting_text {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.setting_horizontal_wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
.setting_holder {
|
||||
margin-right: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
.setting_holder {
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
@ -26,7 +39,8 @@ fieldset{
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-of-type{
|
||||
&:last-of-type,
|
||||
&.no_margin{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@ -39,10 +53,38 @@ fieldset{
|
||||
line-height: 15px;
|
||||
color: $very-dark-gray;
|
||||
text-align: right;
|
||||
|
||||
&#anketa_polnoIme_chars{
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
&#anketa_akronim_chars,
|
||||
&#anketa_note_chars{
|
||||
width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
&.indent {
|
||||
margin-left: 27px;
|
||||
}
|
||||
|
||||
&.red {
|
||||
label {
|
||||
color: red;
|
||||
}
|
||||
input {
|
||||
&[type="text"] {
|
||||
border: 1px solid red;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div#gdpr_nastavitve {
|
||||
display:flex;
|
||||
justify-content: center;
|
||||
fieldset {
|
||||
width: 1060px;
|
||||
}
|
||||
}
|
@ -14,15 +14,19 @@ input {
|
||||
|
||||
&[type="text"] {
|
||||
border: 1px solid $dark-gray;
|
||||
&.borderless {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
box-sizing: border-box;
|
||||
border-radius: 2px;
|
||||
width: 245px;
|
||||
&#anketa_polnoIme{
|
||||
width: 400px;
|
||||
}
|
||||
&#anketa_akronim{
|
||||
width: 800px;
|
||||
}
|
||||
&.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
margin-top: 4px;
|
||||
|
||||
font-family: $font_family;
|
||||
@ -120,22 +124,3 @@ input {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Za prikaz ikon "v" input polju
|
||||
div.mock-input-holder {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
|
||||
border: 1px solid $dark-gray;
|
||||
margin-top: 4px;
|
||||
border-radius: 2px;
|
||||
width: 245px;
|
||||
|
||||
span.faicon,
|
||||
a.faicon{
|
||||
margin: 0 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,5 +27,10 @@ textarea {
|
||||
border-color: transparent;
|
||||
border-color: $blue;
|
||||
}
|
||||
|
||||
&#anketa_note{
|
||||
width: 800px;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user