-
Jared Hancock authored
Apply changes made to v1.9.5 Conflicts: attachment.php include/ajax.draft.php include/ajax.tickets.php include/class.attachment.php include/class.dept.php include/class.dynamic_forms.php include/class.faq.php include/class.file.php include/class.http.php include/class.nav.php include/class.page.php include/class.staff.php include/class.thread.php include/class.ticket.php include/client/faq.inc.php include/client/tickets.inc.php include/staff/cannedresponses.inc.php include/staff/categories.inc.php include/staff/category.inc.php include/staff/department.inc.php include/staff/departments.inc.php include/staff/directory.inc.php include/staff/emails.inc.php include/staff/faq-view.inc.php include/staff/faq.inc.php include/staff/group.inc.php include/staff/groups.inc.php include/staff/helptopic.inc.php include/staff/page.inc.php include/staff/pages.inc.php include/staff/slaplan.inc.php include/staff/slaplans.inc.php include/staff/staff.inc.php include/staff/staffmembers.inc.php include/staff/system.inc.php include/staff/team.inc.php include/staff/teams.inc.php include/staff/template.inc.php include/staff/tickets.inc.php include/staff/users.inc.php scp/attachment.php scp/canned.php
2f48c682
slaplan.inc.php 4.99 KiB
<?php
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');
$info = $qs = array();
if($sla && $_REQUEST['a']!='add'){
$title=__('Update SLA Plan' /* SLA is abbreviation for Service Level Agreement */);
$action='update';
$submit_text=__('Save Changes');
$info=$sla->getInfo();
$info['id']=$sla->getId();
$trans['name'] = $sla->getTranslateTag('name');
$qs += array('id' => $sla->getId());
}else {
$title=__('Add New SLA Plan' /* SLA is abbreviation for Service Level Agreement */);
$action='add';
$submit_text=__('Add Plan');
$info['isactive']=isset($info['isactive'])?$info['isactive']:1;
$info['enable_priority_escalation']=isset($info['enable_priority_escalation'])?$info['enable_priority_escalation']:1;
$info['disable_overdue_alerts']=isset($info['disable_overdue_alerts'])?$info['disable_overdue_alerts']:0;
$qs += array('a' => $_REQUEST['a']);
}
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
?>
<form action="slas.php?<?php echo Http::build_query($qs); ?>" method="post" id="save">
<?php csrf_token(); ?>
<input type="hidden" name="do" value="<?php echo $action; ?>">
<input type="hidden" name="a" value="<?php echo Format::htmlchars($_REQUEST['a']); ?>">
<input type="hidden" name="id" value="<?php echo $info['id']; ?>">
<h2><?php echo __('Service Level Agreement');?></h2>
<table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em><?php echo __('Tickets are marked overdue on grace period violation.');?></em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">
<?php echo __('Name');?>:
</td>
<td>
<input type="text" size="30" name="name" value="<?php echo $info['name']; ?>"
data-translate-tag="<?php echo $trans['name']; ?>"/>
<span class="error">* <?php echo $errors['name']; ?></span> <i class="help-tip icon-question-sign" href="#name"></i>
</td>
</tr>
<tr>
<td width="180" class="required">
<?php echo __('Grace Period');?>:
</td>
<td>
<input type="text" size="10" name="grace_period" value="<?php echo $info['grace_period']; ?>">
<em>( <?php echo __('in hours');?> )</em>
<span class="error">* <?php echo $errors['grace_period']; ?></span> <i class="help-tip icon-question-sign" href="#grace_period"></i>
</td>
</tr>
<tr>
<td width="180" class="required">
<?php echo __('Status');?>:
</td>
<td>
<input type="radio" name="isactive" value="1" <?php echo $info['isactive']?'checked="checked"':''; ?>><strong><?php echo __('Active');?></strong>
<input type="radio" name="isactive" value="0" <?php echo !$info['isactive']?'checked="checked"':''; ?>><?php echo __('Disabled');?>
<span class="error">* <?php echo $errors['isactive']; ?></span>
</td>
</tr>
<tr>
<td width="180">
<?php echo __('Transient'); ?>:
</td>
<td>
<input type="checkbox" name="transient" value="1" <?php echo $info['transient']?'checked="checked"':''; ?> >
<?php echo __('SLA can be overridden on ticket transfer or help topic change'); ?>
<i class="help-tip icon-question-sign" href="#transient"></i>
</td>
</tr>
<tr>
<td width="180">
<?php echo __('Ticket Overdue Alerts');?>:
</td>
<td>
<input type="checkbox" name="disable_overdue_alerts" value="1" <?php echo $info['disable_overdue_alerts']?'checked="checked"':''; ?> >
<?php echo __('<strong>Disable</strong> overdue alerts notices.'); ?>
<em><?php echo __('(Override global setting)'); ?></em>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong><?php echo __('Admin Notes');?></strong>: <?php echo __('Internal notes.');?>
<i class="help-tip icon-question-sign" href="#admin_notes"></i></em>
</em>
</th>
</tr>
<tr>
<td colspan=2>
<textarea class="richtext no-bar" name="notes" cols="21"
rows="8" style="width: 80%;"><?php echo $info['notes']; ?></textarea>
</td>
</tr>
</tbody>
</table>
<p style="text-align:center;">
<input type="submit" name="submit" value="<?php echo $submit_text; ?>">
<input type="reset" name="reset" value="<?php echo __('Reset');?>">
<input type="button" name="cancel" value="<?php echo __('Cancel');?>" onclick='window.location.href="slas.php"'>
</p>
</form>