| 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/leo/application/plugins/module_imobles/views/taskcustomer/ |
Upload File : |
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<a href="{$_url}{if isset($client)}{'client/'}{/if}module_imobles/taskcustomer/add" class="btn btn-success">
<i class="fa fa-plus"></i> {$_L['module imobles task customer add']}
</a>
</div>
<div class="panel-body">
<form action="{U}{if isset($client)}{'client/'}{/if}module_imobles/taskcustomer/listAll" method="post" id="form-filter" class="search">
<input type="hidden" name="items_per_page" value="{if isset($filter['items_per_page'])}{$filter['items_per_page']}{/if}">
<div class="row">
<div class="col-md-12 ">
<label> {$_L['Customer']} </label>
</div>
<div class="col-md-12 ">
<select name="crm_account_id" id="crm_account_id" class="select_filter form-control ">
{if $clientSel}
<option value="{$clientSel->id}" selected >{$clientSel->account}</option>
{/if}
</select>
</div>
</div>
<div class="row top10">
<div class="col-xs-12 col-md-2">
<label class="control-label">
{$_L['Type']}
</label>
<select name="type" id="type" class="select_filter form-control select2">
<option value=""> {$_L['module_imobles_source_all']}</option>
<option value="credit_repair" {if in_array('credit_repair',$typeSelected) }selected{/if}> {$_L['credit_repair']}</option>
<option value="pre_sale" {if in_array('pre_sale',$typeSelected) }selected{/if}> {$_L['pre_sale'] }</option>
<option value='sale' {if in_array('sale',$typeSelected) }selected{/if}> {$_L['sale']}</option>
<option value="pos_sale" {if in_array('pos_sale',$typeSelected) }selected{/if}> {$_L['pos_sale']}</option>
</select>
</div>
<div class="col-sm-12 col-md-4">
<label class="control-label" for="title">
{$_L['module imobles task_category name']}
</label>
<select name="module_imobles_task_category_id" id="module_imobles_task_category_id" class="select_filter form-control ">
{if not empty($categorySelected)}
<option value="{$categorySelected->id}" selected> {$categorySelected->name}</option>
{/if}
</select>
</div>
<div class="col-sm-12 col-md-4">
<label class="control-label" for="title">
{$_L['module imobles task name']}
</label>
<select name="module_imobles_tasks_id" id="module_imobles_tasks_id" class=" select_filter form-control ">
{if not empty($taskSelected)}
<option value="{$taskSelected->id}" selected> {$taskSelected->title}</option>
{/if}
</select>
</div>
<div class="col-xs-12 col-md-2">
<label class=" control-label" >
{$_L['module imobles task status']}
</label>
<select name="status" id="status" class="select_filter form-control select2">
<option value=""> {$_L['module_imobles_source_all']}</option>
<option value="open" {if !empty($filter['status']) && $filter['status'] == "open" }selected{/if}> {$_L['module imobles task open']}</option>
<option value="finished_on_time" {if !empty($filter['status']) && $filter['status'] == "finished_on_time" }selected{/if}> {$_L['module imobles task finished on time']}</option>
<option value='finished_late' {if !empty($filter['status']) && $filter['status'] == "finished_late" }selected{/if}> {$_L['module imobles task finished late']}</option>
</select>
</div>
</div>
<div class="row top10">
<br/>
<div class="col-xs-6 col-md-2">
<a class="btn btn-primary col-xs-12" id="filter-clear" href="#">
<i class="fa fa-eraser"></i> {$_L['Clean Filter']}
</a>
</div>
</div>
</form>
<div class="row">
<br>
<div class="col-md-12"><small>{$_L['Page']} {$paginator->current_page} de {$paginator->total_pages}.</small></div>
</div>
<div class="row">
<div class="col-md-1">
<div class="dropdown inline margin-10px0">
<select class="form-control input-sm select-custom" id="items_per_page">
<option {if $filter['items_per_page'] == 5}selected="selected"{/if} value="5">5</option>
<option {if $filter['items_per_page'] == 10}selected="selected"{/if} value="10">10</option>
<option {if $filter['items_per_page'] == 50}selected="selected"{/if} value="50">50</option>
<option {if $filter['items_per_page'] == 100}selected="selected"{/if} value="100">100</option>
<option {if $filter['items_per_page'] == 500}selected="selected"{/if} value="500">500</option>
<option {if $filter['items_per_page'] == all}selected="selected"{/if} value="all">Todos</option>
</select>
</div>
</div>
<div class="col-md-11">
<ul class="pagination pagination-xs margin-10px0">
{assign var=url value=U|cat:'module_imobles/taskcustomer/listAll/'}
{$paginator->paginate($url)}
</ul>
</div>
</div>
<table class="table table-striped table-bordered table-hover sys_table footable" data-filter="#foo_filter" data-page-size="50" id='list_search_view'>
<thead>
<tr>
<th data-value='{$order['client_name']}' data-item='client_name' class='multiply_order {$order['client_name']}'>
{$_L['Customer']}
</th>
<th data-value='{$order['category_name']}' data-item='category_name' class='multiply_order {$order['category_name']}'>
{$_L['module imobles task_category name']}
</th>
<th data-value='{$order['task_title']}' data-item='task_title' class='multiply_order {$order['task_title']}'>
{$_L['module imobles task title']}
</th>
<th data-value='{$order['date_end']}' data-item='date_end' class='multiply_order {$order['date_end']}'>
{$_L['module imobles date end']}
</th>
<th data-value='{$order['days']}' data-item='days' class='multiply_order {$order['days']}'>
{$_L['module imobles task remaining days']}
</th>
<th data-value='{$order['tc.status']}' data-item='tc.status' class='multiply_order {$order['tc.status']}'>
{$_L['module imobles task status']}
</th>
<th>
{$_L['module imobles task Finished']}
</th>
<th>
{$_L['Manage']}
<form action="{$_url}module_imobles/taskcustomer/delete" method="post" id="formdelete"></form>
</th>
</tr>
</thead>
<tbody>
{if count($taskcustomer) > 0}
{foreach $taskcustomer as $d}
<tr style="">
<td>{$d['client_name']}</td>
<td>{$d['category_name']}</td>
<td>{$d['task_title']}</td>
<td>{date('d/m/Y', strtotime($d['date_end']))}</td>
<td>
{if $d['status'] == 'open'}
{$d['days']}
{else}
-
{/if}
</td>
<td>
{if $d['status'] == 'open'}
{$_L['module imobles task open']}
{elseif $d['status'] == 'finished_on_time'}
{$_L['module imobles task finished on time']}
{elseif $d['status'] == 'finished_late'}
{$_L['module imobles task finished late']}
{/if}
</td>
<td>
<input type="checkbox" data-id="{$d['id']}" class="finished_button" {if $d['status'] != 'open'}checked{/if} data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" name="finished" value="1">
</td>
<td>
<a href="{$_url}{if isset($client)}{'client/'}{/if}module_imobles/taskcustomer/edit/{$d['id']}" class="btn btn-xs btn-warning" data-toggle="tooltip" title="{$_L['Edit']}">
<i class="fa fa-pencil"></i>
</a>
<a href="#" onclick="ConfirmDelete({$d['id']})" class="btn btn-xs btn-danger" data-toggle="tooltip" title="{$_L['Delete']}">
<i class="fa fa-trash"></i>
</a>
</td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="8">
{$_L['No_Records_Found']}
</td>
</tr>
{/if}
<form action="{$_url}module_imobles/taskcustomer/delete" method="post" id="formdelete"></form>
</tbody>
</table>
<div class="row">
<div class="col-md-12">
<ul class="pagination pagination-xs">
{$paginator->paginate($url)}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>