| 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/mundotennis/application/plugins/module_events/views/scheduling/ |
Upload File : |
<div class="wrapper wrapper-content" style="padding-bottom: 0;">
{$title_action = $_L['Scheduling_Add']}
{if (!empty($scheduling->id))}
{$title_action = $_L['Scheduling_Edit']}
<script>{$jsvar}</script>
{/if}
<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_eventscheduling/listScheduling"
class="btn btn-xs btn-primary btn-rounded pull-right">
<i class="fa fa-bars"></i> {$_L['Scheduling_List']}
</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['Scheduling Data'] }</a></li>
<li><a data-toggle="tab" id="tab_procedure" href="#procedure">{$_L['Scheduling_Procedure_Module']}</a></li>
{* <li><a data-toggle="tab" href="#repetitions">{$_L['Scheduling Repeat'] }</a></li>*}
<li><a data-toggle="tab" href="#obs">{$_L['Scheduling_Obs'] }</a></li>
<li><a data-toggle="tab" href="#attachment">{$_L['Scheduling Attachment'] }</a></li>
{if (!empty($scheduling->id))}
<li><a data-toggle="tab" href="#ocurrence">{$_L['Occurrences'] }</a></li>
{* <li><a data-toggle="tab" href="#expense">{$_L['Expenses'] }</a></li>*}
{/if}
</ul>
<form class="form-horizontal" id="form-scheduling" method="post" enctype="multipart/form-data" >
<input name="created_user_id" type="hidden" value="{$user->id}">
<div class="tab-content">
<div id="general_data" class="tab-pane fade in active">
<div class="row">
<div class="col-sm-12 col-md-4 col-xs-4">
{$diary = ''}
{if (!empty($scheduling->diary_id))}
{$diary = $scheduling->diary_id}
{/if}
<label class="control-label" for="title">
{$_L['Diary_Diary']} {$_L['*']}
</label>
<select name="diary_id" id="diary_id" class="form-control diary_select" required>
{foreach $diarys as $dry}
<option value="{$dry->id}"
{if $dry->id == $diary}selected{/if}>{$dry->diary}</option>
{/foreach}
</select>
<input id="last_diary_id" type="hidden" value="{$scheduling->diary_id}">
</div>
<div class="col-sm-12 col-md-4 col-xs-4">
<label class="control-label" for="title">
{$_L['Scheduling_Patient']} <small class="red">*</small>
</label>
<select name="patient_id" id="patient_id" class="form-control patient_select" required>
{foreach $patients as $pat}
{if $pat->id == $scheduling->patient_id}
<option value="{$pat->id}"
selected>{$pat->account} | {$pat->date_of_birth}</option>
{/if}
{/foreach}
</select>
<span class="help-block" id="btn-add-patient"><a href="#" data-group="patient" class="add_new_contact">{$_L['Add_New_Patient']}</a> </span>
<span class="help-block hide" id="btn-show-patient"><a target="_blank" href="#" data-group="patient" class="">{$_L['Show_Patient']}</a> </span>
</div>
<div class="col-sm-12 col-md-4 col-xs-4">
<label class="control-label" for="title">
{$_L['Requester']}
</label>
<select name="requester_id" id="requester_id" class="form-control requester_select" required>
{foreach $requesters as $pat}
{if $pat->id == $scheduling->requester_id}
<option value="{$pat->id}"
selected>{$pat->account}</option>
{/if}
{/foreach}
</select>
<span class="help-block"><a href="#" data-group="requester" class="add_new_contact">{$_L['Add_New_Requester']}</a> </span>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6 col-xs-12">
<label class="control-label" for="title">{$_L['Scheduling agreement']} {$_L['*']}</label>
<select name="agreement_id" id="agreement_id" class="form-control agreement_select">
{foreach $agreements as $agre}
<option value="{$agre->id}"
{if $agre->standard_agreement=='Y' && empty($scheduling->agreement_id)}selected{/if} {if $agre->id == $scheduling->agreement_id}selected{/if}>{$agre->agreement_company_name}</option>
{/foreach}
</select>
</div>
<input type="hidden" id="last_agreement_id" value="{$scheduling->agreement_id}">
<div class="col-sm-12 col-md-6 col-xs-12">
<label class="control-label" for="title">
{$_L['Scheduling Professional']}
</label>
<select name="professional_id" id="professional_id" class="form-control">
<option value="">{$_L['Select']}</option>
{foreach $doctors as $d}
{if $scheduling->professional_id==$d->id}
<option selected value="{$d->id}">{$d->name}</option>
{/if}
{/foreach}
</select>
</div>
<div class="col-sm-6 col-md-6 col-xs-12">
<label class="control-label" for="">
{$_L['Scheduling Type of service']}
</label>
<select name="module_med_type_query_id" id="module_med_type_query_id" class="form-control">
{foreach $types as $t}
<option value="{$t->id}"
{if $t->id == $scheduling->module_med_type_query_id}selected{/if}>{$t->name}</option>
{/foreach}
</select>
</div>
<div class="col-sm-6 col-md-6 col-xs-12">
<label class="control-label" for="">
{$_L['Status']}
</label>
<select name="status" id="status" class="form-control">
{if $scheduling->status!="Finished"}
<option {if $scheduling->status=="Scheduled" }selected{/if} value = "Scheduled" >{$_L['Scheduling status Scheduled']}</option>
<option {if $scheduling->status=="Confirmed" }selected{/if} value = "Confirmed">{$_L['Scheduling status Confirmed']}</option>
<option {if $scheduling->status=="On Hold" }selected{/if} value = "On Hold">{$_L['Scheduling status On hold']}</option>
<option {if $scheduling->status=="In progress" }selected{/if} value = "In progress">{$_L['Scheduling status In progress']}</option>
{/if}
{if $scheduling->id!=""} <option {if $scheduling->status=="Finished" }selected{/if} value = "Finished">{$_L['Scheduling status Finished']}</option>{/if}
{if $scheduling->status!="Finished"}
<option {if $scheduling->status=="Canceled" }selected{/if} value = "Canceled">{$_L['Scheduling status Canceled by professional']}</option>
<option {if $scheduling->status=="Canceled Patient" }selected{/if} value = "Canceled Patient">{$_L['Scheduling status Canceled by the patient']}</option>
<option {if $scheduling->status=="Missed" }selected{/if} value = "Missed">{$_L['Scheduling status Missed']}</option>
{*<option {if $scheduling->status=="Payment" }selected{/if} value = "Payment">{$_L['Scheduling status Payment']}</option>
<option {if $scheduling->status=="PreAttribute" }selected{/if} value = "PreAttribute">{$_L['Scheduling status Pre-service']}</option>
<option {if $scheduling->status=="Redial" }selected{/if} value = "Redial">{$_L['Scheduling status Redialed']}</option>*}
{/if}
</select>
</div>
</div>
<div class='row'>
<div class="col-sm-12 col-md-2 col-xs-12">
<label class="control-label" for="title">
{$_L['Date']} <small class="red">*</small>
</label>
<input type="text" name="date" id="date" class="form-control dt" required
value="{$scheduling->date}" datepicker data-date-format="{$_c['formatDate']}" data-auto-close="true">
</div>
<div class="col-sm-12 col-md-3 col-xs-12">
<label class="control-label" for="title">
{$_L['Scheduling Hour Start']} <small class="red">*</small>
</label>
<div class="input-group">
<input type="text" id="hour_start" name="hour_start" class="form-control hr"
value="{$scheduling->hour_start}" required>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
</div>
<div class="col-sm-12 col-md-3 col-xs-12">
<label class="control-label" for="title">
{$_L['Scheduling Hour Finish']} <small class="red">*</small>
</label>
<div class="input-group">
<input type="text" name="hour_finish" id='hour_finish' class="form-control hr"
value="{$scheduling->hour_finish}" required>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
</div>
<div class="col-md-2 col-sm-12 col-xs-12">
<label class=" control-label" >{$_L['Scheduling Urgency']}</label>
<br/><input type="checkbox" data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" {if $scheduling->urgency=="Y"}checked {/if} id="urgency" name="urgency" value="Y">
</div>
<div class="col-md-2 col-sm-12 col-xs-12">
<label class=" control-label" >{$_L['Scheduling Queue']}</label>
<br/><input type="text" value="{if isset($scheduling->queue_number) }{$scheduling->queue_number}{/if}" class="form-control integer" id="queue_number" name="queue_number">
</div>
</div>
</div>
<div id='attachment' 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['Scheduling 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['Scheduling_Agreement_Upload']}</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 class="tab-pane" id="repetitions">
<div class="row top10">
<div class="col-xs-12">
<div class="form-group">
<label class="col-sm-3 control-label no-padding-right" >
{$_L['Scheduling Repetition']}
</label>
<div class="col-sm-9">
<select class="form-control " id="type_repetition" name="type_repetition" required="required">
<option {if $scheduling->type_repetition=='not'}selected{/if} value="not">
{$_L['No']}
</option>
<option {if $scheduling->type_repetition=='daily'}selected{/if} value="daily">
{$_L['Scheduling Daily']}
</option>
<option {if $scheduling->type_repetition=='monday, wednesday and friday'}selected{/if} value="monday, wednesday and friday">
{$_L['Scheduling Monday, Wednesday and Friday']}
</option>
<option {if $scheduling->type_repetition=='tuesdays and thursday'}selected{/if} value="tuesdays and thursdays">
{$_L['Scheduling Tuesdays and Thursdays']}
</option>
<option {if $scheduling->type_repetition=='weekly'}selected{/if} value="weekly">
{$_L['Scheduling Weekly']}
</option>
<option {if $scheduling->type_repetition=='fortnightly'}selected{/if} value="fortnightly">
{$_L['Scheduling Fortnightly']}
</option>
<option {if $scheduling->type_repetition=='monthly'}selected{/if} value="monthly">
{$_L['Scheduling Monthly']}
</option>
<option {if $scheduling->type_repetition=='annually'}selected{/if} value="annually">
{$_L['Scheduling Annually']}
</option>
</select>
</div>
</div>
<div id="div_others_data_repetion" class="col-xs-12 ">
<div class="form-group">
<label class="col-xs-3 control-label">{$_L['Scheduling Date start']}</label>
<label class="col-xs-9" style='margin-top:7px'>{date( $_c['df'],strtotime($scheduling->repeat_date_start))}</label>
<input type="hidden" name="repeat_date_start" value="{date( $_c['df'],strtotime($scheduling->repeat_date_start))}">
</div>
<div class="form-group" id="frequency" >
<label class="col-xs-3 control-label no-padding-right">{$_L['Scheduling Repeat every']}</label>
<div class="col-xs-9">
<select name="repeat_frequency">
<option {if $scheduling->repeat_frequency==1}selected{/if} value="1">1</option>
<option {if $scheduling->repeat_frequency==2}selected{/if} value="2">2</option>
<option {if $scheduling->repeat_frequency==3}selected{/if} value="3">3</option>
<option {if $scheduling->repeat_frequency==4}selected{/if} value="4">4</option>
<option {if $scheduling->repeat_frequency==5}selected{/if} value="5">5</option>
<option {if $scheduling->repeat_frequency==6}selected{/if} value="6">6</option>
<option {if $scheduling->repeat_frequency==7}selected{/if} value="7">7</option>
<option {if $scheduling->repeat_frequency==8}selected{/if} value="8">8</option>
<option {if $scheduling->repeat_frequency==9}selected{/if} value="9">9</option>
<option {if $scheduling->repeat_frequency==10}selected{/if} value="10">10</option>
<option {if $scheduling->repeat_frequency==11}selected{/if} value="11">11</option>
<option {if $scheduling->repeat_frequency==12}selected{/if} value="12">12</option>
<option {if $scheduling->repeat_frequency==13}selected{/if} value="13">13</option>
<option {if $scheduling->repeat_frequency==14}selected{/if} value="14">14</option>
<option {if $scheduling->repeat_frequency==15}selected{/if} value="15">15</option>
<option {if $scheduling->repeat_frequency==16}selected{/if} value="16">16</option>
<option {if $scheduling->repeat_frequency==17}selected{/if} value="17">17</option>
<option {if $scheduling->repeat_frequency==18}selected{/if} value="18">18</option>
<option {if $scheduling->repeat_frequency==19}selected{/if} value="19">19</option>
<option {if $scheduling->repeat_frequency==20}selected{/if} value="20">20</option>
<option {if $scheduling->repeat_frequency==21}selected{/if} value="21">21</option>
<option {if $scheduling->repeat_frequency==22}selected{/if} value="22">22</option>
<option {if $scheduling->repeat_frequency==23}selected{/if} value="23">23</option>
<option {if $scheduling->repeat_frequency==24}selected{/if} value="24">24</option>
<option {if $scheduling->repeat_frequency==25}selected{/if} value="25">25</option>
<option {if $scheduling->repeat_frequency==26}selected{/if} value="26">26</option>
<option {if $scheduling->repeat_frequency==27}selected{/if} value="27">27</option>
<option {if $scheduling->repeat_frequency==28}selected{/if} value="28">28</option>
<option {if $scheduling->repeat_frequency==29}selected{/if} value="29">29</option>
<option {if $scheduling->repeat_frequency==30}selected{/if} value="30">30</option>
<option {if $scheduling->repeat_frequency==31}selected{/if} value="31">31</option>
</select>
<label id="frequency_dialy" class="no-padding-left hide">{$_L['Scheduling day(s)']}</label>
<label id="frequency_weekly" class="no-padding-left hide">{$_L['Scheduling weekly(s)']}</label>
<label id="frequency_annually" class="no-padding-left hide">{$_L['Scheduling annually(s)']}</label>
</div>
</div>
<div id="day_week" class="form-group" >
<label class="col-xs-3 control-label no-padding-right">{$_L['Scheduling Days of week']}</label>
<div class="col-xs-9">
<label class="checkbox">
<input id="Segunda" class="ace" {if in_array(1,$arrayDayWeek)}checked{/if} type="checkbox" name="repeat_days_week[]" value="1">
<span class="lbl">{$_L['Day 1']}</span>
</label>
<label class="checkbox ">
<input id="Terca" class="ace" {if in_array(2,$arrayDayWeek)}checked{/if} type="checkbox" name="repeat_days_week[]" value="2">
<span class="lbl"> {$_L['Day 2']}</span>
</label>
<label class="checkbox ">
<input id="Quarta" {if in_array(3,$arrayDayWeek)}checked{/if} class="ace" type="checkbox" name="repeat_days_week[]" value="3">
<span class="lbl"> {$_L['Day 3']}</span>
</label>
<label class="checkbox ">
<input id="Quinta" {if in_array(4,$arrayDayWeek)}checked{/if} class="ace" type="checkbox" name="repeat_days_week[]" value="4">
<span class="lbl"> {$_L['Day 4']}</span>
</label>
<label class="checkbox ">
<input id="Sexta" class="ace" {if in_array(5,$arrayDayWeek)}checked{/if} type="checkbox" name="repeat_days_week[]" value="5">
<span class="lbl"> {$_L['Day 5']}</span>
</label>
<label class="checkbox ">
<input id="Sabado" class="ace" {if in_array(6,$arrayDayWeek)}checked{/if} type="checkbox" name="repeat_days_week[]" value="6">
<span class="lbl"> {$_L['Day 6']}</span>
</label>
<label class="checkbox ">
<input id="Domingo" class="ace" {if in_array(0,$arrayDayWeek)}checked{/if} type="checkbox" name="repeat_days_week[]" value="0">
<span class="lbl"> {$_L['Day 0']}</span>
</label>
</div>
</div>
<div id="div_repeat_all" class="form-group" >
<label class="col-xs-3 control-label no-padding-right">{$_L['Scheduling Repeat all']}</label>
<div class="col-xs-9">
<select name="repeat_todo">
<option {if $scheduling->repeat_todo=='month'}selected{/if} value="month">
{$_L['Scheduling Day of month']}
</option>
<option {if $scheduling->repeat_todo=='week'}selected{/if} value="week" selected="selected">
{$_L['Scheduling Days of week']}
</option>
</select>
</div>
</div>
<div id="fimRepeticao" class="form-group">
<label class="col-xs-12 col-sm-3 control-label no-padding-right">{$_L['Scheduling Finish']}</label>
<div class="col-sm-9">
<div class="row">
<div class="col-xs-3">
<label class="radio"> <input name="repeat_finish" class="ace" type="radio" checked="checked" {if $scheduling->repeat_finish=='after'}checked{/if} value="after">
<span class="lbl"></span>
{$_L['Scheduling After']}
</label>
</div>
<div class="col-xs-6">
<input value="{$scheduling->repeat_finish_data}" name="repeat_finish_data" id="repeat_finish_data_after" class="col-xs-5 form-control" >
<span class="middle">{$_L['Occurrence']}</span>
</div>
</div>
<div class="space-6"></div>
<div class="row">
<div class="col-xs-3">
<label class="radio"> <input name="repeat_finish" id="porData" class="ace" type="radio" {if $scheduling->repeat_finish=='in'}checked{/if} value="in">
<span class="lbl"></span> {$_L['Scheduling In']}
</label>
</div>
<div class="col-xs-6">
<div class="input-group">
<label class="control-label" for="title">
{$_L['Date']} <small class="red">*</small>
</label>
<input type="text" name="repeat_finish_data" id="repeat_finish_data_in" class="form-control dt"
value="{$scheduling->repeat_finish_data}" datepicker data-date-format="{$_c['formatDate']}" data-auto-close="true">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="obs" class="tab-pane fade">
<div class="row" style="margin-top:20px">
<div class="col-md-12 col-sm-12 col-xs-12">
<textarea id="observation" name="observation" class="form-control" rows="5"
placeholder="{$_L['Scheduling_Note']}">{$scheduling->observation}</textarea>
</div>
</div>
</div>
<div id="procedure" class="tab-pane fade">
<div class="row">
<div class="table-responsive m-t">
<table class="table invoice-table" id="procedure_items">
<thead>
<tr>
<th>{$_L['Procedure_Exam']}</th>
<th class="col-md-1 ">{$_L['Qty']} </th>
<th class="col-md-2 ">{$_L['Scheduling Patient Value']}
</th>
<th class="col-md-2 not_standard_agreement">{$_L['Scheduling Agreement Value']}
</th>
<th class="col-md-2 col-sm-12 col-xs-12 standard_agreement">{$_L['Discount']}</th>
</tr>
</thead>
<tbody>
{foreach $items as $item}
<tr class="itm_nm_ftura ">
<td class="middle">
{if !$payment}
<select data-row="{$rowNum}" id="select_procedure_{$rowNum}" name="procedure_id[]" class="form-control procedure_select">
<option value="{$item->sys_items_id}">{$item->name}</option>
</select>
{else}
{$item->name}
<input type="hidden" name="procedure_id[]" value="{$item->sys_items_id}" >
{/if}
</td>
<td class="middle">
<input type="text" readonly data-row="{$rowNum}" class="form-control qtyVal edit_row_procedure_{$rowNum}" value="{$item->qty}" name="qty[]" id="qty_{$rowNum}">
<td class="middle">
<input type="text" readonly id="value_patient_{$rowNum}" value="{number_format($item['value_patient'],2,$_c['dec_point'],$_c['thousands_sep'])}" class="form-control {$rowNum}amount" name="value_patient[]">
</td>
<td class="not_standard_agreement middle">
<input type="text" readonly id="value_agreement_{$rowNum}" value="{number_format($item['value_agreement'],2,$_c['dec_point'],$_c['thousands_sep'])}" class="form-control {$rowNum}amount" name="value_agreement[]">
</td>
<td class="standard_agreement middle">
<input type="text" id="item_discount_{$rowNum}" readonly value="{number_format($item['discount'],2,$_c['dec_point'],$_c['thousands_sep'])}" class="form-control item_discount edit_row_procedure_{$rowNum} {$rowNum}amount" name="discount[]"></td>
<td class="middle col-xs-1">
{if !$payment}
<span class="btn btn-success btn-xs ok_procedure hide" id="ok_procedure{$rowNum}" data-row="{$rowNum}" ><i class="fa fa-check"></i> </span> <span class="btn btn-success btn-xs edit_procedure" id="edit_procedure{$rowNum}" data-row="{$rowNum}" ><i class="fa fa-edit"></i> </span> <span class="btn btn-danger btn-xs delete_procedure" data-row="{$rowNum++}" ><i class="fa fa-trash"></i> </span>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<input id="rowNum" type="hidden" value="{$rowNum}">
</div>
</div>
<div class="row">
<div class class="col-md-12 top15 "><span class='pull-right text text-bold' ><span class='pull-right text text-bold' >{$_L['Scheduling Patient Value Total']} <span class=' text text-success' id='value_total_patient'></span></span>
</div>
</div>
<div class="row">
<div class="col-md-12 not_standard_agreement"> <span class='pull-right text text-bold' >{$_L['Scheduling Agreement Value Total']} <span class=' text text-success' id='value_total_agreement'></span></span>
</div>
</div>
<div class="row">
{if !$payment}
<button type="button" class="btn btn-primary" id="item-add"><i class="fa fa-search"></i> {$_L['Procedure_Add_Module']}
</button>
{/if}
</div>
</div>
<div id="expense" class="tab-pane fade">
<div class="row">
<div class="table-responsive m-t">
<table class="table invoice-table" id="procedure_items">
<thead>
<tr>
<th>{$_L['Procedure_Exam']}</th>
<th class="col-md-1 ">{$_L['Qty']} </th>
<th class="col-md-2 ">{$_L['Scheduling Patient Value']}
</th>
<th class="col-md-2 not_standard_agreement">{$_L['Scheduling Agreement Value']}
</th>
</tr>
</thead>
<tbody>
{foreach $expenses as $item}
<tr class="itm_nm_ftura ">
<td class="middle">
{$item->name}
<input type="hidden" name="expense_id_{$item->procedure_id}[]" value="{$item->sys_items_id}" >
</td>
<td class="middle">
<input type="text" data-row="{$item->procedure_id}" class="form-control qtyVal edit_row_procedure_{$item->procedure_id}" value="{$item->qty}" name="expense_qty_{$item->procedure_id}[]" id="expense_qty_{$rowNum}">
<td class="middle">
<input readonly type="text" id="expense_value_patient_{$item->procedure_id}" value="{number_format($item['value_patient'],2,$_c['dec_point'],$_c['thousands_sep'])}" class="form-control {$item->procedure_id}amount" name="expense_value_patient_{$item->procedure_id}[]">
</td>
<td class="not_standard_agreement middle">
<input readonly type="text" id="expense_value_agreement_{$item->procedure_id}" value="{number_format($item['value_agreement'],2,$_c['dec_point'],$_c['thousands_sep'])}" class="form-control {$item->procedure_id}amount" name="expense_value_agreement_{$item->procedure_id}[]">
<td class="middle col-xs-1">
{if !$payment}
<span class="btn btn-success btn-xs ok_procedure hide" id="ok_procedure{$item->procedure_id}" data-row="{$item->procedure_id}" ><i class="fa fa-check"></i> </span>
<span class="btn btn-success btn-xs edit_procedure" id="edit_procedure{$item->procedure_id}" data-row="{$item->procedure_id}" ><i class="fa fa-edit"></i> </span>
<span class="btn btn-danger btn-xs delete_procedure" data-row="{$item->procedure_id++}" ><i class="fa fa-trash"></i> </span>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<div class="row">
<div class class="col-md-12 top15 "><span class='pull-right text text-bold' ><span class='pull-right text text-bold' >{$_L['Scheduling Patient Value Total']} <span class=' text text-success' id='value_total_patient'></span></span>
</div>
</div>
<div class="row">
<div class="col-md-12 not_standard_agreement"> <span class='pull-right text text-bold' >{$_L['Scheduling Agreement Value Total']} <span class=' text text-success' id='value_total_agreement'></span></span>
</div>
</div>
<div class="row">
{if !$payment}
<button type="button" class="btn btn-primary" id="item-add"><i class="fa fa-search"></i> {$_L['Procedure_Add_Module']}
</button>
{/if}
</div>
</div>
<div id="ocurrence" class="tab-pane fade">
<div class="row">
<div class="col-md-4 ">
{$_L['Status']} :
<input type='hidden' id='occurrence_status' value="{$scheduling->status}">
<label class="control-label" for="">
{if $scheduling->status=="Scheduled" }{$_L['Scheduling status Scheduled']}{/if}
{if $scheduling->status=="Confirmed" }{$_L['Scheduling status Confirmed']}{/if}
{if $scheduling->status=="On Hold" }{$_L['Scheduling status On hold']}{/if}
{if $scheduling->status=="In progress" }{$_L['Scheduling status In progress']}{/if}
{if $scheduling->status=="Finished" }{$_L['Scheduling status Finished']}{/if}
{if $scheduling->status=="Canceled" }{$_L['Scheduling status Canceled by professional']}{/if}
{if $scheduling->status=="Canceled Patient" }{$_L['Scheduling status Canceled by the patient']}{/if}
{if $scheduling->status=="Missed" }{$_L['Scheduling status Missed']}{/if}
{*{if $scheduling->status=="Payment" }{$_L['Scheduling status Payment']}{/if}
{if $scheduling->status=="PreAttribute" }{$_L['Scheduling status Pre-service']}{/if}
{if $scheduling->status=="Redial" }{$_L['Scheduling status Redialed']}{/if} *}
</label>
</div>
</div>
<div class="row">
<div class="alert alert-danger hide emsg-occurrence-edit">
<span class="emsgbody-occurrence-edit"></span>
</div>
<div class="col-md-12 col-za-12">
<label for="ocorrencia">{$_L['Occurrence']}</label>
<input class="form-control" type="text" id="occurrence_obs">
</div>
<div class="col-md-3 ">
<br class="hidden-xs">
<button type="button" id='register_occurrence' class="btn btn-success btn-block top5" ><i class="fa fa-fw fa-check"></i></button>
</div>
<div class='col-xs-12 table-occurrence top10'>
</div>
</div>
</div>
<div class="row" style="margin-top:20px">
<div class=" col-md-12 form-group">
<div class="col-lg-10">
<input type="hidden" id="id" name="id" value="{$scheduling->id}">
<button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit">
<i class="fa fa-check"></i> {$_L['Submit']}
</button>
{if $typeForm!='modal'}
| <a href="{$_url}module_med_scheduling/scheduling/listAll">{$_L['Or Cancel']}</a>
{else}
| <a href="#" data-dismiss="modal"> {$_L['Or Cancel']}</a>
{/if}
{if $scheduling->id!='' && $typeForm=='modal' }
|
<a href="#" onclick="ConfirmDelete({$scheduling->id})" class="btn btn-danger"
id="c{$scheduling->id}" data-toggle="tooltip" title="{$_L['Delete']}">
<i class="fa fa-trash"></i> {$_L['Delete']}
</a>
{/if}
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" id="type_form" value="{$typeForm}">
<form action="{$_url}module_med_scheduling/scheduling/delete" method="post" id="formdelete"></form>