
<?php
 $action = $_POST['act'];
$id = $_POST['hiddenID'];

if ($action == 'occupation'){?>
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">Update Patient Occupation</h4>
            </div>
            <div class="modal-body" id="job_activities_wrapper">
                <div class="form-group">
                    <label class="control-label active">Please Select Date Of Birth</label>
                    <input placeholder="YYYY-MM-DD" type="date" name="dateofbirth" value="" id="dateofbirth" class="form-control date_time_picker hasDatepicker" onchange="saveInformationDOB
                            ('records_edit_patient_occupation','#success_error_info_display_dob','<?php echo $id;?>',this.value);return false;"> </div>
            </div>
            <div class="modal-footer">
                <div class="form-actions right">

                    <a class="btn green" data-dismiss="modal"> Save and Close </a>
                </div>

            </div>
        </div>
    </div>
<?php }elseif($action == 'dob'){?>
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">Update Patient Date of Birth</h4>
            </div>
            <div class="modal-body" id="job_activities_wrapper">
                <div class="form-group">
                    <label class="control-label active">Please Select Date Of Birth</label>
                    <input placeholder="YYYY-MM-DD" type="date" name="dateofbirth" value="" id="dateofbirth" class="form-control date_time_picker hasDatepicker" onchange="saveInformationDOB('records_edit_patient_dob','#success_error_info_display_dob','<?php echo $id;?>',this.value);return false;"> </div>
            </div>
            <div class="modal-footer">
                <div class="form-actions right">

                    <a class="btn green" data-dismiss="modal"> Save and Close </a>
                </div>

            </div>
        </div>
    </div>
<?php }elseif ($action == 'dobandoccupation'){ ?>
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">Update Patient Record</h4>
            </div>
            <div class="modal-body" id="job_activities_wrapper">
                <div class="form-group">
                    <label class="control-label active">Occupation</label>
                    <input placeholder="Ocuupation" type="text" name="occupation" value="" id="occupation" class="form-control" onkeyup="saveInformationDOB
                            ('records_edit_patient_occupation','#success_error_info_display_dob','<?php echo $id;?>',this.value);return false;"> </div>

                <div class="form-group">
                    <label class="control-label active">Please Select Date Of Birth</label>
                    <input placeholder="YYYY-MM-DD" type="date" name="dateofbirth" value="" id="dateofbirth" class="form-control date_time_picker hasDatepicker" onchange="saveInformationDOB
                            ('records_edit_patient_dob','#success_error_info_display_dob','<?php echo $id;?>',this.value);return false;"> </div>
            </div>
            <div class="modal-footer">
                <div class="form-actions right">

                    <a class="btn green" data-dismiss="modal"> Save and Close </a>
                </div>

            </div>
        </div>
    </div>
<?php } ?>
