| 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-05 14:12:23
from "/home/meusitei/public_html/central/templates/six/viewticket.tpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_631603c73c4b07_90682545',
'file_dependency' =>
array (
'21e247a2ada9237fb78f5831efe2c0019d3a60c1' =>
array (
0 => '/home/meusitei/public_html/central/templates/six/viewticket.tpl',
1 => 1535027047,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_631603c73c4b07_90682545 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['invalidTicketId']->value) {?>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"danger",'title'=>$_smarty_tpl->tpl_vars['LANG']->value['thereisaproblem'],'msg'=>$_smarty_tpl->tpl_vars['LANG']->value['supportticketinvalid'],'textcenter'=>true), 0, true);
?>
<?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['closedticket']->value) {?>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"warning",'msg'=>$_smarty_tpl->tpl_vars['LANG']->value['supportticketclosedmsg'],'textcenter'=>true), 0, true);
?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errormessage']->value) {?>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"error",'errorshtml'=>$_smarty_tpl->tpl_vars['errormessage']->value), 0, true);
?>
<?php }?>
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['invalidTicketId']->value) {?>
<div class="alert alert-success"><strong><i class="fa fa-warning"></i> Atendimento </strong><br>Atendimento via ticket de <b>Segunda à Sexta</b> das <b>08h às 17h*</b>.</div>
<p align="right">*Eventualmente o ticket poderá ser respondido fora desse horário!</p>
<div class="panel panel-info panel-collapsable<?php if (!$_smarty_tpl->tpl_vars['postingReply']->value) {?> panel-collapsed<?php }?> hidden-print">
<div class="panel-heading" id="ticketReply">
<div class="collapse-icon pull-right">
<i class="fa fa-<?php if (!$_smarty_tpl->tpl_vars['postingReply']->value) {?>plus<?php } else { ?>minus<?php }?>"></i>
</div>
<h3 class="panel-title">
<i class="fa fa-pencil"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsreply'];?>
</h3>
</div>
<div class="panel-body<?php if (!$_smarty_tpl->tpl_vars['postingReply']->value) {?> panel-body-collapsed<?php }?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>
?tid=<?php echo $_smarty_tpl->tpl_vars['tid']->value;?>
&c=<?php echo $_smarty_tpl->tpl_vars['c']->value;?>
&postreply=true" enctype="multipart/form-data" role="form" id="frmReply">
<div class="row">
<div class="form-group col-sm-4">
<label for="inputName"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsclientname'];?>
</label>
<?php if ($_smarty_tpl->tpl_vars['loggedin']->value) {?>
<input class="form-control disabled" type="text" id="inputName" value="<?php echo $_smarty_tpl->tpl_vars['clientname']->value;?>
" disabled="disabled" /><?php } else { ?><input class="form-control" type="text" name="replyname" id="inputName" value="<?php echo $_smarty_tpl->tpl_vars['replyname']->value;?>
" />
<?php }?>
</div>
<div class="form-group col-sm-5">
<label for="inputEmail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsclientemail'];?>
</label>
<?php if ($_smarty_tpl->tpl_vars['loggedin']->value) {?>
<input class="form-control disabled" type="text" id="inputEmail" value="<?php echo $_smarty_tpl->tpl_vars['email']->value;?>
" disabled="disabled" /><?php } else { ?><input class="form-control" type="text" name="replyemail" id="inputEmail" value="<?php echo $_smarty_tpl->tpl_vars['replyemail']->value;?>
" />
<?php }?>
</div>
</div>
<div class="form-group">
<label for="inputMessage"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['contactmessage'];?>
</label>
<textarea name="replymessage" id="inputMessage" rows="12" class="form-control markdown-editor" data-auto-save-name="client_ticket_reply_<?php echo $_smarty_tpl->tpl_vars['tid']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['replymessage']->value;?>
</textarea>
</div>
<div class="row form-group">
<div class="col-sm-12">
<label for="inputAttachments"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsticketattachments'];?>
</label>
</div>
<div class="col-sm-9">
<input type="file" name="attachments[]" id="inputAttachments" class="form-control" />
<div id="fileUploadsContainer"></div>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default btn-block" onclick="extraTicketAttachment()">
<i class="fa fa-plus"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['addmore'];?>
</button>
</div>
<div class="col-xs-12 ticket-attachments-message text-muted">
<?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsallowedextensions'];?>
: <?php echo $_smarty_tpl->tpl_vars['allowedfiletypes']->value;?>
</div>
</div>
<div class="form-group text-center">
<input class="btn btn-primary" type="submit" name="save" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsticketsubmit'];?>
" />
<input class="btn btn-default" type="reset" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['cancel'];?>
" onclick="jQuery('#ticketReply').click()" />
</div>
</form>
</div>
</div>
<div class="panel panel-info visible-print-block">
<div class="panel-heading">
<h3 class="panel-title">
<?php echo $_smarty_tpl->tpl_vars['LANG']->value['ticketinfo'];?>
</h3>
</div>
<div class="panel-body container-fluid">
<div class="row">
<div class="col-md-2 col-xs-6">
<b><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsticketid'];?>
</b><br /><?php echo $_smarty_tpl->tpl_vars['tid']->value;?>
</div>
<div class="col-md-4 col-xs-6">
<b><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsticketsubject'];?>
</b><br /><?php echo $_smarty_tpl->tpl_vars['subject']->value;?>
</div>
<div class="col-md-2 col-xs-6">
<b><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketspriority'];?>
</b><br /><?php echo $_smarty_tpl->tpl_vars['urgency']->value;?>
</div>
<div class="col-md-4 col-xs-6">
<b><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsdepartment'];?>
</b><br /><?php echo $_smarty_tpl->tpl_vars['department']->value;?>
</div>
</div>
</div>
</div>
<?php
$_from = $_smarty_tpl->tpl_vars['descreplies']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_reply_0_saved_item = isset($_smarty_tpl->tpl_vars['reply']) ? $_smarty_tpl->tpl_vars['reply'] : false;
$__foreach_reply_0_saved_key = isset($_smarty_tpl->tpl_vars['num']) ? $_smarty_tpl->tpl_vars['num'] : false;
$_smarty_tpl->tpl_vars['reply'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['reply']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['num']->value => $_smarty_tpl->tpl_vars['reply']->value) {
$_smarty_tpl->tpl_vars['reply']->_loop = true;
$__foreach_reply_0_saved_local_item = $_smarty_tpl->tpl_vars['reply'];
?>
<div class="ticket-reply markdown-content<?php if ($_smarty_tpl->tpl_vars['reply']->value['admin']) {?> staff<?php }?>">
<div class="date">
<?php echo $_smarty_tpl->tpl_vars['reply']->value['date'];?>
</div>
<div class="user">
<i class="fa fa-user"></i>
<span class="name">
<?php echo $_smarty_tpl->tpl_vars['reply']->value['name'];?>
</span>
<span class="type">
<?php if ($_smarty_tpl->tpl_vars['reply']->value['admin']) {?>
<?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsstaff'];?>
<?php } elseif ($_smarty_tpl->tpl_vars['reply']->value['contactid']) {?>
<?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketscontact'];?>
<?php } elseif ($_smarty_tpl->tpl_vars['reply']->value['userid']) {?>
<?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsclient'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['reply']->value['email'];?>
<?php }?>
</span>
</div>
<div class="message">
<?php echo $_smarty_tpl->tpl_vars['reply']->value['message'];?>
<?php if ($_smarty_tpl->tpl_vars['reply']->value['id'] && $_smarty_tpl->tpl_vars['reply']->value['admin'] && $_smarty_tpl->tpl_vars['ratingenabled']->value) {?>
<div class="clearfix">
<?php if ($_smarty_tpl->tpl_vars['reply']->value['rating']) {?>
<div class="rating-done">
<?php
$_smarty_tpl->tpl_vars['rating'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['rating']->step = 1;$_smarty_tpl->tpl_vars['rating']->total = (int) ceil(($_smarty_tpl->tpl_vars['rating']->step > 0 ? 5+1 - (1) : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['rating']->step));
if ($_smarty_tpl->tpl_vars['rating']->total > 0) {
for ($_smarty_tpl->tpl_vars['rating']->value = 1, $_smarty_tpl->tpl_vars['rating']->iteration = 1;$_smarty_tpl->tpl_vars['rating']->iteration <= $_smarty_tpl->tpl_vars['rating']->total;$_smarty_tpl->tpl_vars['rating']->value += $_smarty_tpl->tpl_vars['rating']->step, $_smarty_tpl->tpl_vars['rating']->iteration++) {
$_smarty_tpl->tpl_vars['rating']->first = $_smarty_tpl->tpl_vars['rating']->iteration == 1;$_smarty_tpl->tpl_vars['rating']->last = $_smarty_tpl->tpl_vars['rating']->iteration == $_smarty_tpl->tpl_vars['rating']->total;?>
<span class="star<?php if ((5-$_smarty_tpl->tpl_vars['reply']->value['rating']) < $_smarty_tpl->tpl_vars['rating']->value) {?> active<?php }?>"></span>
<?php }
}
?>
<div class="rated"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['ticketreatinggiven'];?>
</div>
</div>
<?php } else { ?>
<div class="rating" ticketid="<?php echo $_smarty_tpl->tpl_vars['tid']->value;?>
" ticketkey="<?php echo $_smarty_tpl->tpl_vars['c']->value;?>
" ticketreplyid="<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];?>
">
<span class="star" rate="5"></span>
<span class="star" rate="4"></span>
<span class="star" rate="3"></span>
<span class="star" rate="2"></span>
<span class="star" rate="1"></span>
</div>
<?php }?>
</div>
<?php }?>
</div>
<?php if ($_smarty_tpl->tpl_vars['reply']->value['attachments']) {?>
<div class="attachments">
<strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketsticketattachments'];?>
(<?php echo count($_smarty_tpl->tpl_vars['reply']->value['attachments']);?>
)</strong>
<ul>
<?php
$_from = $_smarty_tpl->tpl_vars['reply']->value['attachments'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_attachment_1_saved_item = isset($_smarty_tpl->tpl_vars['attachment']) ? $_smarty_tpl->tpl_vars['attachment'] : false;
$__foreach_attachment_1_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_1_saved_local_item = $_smarty_tpl->tpl_vars['attachment'];
?>
<li><i class="fa fa-file-o"></i> <a href="dl.php?type=<?php if ($_smarty_tpl->tpl_vars['reply']->value['id']) {?>ar&id=<?php echo $_smarty_tpl->tpl_vars['reply']->value['id'];
} else { ?>a&id=<?php echo $_smarty_tpl->tpl_vars['id']->value;
}?>&i=<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['attachment']->value;?>
</a></li>
<?php
$_smarty_tpl->tpl_vars['attachment'] = $__foreach_attachment_1_saved_local_item;
}
if ($__foreach_attachment_1_saved_item) {
$_smarty_tpl->tpl_vars['attachment'] = $__foreach_attachment_1_saved_item;
}
if ($__foreach_attachment_1_saved_key) {
$_smarty_tpl->tpl_vars['num'] = $__foreach_attachment_1_saved_key;
}
?>
</ul>
</div>
<?php }?>
</div>
<?php
$_smarty_tpl->tpl_vars['reply'] = $__foreach_reply_0_saved_local_item;
}
if ($__foreach_reply_0_saved_item) {
$_smarty_tpl->tpl_vars['reply'] = $__foreach_reply_0_saved_item;
}
if ($__foreach_reply_0_saved_key) {
$_smarty_tpl->tpl_vars['num'] = $__foreach_reply_0_saved_key;
}
?>
<?php }
}
}