| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/templates_c/ |
Upload File : |
<?php
/* Smarty version 3.1.29, created on 2022-09-02 19:43:33
from "/home/meusitei/public_html/central/gestor/templates/blend/viewticket.tpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_63125ce5ac7fc3_39534899',
'file_dependency' =>
array (
'235e76bfd03b322a9295dd1e46e2f2dc2f946155' =>
array (
0 => '/home/meusitei/public_html/central/gestor/templates/blend/viewticket.tpl',
1 => 1534436002,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_63125ce5ac7fc3_39534899 ($_smarty_tpl) {
echo $_smarty_tpl->tpl_vars['infobox']->value;?>
<h2 class="pull-left">
#<?php echo $_smarty_tpl->tpl_vars['tid']->value;?>
- <?php echo $_smarty_tpl->tpl_vars['subject']->value;?>
<select name="ticketstatus" id="ticketstatus" class="form-control select-inline">
<?php
$_from = $_smarty_tpl->tpl_vars['statuses']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_statusitem_0_saved_item = isset($_smarty_tpl->tpl_vars['statusitem']) ? $_smarty_tpl->tpl_vars['statusitem'] : false;
$_smarty_tpl->tpl_vars['statusitem'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['statusitem']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['statusitem']->value) {
$_smarty_tpl->tpl_vars['statusitem']->_loop = true;
$__foreach_statusitem_0_saved_local_item = $_smarty_tpl->tpl_vars['statusitem'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
"<?php if ($_smarty_tpl->tpl_vars['statusitem']->value['title'] == $_smarty_tpl->tpl_vars['status']->value) {?> selected<?php }?> style="color:<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['color'];?>
"><?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_0_saved_local_item;
}
if ($__foreach_statusitem_0_saved_item) {
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_0_saved_item;
}
?>
</select>
<a href="supporttickets.php#" onclick="$('#ticketstatus').val('Closed');$('#ticketstatus').trigger('change');return false"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['close'];?>
</a>
</h2>
<span class="ticketlastreply"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['lastreply'];?>
: <?php echo $_smarty_tpl->tpl_vars['lastreply']->value;?>
</span>
<input type="hidden" id="lastReplyId" value="<?php echo $_smarty_tpl->tpl_vars['lastReplyId']->value;?>
" />
<input type="hidden" id="currentSubject" value="<?php echo $_smarty_tpl->tpl_vars['subject']->value;?>
" />
<input type="hidden" id="currentCc" value="<?php echo $_smarty_tpl->tpl_vars['cc']->value;?>
" />
<input type="hidden" id="currentUserId" value="<?php echo $_smarty_tpl->tpl_vars['userid']->value;?>
" />
<input type="hidden" id="currentStatus" value="<?php echo $_smarty_tpl->tpl_vars['status']->value;?>
" />
<div class="clearfix"></div>
<div class="client-notes">
<?php
$_from = $_smarty_tpl->tpl_vars['clientnotes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_note_1_saved_item = isset($_smarty_tpl->tpl_vars['note']) ? $_smarty_tpl->tpl_vars['note'] : false;
$_smarty_tpl->tpl_vars['note'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['note']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['note']->value) {
$_smarty_tpl->tpl_vars['note']->_loop = true;
$__foreach_note_1_saved_local_item = $_smarty_tpl->tpl_vars['note'];
?>
<div class="panel panel-warning">
<div class="panel-heading">
<?php echo $_smarty_tpl->tpl_vars['note']->value['adminuser'];?>
<div class="pull-right">
<?php echo $_smarty_tpl->tpl_vars['note']->value['modified'];?>
<a href="clientsnotes.php?userid=<?php echo $_smarty_tpl->tpl_vars['note']->value['userid'];?>
&action=edit&id=<?php echo $_smarty_tpl->tpl_vars['note']->value['id'];?>
" class="btn btn-default btn-xs">
<i class="fa fa-pencil"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['edit'];?>
</a>
</div>
</div>
<div class="panel-body">
<?php echo $_smarty_tpl->tpl_vars['note']->value['note'];?>
</div>
</div>
<?php
$_smarty_tpl->tpl_vars['note'] = $__foreach_note_1_saved_local_item;
}
if ($__foreach_note_1_saved_item) {
$_smarty_tpl->tpl_vars['note'] = $__foreach_note_1_saved_item;
}
?>
</div>
<?php
$_from = $_smarty_tpl->tpl_vars['addons_html']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_addon_html_2_saved_item = isset($_smarty_tpl->tpl_vars['addon_html']) ? $_smarty_tpl->tpl_vars['addon_html'] : false;
$_smarty_tpl->tpl_vars['addon_html'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['addon_html']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['addon_html']->value) {
$_smarty_tpl->tpl_vars['addon_html']->_loop = true;
$__foreach_addon_html_2_saved_local_item = $_smarty_tpl->tpl_vars['addon_html'];
?>
<div class="addon-html-output-container">
<?php echo $_smarty_tpl->tpl_vars['addon_html']->value;?>
</div>
<?php
$_smarty_tpl->tpl_vars['addon_html'] = $__foreach_addon_html_2_saved_local_item;
}
if ($__foreach_addon_html_2_saved_item) {
$_smarty_tpl->tpl_vars['addon_html'] = $__foreach_addon_html_2_saved_item;
}
?>
<div class="alert alert-info text-center<?php if (!$_smarty_tpl->tpl_vars['replyingadmin']->value) {?> hidden<?php }?>" role="alert" id="replyingAdminMsg">
<?php echo $_smarty_tpl->tpl_vars['replyingadmin']->value['name'];?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['viewedandstarted'];?>
@ <?php echo $_smarty_tpl->tpl_vars['replyingadmin']->value['time'];?>
</div>
<ul class="nav nav-tabs admin-tabs" role="tablist">
<li class="active"><a href="#tab0" role="tab" data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addreply'];?>
</a></li>
<li><a href="#tab1" role="tab" data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addnote'];?>
</a></li>
<li><a href="#tab2" role="tab" data-toggle="tab" onclick="loadTab(2, 'customfields', 0)"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['customfields'];?>
</a></li>
<li><a href="#tab3" role="tab" data-toggle="tab" onclick="loadTab(3, 'tickets', 0)"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['clienttickets'];?>
</a></li>
<li><a href="#tab4" role="tab" data-toggle="tab" onclick="loadTab(4, 'clientlog', 0)"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['clientlog'];?>
</a></li>
<li><a href="#tab5" role="tab" data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['options'];?>
</a></li>
<li><a href="#tab6" role="tab" data-toggle="tab" onclick="loadTab(6, 'ticketlog', 0)"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['ticketlog'];?>
</a></li>
</ul>
<div class="tab-content admin-tabs">
<div class="tab-pane active" id="tab0">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>
?action=viewticket&id=<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;?>
" enctype="multipart/form-data" name="replyfrm" id="frmAddTicketReply" data-no-clear="true">
<input type="hidden" name="postreply" value="1" />
<textarea name="message" id="replymessage" rows="14" class="form-control bottom-margin-10"><?php if ($_smarty_tpl->tpl_vars['signature']->value) {?>
<?php echo $_smarty_tpl->tpl_vars['signature']->value;
}?></textarea>
<div class="row ticket-reply-edit-options">
<div class="col-sm-3">
<select name="deptid" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setDepartment'];?>
-</option>
<?php
$_from = $_smarty_tpl->tpl_vars['departments']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_department_3_saved_item = isset($_smarty_tpl->tpl_vars['department']) ? $_smarty_tpl->tpl_vars['department'] : false;
$_smarty_tpl->tpl_vars['department'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['department']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['department']->value) {
$_smarty_tpl->tpl_vars['department']->_loop = true;
$__foreach_department_3_saved_local_item = $_smarty_tpl->tpl_vars['department'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['department']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['department']->value['name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['department'] = $__foreach_department_3_saved_local_item;
}
if ($__foreach_department_3_saved_item) {
$_smarty_tpl->tpl_vars['department'] = $__foreach_department_3_saved_item;
}
?>
</select>
</div>
<div class="col-sm-3">
<select name="flagto" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setAssignment'];?>
-</option>
<option value="0"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['none'];?>
</option>
<?php
$_from = $_smarty_tpl->tpl_vars['staff']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_staffmember_4_saved_item = isset($_smarty_tpl->tpl_vars['staffmember']) ? $_smarty_tpl->tpl_vars['staffmember'] : false;
$_smarty_tpl->tpl_vars['staffmember'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['staffmember']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['staffmember']->value) {
$_smarty_tpl->tpl_vars['staffmember']->_loop = true;
$__foreach_staffmember_4_saved_local_item = $_smarty_tpl->tpl_vars['staffmember'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['staffmember']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['staffmember']->value['name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['staffmember'] = $__foreach_staffmember_4_saved_local_item;
}
if ($__foreach_staffmember_4_saved_item) {
$_smarty_tpl->tpl_vars['staffmember'] = $__foreach_staffmember_4_saved_item;
}
?>
</select>
</div>
<div class="col-sm-3">
<select name="priority" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setPriority'];?>
-</option>
<option value="High"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['high'];?>
</option>
<option value="Medium"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['medium'];?>
</option>
<option value="Low"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['low'];?>
</option>
</select>
</div>
<div class="col-sm-3">
<select name="status" class="form-control selectize-select" data-value-field="id">
<?php
$_from = $_smarty_tpl->tpl_vars['statuses']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_statusitem_5_saved_item = isset($_smarty_tpl->tpl_vars['statusitem']) ? $_smarty_tpl->tpl_vars['statusitem'] : false;
$_smarty_tpl->tpl_vars['statusitem'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['statusitem']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['statusitem']->value) {
$_smarty_tpl->tpl_vars['statusitem']->_loop = true;
$__foreach_statusitem_5_saved_local_item = $_smarty_tpl->tpl_vars['statusitem'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
" style="color:<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['color'];?>
"<?php if ($_smarty_tpl->tpl_vars['statusitem']->value['title'] == "Answered") {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_5_saved_local_item;
}
if ($__foreach_statusitem_5_saved_item) {
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_5_saved_item;
}
?>
</select>
</div>
</div>
<div class="ticket-reply-submit-options clearfix">
<div class="pull-left">
<button type="button" class="btn btn-default btns-padded" id="btnAttachFiles">
<i class="fa fa-file-o"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['attachFiles'];?>
</button>
<button type="button" class="btn btn-default btns-padded" id="insertpredef">
<i class="fa fa-pencil"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['insertpredef'];?>
</button>
<div class="dropdown btns-padded">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMoreOptions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-cog"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['moreOptions'];?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMoreOptions">
<li><a href="#" id="btnInsertKbArticle"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['insertkblink'];?>
</a></li>
<li><a href="#" id="btnAddBillingEntry"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addbilling'];?>
</a></li>
</ul>
</div>
</div>
<div class="pull-right">
<button type="submit" class="btn btn-primary pull-right" name="postreply" id="btnPostReply" value="true">
<i class="fa fa-reply"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['reply'];?>
</button>
<div class="return-to-ticket-list">
<label class="checkbox-inline">
<input type="checkbox" name="returntolist" value="1"<?php if ($_smarty_tpl->tpl_vars['returnToList']->value == true) {?> checked<?php }?> />
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['returnToTicketList'];?>
</label>
</div>
</div>
<div class="clearfix"></div>
<div id="ticketPredefinedReplies" class="inner-container">
<div class="predefined-replies-search">
<input type="text" id="predefq" size="25" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['search'];?>
" onfocus="this.value=(this.value=='<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['search'];?>
') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['search'];?>
' : this.value;" />
</div>
<div id="prerepliescontent">
<?php echo $_smarty_tpl->tpl_vars['predefinedreplies']->value;?>
</div>
</div>
<div id="ticketReplyAttachments" class="inner-container">
<div class="row">
<div class="col-sm-9">
<input type="file" name="attachments[]" class="form-control" />
<div id="fileuploads"></div>
</div>
<div class="col-sm-3">
<a href="#" id="add-file-upload" class="btn btn-success btn-block add-file-upload" data-more-id="fileuploads"><i class="fa fa-plus"></i> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addmore'];?>
</a>
</div>
</div>
</div>
<div id="ticketReplyBillingEntry" class="inner-container">
<table class="form" width="100%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addbilling'];?>
</td>
<td class="fieldarea">
<div class="form-inline">
<input type="text" name="billingdescription" size="50" placeholder="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['toinvoicedes'];?>
" class="form-control" /> @ <input type="text" name="billingamount" size="10" placeholder="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['amount'];?>
" class="form-control" />
<select name="billingaction" class="form-control select-inline">
<option value="3" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['invoiceimmediately'];?>
</option>
<option value="0" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['dontinvoicefornow'];?>
</option>
<option value="1" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['invoicenextcronrun'];?>
</option>
<option value="2" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['addnextinvoice'];?>
</option>
</select>
</div>
</td>
</tr>
</table>
</div>
</div>
</form>
</div>
<div class="tab-pane" id="tab1">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>
?action=viewticket&id=<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;?>
" enctype="multipart/form-data" id="frmAddTicketNote" data-no-clear="false">
<input type="hidden" name="postaction" value="note" />
<textarea name="message" id="replynote" rows="14" class="form-control"></textarea>
<div class="row ticket-reply-edit-options">
<div class="col-sm-3">
<select name="deptid" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setDepartment'];?>
-</option>
<?php
$_from = $_smarty_tpl->tpl_vars['departments']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_department_6_saved_item = isset($_smarty_tpl->tpl_vars['department']) ? $_smarty_tpl->tpl_vars['department'] : false;
$_smarty_tpl->tpl_vars['department'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['department']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['department']->value) {
$_smarty_tpl->tpl_vars['department']->_loop = true;
$__foreach_department_6_saved_local_item = $_smarty_tpl->tpl_vars['department'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['department']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['department']->value['name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['department'] = $__foreach_department_6_saved_local_item;
}
if ($__foreach_department_6_saved_item) {
$_smarty_tpl->tpl_vars['department'] = $__foreach_department_6_saved_item;
}
?>
</select>
</div>
<div class="col-sm-3">
<select name="flagto" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setAssignment'];?>
-</option>
<option value="0"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['none'];?>
</option>
<?php
$_from = $_smarty_tpl->tpl_vars['staff']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_staffmember_7_saved_item = isset($_smarty_tpl->tpl_vars['staffmember']) ? $_smarty_tpl->tpl_vars['staffmember'] : false;
$_smarty_tpl->tpl_vars['staffmember'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['staffmember']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['staffmember']->value) {
$_smarty_tpl->tpl_vars['staffmember']->_loop = true;
$__foreach_staffmember_7_saved_local_item = $_smarty_tpl->tpl_vars['staffmember'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['staffmember']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['staffmember']->value['name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['staffmember'] = $__foreach_staffmember_7_saved_local_item;
}
if ($__foreach_staffmember_7_saved_item) {
$_smarty_tpl->tpl_vars['staffmember'] = $__foreach_staffmember_7_saved_item;
}
?>
</select>
</div>
<div class="col-sm-3">
<select name="priority" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setPriority'];?>
-</option>
<option value="High"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['high'];?>
</option>
<option value="Medium"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['medium'];?>
</option>
<option value="Low"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['low'];?>
</option>
</select>
</div>
<div class="col-sm-3">
<select name="status" class="form-control selectize-select" data-value-field="id">
<option value="nochange" selected>- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['setStatus'];?>
-</option>
<?php
$_from = $_smarty_tpl->tpl_vars['statuses']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_statusitem_8_saved_item = isset($_smarty_tpl->tpl_vars['statusitem']) ? $_smarty_tpl->tpl_vars['statusitem'] : false;
$_smarty_tpl->tpl_vars['statusitem'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['statusitem']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['statusitem']->value) {
$_smarty_tpl->tpl_vars['statusitem']->_loop = true;
$__foreach_statusitem_8_saved_local_item = $_smarty_tpl->tpl_vars['statusitem'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
" style="color:<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['color'];?>
"><?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_8_saved_local_item;
}
if ($__foreach_statusitem_8_saved_item) {
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_8_saved_item;
}
?>
</select>
</div>
</div>
<div class="ticket-reply-submit-options clearfix">
<div class="pull-left">
<button type="button" class="btn btn-default btns-padded" id="btnNoteAttachFiles">
<i class="fa fa-file-o"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['attachFiles'];?>
</button>
</div>
<div class="pull-right">
<button type="submit" class="btn btn-primary pull-right" name="postreply" id="btnAddNote">
<i class="fa fa-reply"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addnote'];?>
</button>
<div class="return-to-ticket-list">
<label class="checkbox-inline">
<input type="checkbox" name="returntolist" value="1"<?php if ($_smarty_tpl->tpl_vars['returnToList']->value == true) {?> checked<?php }?> />
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['returnToTicketList'];?>
</label>
</div>
</div>
<div class="clearfix"></div>
<div id="ticketNoteAttachments" class="inner-container">
<div class="row">
<div class="col-sm-9">
<input type="file" name="attachments[]" class="form-control" />
<div id="note-file-uploads"></div>
</div>
<div class="col-sm-3">
<a href="#" id="add-note-file-upload" class="btn btn-success btn-block add-file-upload" data-more-id="note-file-uploads">
<i class="fa fa-plus"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['addmore'];?>
</a>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="tab-pane" id="tab2">
<img src="images/loading.gif" align="top" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['loading'];?>
</div>
<div class="tab-pane" id="tab3">
<img src="images/loading.gif" align="top" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['loading'];?>
</div>
<div class="tab-pane" id="tab4">
<img src="images/loading.gif" align="top" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['loading'];?>
</div>
<div class="tab-pane" id="tab5">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>
?action=viewticket&id=<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;?>
" id="frmTicketOptions">
<table class="form" width="100%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="15%" class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['department'];?>
</td>
<td class="fieldarea">
<select name="deptid" class="form-control select-inline">
<?php
$_from = $_smarty_tpl->tpl_vars['departments']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_department_9_saved_item = isset($_smarty_tpl->tpl_vars['department']) ? $_smarty_tpl->tpl_vars['department'] : false;
$_smarty_tpl->tpl_vars['department'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['department']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['department']->value) {
$_smarty_tpl->tpl_vars['department']->_loop = true;
$__foreach_department_9_saved_local_item = $_smarty_tpl->tpl_vars['department'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['department']->value['id'];?>
"<?php if ($_smarty_tpl->tpl_vars['department']->value['id'] == $_smarty_tpl->tpl_vars['deptid']->value) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['department']->value['name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['department'] = $__foreach_department_9_saved_local_item;
}
if ($__foreach_department_9_saved_item) {
$_smarty_tpl->tpl_vars['department'] = $__foreach_department_9_saved_item;
}
?>
</select>
</td>
<td width="15%" class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['clientname'];?>
</td>
<td class="fieldarea">
<?php echo $_smarty_tpl->tpl_vars['userSearchDropdown']->value;?>
</td>
</tr>
<tr>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['subject'];?>
</td>
<td class="fieldarea">
<input type="text" name="subject" value="<?php echo $_smarty_tpl->tpl_vars['subject']->value;?>
" class="form-control input-400">
</td>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['flag'];?>
</td>
<td class="fieldarea">
<select name="flagto" class="form-control select-inline">
<option value="0"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['none'];?>
</option>
<?php
$_from = $_smarty_tpl->tpl_vars['staff']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_staffmember_10_saved_item = isset($_smarty_tpl->tpl_vars['staffmember']) ? $_smarty_tpl->tpl_vars['staffmember'] : false;
$_smarty_tpl->tpl_vars['staffmember'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['staffmember']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['staffmember']->value) {
$_smarty_tpl->tpl_vars['staffmember']->_loop = true;
$__foreach_staffmember_10_saved_local_item = $_smarty_tpl->tpl_vars['staffmember'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['staffmember']->value['id'];?>
"<?php if ($_smarty_tpl->tpl_vars['staffmember']->value['id'] == $_smarty_tpl->tpl_vars['flag']->value) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['staffmember']->value['name'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['staffmember'] = $__foreach_staffmember_10_saved_local_item;
}
if ($__foreach_staffmember_10_saved_item) {
$_smarty_tpl->tpl_vars['staffmember'] = $__foreach_staffmember_10_saved_item;
}
?>
</select>
</td>
</tr>
<tr>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['status'];?>
</td>
<td class="fieldarea">
<select name="status" class="form-control select-inline">
<?php
$_from = $_smarty_tpl->tpl_vars['statuses']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_statusitem_11_saved_item = isset($_smarty_tpl->tpl_vars['statusitem']) ? $_smarty_tpl->tpl_vars['statusitem'] : false;
$_smarty_tpl->tpl_vars['statusitem'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['statusitem']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['statusitem']->value) {
$_smarty_tpl->tpl_vars['statusitem']->_loop = true;
$__foreach_statusitem_11_saved_local_item = $_smarty_tpl->tpl_vars['statusitem'];
?>
<option<?php if ($_smarty_tpl->tpl_vars['statusitem']->value['title'] == $_smarty_tpl->tpl_vars['status']->value) {?> selected<?php }?> style="color:<?php echo $_smarty_tpl->tpl_vars['statusitem']->value['color'];?>
"><?php echo $_smarty_tpl->tpl_vars['statusitem']->value['title'];?>
</option>
<?php
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_11_saved_local_item;
}
if ($__foreach_statusitem_11_saved_item) {
$_smarty_tpl->tpl_vars['statusitem'] = $__foreach_statusitem_11_saved_item;
}
?>
</select>
</td>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['priority'];?>
</td>
<td class="fieldarea">
<select name="priority" class="form-control select-inline">
<option value="High"<?php if ($_smarty_tpl->tpl_vars['priority']->value == "High") {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['high'];?>
</option>
<option value="Medium"<?php if ($_smarty_tpl->tpl_vars['priority']->value == "Medium") {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['medium'];?>
</option>
<option value="Low"<?php if ($_smarty_tpl->tpl_vars['priority']->value == "Low") {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['low'];?>
</option>
</select>
</td>
</tr>
<tr>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['ccrecipients'];?>
</td>
<td class="fieldarea">
<input type="text" name="cc" value="<?php echo $_smarty_tpl->tpl_vars['cc']->value;?>
" class="form-control input-300 input-inline"> (<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['transactions']['commaseparated'];?>
)
</td>
<td class="fieldlabel">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['mergeticket'];?>
</td>
<td class="fieldarea">
<input type="text" name="mergetid" class="form-control input-150 input-inline"> (<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['notocombine'];?>
)
</td>
</tr>
</table>
<div class="btn-container">
<button id="btnSaveChanges" type="submit" class="btn btn-primary" value="save">
<i class="fa fa-save"></i>
<?php echo WHMCS\Smarty::langFunction(array('key'=>'global.savechanges'),$_smarty_tpl);?>
</button>
<input type="reset" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['cancelchanges'];?>
" class="btn btn-default" />
</div>
</form>
</div>
<div class="tab-pane" id="tab6">
<img src="images/loading.gif" align="top" /> <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['loading'];?>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['relatedservices']->value) {?>
<div class="tablebg">
<table class="datatable" id="relatedservicestbl" width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<th><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['product'];?>
</th>
<th><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['amount'];?>
</th>
<th><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['billingcycle'];?>
</th>
<th><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['signupdate'];?>
</th>
<th><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['nextduedate'];?>
</th>
<th><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['status'];?>
</th>
</tr>
<?php
$_from = $_smarty_tpl->tpl_vars['relatedservices']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_relatedservice_12_saved_item = isset($_smarty_tpl->tpl_vars['relatedservice']) ? $_smarty_tpl->tpl_vars['relatedservice'] : false;
$_smarty_tpl->tpl_vars['relatedservice'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['relatedservice']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['relatedservice']->value) {
$_smarty_tpl->tpl_vars['relatedservice']->_loop = true;
$__foreach_relatedservice_12_saved_local_item = $_smarty_tpl->tpl_vars['relatedservice'];
?>
<tr<?php if ($_smarty_tpl->tpl_vars['relatedservice']->value['selected']) {?> class="rowhighlight"<?php }?>>
<td><?php echo $_smarty_tpl->tpl_vars['relatedservice']->value['name'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['relatedservice']->value['amount'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['relatedservice']->value['billingcycle'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['relatedservice']->value['regdate'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['relatedservice']->value['nextduedate'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['relatedservice']->value['status'];?>
</td>
</tr>
<?php
$_smarty_tpl->tpl_vars['relatedservice'] = $__foreach_relatedservice_12_saved_local_item;
}
if ($__foreach_relatedservice_12_saved_item) {
$_smarty_tpl->tpl_vars['relatedservice'] = $__foreach_relatedservice_12_saved_item;
}
?>
</table>
</div>
<?php if ($_smarty_tpl->tpl_vars['relatedservicesexpand']->value) {?>
<div id="relatedservicesexpand">
<a href="#" onclick="expandRelServices();return false" class="btn btn-default btn-xs">
<i class="fa fa-plus"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['expand'];?>
</a>
</div>
<?php }
} else { ?>
<br />
<?php }?>
<form method="post" action="supporttickets.php" id="ticketreplies">
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;?>
" />
<input type="hidden" name="action" value="split" />
<div id="ticketreplies">
<?php
$_from = $_smarty_tpl->tpl_vars['replies']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_reply_13_saved_item = isset($_smarty_tpl->tpl_vars['reply']) ? $_smarty_tpl->tpl_vars['reply'] : false;
$_smarty_tpl->tpl_vars['reply'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['reply']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['reply']->value) {
$_smarty_tpl->tpl_vars['reply']->_loop = true;
$__foreach_reply_13_saved_local_item = $_smarty_tpl->tpl_vars['reply'];
?>
<div class="reply <?php if ($_smarty_tpl->tpl_vars['reply']->value['note']) {?> note<?php } elseif ($_smarty_tpl->tpl_vars['reply']->value['admin']) {?> staff<?php }?>">
<div class="leftcol">
<div class="submitter">
<?php if ($_smarty_tpl->tpl_vars['reply']->value['admin']) {?>
<div class="name"><?php echo $_smarty_tpl->tpl_vars['reply']->value['admin'];?>
</div>
<div class="title">
<?php if ($_smarty_tpl->tpl_vars['reply']->value['note']) {?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['privateNote'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['staff'];?>
<?php }?>
</div>
<?php if ($_smarty_tpl->tpl_vars['reply']->value['rating']) {?>
<br /><?php echo $_smarty_tpl->tpl_vars['reply']->value['rating'];?>
<br /><br />
<?php }?>
<?php } else { ?>
<div class="name"><?php echo $_smarty_tpl->tpl_vars['reply']->value['clientname'];?>
</div>
<div class="title">
<?php if ($_smarty_tpl->tpl_vars['reply']->value['contactid']) {?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['contact'];?>
<?php } elseif ($_smarty_tpl->tpl_vars['reply']->value['userid']) {?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['fields']['client'];?>
<?php } else { ?>
<a href="mailto:<?php echo $_smarty_tpl->tpl_vars['reply']->value['clientemail'];?>
"><?php echo $_smarty_tpl->tpl_vars['reply']->value['clientemail'];?>
</a>
<?php }?>
</div>
<?php if (!$_smarty_tpl->tpl_vars['reply']->value['userid'] && !$_smarty_tpl->tpl_vars['reply']->value['contactid']) {?>
<a href="supporttickets.php?action=viewticket&id=<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;?>
&blocksender=true&token=<?php echo $_smarty_tpl->tpl_vars['csrfToken']->value;?>
" class="btn btn-xs btn-small"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['blocksender'];?>
</a>
<?php }?>
<?php }?>
</div>
<div class="tools">
<div class="editbtns<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>">
<img src="../assets/img/spinner.gif" width="16" height="16" class="saveSpinner" style="display: none" />
<?php if (!$_smarty_tpl->tpl_vars['reply']->value['note']) {?>
<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['edit'];?>
" onclick="editTicket('<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>')" class="btn btn-xs btn-small btn-default" />
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['deleteperm']->value) {?>
<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['delete'];?>
" onclick="<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {
if ($_smarty_tpl->tpl_vars['reply']->value['note']) {?>doDeleteNote('<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];?>
');<?php } else { ?>doDeleteReply('<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];?>
');<?php }
} else { ?>doDeleteTicket();<?php }?>" class="btn btn-xs btn-small btn-danger" />
<?php }?>
</div>
<div class="editbtns<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>" style="display:none">
<img src="../assets/img/spinner.gif" width="16" height="16" class="saveSpinner" style="display: none" />
<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['save'];?>
" onclick="editTicketSave('<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>')" class="btn btn-xs btn-small btn-success" />
<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['cancel'];?>
" onclick="editTicketCancel('<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>')" class="btn btn-xs btn-small btn-default" />
</div>
</div>
</div>
<div class="rightcol">
<?php if (!$_smarty_tpl->tpl_vars['reply']->value['note']) {?>
<div class="quoteicon">
<a href="#" onClick="quoteTicket('<?php if (!$_smarty_tpl->tpl_vars['reply']->value['id']) {
echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>','<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {
echo $_smarty_tpl->tpl_vars['reply']->value['id'];
}?>'); return false;"><img src="images/icons/quote.png" border="0" /></a>
<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>
<input type="checkbox" name="rids[]" value="<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];?>
" />
<?php }?>
</div>
<?php }?>
<div class="postedon">
<?php if ($_smarty_tpl->tpl_vars['reply']->value['note']) {?>
<?php echo $_smarty_tpl->tpl_vars['reply']->value['admin'];?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['postedANote'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['posted'];?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['reply']->value['friendlydate']) {?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['on'];?>
<?php echo $_smarty_tpl->tpl_vars['reply']->value['friendlydate'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['today'];?>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['at'];?>
<?php echo $_smarty_tpl->tpl_vars['reply']->value['friendlytime'];?>
</div>
<div class="msgwrap" id="content<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>">
<div class="message markdown-content">
<?php echo $_smarty_tpl->tpl_vars['reply']->value['message'];?>
</div>
<?php if ($_smarty_tpl->tpl_vars['reply']->value['numattachments']) {?>
<br />
<strong><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['attachments'];?>
</strong>
<br /><br />
<?php
$_from = $_smarty_tpl->tpl_vars['reply']->value['attachments'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_attachment_14_saved_item = isset($_smarty_tpl->tpl_vars['attachment']) ? $_smarty_tpl->tpl_vars['attachment'] : false;
$__foreach_attachment_14_saved_key = isset($_smarty_tpl->tpl_vars['num']) ? $_smarty_tpl->tpl_vars['num'] : false;
$_smarty_tpl->tpl_vars['attachment'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['attachment']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['num']->value => $_smarty_tpl->tpl_vars['attachment']->value) {
$_smarty_tpl->tpl_vars['attachment']->_loop = true;
$__foreach_attachment_14_saved_local_item = $_smarty_tpl->tpl_vars['attachment'];
?>
<?php if ($_smarty_tpl->tpl_vars['thumbnails']->value) {?>
<div class="ticketattachmentcontainer">
<a href="../<?php echo $_smarty_tpl->tpl_vars['attachment']->value['dllink'];?>
"<?php if ($_smarty_tpl->tpl_vars['attachment']->value['isImage']) {?> data-lightbox="image-<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {
if ($_smarty_tpl->tpl_vars['reply']->value['note']) {?>n<?php } else { ?>r<?php }
echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>"<?php }?>>
<span class="ticketattachmentthumbcontainer">
<img src="../includes/thumbnail.php?<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {
if ($_smarty_tpl->tpl_vars['reply']->value['note']) {?>nid=<?php } else { ?>rid=<?php }
echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>tid=<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>&i=<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
" class="ticketattachmentthumb" />
</span>
<span class="ticketattachmentinfo">
<img src="images/icons/attachment.png" align="top" />
<?php echo $_smarty_tpl->tpl_vars['attachment']->value['filename'];?>
</span>
</a>
<div class="ticketattachmentlinks">
<small>
<?php if ($_smarty_tpl->tpl_vars['attachment']->value['isImage']) {?>
<a href="../<?php echo $_smarty_tpl->tpl_vars['attachment']->value['dllink'];?>
"><?php echo WHMCS\Smarty::langFunction(array('key'=>'support.download'),$_smarty_tpl);?>
</a> |
<?php }?>
<a href="<?php echo $_smarty_tpl->tpl_vars['attachment']->value['deletelink'];?>
" onclick="return confirm('<?php echo strtr($_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['delattachment'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
')" style="color:#cc0000">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['remove'];?>
</a>
</small>
</div>
</div>
<?php } else { ?>
<a href="../<?php echo $_smarty_tpl->tpl_vars['attachment']->value['dllink'];?>
"<?php if ($_smarty_tpl->tpl_vars['attachment']->value['isImage']) {?> data-lightbox="image-<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>r<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>t<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;
}?>"<?php }?>>
<img src="images/icons/attachment.png" align="absmiddle" />
<?php echo $_smarty_tpl->tpl_vars['attachment']->value['filename'];?>
</a>
<small>
<?php if ($_smarty_tpl->tpl_vars['attachment']->value['isImage']) {?>
<a href="../<?php echo $_smarty_tpl->tpl_vars['attachment']->value['dllink'];?>
"><?php echo WHMCS\Smarty::langFunction(array('key'=>'support.download'),$_smarty_tpl);?>
</a> |
<?php }?>
<a href="<?php echo $_smarty_tpl->tpl_vars['attachment']->value['deletelink'];?>
" onclick="return confirm('<?php echo strtr($_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['delattachment'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
')" style="color:#cc0000">
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['remove'];?>
</a>
</small>
<br />
<?php }?>
<?php
$_smarty_tpl->tpl_vars['attachment'] = $__foreach_attachment_14_saved_local_item;
}
if ($__foreach_attachment_14_saved_item) {
$_smarty_tpl->tpl_vars['attachment'] = $__foreach_attachment_14_saved_item;
}
if ($__foreach_attachment_14_saved_key) {
$_smarty_tpl->tpl_vars['num'] = $__foreach_attachment_14_saved_key;
}
?>
<div class="clear"></div>
<?php }?>
</div>
</div>
<div class="clear"></div>
</div>
<?php
$_smarty_tpl->tpl_vars['reply'] = $__foreach_reply_13_saved_local_item;
}
if ($__foreach_reply_13_saved_item) {
$_smarty_tpl->tpl_vars['reply'] = $__foreach_reply_13_saved_item;
}
?>
</div>
<a href="supportticketsprint.php?id=<?php echo $_smarty_tpl->tpl_vars['ticketid']->value;?>
" target="_blank" class="btn btn-default btn-xs">
<i class="fa fa-print"></i>
<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['viewprintable'];?>
</a>
<?php if ($_smarty_tpl->tpl_vars['repliescount']->value > 1) {?>
<span style="float:right;">
<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['splitticketdialogbutton'];?>
" onclick="$('#modalsplitTicket').modal('show')" class="btn btn-xs" />
</span>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['splitticketdialog']->value;?>
<input type="hidden" name="splitdeptid" id="splitdeptid" />
<input type="hidden" name="splitsubject" id="splitsubject" />
<input type="hidden" name="splitpriority" id="splitpriority" />
<input type="hidden" name="splitnotifyclient" id="splitnotifyclient" />
</form>
<?php echo '<script'; ?>
src="../assets/js/lightbox.js"><?php echo '</script'; ?>
>
<?php }
}