| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 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/gasch/application/plugins/module_med_scheduling/views/scheduling/ |
Upload File : |
<div class="wrapper wrapper-content" style="padding-bottom: 0;">
{$action = 'create'}
{$title_action = $_L['Scheduling_Add']}
{if (!empty($scheduling))}
{$action = 'update'}
{$title_action = $_L['Scheduling_Edit']}
{/if}
<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/scheduling/listScheduling"
class="btn btn-xs btn-primary btn-rounded pull-right">
<i class="fa fa-bars"></i> {$_L['Scheduling_List']}
</a>
</div>
<div class="ibox-content" id="ibox_form">
<ul class="nav nav-tabs">
<li class="active"><a style="" data-toggle="tab" href="#general_data">{$title_action}</a></li>
<li><a data-toggle="tab" href="#obs">{$_L['Scheduling_Obs'] }</a></li>
</ul>
<form class="form-horizontal" method="post" enctype="multipart/form-data"
action="{$_url}module_med_scheduling/scheduling/{$action}">
<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']} <small class="red">*</small>
</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>
</div>
<div class="col-sm-12 col-md-4 col-xs-4">
{$patient = ''}
{if (!empty($scheduling->patient_id))}
{$patient = $scheduling->patient_id}
{/if}
<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}
<option value="{$pat->id}"
{if $pat->id == $patient}selected{/if}>{$pat->account}</option>
{/foreach}
</select>
<span class="help-block"><a href="#" id="add_new_pacient">{$_L['Add_New_Patient']}</a> </span>
</div>
<div class="col-sm-12 col-md-4 col-xs-4">
<label class="control-label" for="title">
{$_L['Scheduling_Procedure_Module']}
</label>
<select name="type_exam_id" id="procedures_id" class="form-control procedure_select">
{if count($procedures) > 0}
{foreach $procedures as $p}
<option value="{$p->id}"
{if $p->id == $procedures}selected{/if}>{$p->name}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-4 col-xs-4">
{$agreement = ''}
{if (!empty($scheduling->agreement_id))}
{$agreement = $scheduling->agreement_id}
{/if}
<label class="control-label" for="title">{$_L['Scheduling_Agreement_Module']}</label>
<select name="agreement_id" id="agreement_id" class="form-control agreement_select">
{foreach $agreements as $agre}
<option value="{$agre->id}"
{if $agre->id == $agreement}selected{/if}>{$agre->agreement_company_name}</option>
{/foreach}
</select>
</div>
<div class="col-sm-12 col-md-4 col-xs-4">
{$date = ''}
{if (!empty($scheduling->date))}
{$date = $scheduling->date}
{/if}
<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="{$date}" datepicker data-date-format="dd-mm-yyyy" data-auto-close="true">
</div>
<div class="col-sm-12 col-md-4 col-xs-4">
{$hour = ''}
{if (!empty($scheduling->hour))}
{$hour = $scheduling->hour}
{/if}
<label class="control-label" for="title">
{$_L['Hour']} <small class="red">*</small>
</label>
<div class="input-group clockpicker">
<input type="text" id="out_time" name="hour" class="form-control"
value="{$hour}" required>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12 col-xs-12">
{$agreement_guide = ''}
{if (!empty($scheduling->agreement_guide))}
{$agreement_guide = $scheduling->agreement_guide}
{/if}
<label class="control-label" for="title">
{$_L['Scheduling_Agreement_Guide']}
</label>
<div action="" class="dropzone dz-clickable drp_small" id="upload_container_agreement">
<div class="dz-message">
<h3> <i class="fa fa-cloud-upload"></i>{$_L['Scheduling_Agreement_Guide_Upload']}</h3>
<br>
<span class="note">{$_L['Or Click to Upload']}</span>
</div>
</div>
<input type="hidden" name="agreement_guide" id="agreement_guide" value="">
</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="notes" name="notes" class="form-control" rows="5"
placeholder="{$_L['Scheduling_Note']}"></textarea>
</div>
</div>
</div>
<div class="row" style="margin-top:20px">
<div class=" col-md-12 form-group">
<div class="col-lg-10">
{if !empty($scheduling->id)}
<input type="hidden" id="schedulingId" name="id" value="{$scheduling->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/scheduling/listScheduling">{$_L['Or Cancel']}</a>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>