Bernd Wurst commited on 2014-05-15 07:34:16
Zeige 4 geänderte Dateien mit 23 Einfügungen und 9 Löschungen.
| ... | ... |
@@ -208,14 +208,19 @@ $(document).ready(function(){
|
| 208 | 208 |
$.datepicker.setDefaults({
|
| 209 | 209 |
dateFormat: 'yy-mm-dd', |
| 210 | 210 |
minDate: 1, |
| 211 |
- maxDate: "+3y" |
|
| 211 |
+ maxDate: "+2m" |
|
| 212 | 212 |
|
| 213 | 213 |
}); |
| 214 | 214 |
|
| 215 | 215 |
$('#ar_startdate').datepicker();
|
| 216 | 216 |
$('#ar_startdate').change(function () {
|
| 217 | 217 |
$('#ar_valid_from_date').prop('checked', true)
|
| 218 |
- $('#ar_enddate').datepicker("option", "minDate", $('#ar_startdate').val());
|
|
| 218 |
+ mindate = $('#ar_startdate').datepicker("getDate");
|
|
| 219 |
+ mindate.setDate(mindate.getDate()+1); |
|
| 220 |
+ $('#ar_enddate').datepicker("option", "minDate", mindate);
|
|
| 221 |
+ maxdate = $('#ar_startdate').datepicker("getDate");
|
|
| 222 |
+ maxdate.setDate(maxdate.getDate()+60); |
|
| 223 |
+ $('#ar_enddate').datepicker("option", "maxDate", maxdate);
|
|
| 219 | 224 |
}); |
| 220 | 225 |
|
| 221 | 226 |
$('#ar_enddate').datepicker();
|
| ... | ... |
@@ -144,10 +144,13 @@ if (! $enddate) {
|
| 144 | 144 |
$enddate = date('Y-m-d', time() + 7*24*60*60);
|
| 145 | 145 |
} |
| 146 | 146 |
$form .= "<h4>Deaktivierung</h4>"; |
| 147 |
+$form .= "<p><label for=\"ar_valid_until_date\">Keine Antworten mehr versenden ab dem </label>". |
|
| 148 |
+ "<input type=\"text\" value=\"$enddate\" id=\"ar_enddate\" name=\"ar_enddate\" /><br/><small>(Automatische Antworten sind nur befristet erlaubt. Benötigen Sie langfristig funktionierende automatische Antworten, sprechen Sie unsere Administratoren bitte an, dann suchen wir eine Lösung.)</small></p>"; |
|
| 149 |
+/* |
|
| 147 | 150 |
$form .= "<p><input type=\"radio\" name=\"ar_valid_until\" value=\"infinity\" id=\"ar_valid_until_infinity\"{$valid_until_infinity_checked} /> <label for=\"ar_valid_until_infinity\">Unbefristet</label><br />".
|
| 148 | 151 |
"<input type=\"radio\" name=\"ar_valid_until\" value=\"date\" id=\"ar_valid_until_date\"{$valid_until_date_checked} /> <label for=\"ar_valid_until_date\">Keine Antworten mehr versenden ab dem </label>".
|
| 149 |
- "<input type=\"text\" value=\"$enddate\" id=\"ar_enddate\" name=\"ar_enddate\" /></p>"; |
|
| 150 |
- |
|
| 152 |
+ "<input type=\"text\" value=\"$enddate\" id=\"ar_enddate\" name=\"ar_enddate\" /><br/><small>(Automatische Antworten sind nur befristet erlaubt. Benötigen Sie langfristig funktionierende automatische Antworten, sprechen Sie unsere Administratoren bitte an, dann suchen wir eine Lösung.)</small></p>"; |
|
| 153 |
+*/ |
|
| 151 | 154 |
|
| 152 | 155 |
$subject = filter_input_general($ar['subject']); |
| 153 | 156 |
if ($subject == NULL) |
| ... | ... |
@@ -168,8 +171,9 @@ if (! $quote) |
| 168 | 171 |
$quote = 'none'; |
| 169 | 172 |
$form .= "<p><label for=\"ar_quote\">Originalnachricht des Absenders </label>". |
| 170 | 173 |
html_select('ar_quote', array("none" => 'nicht in Antwort einschließen',
|
| 171 |
- "inline" => 'zitieren (max. 50 Zeilen)', |
|
| 172 |
- "attach" => 'vollständig als Anhang beifügen'), $quote)."</p>"; |
|
| 174 |
+ "teaser" => 'anreißen (erste 10 Zeilen)', |
|
| 175 |
+ "inline" => 'zitieren (max. 50 Zeilen)'), $quote)."</p>"; |
|
| 176 |
+ //"attach" => 'vollständig als Anhang beifügen'), $quote)."</p>"; |
|
| 173 | 177 |
|
| 174 | 178 |
|
| 175 | 179 |
$ar_from_default_checked = ($ar['fromname'] == NULL) ? ' checked="checked"' : ''; |
| ... | ... |
@@ -375,11 +375,13 @@ function save_vmail_account($account) |
| 375 | 375 |
|
| 376 | 376 |
if (is_array($account['autoresponder'])) {
|
| 377 | 377 |
$ar = $account['autoresponder']; |
| 378 |
- $quote = "inline"; |
|
| 378 |
+ $quote = NULL; |
|
| 379 | 379 |
if ($ar['quote'] == 'attach') |
| 380 | 380 |
$quote = "attach"; |
| 381 |
- elseif ($ar['quote'] == NULL) |
|
| 382 |
- $quote = NULL; |
|
| 381 |
+ elseif ($ar['quote'] == 'inline') |
|
| 382 |
+ $quote = 'inline'; |
|
| 383 |
+ elseif ($ar['quote'] == 'teaser') |
|
| 384 |
+ $quote = 'teaser'; |
|
| 383 | 385 |
if (! check_emailaddr($ar['fromaddr'])) {
|
| 384 | 386 |
input_error("Die Absenderadresse sieht ungültig aus. Es wird Ihre E-Mail-Adresse benutzt!");
|
| 385 | 387 |
$ar['fromaddr'] = NULL; |