PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
include
/
staff
<?php if(!defined('OSTSCPINC') || !$thisstaff) die('Access Denied'); $info=$qs = array(); if($canned && $_REQUEST['a']!='add'){ $title=__('Update Canned Response'); $action='update'; $submit_text=__('Save Changes'); $info=$canned->getInfo(); $info['id']=$canned->getId(); $qs += array('id' => $canned->getId()); // Replace cid: scheme with downloadable URL for inline images $info['response'] = $canned->getResponseWithImages(); }else { $title=__('Add New Canned Response'); $action='create'; $submit_text=__('Add Response'); $info['isenabled']=isset($info['isenabled'])?$info['isenabled']:1; $qs += array('a' => $_REQUEST['a']); } $info=Format::htmlchars(($errors && $_POST)?$_POST:$info, true); ?> <form action="canned.php?<?php echo Http::build_query($qs); ?>" method="post" class="save" enctype="multipart/form-data"> <?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['title'])) { ?><small> — <?php echo $info['title']; ?></small> <?php } ?><i class="help-tip icon-question-sign" href="#canned_response"></i> </h2> <table class="form_table fixed" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr><td></td><td></td></tr> <!-- For fixed table layout --> <tr> <th colspan="2"> <em><?php echo __('Canned response settings');?></em> </th> </tr> </thead> <tbody> <tr> <td width="180" class="required"><?php echo __('Status');?>:</td> <td> <label><input type="radio" name="isenabled" value="1" <?php echo $info['isenabled']?'checked="checked"':''; ?>> <?php echo __('Active'); ?> </label> <label><input type="radio" name="isenabled" value="0" <?php echo !$info['isenabled']?'checked="checked"':''; ?>> <?php echo __('Disabled'); ?> </label> <span class="error">* <?php echo $errors['isenabled']; ?></span> </td> </tr> <tr> <td width="180" class="required"><?php echo __('Department');?>:</td> <td> <select name="dept_id"> <option value="0">— <?php echo __('All Departments');?> —</option> <?php if (($depts=$thisstaff->getDepartmentNames())) { foreach($depts as $id => $name) { $selected=($info['dept_id'] && $id==$info['dept_id'])?'selected="selected"':''; echo sprintf('<option value="%d" %s>%s</option>',$id,$selected,$name); } } ?> </select> <span class="error">* <?php echo $errors['dept_id']; ?></span> </td> </tr> <tr> <th colspan="2"> <em><strong><?php echo __('Canned Response');?></strong>: <?php echo __('Make the title short and clear.');?> </em> </th> </tr> <tr> <td colspan=2> <div><b><?php echo __('Title');?></b><span class="error">* <?php echo $errors['title']; ?></span></div> <input type="text" size="70" name="title" value="<?php echo $info['title']; ?>"> <br><br> <div style="margin-bottom:0.5em"><b><?php echo __('Canned Response'); ?></b> <font class="error">* <?php echo $errors['response']; ?></font> (<a class="tip" href="#ticket_variables"><?php echo __('Supported Variables'); ?></a>) </div> <textarea name="response" cols="21" rows="12" data-root-context="cannedresponse" style="width:98%;" class="richtext draft draft-delete" <?php list($draft, $attrs) = Draft::getDraftAndDataAttrs('canned', is_object($canned) ? $canned->getId() : false, $info['response']); echo $attrs; ?>><?php echo $draft ?: Format::viewableImages($info['response']); ?></textarea> <div><h3><?php echo __('Canned Attachments'); ?> <?php echo __('(optional)'); ?> <i class="help-tip icon-question-sign" href="#canned_attachments"></i></h3> <div class="error"><?php echo $errors['files']; ?></div> </div> <?php $attachments = $canned_form->getField('attachments'); if ($canned && $attachments) { $attachments->setAttachments($canned->attachments->window(['inline' => false])); } print $attachments->render(); ?> <br/> </td> </tr> <tr> <th colspan="2"> <em><strong><?php echo __('Internal Notes');?></strong>: <?php echo __('Notes about the canned response.');?> </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($info['notes']); ?></textarea> </td> </tr> </tbody> </table> <?php if ($canned && $canned->getFilters()) { ?> <br/> <div id="msg_warning"><?php echo __('Canned response is in use by email filter(s)');?>: <?php echo implode(', ', $canned->getFilters()); ?></div> <?php } ?> <p style="text-align:center;"> <input type="submit" name="submit" value="<?php echo $submit_text; ?>"> <input type="reset" name="reset" value="<?php echo __('Reset'); ?>" onclick="javascript: $(this.form).find('textarea.richtext') .redactor('deleteDraft'); location.reload();" /> <input type="button" name="cancel" value="<?php echo __('Cancel'); ?>" onclick='window.location.href="canned.php"'> </p> </form>
[+]
..
[-] faq-categories.inc.php
[edit]
[-] settings-autoresp.inc.php
[edit]
[-] login.header.php
[edit]
[-] ticket-tasks.inc.php
[edit]
[-] task-view.inc.php
[edit]
[-] staff.inc.php
[edit]
[-] index.php
[edit]
[-] dynamic-list.inc.php
[edit]
[-] settings-tickets.inc.php
[edit]
[-] page.inc.php
[edit]
[-] emails.inc.php
[edit]
[-] dynamic-forms.inc.php
[edit]
[-] cannedresponses.inc.php
[edit]
[-] settings-system.inc.php
[edit]
[-] categories.inc.php
[edit]
[-] faq.inc.php
[edit]
[-] user-view.inc.php
[edit]
[-] plugin-instance.inc.php
[edit]
[-] plugin-add.inc.php
[edit]
[-] login.tpl.php
[edit]
[-] department.inc.php
[edit]
[-] syslogs.inc.php
[edit]
[-] template.inc.php
[edit]
[-] category.inc.php
[edit]
[-] ticket-relations.inc.php
[edit]
[-] header.inc.php
[edit]
[-] schedule.inc.php
[edit]
[-] faq-view.inc.php
[edit]
[-] settings-alerts.inc.php
[edit]
[-] settings-users.inc.php
[edit]
[-] pages.inc.php
[edit]
[-] slaplans.inc.php
[edit]
[-] team.inc.php
[edit]
[-] helptopics.inc.php
[edit]
[-] role.inc.php
[edit]
[-] settings-pages.inc.php
[edit]
[-] users.inc.php
[edit]
[-] faq-category.inc.php
[edit]
[-] orgs.inc.php
[edit]
[-] pwreset.sent.php
[edit]
[-] settings-agents.inc.php
[edit]
[-] settings-emails.inc.php
[edit]
[+]
osta
[-] templates.inc.php
[edit]
[-] theme.inc.php
[edit]
[-] helptopic.inc.php
[edit]
[-] profile.inc.php
[edit]
[-] email.inc.php
[edit]
[-] ticket-open.inc.php
[edit]
[-] roles.inc.php
[edit]
[-] ticket-view.inc.php
[edit]
[-] schedules.inc.php
[edit]
[-] departments.inc.php
[edit]
[-] pwreset.login.php
[edit]
[-] filter.inc.php
[edit]
[-] queues-ticket.inc.php
[edit]
[-] plugin.inc.php
[edit]
[-] slaplan.inc.php
[edit]
[-] filters.inc.php
[edit]
[-] dashboard.inc.php
[edit]
[-] pwreset.php
[edit]
[-] tpl.inc.php
[edit]
[-] cannedresponse.inc.php
[edit]
[-] dynamic-form.inc.php
[edit]
[-] teams.inc.php
[edit]
[-] dynamic-lists.inc.php
[edit]
[-] tasks.inc.php
[edit]
[-] banrule.inc.php
[edit]
[-] ticket-edit.inc.php
[edit]
[-] settings-kb.inc.php
[edit]
[-] plugins.inc.php
[edit]
[-] directory.inc.php
[edit]
[-] apikeys.inc.php
[edit]
[-] org-view.inc.php
[edit]
[-] system.inc.php
[edit]
[+]
templates
[-] staffmembers.inc.php
[edit]
[-] banlist.inc.php
[edit]
[-] footer.inc.php
[edit]
[-] settings-tasks.inc.php
[edit]
[-] apikey.inc.php
[edit]
[-] queue.inc.php
[edit]
[-] .htaccess.disabled
[edit]