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: user-view.inc.php
<?php if(!defined('OSTSCPINC') || !$thisstaff || !is_object($user)) die('Invalid path'); $account = $user->getAccount(); $org = $user->getOrganization(); $extras = new ArrayObject(); ?> <table width="940" cellpadding="2" cellspacing="0" border="0"> <tr> <td width="50%" class="has_bottom_border"> <h2><a href="users.php?id=<?php echo $user->getId(); ?>" title="Reload"><i class="icon-refresh"></i> <?php echo Format::htmlchars($user->getName()); ?></a></h2> </td> <td width="50%" class="right_align has_bottom_border"> <?php if (($account && $account->isConfirmed()) || $thisstaff->hasPerm(User::PERM_EDIT)) { ?> <span class="action-button pull-right" data-dropdown="#action-dropdown-more"> <i class="icon-caret-down pull-right"></i> <span><i class="icon-cog"></i> <?php echo __('More'); ?></span> </span> <?php } if ($thisstaff->hasPerm(User::PERM_DELETE)) { ?> <a id="user-delete" class="red button action-button pull-right user-action" href="#users/<?php echo $user->getId(); ?>/delete"><i class="icon-trash"></i> <?php echo __('Delete User'); ?></a> <?php } ?> <?php if ($thisstaff->hasPerm(User::PERM_MANAGE)) { ?> <?php if ($account) { ?> <a id="user-manage" class="action-button pull-right user-action" href="#users/<?php echo $user->getId(); ?>/manage"><i class="icon-edit"></i> <?php echo __('Manage Account'); ?></a> <?php } else { ?> <a id="user-register" class="action-button pull-right user-action" href="#users/<?php echo $user->getId(); ?>/register"><i class="icon-smile"></i> <?php echo __('Register'); ?></a> <?php } ?> <?php } ?> <div id="action-dropdown-more" class="action-dropdown anchor-right"> <ul> <?php if ($account) { if (!$account->isConfirmed()) { ?> <li><a class="confirm-action" href="#confirmlink"><i class="icon-envelope"></i> <?php echo __('Send Activation Email'); ?></a></li> <?php } else { ?> <li><a class="confirm-action" href="#pwreset"><i class="icon-envelope"></i> <?php echo __('Send Password Reset Email'); ?></a></li> <?php } ?> <?php if ($thisstaff->hasPerm(User::PERM_MANAGE)) { ?> <li><a class="user-action" href="#users/<?php echo $user->getId(); ?>/manage/access"><i class="icon-lock"></i> <?php echo __('Manage Account Access'); ?></a></li> <?php } } ?> <?php if ($thisstaff->hasPerm(User::PERM_EDIT)) { ?> <li><a href="#ajax.php/users/<?php echo $user->getId(); ?>/forms/manage" onclick="javascript: $.dialog($(this).attr('href').substr(1), 201); return false" ><i class="icon-paste"></i> <?php echo __('Manage Forms'); ?></a></li> <?php } ?> </ul> </div> </td> </tr> </table> <div class="avatar pull-left" style="margin: 10px; width: 80px;"> <?php echo $user->getAvatar(); ?> </div> <table class="ticket_info" cellspacing="0" cellpadding="0" width="830" border="0"> <tr> <td width="50%"> <table border="0" cellspacing="" cellpadding="4" width="100%"> <tr> <th width="150"><?php echo __('Name'); ?>:</th> <td> <?php if ($thisstaff->hasPerm(User::PERM_EDIT)) { ?> <b><a href="#users/<?php echo $user->getId(); ?>/edit" class="user-action"><i class="icon-edit"></i> <?php } echo Format::htmlchars($user->getName()->getOriginal()); if ($thisstaff->hasPerm(User::PERM_EDIT)) { ?> </a></b> <?php } ?> </td> </tr> <tr> <th><?php echo __('Email'); ?>:</th> <td> <span id="user-<?php echo $user->getId(); ?>-email"><?php echo $user->getEmail(); ?></span> </td> </tr> <tr> <th><?php echo __('Organization'); ?>:</th> <td> <span id="user-<?php echo $user->getId(); ?>-org"> <?php if ($org) echo sprintf('<a href="#users/%d/org" class="user-action">%s</a>', $user->getId(), $org->getName()); elseif ($thisstaff->hasPerm(User::PERM_EDIT)) { echo sprintf( '<a href="#users/%d/org" class="user-action">%s</a>', $user->getId(), __('Add Organization')); } ?> </span> </td> </tr> </table> </td> <td width="50%" style="vertical-align:top"> <table border="0" cellspacing="" cellpadding="4" width="100%"> <tr> <th width="150"><?php echo __('Status'); ?>:</th> <td> <span id="user-<?php echo $user->getId(); ?>-status"><?php echo $user->getAccountStatus(); ?></span></td> </tr> <tr> <th><?php echo __('Created'); ?>:</th> <td><?php echo Format::datetime($user->getCreateDate()); ?></td> </tr> <tr> <th><?php echo __('Updated'); ?>:</th> <td><?php echo Format::datetime($user->getUpdateDate()); ?></td> </tr> </table> </td> </tr> </table> <br> <div class="clear"></div> <ul class="clean tabs" id="user-view-tabs"> <li class="active"><a href="#tickets"><i class="icon-list-alt"></i> <?php echo __('Tickets'); ?></a></li> <li><a href="#notes"><i class="icon-pushpin"></i> <?php echo __('Notes'); ?></a></li> <?php Signal::send('usertab.audit', $user, $extras); ?> </ul> <div id="user-view-tabs_container"> <div id="tickets" class="tab_content"> <?php include STAFFINC_DIR . 'templates/tickets.tmpl.php'; ?> </div> <div class="hidden tab_content" id="notes"> <?php $notes = QuickNote::forUser($user); $create_note_url = 'users/'.$user->getId().'/note'; include STAFFINC_DIR . 'templates/notes.tmpl.php'; ?> </div> <?php Signal::send('user.audit', $user, $extras); ?> </div> <div class="hidden dialog" id="confirm-action"> <h3><?php echo __('Please Confirm'); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p class="confirm-action" style="display:none;" id="banemail-confirm"> <?php echo sprintf(__('Are you sure you want to <b>ban</b> %s?'), $user->getEmail()); ?> <br><br> <?php echo __('New tickets from the email address will be auto-rejected.'); ?> </p> <p class="confirm-action" style="display:none;" id="confirmlink-confirm"> <?php echo sprintf(__( 'Are you sure you want to send an <b>Account Activation Link</b> to <em> %s </em>?'), $user->getEmail()); ?> </p> <p class="confirm-action" style="display:none;" id="pwreset-confirm"> <?php echo sprintf(__( 'Are you sure you want to send a <b>Password Reset Link</b> to <em> %s </em>?'), $user->getEmail()); ?> </p> <div><?php echo __('Please confirm to continue.'); ?></div> <form action="users.php?id=<?php echo $user->getId(); ?>" method="post" id="confirm-form" name="confirm-form"> <?php csrf_token(); ?> <input type="hidden" name="id" value="<?php echo $user->getId(); ?>"> <input type="hidden" name="a" value="process"> <input type="hidden" name="do" id="action" value=""> <hr style="margin-top:1em"/> <p class="full-width"> <span class="buttons pull-left"> <input type="button" value="<?php echo __('Cancel'); ?>" class="close"> </span> <span class="buttons pull-right"> <input type="submit" value="<?php echo __('OK'); ?>"> </span> </p> </form> <div class="clear"></div> </div> <script type="text/javascript"> $(function() { $(document).on('click', 'a.user-action', function(e) { e.preventDefault(); var url = 'ajax.php/'+$(this).attr('href').substr(1); $.dialog(url, [201, 204], function (xhr) { if (xhr.status == 204) window.location.href = 'users.php'; else window.location.href = window.location.href; return false; }, { onshow: function() { $('#user-search').focus(); } }); return false; }); }); </script>
Save