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: dynamic-list.inc.php
<?php $info=array(); if ($list) { $title = __('Update custom list'); $action = 'update'; $submit_text = __('Save Changes'); $info = $list->getInfo(); $trans['name'] = $list->getTranslateTag('name'); $trans['plural'] = $list->getTranslateTag('plural'); $newcount=2; } else { $title = __('Add New Custom List'); $action = 'add'; $submit_text = __('Add List'); $newcount=4; } $info=Format::htmlchars(($errors && $_POST) ? array_merge($info,$_POST) : $info, true); ?> <form action="" 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 $info['id']; ?>"> <h2><?php echo $title; ?> <?php if (isset($info['name'])) { ?><small> — <?php echo $info['name']; ?></small> <?php } ?> </h2> <ul class="clean tabs" id="list-tabs"> <li <?php if (!$list) echo 'class="active"'; ?>><a href="#definition"> <i class="icon-plus"></i> <?php echo __('Definition'); ?></a></li> <?php if ($list) { ?> <li class="active"><a href="#items"> <i class="icon-list"></i> <?php echo sprintf(__('Items (%d)'), $list->getItems()->count()); ?></a></li> <?php } ?> <li><a href="#properties"> <i class="icon-asterisk"></i> <?php echo __('Properties'); ?></a></li> </ul> <div id="list-tabs_container"> <div id="definition" class="tab_content <?php if ($list) echo 'hidden'; ?>"> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2"> <em><?php echo __( 'Custom lists are used to provide drop-down lists for custom forms.' ); ?> <i class="help-tip icon-question-sign" href="#custom_lists"></i></em> </th> </tr> </thead> <tbody> <tr> <td width="180" class="required"><?php echo __('Name'); ?>:</td> <td> <?php if ($list && !$list->isEditable()) echo $list->getName(); else { echo sprintf('<input size="50" type="text" name="name" data-translate-tag="%s" autofocus value="%s"/> <span class="error">*<br/>%s</span>', $trans['name'], $info['name'], $errors['name']); } ?> </td> </tr> <tr> <td width="180"><?php echo __('Plural Name'); ?>:</td> <td> <?php if ($list && !$list->isEditable()) echo $list->getPluralName(); else echo sprintf('<input size="50" type="text" data-translate-tag="%s" name="name_plural" value="%s"/>', $trans['plural'], $info['name_plural']); ?> </td> </tr> <tr> <td width="180"><?php echo __('Sort Order'); ?>:</td> <td><select name="sort_mode"> <?php $sortModes = $list ? $list->getSortModes() : DynamicList::sortModes(); foreach ($sortModes as $key=>$desc) { ?> <option value="<?php echo $key; ?>" <?php if ($key == $info['sort_mode']) echo 'selected="selected"'; ?>><?php echo $desc; ?></option> <?php } ?> </select></td> </tr> </tbody> <tbody> <tr> <th colspan="7"> <em><strong><?php echo __('Internal Notes'); ?>:</strong> <?php echo __("Be liberal, they're internal"); ?></em> </th> </tr> <tr> <td colspan="7"><textarea name="notes" class="richtext no-bar" rows="6" cols="80"><?php echo Format::viewableImages($info['notes']); ?></textarea> </td> </tr> </tbody> </table> </div> <div id="properties" class="hidden tab_content"> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="7"> <em><strong><?php echo __('Item Properties'); ?></strong> <?php echo __('properties definable for each item'); ?></em> </th> </tr> <tr> <th nowrap></th> <th nowrap><?php echo __('Label'); ?></th> <th nowrap><?php echo __('Type'); ?></th> <th nowrap><?php echo __('Visibility'); ?></th> <th nowrap><?php echo __('Variable'); ?></th> <th nowrap><?php echo __('Delete'); ?></th> </tr> </thead> <tbody class="sortable-rows" data-sort="prop-sort-"> <?php if ($list && $form=$list->getForm()) foreach ($form->getDynamicFields() as $f) { $id = $f->get('id'); $deletable = !$f->isDeletable() ? 'disabled="disabled"' : ''; $force_name = $f->isNameForced() ? 'disabled="disabled"' : ''; $fi = $f->getImpl(); $ferrors = $f->errors(); ?> <tr> <td><i class="icon-sort"></i></td> <td><input type="text" size="32" name="prop-label-<?php echo $id; ?>" data-translate-tag="<?php echo $f->getTranslateTag('label'); ?>" value="<?php echo Format::htmlchars($f->get('label')); ?>"/> <font class="error"><?php if ($ferrors['label']) echo '<br/>'; echo $ferrors['label']; ?> </td> <td nowrap><select style="max-width:150px" name="type-<?php echo $id; ?>" <?php if (!$fi->isChangeable() || !$f->isChangeable()) echo 'disabled="disabled"'; ?>> <?php foreach (FormField::allTypes() as $group=>$types) { ?><optgroup label="<?php echo Format::htmlchars(__($group)); ?>"><?php foreach ($types as $type=>$nfo) { if ($f->get('type') != $type && isset($nfo[2]) && !$nfo[2]) continue; ?> <option value="<?php echo $type; ?>" <?php if ($f->get('type') == $type) echo 'selected="selected"'; ?>> <?php echo __($nfo[0]); ?></option> <?php } ?> </optgroup> <?php } ?> </select> <?php if ($f->isConfigurable()) { ?> <a class="action-button field-config" style="overflow:inherit" href="#form/field-config/<?php echo $f->get('id'); ?>"><i class="icon-cog"></i> <?php echo __('Config'); ?></a> <?php } ?></td> <td> <?php echo $f->getVisibilityDescription(); ?></td> <td> <input type="text" size="20" name="name-<?php echo $id; ?>" value="<?php echo Format::htmlchars($f->get('name')); ?>" <?php echo $force_name ?>/> <font class="error"><?php if ($ferrors['name']) echo '<br/>'; echo $ferrors['name']; ?></font> </td> <td> <?php if (!$f->isDeletable()) echo '<i class="icon-ban-circle"></i>'; else echo sprintf('<input type="checkbox" name="delete-prop-%s">', $id); ?> <input type="hidden" name="prop-sort-<?php echo $id; ?>" value="<?php echo $f->get('sort'); ?>"/> </td> </tr> <?php } for ($i=0; $i<$newcount; $i++) { ?> <td><em>+</em> <input type="hidden" name="prop-sort-new-<?php echo $i; ?>" value="<?php echo $info["prop-sort-new-$i"]; ?>"/></td> <td><input type="text" size="32" name="prop-label-new-<?php echo $i; ?>" value="<?php echo $info["prop-label-new-$i"]; ?>"/></td> <td><select style="max-width:150px" name="type-new-<?php echo $i; ?>"> <?php foreach (FormField::allTypes() as $group=>$types) { ?><optgroup label="<?php echo Format::htmlchars(__($group)); ?>"><?php foreach ($types as $type=>$nfo) { if (isset($nfo[2]) && !$nfo[2]) continue; ?> <option value="<?php echo $type; ?>" <?php if ($info["type-new-$i"] == $type) echo 'selected="selected"'; ?>> <?php echo __($nfo[0]); ?> </option> <?php } ?> </optgroup> <?php } ?> </select></td> <td></td> <td><input type="text" size="20" name="name-new-<?php echo $i; ?>" value="<?php echo $info["name-new-$i"]; ?>"/> <font class="error"><?php if ($errors["new-$i"]['name']) echo '<br/>'; echo $errors["new-$i"]['name']; ?></font> <td></td> </tr> <?php } ?> </tbody> </table> </div> <?php if ($list) { ?> <div id="items" class="tab_content"> <?php $pjax_container = '#items'; include STAFFINC_DIR . 'templates/list-items.tmpl.php'; ?> </div> <?php } ?> <p class="centered"> <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"> $(function() { $('#properties, #items').on('click', 'a.field-config', function(e) { e.preventDefault(); var $id = $(this).attr('id'); var url = 'ajax.php/'+$(this).attr('href').substr(1); $.dialog(url, [201], function (xhr, resp) { var json = $.parseJSON(resp); if (json && json.success) { if (json.row) { if (json.id) $('#list-item-' + json.id).replaceWith(json.row); else $('#list-items').append(json.row); } } }); return false; }); $('#items').on('click', 'a.items-action', function(e) { e.preventDefault(); var ids = []; $('form.save :checkbox.mass:checked').each(function() { ids.push($(this).val()); }); if (ids.length && confirm(__('You sure?'))) { $.ajax({ url: 'ajax.php/' + $(this).attr('href').substr(1), type: 'POST', data: {count:ids.length, ids:ids}, dataType: 'json', success: function(json) { if (json.success) { if (window.location.search.indexOf('a=items') != -1) $.pjax.reload('#items'); else $.pjax.reload('#pjax-container'); } } }); } return false; }); }); </script>
Save