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-form.inc.php
<?php $info=array(); if($form && $_REQUEST['a']!='add') { $title = __('Update form section'); $action = 'update'; $url = "?id=".urlencode($_REQUEST['id']); $submit_text=__('Save Changes'); $info = $form->getInfo(); $trans = array( 'title' => $form->getTranslateTag('title'), 'instructions' => $form->getTranslateTag('instructions'), ); $newcount=2; $translations = CustomDataTranslation::allTranslations($trans, 'phrase'); $_keys = array_flip($trans); foreach ($translations as $t) { if (!Internationalization::isLanguageEnabled($t->lang)) continue; // Create keys of [trans][de_DE][title] for instance $info['trans'][$t->lang][$_keys[$t->object_hash]] = $t->text; } } else { $title = __('Add new custom form section'); $action = 'add'; $url = '?a=add'; $submit_text=__('Add Form'); $newcount=4; } $info=Format::htmlchars(($errors && $_POST)?$_POST:$info, true); ?> <form class="manage-form" action="<?php echo $url ?>" method="post" class="save"> <?php csrf_token(); ?> <input type="hidden" name="do" value="<?php echo $action; ?>"> <input type="hidden" name="a" value="<?php echo $action; ?>"> <input type="hidden" name="id" value="<?php echo $info['id']; ?>"> <h2><?php echo $title; ?> <?php if (isset($info['title'])) { ?><small> — <?php echo $info['title']; ?></small> <?php } ?> </h2> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2"> <em><?php echo __( 'Forms are used to allow for collection of custom data' ); ?></em> </th> </tr> </thead> <tbody style="vertical-align:top"> <tr> <td colspan="2"> <?php $langs = Internationalization::getConfiguredSystemLanguages(); if ($form && count($langs) > 1) { ?> <ul class="alt tabs clean" id="translations"> <li class="empty"><i class="icon-globe" title="This content is translatable"></i></li> <?php foreach ($langs as $tag=>$nfo) { ?> <li class="<?php if ($tag == $cfg->getPrimaryLanguage()) echo "active"; ?>"><a href="#translation-<?php echo $tag; ?>" title="<?php echo Internationalization::getLanguageDescription($tag); ?>"><span class="flag flag-<?php echo strtolower($nfo['flag']); ?>"></span> </a></li> <?php } ?> </ul> <?php } ?> <div id="translations_container"> <div id="translation-<?php echo $cfg->getPrimaryLanguage(); ?>" class="tab_content" lang="<?php echo $cfg->getPrimaryLanguage(); ?>"> <div class="required"><?php echo __('Title'); ?>:</div> <div> <input type="text" name="title" size="60" autofocus value="<?php echo $info['title']; ?>"/> <i class="help-tip icon-question-sign" href="#form_title"></i> <div class="error"><?php if ($errors['title']) echo '<br/>'; echo $errors['title']; ?></div> </div> <div style="margin-top: 8px"><?php echo __('Instructions'); ?>: <i class="help-tip icon-question-sign" href="#form_instructions"></i> </div> <textarea name="instructions" rows="3" cols="40" class="richtext small"><?php echo Format::viewableImages($info['instructions']); ?></textarea> </div> <?php if ($langs && $form) { foreach ($langs as $tag=>$nfo) { if ($tag == $cfg->getPrimaryLanguage()) continue; ?> <div id="translation-<?php echo $tag; ?>" class="tab_content" style="display:none;" lang="<?php echo $tag; ?>"> <div> <div class="required"><?php echo __('Title'); ?>:</div> <input type="text" name="trans[<?php echo $tag; ?>][title]" size="60" value="<?php echo $info['trans'][$tag]['title']; ?>"/> <i class="help-tip icon-question-sign" href="#form_title"></i> </div> <div style="margin-top: 8px"><?php echo __('Instructions'); ?>: <i class="help-tip icon-question-sign" href="#form_instructions"></i> </div> <textarea name="trans[<?php echo $tag; ?>][instructions]" cols="21" rows="12" style="width:100%" class="richtext small"><?php echo Format::viewableImages($info['trans'][$tag]['instructions']); ?></textarea> </div> <?php } } ?> </td> </tr> </tbody> </table> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <?php if ($form && $form->get('type') == 'T') { $uform = UserForm::objects()->one(); ?> <thead> <tr> <th colspan="7"> <em><strong><?php echo __('User Information Fields'); ?></strong> <?php echo sprintf(__('(These fields are requested for new tickets via the %s form)'), $uform->get('title')); ?></em> </th> </tr> <tr> <th></th> <th><?php echo __('Label'); ?></th> <th><?php echo __('Type'); ?></th> <th><?php echo __('Visibility'); ?></th> <th><?php echo __('Variable'); ?></th> <th><?php echo __('Delete'); ?></th> </tr> </thead> <tbody> <?php $ftypes = FormField::allTypes(); foreach ($uform->getFields() as $f) { if (!$f->isVisibleToUsers()) continue; ?> <tr> <td></td> <td><?php echo $f->get('label'); ?></td> <td><?php $t=FormField::getFieldType($f->get('type')); echo __($t[0]); ?></td> <td><?php echo $f->getVisibilityDescription(); ?></td> <td><?php echo $f->get('name'); ?></td> <td><input type="checkbox" disabled="disabled"/></td></tr> <?php } ?> </tbody> <?php } # form->type == 'T' ?> <thead> <tr> <th colspan="7"> <em><strong><?php echo __('Form Fields'); ?></strong> <?php echo __('fields available where this form is used'); ?></em> </th> </tr> <tr> <th nowrap width="4%" ><i class="help-tip icon-question-sign" href="#field_sort"></i></th> <th nowrap><?php echo __('Label'); ?> <i class="help-tip icon-question-sign" href="#field_label"></i></th> <th nowrap><?php echo __('Type'); ?> <i class="help-tip icon-question-sign" href="#field_type"></i></th> <th nowrap><?php echo __('Visibility'); ?> <i class="help-tip icon-question-sign" href="#field_visibility"></i></th> <th nowrap><?php echo __('Variable'); ?> <i class="help-tip icon-question-sign" href="#field_variable"></i></th> <th nowrap><?php echo __('Delete'); ?> <i class="help-tip icon-question-sign" href="#field_delete"></i></th> </tr> </thead> <tbody class="sortable-rows" data-sort="sort-"> <?php if ($form) 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 align="center"><i class="icon-sort"></i></td> <td><input type="text" size="32" name="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']; ?> </font> </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="#ajax.php/form/field-config/<?php echo $f->get('id'); ?>" onclick="javascript: $.dialog($(this).attr('href').substr(1), [201]); return false; "><i class="icon-edit"></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 align="center"> <input class="delete-box" type="checkbox" name="delete-<?php echo $id; ?>" data-field-label="<?php echo $f->get('label'); ?>" data-field-id="<?php echo $id; ?>" <?php echo $deletable; ?>/> <input type="hidden" name="sort-<?php echo $id; ?>" value="<?php echo $f->get('sort'); ?>"/> </td> </tr> <tr> <?php } for ($i=0; $i<$newcount; $i++) { ?> <td align="center"><em>+</em> <input type="hidden" name="sort-new-<?php echo $i; ?>" value="<?php echo $info["sort-new-$i"]; ?>"/></td> <td><input type="text" size="32" name="label-new-<?php echo $i; ?>" value="<?php echo $info["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> <select name="visibility-new-<?php echo $i; ?>"> <?php $rmode = $info['visibility-new-'.$i]; foreach (DynamicFormField::allRequirementModes() as $m=>$I) { ?> <option value="<?php echo $m; ?>" <?php if ($rmode == $m) echo 'selected="selected"'; ?>><?php echo $I['desc']; ?></option> <?php } ?> <select> <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> </select> </select> </tr> <?php } ?> </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 class="richtext no-bar" name="notes" rows="6" cols="80"><?php echo Format::viewableImages($info['notes']); ?></textarea> </td> </tr> </tbody> </table> <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> <div style="display:none;" class="draggable dialog" id="delete-confirm"> <h3 class="drag-handle"><i class="icon-trash"></i> <?php echo __('Remove Existing Data?'); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <p> <strong><?php echo sprintf(__('You are about to delete %s fields.'), '<span id="deleted-count"></span>'); ?></strong> <?php echo __('Would you also like to remove data currently entered for this field? <em> If you opt not to remove the data now, you will have the option to delete the the data when editing it.</em>'); ?> </p><p style="color:red"> <?php echo __('Deleted data CANNOT be recovered.'); ?> </p> <hr> <div id="deleted-fields"></div> <hr style="margin-top:1em"/> <p class="full-width"> <span class="buttons pull-left"> <input type="button" value="<?php echo __('No, Cancel'); ?>" class="close"> </span> <span class="buttons pull-right"> <input type="submit" value="<?php echo __('Continue'); ?>" class="confirm"> </span> </p> <div class="clear"></div> </div> </form> <div style="display:none;" class="dialog draggable" id="field-config"> <div id="popup-loading"> <h1><i class="icon-spinner icon-spin icon-large"></i> <?php echo __('Loading ...');?></h1> </div> <div class="body"></div> </div> <script type="text/javascript"> $('form.manage-form').on('submit.inline', function(e) { var formObj = this, deleted = $('input.delete-box:checked', this); if (deleted.length) { e.stopImmediatePropagation(); $('#overlay').show(); $('#deleted-fields').empty(); deleted.each(function(i, e) { $('#deleted-fields').append($('<p></p>') .append($('<input/>').attr({type:'checkbox',name:'delete-data-' + $(e).data('fieldId')}) ).append($('<strong>').html( ' <?php echo __('Remove all data entered for <u> %s </u>?'); ?>'.replace('%s', $(e).data('fieldLabel')) )) ); }); $('#delete-confirm').show().delegate('input.confirm', 'click.confirm', function() { $('.dialog#delete-confirm').hide(); $(formObj).unbind('submit.inline'); $(window).unbind('beforeunload'); $('#loading').show(); }) return false; } // TODO: Popup the 'please wait' dialog $(window).unbind('beforeunload'); $('#loading').show(); }); </script>
Save