| 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/hering/application/plugins/module_med_scheduling/views/procedure/ |
Upload File : |
<div class="wrapper wrapper-content">
{$action = 'create'}
{$title_action = $_L['Procedure_Add_Module']}
{if (!empty($procedure))}
{$action = 'update'}
{$title_action = $_L['Procedure_Edit_Module']}
{/if}
<form id='form-procedure' class="form-horizontal" method="post" action="{$_url}module_med_scheduling/Procedure/{$action}">
<div class="row">
<div class="col-md-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>{$title_action}</h5>
<a href="{$_url}module_med_scheduling/Procedure/listProcedure"
class="btn btn-xs btn-primary btn-rounded pull-right">
<i class="fa fa-bars"></i> {$_L['Procedure_List']}
</a>
</div>
<div class="ibox-content" id="ibox_form">
<div class="alert alert-danger" id="emsg">
<span id="emsgbody"></span>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="control-label" for="title">
{$_L['Name']} <small class="red">*</small>
</label>
<input type="text" name="name" id="name"
class="form-control" value="{$procedure->name}" >
</div>
</div>
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-4">
<label class="control-label" for="">
{$_L['Scheduling Average time']}
</label>
<input type="number" name="average_time" id="average_time"
class="form-control" value="{$procedure->average_time}" >
<span class='help-block'>{$_L['Scheduling minutes']} </span>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 top10">
<label class="control-label" >{$_L['Active'] }?</label>
<input type="checkbox" data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" id="active" {if $procedure->active=='Y'}checked{/if} name="active" value="Y">
</div>
</div>
<div class="row">
<div class="col-xs-12 div_form"> <h2> {$_L['Diary_Diary']}</h2> </div>
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="control-label" for="title">
{$_L['Scheduling Check Permited Diary']}
</label>
</div>
{foreach $diarys as $di}
<div class="col-md-4 col-sm-12 col-xs-12">
<input type="checkbox" name="diary[]" {if isset($listProcedureDiary[$di->id])}checked{/if} id='diary_{$di->id}'
class="" value="{$di->id}" > <label for="diary_{$di->id}">{$di->diary}</label>
</div>
{/foreach}
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 top10">
<label class="control-label" >{$_L['Scheduling Set Allowed Schedules']}? </label>
<input type="checkbox" data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" id="allowed_schedules" {if $procedure->allowed_schedules=='Y'}checked{/if} name="allowed_schedules" value="Y">
</div>
</div>
<br/>
<div class='row allowed_schedules'>
<div class="col-xs-12 div_form"><h2> {$_L['Scheduling Schedules'] }</h2></div>
<div class="jumbotron">
{* <h3>{$_L['Days worked']}</h3><br>*}
<div class='row' style="font-weight: bolder; font-size: 14px;">
<div class="col-sm-1 text-center">
{$_L['Func Status']}
</div>
<div class="col-sm-2">
{$_L['Func Day']}
</div>
<div class="col-sm-3 text-center">
{$_L['Scheduling Period']} 1
</div>
<div class="col-sm-3 text-center">
{$_L['Scheduling Period']} 2
</div>
</div><hr>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_dom" {if isset($listAllowed[0]['status'])}checked{/if}>
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 0']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control clss_hr" value="{if isset($listAllowed[0])}{$listAllowed[0]['hr_ini_manha']}{/if}" name="hr_dom_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[0])}{$listAllowed[0]['hr_fim_manha']}{/if}" class="form-control clss_hr" name="hr_dom_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control clss_hr" value="{if isset($listAllowed[0])}{$listAllowed[0]['hr_ini_tarde']}{/if}" name="hr_dom_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[0])}{$listAllowed[0]['hr_fim_tarde']}{/if}" class="form-control clss_hr" name="hr_dom_fim_tr" style="width: 65px;">
</div>
</div>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_seg" {if isset($listAllowed[1]['status'])}checked{/if} >
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 1']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_manha clss_hr" value="{if isset($listAllowed[1])}{$listAllowed[1]['hr_ini_manha']}{/if}" name="hr_seg_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[1])}{$listAllowed[1]['hr_fim_manha']}{/if}" class="form-control hr_fim_manha clss_hr" name="hr_seg_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_tard clss_hr" value="{if isset($listAllowed[1])}{$listAllowed[1]['hr_ini_tarde']}{/if}" name="hr_seg_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[1])}{$listAllowed[1]['hr_fim_tarde']}{/if}" class="form-control hr_fim_tard clss_hr" name="hr_seg_fim_tr" style="width: 65px;">
</div>
</div>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_ter" {if isset($listAllowed[2]['status'])}checked{/if}>
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 2']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_manha clss_hr" value="{if isset($listAllowed[2])}{$listAllowed[2]['hr_ini_manha']}{/if}" name="hr_ter_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[2])}{$listAllowed[2]['hr_fim_manha']}{/if}" class="form-control hr_fim_manha clss_hr" name="hr_ter_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_tard clss_hr" value="{if isset($listAllowed[2])}{$listAllowed[2]['hr_ini_tarde']}{/if}" name="hr_ter_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[2])}{$listAllowed[2]['hr_fim_tarde']}{/if}" class="form-control hr_fim_tard clss_hr" name="hr_ter_fim_tr" style="width: 65px;">
</div>
</div>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_qua" {if isset($listAllowed[3]['status'])}checked{/if}>
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 3']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_manha clss_hr" value="{if isset($listAllowed[3])}{$listAllowed[3]['hr_ini_manha']}{/if}" name="hr_qua_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[3])}{$listAllowed[3]['hr_fim_manha']}{/if}" class="form-control hr_fim_manha clss_hr" name="hr_qua_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_tard clss_hr" value="{if isset($listAllowed[3])}{$listAllowed[3]['hr_ini_tarde']}{/if}" name="hr_qua_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[3])}{$listAllowed[3]['hr_fim_tarde']}{/if}" class="form-control hr_fim_tard clss_hr" name="hr_qua_fim_tr" style="width: 65px;">
</div>
</div>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_qui" {if isset($listAllowed[4]['status'])}checked{/if}>
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 4']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_manha clss_hr" value="{if isset($listAllowed[4])}{$listAllowed[4]['hr_ini_manha']}{/if}" name="hr_qui_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[4])}{$listAllowed[4]['hr_fim_manha']}{/if}" class="form-control hr_fim_manha clss_hr" name="hr_qui_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_tard clss_hr" value="{if isset($listAllowed[4])}{$listAllowed[4]['hr_ini_tarde']}{/if}" name="hr_qui_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[4])}{$listAllowed[4]['hr_fim_tarde']}{/if}" class="form-control hr_fim_tard clss_hr" name="hr_qui_fim_tr" style="width: 65px;">
</div>
</div>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_sex" {if isset($listAllowed[5]['status'])}checked{/if}>
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 5']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_manha clss_hr" value="{if isset($listAllowed[5])}{$listAllowed[5]['hr_ini_manha']}{/if}" name="hr_sex_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[5])}{$listAllowed[5]['hr_fim_manha']}{/if}" class="form-control hr_fim_manha clss_hr" name="hr_sex_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control hr_ini_tard clss_hr" value="{if isset($listAllowed[5])}{$listAllowed[5]['hr_ini_tarde']}{/if}" name="hr_sex_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[5])}{$listAllowed[5]['hr_fim_tarde']}{/if}" class="form-control hr_fim_tard clss_hr" name="hr_sex_fim_tr" style="width: 65px;">
</div>
</div>
<div class='row'>
<div class="col-sm-1">
<input type="checkbox" class="form-control btn-sm" name="ind_sab" {if isset($listAllowed[6]['status'])}checked{/if}>
</div>
<div class="col-sm-2" style="padding-top: 4px; font-size: 16px;">
<span>{$_L['Day 6']}</span>
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control clss_hr" value="{if isset($listAllowed[6])}{$listAllowed[6]['hr_ini_manha']}{/if}" name="hr_sab_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[6])}{$listAllowed[6]['hr_fim_tarde']}{/if}" class="form-control clss_hr" name="hr_sab_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-3 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control clss_hr" value="{if isset($listAllowed[6])}{$listAllowed[6]['hr_ini_tarde']}{/if}" name="hr_sab_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="{if isset($listAllowed[6])}{$listAllowed[6]['hr_fim_tarde']}{/if}" class="form-control clss_hr" name="hr_sab_fim_tr" style="width: 65px;">
</div>
</div><hr>
<div class="row">
<div class="col-sm-4" style="padding-top: 20px;">
<input type="button" class="btn btn-success btn-block redf_hr" value="{$_L['Scheduling Redefine Hr']}">
</div>
<div class="col-sm-8 redf_hr_on">
<div class="row">
<div>
<div class="col-sm-5 text-center">
{$_L['Scheduling Period']} 1
</div>
<div class="col-sm-5 text-center">
{$_L['Scheduling Period']} 2
</div>
</div>
<div>
<div class="col-sm-5 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control clss_hr" value="" id="nv_hr_ini_mn" style="width: 65px; float: left;"> : </span><input type="text" value="" class="form-control clss_hr" id="nv_hr_fim_mn" style="width: 65px;">
</div>
<div class="col-sm-5 text-center">
<span style="float: left; margin-left: 40px;" class="text-center"><input type="text" class="form-control clss_hr" value="" id="nv_hr_ini_tr" style="width: 65px; float: left;"> : </span><input type="text" value="" class="form-control clss_hr" id="nv_hr_fim_tr" style="width: 65px;">
</div>
<div class="col-sm-2 text-center">
<input type="button" class="btn btn-success btn-block redf_hr_func" value="{$_L['Func Jou Change']}">
<input type="button" class="btn btn-danger btn-block clse_redf_hr" value="X">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='row' >
<div class="col-xs-12 div_form"> <h2>{$_L['Scheduling Data TISS']}</h2> </div>
<div class="col-md-6 col-sm-12 col-xs-12 top10">
<label class=" control-label" >{$_L['Scheduling Linked to TUSS procedure']}?</label>
<input type="checkbox" data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" id="linked_tiss" {if $procedure->linked_tiss=='Y'}checked{/if} name="linked_tiss" value="Y">
</div>
</div>
<div class="row linked_tiss">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="control-label" for="title">
{$_L['Scheduling TUSS table']}
</label>
<select class="form-control procedure_select" name="tiss_procedures_id"
id="tiss_procedures_id" style="width:100%" required>
{if count($procedures) > 0}
{foreach $procedures as $p}
{if $p->id==$procedure->tiss_procedures_id}
<option selected value="{$p->id}">{$p->term}</option>
{/if}
{/foreach}
{/if}
</select>
</div>
</div>
<div class='row' >
<div class="col-xs-12 div_form"> <h2>{$_L['Scheduling Value Agreement']}</h2> </div>
<div class="col-xs-12">
<table class="table table-bordered table-hover sys_table footable" >
<thead>
<tr>
<th class="col-xs-1">{$_L['Active']}</th>
<th>{$_L['Name']}</th>
<th>{$_L['Scheduling Patient Value']}
</th>
<th>{$_L['Scheduling Agreement Value']}
</th>
<th class="col-xs-3">{$_L['Scheduling Code in the table itself']}
</th>
</tr>
</thead>
<tbody>
{if count($agreements) > 0}
{foreach $agreements as $a}
<tr>
<td><input type="checkbox" {if isset($listProcedureAgreement[$a->id])}checked{/if} class="form-control agreement_check" data-id='{$a->id}' name="agreement_{$a->id}" value="Y"></td>
<td>{$a->agreement_company_name}</td>
<td> <input type="text" maxlength="20" value="{if isset($listProcedureAgreement[$a->id])}{$listProcedureAgreement[$a->id]['patient_value']}{/if}" {if !isset($listProcedureAgreement[$a->id])}disabled=""{/if} required="" maxlength="7" name="patient_value_{$a->id}" id="patient_value_{$a->id}" class="form-control amount agreement_check_{$a->id}"></td>
<td> <input type="{if $a->id!=1}text{else}hidden{/if}" maxlength="20" value="{if isset($listProcedureAgreement[$a->id])}{$listProcedureAgreement[$a->id]['agreement_value']}{/if}" {if !isset($listProcedureAgreement[$a->id])}disabled=""{/if} required="" maxlength="7" name="agreement_value_{$a->id}" id="agreement_value_{$a->id}" class="form-control amount agreement_check_{$a->id}"></td>
<td> <input type="text" maxlength="20" value="{if isset($listProcedureAgreement[$a->id])}{$listProcedureAgreement[$a->id]['code_table']}{/if}" {if !isset($listProcedureAgreement[$a->id])}disabled=""{/if} required="" maxlength="7" name="code_table_{$a->id}" id="code_table_{$a->id}" class="form-control agreement_check_{$a->id}"></td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="3">
{$_L['No_Records_Found']}
</td>
</tr>
{/if}
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="control-label" for="title">
{$_L['Procedure_Preparation']}
</label>
<textarea class="form-control" id="notes" name="notes"
rows="3">{$procedure->notes}</textarea>
</div>
</div>
<div class="row" style="margin-top:20px">
<div class=" col-md-12 form-group">
<div class="col-lg-10">
{if !empty($procedure->id)}
<input type="hidden" id="procedureId" name="id" value="{$procedure->id}">
{/if}
<button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit">
<i class="fa fa-check"></i> {$_L['Submit']}
</button>
| <a href="{$_url}module_med_scheduling/procedure/listProcedure">{$_L['Or Cancel']}</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>