| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/leve/application/plugins/module_helpdesk/assets/libs/ |
Upload File : |
<html>
<head>
<style>
/*
PDF library using PHP have some limitations and all CSS properties may not support. Before Editing this file, Please create a backup, so that You can restore this.
The location of this file is here- application/lib/invoices/pdf-x2.php
*/
* { margin: 0; padding: 0; }
body {
/*
Important: Do not Edit Font Name, Unless you are sure. It's required for PDF Rendering Properly
*/
font: 9px/1.2 dejavusanscondensed;
/*
Font Name End
*/
}
#page-wrap { width: 900px; margin: 0 auto; }
table { border-collapse: collapse; }
table td, table th { border: 1px solid black; padding: 5px; }
.title td {padding: 5px}
#customer { overflow: hidden; }
#logo { text-align: right; float: right; position: relative; margin-top: 10px; border: 1px solid #fff; max-width: 540px; overflow: hidden; }
#meta { margin-top: 1px; width: 100%; float: right; }
#meta td { text-align: right; }
#meta td.meta-head { text-align: left; background: #eee; }
#meta td textarea { width: 100%; height: 10px; text-align: right; }
#items { clear: both; width: 100%; margin: 20px 0 0 0; border: 1px solid black; }
#items th { background: #eee; }
#items textarea { width: 80px; height: 30px; }
#items tr.item-row td { vertical-align: top; }
#items td.description { width: 300px; }
#items td.item-name { width: 175px; }
#items td.description textarea, #items td.item-name textarea { width: 100%; }
#items td.total-line { border-right: 0; text-align: right; }
#items td.total-value { border-left: 0; padding: 5px; }
#items td.total-value textarea { height: 15px; background: none; }
#items td.balance { background: #eee; }
#items td.blank { border: 0; }
#terms { text-align: left; margin: 10px 0 0 0; }
#terms h5 { text-transform: uppercase; font: 12px <?php echo $config['pdf_font']; ?>; letter-spacing: 10px; border-bottom: 1px solid black; padding: 0 0 8px 0; margin: 0 0 8px 0; }
#terms textarea { width: 100%; text-align: center;}
.nota-promissoria{
padding: 20px 0px;
margin-top: 20px;
border-top: 1px dashed #000;
}
.nota-promissoria .right{
text-align: right;
margin-bottom: 20px;
}
.nota-promissoria .np-content{
line-height: 25px;
}
.nota-promissoria .np-logo{
float: left;
margin-right: 10px;
}
.nota-promissoria .np-valor{
font-size: 25px;
font-weight: bold;
margin-bottom: 15px;
}
</style>
</head>
<body style="font-family:dejavusanscondensed">
<htmlpageheader name="firstpage" style="">
<table class="title" width="100%" >
<tr>
<td style="border: 0; text-align: right" width="100%">
<img id="image" style="max-height: 70px" src="<?php echo APP_URL; ?>/application/storage/system/logo.png" alt="logo" />
</td>
</tr>
</table>
<!--<hr>-->
</htmlpageheader>
<sethtmlpageheader name="firstpage" page='all' value="on" show-this-page="1" ></sethtmlpageheader>
<div id="page-wrap">
<div style="clear:both"></div>
<div class="col-sm-12 col-md-12 col-xs-12">
<table id="table-questions" class="table" style="width:100%; font-size: 15px;">
<tbody class="sortable" style="width:100%;">
<?php foreach ($questions as $idx => $item) { ?>
<?php if ($item->has_child) { ?>
<tr>
<td colspan="2" style="background-color:#83c13a; color: #000;">
<?php echo $item->question; ?>
</td>
</tr>
<?php } ?>
<?php
if ($item->type_id == 20) {
foreach ($form_data as $data) {
$value = $data['value'];
foreach ($child_questions as $question_aux) {
if ($data['question_id'] == $question_aux->id) {
$question = $question_aux;
}
}
if ($item->id == $question->parent_id) {
if ($question->alias == 'module_helpdesk_add_more') {
continue;
}
?>
<tr>
<td>
<div style="min-width:200px;">
<label class="control-label" for="title" style="text-align: left; width: 300px !important;">
<?php echo $question->question; ?>
</label>
</div>
</td>
<td>
<?php if ($question->alias == 'module_helpdesk_singnature') { ?>
<?php if ($value) { ?>
<a href="<?php echo APP_URL; ?>/application/plugins/module_helpdesk/uploads/tickets/form/<?php echo $ticket->id . '/singnature/' . $value; ?>" target="_blank">
<img width="200px" src="<?php echo APP_URL; ?>/application/plugins/module_helpdesk/uploads/tickets/form/<?php echo $ticket->id . '/singnature/' . $value; ?>">
</a>
<br/><center>
<?= $data["field"] ?></center>
<?php } ?>
<?php } elseif ($question->alias == 'file_upload') { ?>
<?php
if ($value) {
$parts = explode(".", $value);
$ext = strtolower($parts[count($parts) - 1]);
if (in_array($ext, array('jpg', 'jpeg', 'png'))) {
?>
<a href="<?php echo APP_URL; ?>/application/plugins/module_helpdesk/uploads/tickets/form/<?php echo $ticket->id . '/attach/' . $value; ?>" target="_blank">
<img width="200px" src="<?php echo APP_URL; ?>/application/plugins/module_helpdesk/uploads/tickets/form/<?php echo $ticket->id . '/attach/' . $value; ?>">
</a>
<?php } else { ?>
<a href="<?php echo APP_URL; ?>/application/plugins/module_helpdesk/uploads/tickets/form/<?php echo $ticket->id . '/attach/' . $value; ?>" target="_blank">
<?= $value ?>
</a>
<?php
}
}
?>
<?php } elseif ($question->alias == 'module_helpdesk_components') { ?>
<?php
$tam1 = strripos($value, ')');
$part1 = substr($value, 0, $tam1 + 1);
$partFinal = strrchr($value, '|');
echo $part1;
echo "<br/>" . substr($value, strlen($part1), strlen($value) - strlen($part1) - strlen($partFinal));
echo "<br/>" . substr($partFinal, 1);
?>
<?php } elseif ($question->alias == 'email') { ?>
<?= str_replace(";", "<br/>", $value) ?>
<?php } elseif ($question->alias == 'checkbox') { ?>
<?php
if (isset($answerCheck[$question->id])) {
foreach ($answerCheck[$question->id] as $option) {
echo $option['name'] . " " . $option['value_desc'] . "<br/>";
}
}
?>
<?php
} elseif ($question->alias == 'multiple_choice') {
echo implode("<br/>", $value);
} else {
?>
<?php echo $value; ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php } ?>
<?php } ?>
<?php } ?>
</tbody>
</table>
</div>
</div>
</body>
</html>