| Server IP : 162.214.74.102 / Your IP : 216.73.217.103 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/public_html/lrsys_apps/leve/application/plugins/module_helpdesk/views/ticket/ |
Upload File : |
<div class="wrapper wrapper-content" style="padding-bottom: 0;">
{$title_action = $_L['module_helpdesk Add ticket']}
{if (!empty($ticket->id))}
{$title_action = $_L['module_helpdesk Edit ticket']}
{/if}
{* {$can_edit = false}
{$value_patient = 0}
{foreach $items as $item}
{$value_patient = $value_patient + $item['value_patient']}
{/foreach}
{if $ticket->status!="Finished" || $value_patient == 0}
{$can_edit = true}
{/if}*}
{$can_edit = true}
<div class="row">
<div class="col-md-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>{$title_action}</h5>
{if $typeForm!='modal'}
<a href="{$_url}module_helpdesk/ticket/listAll"
class="btn btn-xs btn-primary btn-rounded pull-right">
<i class="fa fa-bars"></i> {$_L['module_helpdesk list ticket']}
</a>
{else}
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
{/if}
</div>
<div class="ibox-content" id="ibox_form">
<div class="alert alert-danger" id="emsg">
<span id="emsgbody"></span>
</div>
<ul class="nav nav-tabs">
<li class="active"><a style="" data-toggle="tab" href="#general_data">{$_L['module_helpdesk data ticket'] }</a></li>
<li><a data-toggle="tab" href="#attachment_div">{$_L['module_helpdesk Attachment']}</a></li>
</ul>
<form class="form-horizontal" id="form-ticket" method="post" enctype="multipart/form-data" >
<input name="id" id="id" type="hidden" value="{$ticket->id}">
<input id="is_provider" type="hidden" value="{$is_provider}">
<input name="created_user_id" type="hidden" value="{if isset($user->id)}{$user->id}{else}0{/if}">
<div class="tab-content">
<!-- DADOS GERAIS -->
<div id="general_data" class="tab-pane fade in active">
<div class="row">
{if !$client_id}
<div class="col-sm-12 col-md-12">
<label class="control-label" for="title">
{$_L['Customer']} {$_L['*']}
</label>
<select name="client_id" id="client_id" style="width:100%" class="form-control ">
{if not empty($client)}
<option value="{$client->id}" selected> {$client->account}</option>
{/if}
</select>
</div>
<div class="col-sm-12 col-md-12">
<label class="control-label" >
{$_L['module_helpdesk provider']}
</label>
<select name="provider_id" id="provider_id" style="width:100%" class="form-control" >
{if not empty($provider)}
<option value="{$provider->id}" selected> {$provider->account}</option>
{/if}
</select>
</div>
{else}
{if $is_provider == false}
<div class="col-sm-12 col-md-4 hidden">
<label class="control-label" for="title">
{$_L['Customer']} {$_L['*']}
</label>
<select name="client_id" id="client_id" style="width:100%" class="form-control ">
{if not empty($client)}
<option value="{$client->id}" selected> {$client->account}</option>
{/if}
</select>
</div>
<div class="col-sm-12 col-md-4">
<label class="control-label" >
{$_L['module_helpdesk provider']}
</label>
<select name="provider_id" id="provider_id" style="width:100%" class="form-control " >
{if not empty($provider)}
<option value="{$provider->id}" selected> {$provider->account}</option>
{/if}
</select>
</div>
{else}
<input name="provider_id" id="provider_id" type="hidden" value="{$client_id}">
<div class="col-sm-12 col-md-4">
<label class="control-label" for="title">
{$_L['Customer']} {$_L['*']}
</label>
<select name="client_id" id="client_id" style="width:100%" class="form-control ">
{if not empty($client) && !empty($ticket->id)}
<option value="{$client->id}" selected> {$client->account}</option>
{/if}
</select>
</div>
{/if}
{/if}
<div class="col-sm-12 col-md-4">
<label class="control-label" >
{$_L['module_helpdesk priority']} {$_L['*']}
</label>
<select name="module_helpdesk_tickets_priority_id" id="module_helpdesk_tickets_priority_id" style="width:100%" class="form-control " >
{if not empty($priority_ticket)}
<option value="{$priority_ticket->id}" selected> {if $priority_ticket->default==1}{$_L[$priority_ticket->name]}{else} {$priority_ticket->name}{/if} </option>
{/if}
</select>
{if $isAdminOrManager && !$client_id}
<span class="help-block"><a href="#" id="add_new_priority">{$_L['module_helpdesk Add priority']}</a> </span>
{/if}
</div>
<div class="col-sm-12 col-md-4">
<label class="control-label" for="title">
{$_L['module_helpdesk ticket category']} {$_L['*']}
</label>
<select name="module_helpdesk_tickets_cat_id" id="module_helpdesk_tickets_cat_id" style="width:100%" class="form-control " >
{if not empty($cat_ticket)}
<option value="{$cat_ticket->id}" selected> {$cat_ticket->title}</option>
{/if}
</select>
</div>
</div>
{if !$client_id}
<div class="row">
<div class="col-sm-12 col-md-4 {if !$ticket->id > 0}hide{/if}">
<label class="control-label" >
{$_L['module_helpdesk responsible']}
</label>
<select name="responsible_id" id="responsible_id" style="width:100%" class="form-control " >
{if not empty($responsible)}
<option value="{$responsible->id}" selected> {$responsible->account}</option>
{/if}
</select>
</div>
{* <div class="col-sm-12 col-md-4 {if !$ticket->id > 0}hide{/if}">
<label class="control-label" >
{$_L['module_helpdesk provider']}
</label>
<select name="provider_id" id="provider_id" style="width:100%" class="form-control " >
{if not empty($provider)}
<option value="{$provider->id}" selected> {$provider->account}</option>
{/if}
</select>
</div> *}
<div class="col-sm-12 col-md-4 {if !$ticket->id > 0}hide{/if}">
<label class="control-label" for="">
{$_L['Status']} {$_L['*']}
</label>
<select name="status" id="status" style="width:100%" class="form-control" {if $can_edit == false}disabled{/if}>
<option {if $ticket->status=="Open" }selected{/if} value = "Open" >{$_L['module_helpdesk status Open']}</option>
<option {if $ticket->status=="Atendence" }selected{/if} value = "Atendence">{$_L['module_helpdesk status Atendence']}</option>
<option {if $ticket->status=="Closed" }selected{/if} value = "Closed">{$_L['module_helpdesk status Closed']}</option>
</select>
</div>
</div>
{/if}
<div class="row">
<div class="col-sm-12 col-md-4">
<label class="control-label" >
{$_L['module_helpdesk type']} {$_L['*']}
</label>
<select name="module_helpdesk_tickets_treatment_type_id" id="module_helpdesk_tickets_treatment_type_id" style="width:100%" class="form-control " >
{if not empty($type_ticket)}
<option value="{$type_ticket->id}" selected>{if $type_ticket->default==1}{$_L[$type_ticket->name]}{else} {$type_ticket->name}{/if}</option>
{/if}
</select>
{if $isAdminOrManager && !$client_id}
<span class="help-block"><a href="#" id="add_new_type">{$_L['module_helpdesk Add type']}</a> </span>
{/if}
</div>
{$ocult="hide"}
{if not empty($type_ticket)}
{if $type_ticket->id==2}
{$ocult=""}
{/if}
{/if}
<div class="col-sm-12 col-md-8 inputbytype type2 {$ocult}">
<label class="control-label" >
{$_L['module_helpdesk type local assistence']}
</label>
<input name='treatment_type_local' value=" {$ticket->treatment_type_local}" class="form-control">
</div>
{$ocult="hide"}
{if not empty($type_ticket)}
{if $type_ticket->id==3}
{$ocult=""}
{/if}
{/if}
<div class="col-sm-12 col-md-8 inputbytype type3 {$ocult}">
<label class="control-label" >
{$_L['module_helpdesk add atach fical note']}
</label>
<div action="" class="dropzone dz-clickable drp_small" id="upload_container_attachment_type_atendence">
<div class="dz-message">
<h3> <i class="fa fa-cloud-upload"></i>{$_L['module_helpdesk upload add']}</h3>
<br>
<span class="note">{$_L['Or Click to Upload']}</span>
</div>
</div>
<input type="hidden" name="attachment_type_atendence" id="attachment_type_atendence" value="{$attachsNotes}">
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-4">
<label class="control-label" for="title">
{$_L['Category']} {$_L['*']}
</label>
<select name="product_cat_id" id="product_cat_id" class="form-control ">
</select>
</div>
<div class="col-sm-12 col-md-8">
<label class="control-label" >
{$_L['module_helpdesk products']} {$_L['*']}
</label>
<select name="product_id[]" id="product_id" style="width:100%" class="form-control " multiple="" >
{if not empty($products)}
{foreach $products as $product}
<option value="{$product->id}" selected> ({$product->id}) {$product->description}</option>
{/foreach}
{/if}
</select>
</div>
{if $client_id > 0}
<div class="col-sm-12 col-md-4 ">
<label class="control-label" >
{$_L['module_helpdesk requester name']} {$_L['*']}
</label>
<input name='requester_name_client' value="{$ticket->requester_name_client}" class="form-control">
</div>
<div class="col-sm-12 col-md-8 ">
<label class="control-label" >
{$_L['module_helpdesk requester email']} {$_L['*']}
</label>
<input name='requester_email_client' value="{$ticket->requester_email_client}" class="form-control">
</div>
{/if}
{if $client_id > 0 }
{else}
<div class="col-sm-12 col-md-8">
<label class="control-label" for="title">
{$_L['module_helpdesk ticket form select']} {$_L['*']}
</label>
<select name="form_id" id="form_id" style="width:100%" class="form-control " >
<option value="">{$_L['Select']}</option>
{foreach $forms as $form}
<option value="{$form->id}" {if $ticket->form_id == $form->id}selected{/if}> {$form->title}</option>
{/foreach}
</select>
</div>
{/if}
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="control-label" for="title">
{$_L['module_helpdesk description']} <small class="red">*</small>
</label>
<textarea class="form-control" name="description"
rows="5">{$ticket->description}</textarea>
</div>
</div>
</div>
<!-- ANEXOS -->
<div id='attachment_div' class="tab-pane fade">
<div class="row">
<div class="col-sm-12 col-md-12 col-xs-12">
<label class="control-label" for="title">
{$_L['module_helpdesk Document Attachment']}
</label>
<div action="" class="dropzone dz-clickable drp_small" id="upload_container_attachment">
<div class="dz-message">
<h3> <i class="fa fa-cloud-upload"></i>{$_L['module_helpdesk upload add']}</h3>
<br>
<span class="note">{$_L['Or Click to Upload']}</span>
</div>
</div>
<input type="hidden" name="attachment" id="attachment" value="{$attachs}">
</div>
</div>
</div>
</div>
<div class="row" style="margin-top:20px">
<div class=" col-md-12 form-group">
<div class="col-lg-10">
<a href="#" class="md-btn md-btn-primary waves-effect waves-light" id="submit">
<i class="fa fa-check"></i> {$_L['Submit']}
</a>
{if $typeForm!='modal'}
| <a href="{$_url}module_helpdesk/ticket/listAll">{$_L['Or Cancel']}</a>
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<input type="hidden" id="type_form" value="{$typeForm}">
<input type="hidden" id="category_id" value="{$ticket->product_cat_id}">
<input type="hidden" name="_msg_add_new_priority" id="_msg_add_new_priority" value="{$_L['module_helpdesk new priority']}">
<input type="hidden" name="_msg_priority_name" id="_msg_priority_name" value="{$_L['module_helpdesk priority']}">
<input type="hidden" name="_msg_edit" id="_msg_edit" value="{$_L['Edit']}">
<input type="hidden" name="_msg_ok" id="_msg_ok" value="{$_L['OK']}">
<input type="hidden" name="_msg_cancel" id="_msg_cancel" value="{$_L['Cancel']}">
<input type="hidden" name="_msg_save" id="_msg_save" value="{$_L['Save']}">
<input type="hidden" name="_msg_add_new_type" id="_msg_add_new_type" value="{$_L['module_helpdesk new type']}">
<input type="hidden" name="_msg_type_name" id="_msg_type_name" value="{$_L['module_helpdesk type']}">
<input type="hidden" id="_msg_add_new_type_success" value="{$_L['module_helpdesk _msg_add_new_type_success']}">
<input type="hidden" id="_msg_add_new_priority_success" value="{$_L['module_helpdesk _msg_add_new_priority_success']}">