golden hour
/home/doctorbruno/public_html/doctorbruno.info/taeionline/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: team.inc.php
<?php if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied'); $info = $members = $qs = array(); if ($team && $_REQUEST['a']!='add') { //Editing Team $title=__('Update Team'); $action='update'; $submit_text=__('Save Changes'); $trans['name'] = $team->getTranslateTag('name'); $members = $team->getMembers(); $qs += array('id' => $team->getId()); } else { $title=__('Add New Team'); $action='create'; $submit_text=__('Create Team'); if (!$team) { $team = Team::create(array( 'flags' => Team::FLAG_ENABLED, )); } $qs += array('a' => $_REQUEST['a']); } $info = $team->getInfo(); ?> <form action="teams.php?<?php echo Http::build_query($qs); ?>" method="post" class="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 $team->getId(); ?>"> <h2><?php echo $title; ?> <?php if (isset($team->name)) { ?><small> — <?php echo $team->getName(); ?></small> <?php } ?> <i class="help-tip icon-question-sign" href="#teams"></i> </h2> <br> <ul class="clean tabs"> <li class="active"><a href="#team"> <i class="icon-file"></i> <?php echo __('Team'); ?></a></li> <li><a href="#members"> <i class="icon-group"></i> <?php echo __('Members'); ?></a></li> </ul> <div id="team" class="tab_content"> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2"> <em><strong><?php echo __('Team Information'); ?></strong>:</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 Format::htmlchars($team->name); ?>" autofocus data-translate-tag="<?php echo $trans['name']; ?>"/> <span class="error">* <?php echo $errors['name']; ?></span> </td> </tr> <tr> <td width="180" class="required"> <?php echo __('Status');?>: </td> <td> <span> <input type="radio" name="isenabled" value="1" <?php echo $team->isEnabled()?'checked="checked"':''; ?>><strong><?php echo __('Active');?></strong> <input type="radio" name="isenabled" value="0" <?php echo !$team->isEnabled()?'checked="checked"':''; ?>><?php echo __('Disabled');?> <span class="error">* </span> <i class="help-tip icon-question-sign" href="#status"></i> </span> </td> </tr> <tr> <td width="180"> <?php echo __('Team Lead');?>: </td> <td> <span> <select id="team-lead-select" name="lead_id" data-quick-add="staff"> <option value="0">— <?php echo __('None');?> —</option> <?php if ($members) { foreach($members as $k=>$staff){ $selected=($team->lead_id && $staff->getId()==$team->lead_id)?'selected="selected"':''; echo sprintf('<option value="%d" %s>%s</option>',$staff->getId(),$selected,$staff->getName()); } } ?> <option value="0" data-quick-add>— <?php echo __('Add New');?> —</option> </select> <span class="error"><?php echo $errors['lead_id']; ?></span> <i class="help-tip icon-question-sign" href="#lead"></i> </span> </td> </tr> <tr> <td width="180"> <?php echo __('Assignment Alert');?>: </td> <td> <input type="checkbox" name="noalerts" value="1" <?php echo !$team->alertsEnabled()?'checked="checked"':''; ?> > <?php echo sprintf(__('<strong>Disable</strong> for %s'), __('this team')); ?> <i class="help-tip icon-question-sign" href="#assignment_alert"></i> </td> </tr> <tr> <th colspan="2"> <em><strong><?php echo __('Admin Notes');?></strong>: <?php echo __('Internal notes viewable by all admins.');?> </em> </th> </tr> <tr> <td colspan=2> <textarea class="richtext no-bar" name="notes" cols="21" rows="8" style="width: 80%;"><?php echo Format::viewableImages(Format::htmlchars($team->notes, true)); ?></textarea> </td> </tr> </tbody> </table> </div> <?php $agents = Staff::getStaffMembers(); foreach ($members as $m) unset($agents[$m->staff_id]); ?> <div id="members" class="tab_content" style="display:none"> <table class="two-column table" width="100%"> <tbody> <tr class="header"> <td colspan="2"> <?php echo __('Team Members'); ?> <div><small> <?php echo sprintf(__('Agents who are members of %s'), __('this team')); ?> <i class="help-tip icon-question-sign" href="#members"></i> </small></div> </td> </tr> <tr id="add_member"> <td colspan="2"> <i class="icon-plus-sign"></i> <select id="add_access" data-quick-add="staff"> <option value="0">— <?php echo __('Select Agent');?> —</option> <?php foreach ($agents as $id=>$name) { echo sprintf('<option value="%d">%s</option>',$id,Format::htmlchars($name)); } ?> <option value="0" data-quick-add>— <?php echo __('Add New');?> —</option> </select> <button type="button" class="action-button"> <?php echo __('Add'); ?> </button> </td> </tr> </tbody> <tbody> <tr id="member_template" class="hidden"> <td> <input type="hidden" data-name="members[]" value="" /> </td> <td> <label> <input type="checkbox" data-name="member_alerts" value="1" /> <?php echo __('Alerts'); ?> </label> <a href="#" class="pull-right drop-membership" title="<?php echo __('Delete'); ?>"><i class="icon-trash"></i></a> </td> </tr> </tbody> </table> </div> <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="?"'> </p> </form> <script type="text/javascript"> var addMember = function(staffid, name, alerts, error) { if (!staffid) return; var copy = $('#member_template').clone(); copy.find('[data-name=members\\[\\]]') .attr('name', 'members[]') .val(staffid); copy.find('[data-name^=member_alerts]') .attr('name', 'member_alerts['+staffid+']') .prop('checked', alerts); copy.find('td:first').append(document.createTextNode(name)); copy.attr('id', '').show().insertBefore($('#add_member')); copy.removeClass('hidden') if (error) $('<div class="error">').text(error).appendTo(copy.find('td:last')); }; $('#add_member').find('button').on('click', function() { var selected = $('#add_access').find(':selected'), id = parseInt(selected.val()); if (!id) return; addMember(id, selected.text(), true); if ($('#team-lead-select option[value='+id+']').length === 0) { $('#team-lead-select').find('option[data-quick-add]') .before( $('<option>').val(selected.val()).text(selected.text()) ); } selected.remove(); return false; }); $(document).on('click', 'a.drop-membership', function() { var tr = $(this).closest('tr'), id = tr.find('input[name^=members][type=hidden]').val(); $('#add_access').append( $('<option>') .attr('value', id) .text(tr.find('td:first').text()) ); $('#team-lead-select option[value='+id+']').remove(); tr.fadeOut(function() { $(this).remove(); }); return false; }); <?php if ($team && $team->members) { foreach ($team->members->sort(function($a) { return $a->staff->getName(); }) as $member) { echo sprintf('addMember(%d, %s, %d, %s);', $member->staff_id, JsonDataEncoder::encode((string) $member->staff->getName()), $member->isAlertsEnabled(), JsonDataEncoder::encode($errors['members'][$member->staff_id]) ); } } ?> </script>
Save