golden hour
/home/doctorbruno/public_html/taeionline.com/support/include/staff
⬆️ Go Up
Upload
File/Folder
Size
Actions
apikey.inc.php
4.69 KB
Del
OK
apikeys.inc.php
7.6 KB
Del
OK
banlist.inc.php
8.71 KB
Del
OK
banrule.inc.php
2.96 KB
Del
OK
cannedresponse.inc.php
6.09 KB
Del
OK
cannedresponses.inc.php
8.47 KB
Del
OK
categories.inc.php
7.03 KB
Del
OK
category.inc.php
6.51 KB
Del
OK
dashboard.inc.php
6.35 KB
Del
OK
department.inc.php
22.78 KB
Del
OK
departments.inc.php
10.42 KB
Del
OK
directory.inc.php
5.95 KB
Del
OK
dynamic-form.inc.php
15.2 KB
Del
OK
dynamic-forms.inc.php
5.26 KB
Del
OK
dynamic-list.inc.php
11.12 KB
Del
OK
dynamic-lists.inc.php
4.62 KB
Del
OK
email.inc.php
10.47 KB
Del
OK
emails.inc.php
7.03 KB
Del
OK
faq-categories.inc.php
7.13 KB
Del
OK
faq-category.inc.php
3.52 KB
Del
OK
faq-view.inc.php
3.52 KB
Del
OK
faq.inc.php
10.31 KB
Del
OK
filter.inc.php
18.98 KB
Del
OK
filters.inc.php
9.47 KB
Del
OK
footer.inc.php
3.87 KB
Del
OK
header.inc.php
6.02 KB
Del
OK
helptopic.inc.php
20.78 KB
Del
OK
helptopics.inc.php
9.93 KB
Del
OK
index.php
37 B
Del
OK
login.header.php
1.37 KB
Del
OK
login.tpl.php
6.76 KB
Del
OK
org-view.inc.php
4.45 KB
Del
OK
orgs.inc.php
8.57 KB
Del
OK
page.inc.php
7.87 KB
Del
OK
pages.inc.php
7.64 KB
Del
OK
plugin-add.inc.php
1.84 KB
Del
OK
plugin-instance.inc.php
1.31 KB
Del
OK
plugin.inc.php
4.67 KB
Del
OK
plugins.inc.php
5.81 KB
Del
OK
profile.inc.php
20.72 KB
Del
OK
pwreset.login.php
1.77 KB
Del
OK
pwreset.php
1.7 KB
Del
OK
pwreset.sent.php
1.59 KB
Del
OK
queue.inc.php
15.59 KB
Del
OK
queues-ticket.inc.php
4.56 KB
Del
OK
role.inc.php
4.91 KB
Del
OK
roles.inc.php
5.5 KB
Del
OK
schedule.inc.php
4.53 KB
Del
OK
schedules.inc.php
5.34 KB
Del
OK
settings-agents.inc.php
13.15 KB
Del
OK
settings-alerts.inc.php
10.68 KB
Del
OK
settings-autoresp.inc.php
2.48 KB
Del
OK
settings-emails.inc.php
9.88 KB
Del
OK
settings-kb.inc.php
2.18 KB
Del
OK
settings-pages.inc.php
15.32 KB
Del
OK
settings-system.inc.php
22.99 KB
Del
OK
settings-tasks.inc.php
14.99 KB
Del
OK
settings-tickets.inc.php
13.7 KB
Del
OK
settings-users.inc.php
9.36 KB
Del
OK
slaplan.inc.php
5.96 KB
Del
OK
slaplans.inc.php
7.99 KB
Del
OK
staff.inc.php
21.42 KB
Del
OK
staffmembers.inc.php
12.63 KB
Del
OK
syslogs.inc.php
8.58 KB
Del
OK
system.inc.php
7.82 KB
Del
OK
task-view.inc.php
93 B
Del
OK
tasks.inc.php
17.99 KB
Del
OK
team.inc.php
8.76 KB
Del
OK
teams.inc.php
8.14 KB
Del
OK
template.inc.php
7.21 KB
Del
OK
templates
-
Del
OK
templates.inc.php
8.25 KB
Del
OK
ticket-edit.inc.php
8.62 KB
Del
OK
ticket-open.inc.php
23.7 KB
Del
OK
ticket-relations.inc.php
1.27 KB
Del
OK
ticket-tasks.inc.php
7.32 KB
Del
OK
ticket-view.inc.php
70.54 KB
Del
OK
tickets.inc.php
25.45 KB
Del
OK
tpl.inc.php
5.77 KB
Del
OK
user-view.inc.php
9.22 KB
Del
OK
users.inc.php
12.88 KB
Del
OK
Edit: ticket-edit.inc.php
<?php if (!defined('OSTSCPINC') || !$ticket || !($ticket->checkStaffPerm($thisstaff, Ticket::PERM_EDIT))) die('Access Denied'); $info=Format::htmlchars(($errors && $_POST)?$_POST:$ticket->getUpdateInfo(), true); if ($_POST) // Reformat duedate to the display standard (but don't convert to local // timezone) $info['duedate'] = Format::date(strtotime($info['duedate']), false, false, 'UTC'); ?> <form action="tickets.php?id=<?php echo $ticket->getId(); ?>&a=edit" method="post" class="save" enctype="multipart/form-data"> <?php csrf_token(); ?> <input type="hidden" name="do" value="update"> <input type="hidden" name="a" value="edit"> <input type="hidden" name="id" value="<?php echo $ticket->getId(); ?>"> <div style="margin-bottom:20px; padding-top:5px;"> <div class="pull-left flush-left"> <h2><?php echo sprintf(__('Update Ticket #%s'),$ticket->getNumber());?></h2> </div> </div> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <tbody> <tr> <th colspan="2"> <em><strong><?php echo __('User Information'); ?></strong>: <?php echo __('Currently selected user'); ?></em> </th> </tr> <?php if(!$info['user_id'] || !($user = User::lookup($info['user_id']))) $user = $ticket->getUser(); ?> <tr><td><?php echo __('User'); ?>:</td><td> <div id="client-info"> <a href="#" onclick="javascript: $.userLookup('ajax.php/users/<?php echo $ticket->getOwnerId(); ?>/edit', function (user) { $('#client-name').text(user.name); $('#client-email').text(user.email); }); return false; "><i class="icon-user"></i> <span id="client-name"><?php echo Format::htmlchars($user->getName()); ?></span> <<span id="client-email"><?php echo $user->getEmail(); ?></span>> </a> <a class="inline action-button" style="overflow:inherit" href="#" onclick="javascript: $.userLookup('ajax.php/tickets/<?php echo $ticket->getId(); ?>/change-user', function(user) { $('input#user_id').val(user.id); $('#client-name').text(user.name); $('#client-email').text('<'+user.email+'>'); }); return false; "><i class="icon-edit"></i> <?php echo __('Change'); ?></a> <input type="hidden" name="user_id" id="user_id" value="<?php echo $info['user_id']; ?>" /> </div> </td></tr> <tbody> <tr> <th colspan="2"> <em><strong><?php echo __('Ticket Information'); ?></strong>: <?php echo __("Due date overrides SLA's grace period."); ?></em> </th> </tr> <tr> <td width="160" class="required"> <?php echo __('Ticket Source');?>: </td> <td> <select name="source"> <option value="" selected >— <?php echo __('Select Source');?> —</option> <?php $source = $info['source'] ?: 'Phone'; foreach (Ticket::getSources() as $k => $v) { echo sprintf('<option value="%s" %s>%s</option>', $k, ($source == $k ) ? 'selected="selected"' : '', $v); } ?> </select> <font class="error"><b>*</b> <?php echo $errors['source']; ?></font> </td> </tr> <tr> <td width="160" class="required"> <?php echo __('Help Topic');?>: </td> <td> <select name="topicId"> <option value="" selected >— <?php echo __('Select Help Topic');?> —</option> <?php if ($topics=$thisstaff->getTopicNames()) { if($ticket->topic_id && !array_key_exists($ticket->topic_id, $topics)) { $topics[$ticket->topic_id] = $ticket->topic; $errors['topicId'] = sprintf(__('%s selected must be active'), __('Help Topic')); } foreach($topics as $id =>$name) { echo sprintf('<option value="%d" %s>%s</option>', $id, ($info['topicId']==$id)?'selected="selected"':'',$name); } } ?> </select> <?php if (!$info['topicId'] && $cfg->requireTopicToClose()) { ?><i class="icon-warning-sign help-tip warning" data-title="<?php echo __('Required to close ticket'); ?>" data-content="<?php echo __('Data is required in this field in order to close the related ticket'); ?>" ></i><?php } ?> <font class="error"><b>*</b> <?php echo $errors['topicId']; ?></font> </td> </tr> <tr> <td width="160"> <?php echo __('SLA Plan');?>: </td> <td> <select name="slaId"> <option value="0" selected="selected" >— <?php echo __('None');?> —</option> <?php if($slas=SLA::getSLAs()) { foreach($slas as $id =>$name) { echo sprintf('<option value="%d" %s>%s</option>', $id, ($info['slaId']==$id)?'selected="selected"':'',$name); } } ?> </select> <font class="error"> <?php echo $errors['slaId']; ?></font> </td> </tr> <tr> <td width="160"> <?php echo __('Due Date');?>: </td> <td> <?php $duedateField = Ticket::duedateField('duedate', $info['duedate']); $duedateField->render(); ?> <font class="error"> <?php echo $errors['duedate']; ?></font> <em><?php echo __('Time is based on your time zone');?> (<?php echo $cfg->getTimezone($thisstaff); ?>)</em> </td> </tr> </tbody> </table> <table class="form_table dynamic-forms" width="940" border="0" cellspacing="0" cellpadding="2"> <?php if ($forms) foreach ($forms as $form) { $form->render(array('staff'=>true,'mode'=>'edit','width'=>160,'entry'=>$form)); } ?> </table> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <tbody> <tr> <th colspan="2"> <em><strong><?php echo __('Internal Note');?></strong>: <?php echo __('Reason for editing the ticket (optional)');?> <font class="error"> <?php echo $errors['note'];?></font></em> </th> </tr> <tr> <td colspan="2"> <textarea class="richtext no-bar" name="note" cols="21" rows="6" style="width:80%;"><?php echo Format::viewableImages($info['note']); ?></textarea> </td> </tr> </tbody> </table> <p style="text-align:center;"> <input type="submit" name="submit" value="<?php echo __('Save');?>"> <input type="reset" name="reset" value="<?php echo __('Reset');?>"> <input type="button" name="cancel" value="<?php echo __('Cancel');?>" onclick='window.location.href="tickets.php?id=<?php echo $ticket->getId(); ?>"'> </p> </form> <div style="display:none;" class="dialog draggable" id="user-lookup"> <div class="body"></div> </div> <script type="text/javascript"> +(function() { var I = setInterval(function() { if (!$.fn.sortable) return; clearInterval(I); $('table.dynamic-forms').sortable({ items: 'tbody', handle: 'th', helper: function(e, ui) { ui.children().each(function() { $(this).children().each(function() { $(this).width($(this).width()); }); }); ui=ui.clone().css({'background-color':'white', 'opacity':0.8}); return ui; } }); }, 20); })(); </script>
Save