[Redizajn 1KA] Urejanje --> Nastavitve --> Obveščanje --> O izbrisu ankete - v1

This commit is contained in:
tejagerjovic 2021-12-17 10:36:31 +01:00
parent 3e32d04106
commit e91119ccff

View File

@ -3513,15 +3513,20 @@ class SurveyAdminSettings {
}
echo '</form>';
} else if ($tab == 'delete') {
//echo '<h4>' . $lang['srv_alert_delete_title'] . '</h4>'."\n";
echo ' <form name="alertanketa_' . $anketa . '" action="ajax.php?a=editanketaalert&m='.$tab.'" method="post" autocomplete="off">' . "\n";
echo ' <input type="hidden" name="anketa" value="' . $anketa . '" />' . "\n";
echo ' <input type="hidden" name="location" value="' . $_GET['a'] . '" />' . "\n";
echo ' <input type="hidden" name="m" value="' . $_GET['m'] . '" />' . "\n";
echo '<fieldset>'. "\n";
echo '<legend>' . $lang['srv_alert_prejemnik'] . '</legend>'. "\n";
echo '<p><input type="checkbox" name="alert_delete_author" id="alert_delete_author" value="1" onChange="change_alert_respondent(\'delete_author\', $(this));return false;"' . ($rowAlert['delete_author'] == 1 ? ' checked' : '') . '>';
//Obveščanje ob izbrisu ankete
echo '<fieldset>';
echo '<legend>' . $lang['srv_alert_surveydelete'] . '</legend>';
echo '<p>'.$lang['srv_alert_surveydelete_text'].'</p>';
echo '<div class="setting_holder">';
echo '<input type="checkbox" name="alert_delete_author" id="alert_delete_author" value="1" onChange="change_alert_respondent(\'delete_author\', $(this));return false;"' . ($rowAlert['delete_author'] == 1 ? ' checked' : '') . '>';
echo '</div>';
echo '<span id="label_alert_delete_author">';
$this->display_alert_label('delete_author',($rowAlert['delete_author'] == 1));
echo '</span></p>';
@ -3530,15 +3535,15 @@ class SurveyAdminSettings {
echo '<label for="alert_delete_other_emails">' . $lang['email'] . ':</label>';
echo '<textarea name="alert_delete_other_emails" id="alert_delete_other_emails" style="height:100px" >' . $rowAlert['delete_other_emails'] . '</textarea>';
echo '</p>';
echo '</fieldset>';
echo '</fieldset>';
echo '<p class="bold caps bottom16">'.$lang['message_content'].'</p>';
echo '<br />';
echo '<fieldset>';
echo '<legend>' . $lang['srv_alert_oblika'] . '</legend>';
echo '<div style="float:left; width:auto;">';
echo '<p><label for="subject">' . $lang['subject'] . ': <input type="text" id="alert_delete_subject" name="alert_delete_subject" value="' . ($rowAlert['delete_subject'] ? $rowAlert['delete_subject'] : $lang['srv_alert_delete_subject']) . '" size="90"/></label></p>';
echo '<div class="setting_holder">';
echo '<label for="subject">' . $lang['subject'] . ': </label>';
echo '<input type="text" class="large wauto" id="alert_delete_subject" name="alert_delete_subject" value="' . ($rowAlert['delete_subject'] ? $rowAlert['delete_subject'] : $lang['srv_alert_delete_subject']) . '"/>';
echo '</div>';
if ($rowAlert['delete_text'] != '') {
$text = $rowAlert['delete_text'];
@ -3550,18 +3555,25 @@ class SurveyAdminSettings {
$text = nl2br($lang['srv_alert_delete_text'].$signature);
}
// prikaze editor za ne-spremenljivko (za karkoli druzga pac)
echo ' <p><label for="alert_delete_text">' . $lang['text'] . ':</label>';
echo '<div class="setting_holder">';
echo '<label for="alert_delete_text">' . $lang['message'] . ':</label>';
echo '<textarea name="alert_delete_text" id="alert_delete_text" rows="3" >' . $text . '</textarea>';
echo ' </p>';
echo '</div>';
echo '</div>';
//Navodila na desni
echo '<div style="float:left; width:auto; max-width:550px; margin-left:10px;">';
echo '<div id="div_error">';
echo '<div class="message_instructions">';
echo $lang['srv_alert_instruction1'];
echo $lang['srv_alert_instruction5'];
echo '</div>';
echo '</div>';
echo '</fieldset>';
echo '<br />';
echo '<span class="floatLeft spaceRight"><div class="buttonwrapper"><a class="ovalbutton ovalbutton_orange btn_savesettings" href="#" onclick="document.alertanketa_' . $rowS['id'] . '.submit(); return false;"><span>';
echo $lang['edit1337'] . '</span></a></div></span>';
echo '<div class="clr"></div>';