forked from FullService/OsTicket
-
Notifications
You must be signed in to change notification settings - Fork 20
/
preference.inc.php
496 lines (482 loc) · 29.3 KB
/
preference.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<?php
if(!defined('OSTADMININC') || !$thisuser->isadmin()) die($trl->translate("TEXT_ACCESS_DENIED"));
//Get the config info.
$config=($errors && $_POST)?Format::input($_POST):Format::htmlchars($cfg->getConfig());
//Basic checks for warnings...
$warn=array();
if($config['allow_attachments'] && !$config['upload_dir']) {
$errors['allow_attachments']='You need to setup upload dir.';
}else{
if(!$config['allow_attachments'] && $config['allow_email_attachments'])
$warn['allow_email_attachments']='*Attachments Disabled.';
if(!$config['allow_attachments'] && ($config['allow_online_attachments'] or $config['allow_online_attachments_onlogin']))
$warn['allow_online_attachments']='<br>*Attachments Disabled.';
}
if(!$errors['enable_captcha'] && $config['enable_captcha'] && !extension_loaded('gd'))
$errors['enable_captcha']='GD required for captcha to work';
//Not showing err on post to avoid alarming the user...after an update.
if(!$errors['err'] &&!$msg && $warn )
$errors['err']='Possible errors detected, please check the warnings below';
$gmtime=Misc::gmtime();
$depts= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE.' WHERE ispublic=1');
$templates=db_query('SELECT tpl_id,name FROM '.EMAIL_TEMPLATE_TABLE.' WHERE cfg_id='.db_input($cfg->getId()));
?>
<div class="msg"><?php te('LABEL_SYSTEM_PREFERENCES_AND_SETTINGS');?> (v<?=$config['ostversion']?>)</div>
<table width="100%" border="0" cellspacing=0 cellpadding=0>
<form action="admin.php?t=pref" method="post">
<input type="hidden" name="t" value="pref">
<tr><td>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header" ><td colspan=2><?php te('LABEL_GENERAL_SETTINGS')?></td></tr>
<tr class="subheader">
<td colspan=2"><?php te('TEXT_OFFLINE_MODE_WILL_DISABLE_CLIENT')?></td>
</tr>
<tr><th><b><?php te('LABEL_HELPDESK_STATUS')?></b></th>
<td>
<input type="radio" name="isonline" value="1" <?=$config['isonline']?'checked':''?> /><b>Online</b> <?php te('LABEL_ACTIVE_IN_PARENTESIS')?>
<input type="radio" name="isonline" value="0" <?=!$config['isonline']?'checked':''?> /><b>Offline</b> <?php te('LABEL_DISABLED_IN_PARENTESIS')?>
<font class="warn"> <?=$config['isoffline']?'osTicket offline':''?></font>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_URL')?></th>
<td>
<input type="text" size="40" name="helpdesk_url" value="<?=$config['helpdesk_url']?>">
<font class="error">* <?=$errors['helpdesk_url']?></font></td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_NAME_TITLE')?></th>
<td><input type="text" size="40" name="helpdesk_title" value="<?=$config['helpdesk_title']?>"> </td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_DEFAULT_EMAIL_TEMPLATES')?></th>
<td>
<select name="default_template_id">
<option value=0><?php te('LABEL_HELPDESK_SELECT_DEFAULT_TEMPLATE')?></option>
<?
while (list($id,$name) = db_fetch_row($templates)){
$selected = ($config['default_template_id']==$id)?'SELECTED':''; ?>
<option value="<?=$id?>"<?=$selected?>><?=$name?></option>
<?
}?>
</select> <font class="error">* <?=$errors['default_template_id']?></font>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_DEFAULT_DEPARTMENT')?></th>
<td>
<select name="default_dept_id">
<option value=0><?php te('LABEL_HELPDESK_SELECT_DEFAULT_DEPARTMENT')?></option>
<?
while (list($id,$name) = db_fetch_row($depts)){
$selected = ($config['default_dept_id']==$id)?'SELECTED':''; ?>
<option value="<?=$id?>"<?=$selected?>><?=$name?> Dept</option>
<?
}?>
</select> <font class="error">* <?=$errors['default_dept_id']?></font>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_DEFAULT_PAGE_SIZE')?></th>
<td>
<select name="max_page_size">
<?
$pagelimit=$config['max_page_size'];
for ($i = 5; $i <= 50; $i += 5) {
?>
<option <?=$config['max_page_size'] == $i ? 'SELECTED':''?> value="<?=$i?>"><?=$i?></option>
<?
}?>
</select>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_SYSTEM_LOG_LEVEL')?></th>
<td>
<select name="log_level">
<option value=0 <?=$config['log_level'] == 0 ? 'selected="selected"':''?>><?php te('LABEL_HELPDESK_NONE_DISABLE_LOGGER')?></option>
<option value=3 <?=$config['log_level'] == 3 ? 'selected="selected"':''?>> DEBUG</option>
<option value=2 <?=$config['log_level'] == 2 ? 'selected="selected"':''?>> WARN</option>
<option value=1 <?=$config['log_level'] == 1 ? 'selected="selected"':''?>> ERROR</option>
</select>
<?php te('LABEL_HELPDESK_PURGE_LOGS_AFTER')?>
<select name="log_graceperiod">
<option value=0 selected><?php te('LABEL_HELPDESK_PURGE_NONE_DISABLE')?></option>
<?
for ($i = 1; $i <=12; $i++) {
?>
<option <?=$config['log_graceperiod'] == $i ? 'SELECTED':''?> value="<?=$i?>"><?=$i?> <?=($i>1)?t('LABEL_MONTHS'):t('LABEL_MONTH')?></option>
<?
}?>
</select>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_STAFF_EXCESSIVE_LOGINS')?></th>
<td>
<select name="staff_max_logins">
<?php
for ($i = 1; $i <= 10; $i++) {
echo sprintf('<option value="%d" %s>%d</option>',$i,(($config['staff_max_logins']==$i)?'selected="selected"':''),$i);
}
?>
</select> <?php te('LABEL_HELPDESK_ATTEMPT_ALLOWED_BEFORE_A')?>
<select name="staff_login_timeout">
<?php
for ($i = 1; $i <= 10; $i++) {
echo sprintf('<option value="%d" %s>%d</option>',$i,(($config['staff_login_timeout']==$i)?'selected="selected"':''),$i);
}
?>
</select> <?php te('LABEL_HELPDESK_PENALTY_IN_MINUTES')?>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_STAFF_SESSION_TIMEOUT')?></th>
<td>
<input type="text" name="staff_session_timeout" size=6 value="<?=$config['staff_session_timeout']?>">
<?php te('TEXT_HELPDESK_STAFF_MAX_IDLE_TIME_IN_MINUTES')?>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_BIND_STAFF_SESSION_TO_IP')?></th>
<td>
<input type="checkbox" name="staff_ip_binding" <?=$config['staff_ip_binding']?'checked':''?>>
Bind staff's session to login IP.
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_CLIENT_EXCESSIVE_LOGINS')?></th>
<td>
<select name="client_max_logins">
<?php
for ($i = 1; $i <= 10; $i++) {
echo sprintf('<option value="%d" %s>%d</option>',$i,(($config['client_max_logins']==$i)?'selected="selected"':''),$i);
}
?>
</select><?php te('LABEL_HELPDESK_ATTEMPT_ALLOWED_BEFORE_A')?>
<select name="client_login_timeout">
<?php
for ($i = 1; $i <= 10; $i++) {
echo sprintf('<option value="%d" %s>%d</option>',$i,(($config['client_login_timeout']==$i)?'selected="selected"':''),$i);
}
?>
</select> <?php te('LABEL_HELPDESK_PENALTY_IN_MINUTES')?>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_CLIENT_SESSION_TIMEOUT')?></th>
<td>
<input type="text" name="client_session_timeout" size=6 value="<?=$config['client_session_timeout']?>">
<?php te('TEXT_HELPDESK_CLIENT_MAX_IDLE_TIME_IN_MINUTES')?>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_CLICKABLE_URLS')?></th>
<td>
<input type="checkbox" name="clickable_urls" <?=$config['clickable_urls']?'checked':''?>>
<?php te('LABEL_HELPDESK_MAKE_URLS_CLICKABLE')?>
</td>
</tr>
<tr><th><?php te('LABEL_HELPDESK_ENABLE_AUTO_CRON')?></th>
<td>
<input type="checkbox" name="enable_auto_cron" <?=$config['enable_auto_cron']?'checked':''?>>
<?php te('TEXT_HELPDESK_ENABLE_CRON_CALL_ON_STAFF_ACTIVITY')?>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header"><td colspan=2><?php te('LABEL_DATE_AND_TIME')?></td></tr>
<tr class="subheader">
<td colspan=2><?php te('TEXT_PLEASE_REFER_TO')?> <a href="http:https://php.net/date" target="_blank"><?php te('TEXT_PHP_MANUAL')?></a> <?php te('TEXT_FOR_SUPPORTED_PARAMETERS')?>.</td>
</tr>
<tr><th><?php te('LABEL_TIME_FORMAT')?>:</th>
<td>
<input type="text" name="time_format" value="<?=$config['time_format']?>">
<font class="error">* <?=$errors['time_format']?></font>
<i><?=Format::date($config['time_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?></i></td>
</tr>
<tr><th><?php te('LABEL_DATE_FORMAT')?>:</th>
<td><input type="text" name="date_format" value="<?=$config['date_format']?>">
<font class="error">* <?=$errors['date_format']?></font>
<i><?=Format::date($config['date_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?></i>
</td>
</tr>
<tr><th><?php te('LABEL_DATE_AND_TIME_FORMAT')?>:</th>
<td><input type="text" name="datetime_format" value="<?=$config['datetime_format']?>">
<font class="error">* <?=$errors['datetime_format']?></font>
<i><?=Format::date($config['datetime_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?></i>
</td>
</tr>
<tr><th><?php te('LABEL_DAY_DATE_AND_TIME_FORMAT')?>:</th>
<td><input type="text" name="daydatetime_format" value="<?=$config['daydatetime_format']?>">
<font class="error">* <?=$errors['daydatetime_format']?></font>
<i><?=Format::date($config['daydatetime_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?></i>
</td>
</tr>
<tr><th><?php te('LABEL_DEFAULT_TIME_ZONE')?>:</th>
<td>
<select name="timezone_offset">
<?
$gmoffset = date("Z") / 3600; //Server's offset.
echo"<option value=\"$gmoffset\">Server Time (GMT $gmoffset:00)</option>"; //Default if all fails.
$timezones= db_query('SELECT offset,timezone FROM '.TIMEZONE_TABLE);
while (list($offset,$tz) = db_fetch_row($timezones)){
$selected = ($config['timezone_offset'] ==$offset) ?'SELECTED':'';
$tag=($offset)?"GMT $offset ($tz)":" GMT ($tz)";
?>
<option value="<?=$offset?>"<?=$selected?>><?=$tag?></option>
<?
}?>
</select>
</td>
</tr>
<tr>
<th><?php te('LABEL_DAYLIGHT_SAVING')?>:</th>
<td>
<input type="checkbox" name="enable_daylight_saving" <?=$config['enable_daylight_saving'] ? 'checked': ''?>><?php te('TEXT_OBSERVE_DAYLIGHT_SAVINGS')?>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header"><td colspan=2>Ticket Options & Settings</td></tr>
<tr class="subheader"><td colspan=2>If enabled ticket lock get auto-renewed on form activity.</td></tr>
<tr><th valign="top">Ticket IDs:</th>
<td>
<input type="radio" name="random_ticket_ids" value="0" <?=!$config['random_ticket_ids']?'checked':''?> /> Sequential
<input type="radio" name="random_ticket_ids" value="1" <?=$config['random_ticket_ids']?'checked':''?> />Random (recommended)
</td>
</tr>
<tr><th valign="top">Ticket Priority:</th>
<td>
<select name="default_priority_id">
<?
$priorities= db_query('SELECT priority_id,priority_desc FROM '.TICKET_PRIORITY_TABLE);
while (list($id,$tag) = db_fetch_row($priorities)){ ?>
<option value="<?=$id?>"<?=($config['default_priority_id']==$id)?'selected':''?>><?=$tag?></option>
<?
}?>
</select> Default priority<br/>
<input type="checkbox" name="allow_priority_change" <?=$config['allow_priority_change'] ?'checked':''?>>
Allow user to overwrite/set priority (new web tickets)<br/>
<input type="checkbox" name="use_email_priority" <?=$config['use_email_priority'] ?'checked':''?> >
Use email priority when available (new emailed tickets)
</td>
</tr>
<tr><th>Maximum <b>Open</b> Tickets:</th>
<td>
<input type="text" name="max_open_tickets" size=4 value="<?=$config['max_open_tickets']?>">
per email. (<i>Helps with spam and flood control. Enter 0 for unlimited</i>)
</td>
</tr>
<tr><th>Auto-Lock Time:</td>
<td>
<input type="text" name="autolock_minutes" size=4 value="<?=$config['autolock_minutes']?>">
<font class="error"><?=$errors['autolock_minutes']?></font>
(<i>Minutes to lock a ticket on activity. Enter 0 to disable locking</i>)
</td>
</tr>
<tr><th>Ticket Grace Period:</th>
<td>
<input type="text" name="overdue_grace_period" size=4 value="<?=$config['overdue_grace_period']?>">
(<i>Hours before ticket is marked overdue. Enter 0 to disable aging.</i>)
</td>
</tr>
<tr><th>Reopened Tickets:</th>
<td>
<input type="checkbox" name="auto_assign_reopened_tickets" <?=$config['auto_assign_reopened_tickets'] ? 'checked': ''?>>
Auto-assign reopened tickets to last respondent 'available'. (<i> 3 months limit</i>)
</td>
</tr>
<tr><th>Assigned Tickets:</th>
<td>
<input type="checkbox" name="show_assigned_tickets" <?=$config['show_assigned_tickets']?'checked':''?>>
Show assigned tickets on open queue.
</td>
</tr>
<tr><th>Answered Tickets:</th>
<td>
<input type="checkbox" name="show_answered_tickets" <?=$config['show_answered_tickets']?'checked':''?>>
Show answered tickets on open queue.
</td>
</tr>
<tr><th>Ticket Activity Log:</th>
<td>
<input type="checkbox" name="log_ticket_activity" <?=$config['log_ticket_activity']?'checked':''?>>
Log ticket's activity as internal notes.
</td>
</tr>
<tr><th>Staff Identity:</th>
<td>
<input type="checkbox" name="hide_staff_name" <?=$config['hide_staff_name']?'checked':''?>>
Hide staff's name on responses.
</td>
</tr>
<tr><th>Human Verification:</th>
<td>
<?php
if($config['enable_captcha'] && !$errors['enable_captcha']) {?>
<img src="../captcha.php" border="0" align="left">
<?}?>
<input type="checkbox" name="enable_captcha" <?=$config['enable_captcha']?'checked':''?>>
Enable captcha on new web tickets. <font class="error"> <?=$errors['enable_captcha']?></font><br/>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header"><td colspan=2 >Email Settings</td></tr>
<tr class="subheader"><td colspan=2>Note that global settings can be disabled at dept/email level.</td></tr>
<tr><th valign="top"><br><b>Incoming Emails</b>:</th>
<td><i>For mail fetcher (POP/IMAP) to work you must set a cron job or simply enable auto-cron</i><br/>
<input type="checkbox" name="enable_mail_fetch" value=1 <?=$config['enable_mail_fetch']? 'checked': ''?> > Enable POP/IMAP email fetch
(<i>Global setting which can be disabled at email level</i>) <br/>
<input type="checkbox" name="enable_email_piping" value=1 <?=$config['enable_email_piping']? 'checked': ''?> > Enable email piping
(<i>You pipe we accept policy</i>)<br/>
<input type="checkbox" name="strip_quoted_reply" <?=$config['strip_quoted_reply'] ? 'checked':''?>>
Strip quoted reply (<i>depends on the tag below</i>)<br/>
<input type="text" name="reply_separator" value="<?=$config['reply_separator']?>"> Reply Separator Tag
<font class="error"> <?=$errors['reply_separator']?></font>
</td>
</tr>
<tr><th valign="top"><br><b>Outgoing Emails</b>:</th>
<td>
<i><b>Default Email:</b> Only applies to outgoing emails with no SMTP settings.</i><br/>
<select name="default_smtp_id"
onChange="document.getElementById('overwrite').style.display=(this.options[this.selectedIndex].value>0)?'block':'none';">
<option value=0><?= $trl->translate('TEXT_SELECT_ONE_TOPIC') ?></option>
<option value=0 selected="selected">None: Use PHP mail function</option>
<?
$emails=db_query('SELECT email_id,email,name,smtp_host FROM '.EMAIL_TABLE.' WHERE smtp_active=1');
if($emails && db_num_rows($emails)) {
while (list($id,$email,$name,$host) = db_fetch_row($emails)){
$email=$name?"$name <$email>":$email;
$email=sprintf('%s (%s)',$email,$host);
?>
<option value="<?=$id?>"<?=($config['default_smtp_id']==$id)?'selected="selected"':''?>><?=$email?></option>
<?
}
}?>
</select> <font class="error"> <?=$errors['default_smtp_id']?></font><br/>
<span id="overwrite" style="display:<?=($config['default_smtp_id']?'display':'none')?>">
<input type="checkbox" name="spoof_default_smtp" <?=$config['spoof_default_smtp'] ? 'checked':''?>>
Allow spoofing (No Overwrite). <font class="error"> <?=$errors['spoof_default_smtp']?></font><br/>
</span>
</td>
</tr>
<tr><th>Default System Email:</th>
<td>
<select name="default_email_id">
<option value=0 disabled><?= $trl->translate('TEXT_SELECT_ONE_TOPIC') ?></option>
<?
$emails=db_query('SELECT email_id,email,name FROM '.EMAIL_TABLE);
while (list($id,$email,$name) = db_fetch_row($emails)){
$email=$name?"$name <$email>":$email;
?>
<option value="<?=$id?>"<?=($config['default_email_id']==$id)?'selected':''?>><?=$email?></option>
<?
}?>
</select>
<font class="error">* <?=$errors['default_email_id']?></font></td>
</tr>
<tr><th valign="top">Default Alert Email:</th>
<td>
<select name="alert_email_id">
<option value=0 disabled><?= $trl->translate('TEXT_SELECT_ONE_TOPIC') ?></option>
<option value=0 selected="selected">Use Default System Email (above)</option>
<?
$emails=db_query('SELECT email_id,email,name FROM '.EMAIL_TABLE.' WHERE email_id != '.db_input($config['default_email_id']));
while (list($id,$email,$name) = db_fetch_row($emails)){
$email=$name?"$name <$email>":$email;
?>
<option value="<?=$id?>"<?=($config['alert_email_id']==$id)?'selected':''?>><?=$email?></option>
<?
}?>
</select>
<font class="error">* <?=$errors['alert_email_id']?></font>
<br/><i>Used to send out alerts and notices to staff.</i>
</td>
</tr>
<tr><th>System Admin Email Address:</th>
<td>
<input type="text" size=25 name="admin_email" value="<?=$config['admin_email']?>">
<font class="error">* <?=$errors['admin_email']?></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header"><td colspan=2>Autoresponders (Global Setting)</td></tr>
<tr class="subheader"><td colspan=2">This is global setting which can be disabled at department level.</td></tr>
<tr><th valign="top">New Ticket:</th>
<td><i>Autoresponse includes the ticket ID required to check status of the ticket</i><br>
<input type="radio" name="ticket_autoresponder" value="1" <?=$config['ticket_autoresponder']?'checked':''?> />Enable
<input type="radio" name="ticket_autoresponder" value="0" <?=!$config['ticket_autoresponder']?'checked':''?> />Disable
</td>
</tr>
<tr><th valign="top">New Ticket by Staff:</th>
<td><i>Notice sent when staff creates a ticket on behalf of the user (Staff can disable)</i><br>
<input type="radio" name="ticket_notice_active" value="1" <?=$config['ticket_notice_active']?'checked':''?> />Enable
<input type="radio" name="ticket_notice_active" value="0" <?=!$config['ticket_notice_active']?'checked':''?> />Disable
</td>
</tr>
<tr><th valign="top">New Message:</th>
<td><i>Message appended to an existing ticket confirmation</i><br>
<input type="radio" name="message_autoresponder" value="1" <?=$config['message_autoresponder']?'checked':''?> />Enable
<input type="radio" name="message_autoresponder" value="0" <?=!$config['message_autoresponder']?'checked':''?> />Disable
</td>
</tr>
<tr><th valign="top">Overlimit notice:</th>
<td><i>Ticket denied notice sent <b>only once</b> on limit violation to the user.</i><br/>
<input type="radio" name="overlimit_notice_active" value="1" <?=$config['overlimit_notice_active']?'checked':''?> />Enable
<input type="radio" name="overlimit_notice_active" value="0" <?=!$config['overlimit_notice_active']?'checked':''?> />Disable
<br><i><b>Note:</b> Admin gets alerts on ALL denials by default.</i><br>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header"><td colspan=2> Alerts & Notices</td></tr>
<tr class="subheader"><td colspan=2>
Notices sent to user use 'No Reply Email' whereas alerts to staff use 'Alert Email' set above as FROM address respectively.</td>
</tr>
<tr><th valign="top">New Ticket Alert:</th>
<td>
<input type="radio" name="ticket_alert_active" value="1" <?=$config['ticket_alert_active']?'checked':''?> />Enable
<input type="radio" name="ticket_alert_active" value="0" <?=!$config['ticket_alert_active']?'checked':''?> />Disable
<br><i>Select recipients</i> <font class="error"> <?=$errors['ticket_alert_active']?></font><br>
<input type="checkbox" name="ticket_alert_admin" <?=$config['ticket_alert_admin']?'checked':''?>> Admin Email
<input type="checkbox" name="ticket_alert_dept_manager" <?=$config['ticket_alert_dept_manager']?'checked':''?>> Department Manager
<input type="checkbox" name="ticket_alert_dept_members" <?=$config['ticket_alert_dept_members']?'checked':''?>> Department Members (spammy)
</td>
</tr>
<tr><th valign="top">New Message Alert:</th>
<td>
<input type="radio" name="message_alert_active" value="1" <?=$config['message_alert_active']?'checked':''?> />Enable
<input type="radio" name="message_alert_active" value="0" <?=!$config['message_alert_active']?'checked':''?> />Disable
<br><i>Select recipients</i> <font class="error"> <?=$errors['message_alert_active']?></font><br>
<input type="checkbox" name="message_alert_laststaff" <?=$config['message_alert_laststaff']?'checked':''?>> Last Respondent
<input type="checkbox" name="message_alert_assigned" <?=$config['message_alert_assigned']?'checked':''?>> Assigned Staff
<input type="checkbox" name="message_alert_dept_manager" <?=$config['message_alert_dept_manager']?'checked':''?>> Department Manager (spammy)
</td>
</tr>
<tr><th valign="top">New Internal Note Alert:</th>
<td>
<input type="radio" name="note_alert_active" value="1" <?=$config['note_alert_active']?'checked':''?> />Enable
<input type="radio" name="note_alert_active" value="0" <?=!$config['note_alert_active']?'checked':''?> />Disable
<br><i>Select recipients</i> <font class="error"> <?=$errors['note_alert_active']?></font><br>
<input type="checkbox" name="note_alert_laststaff" <?=$config['note_alert_laststaff']?'checked':''?>> Last Respondent
<input type="checkbox" name="note_alert_assigned" <?=$config['note_alert_assigned']?'checked':''?>> Assigned Staff
<input type="checkbox" name="note_alert_dept_manager" <?=$config['note_alert_dept_manager']?'checked':''?>> Department Manager (spammy)
</td>
</tr>
<tr><th valign="top">Overdue Ticket Alert:</th>
<td>
<input type="radio" name="overdue_alert_active" value="1" <?=$config['overdue_alert_active']?'checked':''?> />Enable
<input type="radio" name="overdue_alert_active" value="0" <?=!$config['overdue_alert_active']?'checked':''?> />Disable
<br><i>Admin Email gets an alert by default. Select additional recipients below</i> <font class="error"> <?=$errors['overdue_alert_active']?></font><br>
<input type="checkbox" name="overdue_alert_assigned" <?=$config['overdue_alert_assigned']?'checked':''?>> Assigned Staff
<input type="checkbox" name="overdue_alert_dept_manager" <?=$config['overdue_alert_dept_manager']?'checked':''?>> Department Manager
<input type="checkbox" name="overdue_alert_dept_members" <?=$config['overdue_alert_dept_members']?'checked':''?>> Department Members (spammy)
</td>
</tr>
<tr><th valign="top">System Errors:</th>
<td><i>Enabled errors are sent to admin email set above</i><br>
<input type="checkbox" name="send_sys_errors" <?=$config['send_sys_errors']?'checked':'checked'?> disabled>System Errors
<input type="checkbox" name="send_sql_errors" <?=$config['send_sql_errors']?'checked':''?>>SQL errors
<input type="checkbox" name="send_login_errors" <?=$config['send_login_errors']?'checked':''?>>Excessive Login attempts
</td>
</tr>
</table>
</td></tr>
<tr>
<td style="padding:10px 0 10px 240px;">
<input class="button" type="submit" name="submit" value="Save Changes">
<input class="button" type="reset" name="reset" value="Reset Changes">
</td>
</tr>
</form>
</table>