?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/student/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/eldertree/application/views/student/edit_extra.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Update Daily Report</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_extra','view_extra','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/addinstudent/update_extra/view_extra/1', $attributes); $teacher = $this->mastermodel->get_data('employee', '1', 'employee_teacher'); $nutrition_food_status = $this->mastermodel->getenumvalues('nutrition_food', 'nutrition_food_status'); $nutrition_nappies = $this->mastermodel->get_data('nutrition_nappies', $viewinfo->nutrition_id, 'nutrition_id'); $nutrition_nappies_status = $this->mastermodel->getenumvalues('nutrition_nappies', 'nutrition_nappies_status'); $nutrition_nappies_cream = $this->mastermodel->getenumvalues('nutrition_nappies', 'nutrition_nappies_cream'); $physical_status = $this->mastermodel->getenumvalues('physical', 'physical_status'); $physical = $this->mastermodel->get_data_srow('physical', $viewinfo->nutrition_id, 'physical_id'); $medical = $this->mastermodel->get_data_srow('medical', $viewinfo->nutrition_id, 'medical_id'); ?> <h4 class="form-section"><span class="text bold">NUTRITION REPORTS </span></h4> <div class="row-fluid"> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Child Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Student Name </label> <div class="controls"> <?= $this->mastermodel->get_single_field_value('student', 'first_name', 'student_id', $viewinfo->nutrition_student_id) ?> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Looked After By</label> <div class="controls"> <select name="nutrition_teacher_id" id="nutrition_teacher_id" class="chosen" > <option value=''>Select</option> <?php foreach ($teacher as $list) { ?> <option value="<?= $list['employee_id'] ?>"<?php if ($viewinfo->nutrition_teacher_id == $list['employee_id']) { echo "selected"; } ?>><?= $list['employee_name'] ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Date</label> <div class="controls"> <input name="nutrition_date" id="nutrition_date" type="text" class="calfocus" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->nutrition_date) ?>" /> </div> </div> </div> </div> </div> </div> </div> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Arr/Dep Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Child Arrived At</label> <div class="controls"> <label style="width: 150px;"> <?php echo createHours('nutrition_arrived_hour', substr($viewinfo->nutrition_arrived, 0, 2)); ?> <?php echo createMinutes('nutrition_arrived_minute', substr($viewinfo->nutrition_arrived, 3, 2)); ?> </label> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Child Departed At </label> <div class="controls"> <label style="width: 150px;"> <?php echo createHours('nutrition_departed_hour', substr($viewinfo->nutrition_departed, 0, 2)); ?> <?php echo createMinutes('nutrition_departed_minute', substr($viewinfo->nutrition_departed, 3, 2)); ?> </label> </div> </div> </div> </div> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Sleep</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="table"> <tr> <th>From</th> <th>To</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i = 1; $nutrition_sleep = $this->mastermodel->get_data('nutrition_sleep', $viewinfo->nutrition_id, 'nutrition_id'); foreach ($nutrition_sleep as $list) { ?> <tr> <td> <?php echo createHours('nutrition_sleep_from_hour', substr($list['nutrition_sleep_from'], 0, 2)); ?> <?php echo createMinutes('nutrition_sleep_from_minute', substr($list['nutrition_sleep_from'], 3, 2)); ?> </td> <td> <?php echo createHours('nutrition_sleep_to_hour', substr($list['nutrition_sleep_to'], 0, 2)); ?> <?php echo createMinutes('nutrition_sleep_to_minute', substr($list['nutrition_sleep_to'], 3, 2)); ?> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <tr> <td> <?php echo createHours('nutrition_sleep_from_hour', '24'); ?> <?php echo createMinutes('nutrition_sleep_from_minute1', '61'); ?> </td> <td> <?php echo createHours('nutrition_sleep_to_hour', '24'); ?> <?php echo createMinutes('nutrition_sleep_to_minute1', '61'); ?> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Food</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="student_tb"> <tr> <th>Time</th> <th>Consumption</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i = 1; $nutrition_food = $this->mastermodel->get_data('nutrition_food', $viewinfo->nutrition_id, 'nutrition_id'); if (!empty($nutrition_food)) { $food_id = 1; foreach ($nutrition_food as $list) { ?> <tr> <td> <?php echo createHours('nutrition_food_time_hour', substr($list['nutrition_food_time'], 0, 2)); ?> <?php echo createMinutes('nutrition_food_time_minute', substr($list['nutrition_food_time'], 3, 2)); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { foreach ($nutrition_food_status['val'] as $method) { $checked = 0; if ($list['nutrition_food_status'] == $method) $checked = 1; echo "<td style='padding: 7px 0px;border: 0px;width:1px'> <input "; if ($checked) { echo "checked"; } echo " type='radio' value='$method' name='nutrition_food_status$food_id' id='nutrition_food_status$food_id'/></td> <td style='border: 0px;width:55px'>" . $method . "</td>"; $food_id++; } } ?> </tr> </table> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } } ?> <tr> <td> <?php echo createHours('nutrition_food_time_hour', '24'); ?> <?php echo createMinutes('nutrition_food_time_minute', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { $food_id = 1; foreach ($nutrition_food_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'> <input type='radio' value='$method' name='nutrition_food_status'$food_id id='nutrition_food_status'$food_id /></td> <td style='border: 0px;width:55px'>" . $method . "</td>"; } } ?> </tr> </table> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Any Dislikes?</label> <div class="controls"> <input name="nutrition_food_dislike" id="nutrition_food_dislike" type="text" value="<?= $viewinfo->nutrition_food_dislike ?>"/> </div> </div> </div> </div> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Bottles</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="table"> <tr> <th> Time</th> <th> Amount</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i = 1; $nutrition_bottle = $this->mastermodel->get_data('nutrition_bottle', $viewinfo->nutrition_id, 'nutrition_id'); foreach ($nutrition_bottle as $list) { ?> <tr> <td> <?php echo createHours('nutrition_bottle_time_hour', substr($list['nutrition_bottle_time'], 0, 2)); ?> <?php echo createMinutes('nutrition_bottle_time_minute', substr($list['nutrition_bottle_time'], 3, 2)); ?> </td> <td><input class="w_90" value="<?= $list['nutrition_bottle_amount']; ?>" type="text" name="nutrition_bottle_amount<?= $i; ?>" id="nutrition_bottle_amount<?= $i; ?>"/></td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <td> <?php echo createHours('nutrition_bottle_time_hour', '24'); ?> <?php echo createMinutes('nutrition_bottle_time_minute', '61'); ?> </td> <td><input class="w_90" type="text" name="nutrition_bottle_amount<?= $i; ?>" id="nutrition_bottle_amount<?= $i; ?>"/></td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Nappies</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="table"> <tr> <th width="30%">Time</th> <th width="40%">Status</th> <th width="30%">Cream Applied?</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:55px;"/></th> </tr> <?php $i = 1; $nappies_id = 1; $cream_id = 1; foreach ($nutrition_nappies as $row) { ?> <tr> <td> <?php echo createHours('nutrition_nappies_time_hour', substr($row['nutrition_nappies_time'], 0, 2)); ?> <?php echo createMinutes('nutrition_nappies_time_minute', substr($row['nutrition_nappies_time'], 3, 2)); ?> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_status['val']) > 0) { foreach ($nutrition_nappies_status['val'] as $method) { $checked = 0; if ($row['nutrition_nappies_status'] == $method) $checked = 1; echo "<td style='padding: 7px 0px;border: 0px;width:1px'> <input "; if ($checked) { echo "checked"; } echo " type='radio' value='$method' name='nutrition_nappies_status$nappies_id' id='nutrition_nappies_status$nappies_id'/></td> <td style='border: 0px;width:55px'>" . $method . "</td>"; $nappies_id++; } } ?> </tr> </table> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_cream['val']) > 0) { foreach ($nutrition_nappies_cream['val'] as $method) { $checked = 0; if ($row['nutrition_nappies_cream'] == $method) $checked = 1; echo "<td style='padding: 7px 0px;border: 0px;width:1px'> <input "; if ($checked) { echo " checked"; } echo " type='radio' id='nutrition_nappies_cream$cream_id' name='nutrition_nappies_cream$cream_id' value='" . $method . "'/></td><td style='border: 0px;width:55px'>" . $method . "</td>"; } }$cream_id++; ?> </tr> </table> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <td> <?php echo createHours('nutrition_nappies_time_hour', '24'); ?> <?php echo createMinutes('nutrition_nappies_time_minute', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_status['val']) > 0) { $nappies_id = 1; foreach ($nutrition_nappies_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_status$nappies_id' name='nutrition_nappies_status$nappies_id' value='" . $method . "'/></td><td style='border: 0px;width:55px'>" . $method . "</td>"; } } ?> </tr> </table> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_cream['val']) > 0) { foreach ($nutrition_nappies_cream['val'] as $method) { $cream_id = 1; echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_cream$cream_id' name='nutrition_nappies_cream$cream_id' value='" . $method . "'/></td><td style='border: 0px;width:55px'>" . $method . "</td>"; } } ?> </tr> </table> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Other</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Outside Play/Indoor Activities</label> <div class="controls"> <textarea name="nutrition_play" id="nutrition_play" type="text"><?= $viewinfo->nutrition_play ?></textarea> </div> </div> </div> </div> </div> </div> </div> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Other</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Requirements</label> <div class="controls"> <textarea name="nutrition_requirement" id="nutrition_requirement" type="text"><?= $viewinfo->nutrition_requirement ?></textarea> </div> </div> </div> </div> </div> </div> </div> </div> <h4 class="form-section"><span class="text bold">PHYSICAL REPORTS</span></h4> <div class="row-fluid"> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Physical Details </div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Child appeared to be</label> <div class="controls"> <label style="width: 225px;"> <?php // echo $physical->physical_status.'shan'; if (count($physical_status['val']) > 0) { foreach ($physical_status['val'] as $method) { $checked = 0; if ($physical->physical_status == $method) $checked = 1; echo "<td style='padding: 7px 0px;border: 0px;width:1px'> <input "; if ($checked) { echo " checked"; } echo " type='radio' id='physical_status' name='physical_status' value='" . $method . "'/></td> <td style='border: 0px;width:55px'>" . $method . "</td>"; } } ?> </label> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Essentials Required</label> <div class="controls"><label style="width: 265px;"> <?php $essentials = array(); if ($physical->physical_essentials != "") { $essentials = explode(',', $physical->physical_essentials); } ?> <input type="checkbox" name="physical_essentials[]" value="Spare Clothes" <?= (in_array('Spare Clothes', $essentials)) ? "checked" : "" ?>/>Spare Clothes <input type="checkbox" name="physical_essentials[]" value="Underwear" <?= (in_array('Underwear', $essentials)) ? "checked" : "" ?>/>Underwear <input type="checkbox" name="physical_essentials[]" value="Nappies" <?= (in_array('Nappies', $essentials)) ? "checked" : "" ?>/>Nappies </label> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Essentials Other</label> <div class="controls"> <textarea name="physical_essentials_other" id="physical_essentials_other" type="text"><?= $physical->physical_essentials_other ?></textarea> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Nappies or Toileting</label> <div class="controls"> <textarea name="physical_nappies" id="physical_nappies" type="text"><?= $physical->physical_nappies ?></textarea> </div> </div> </div> </div> </div> </div> </div> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Physical Details </div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Play and Learning</label> <div class="controls"> <textarea name="physical_learning" id="physical_learning" type="text"><?= $physical->physical_learning ?></textarea> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Any Comments</label> <div class="controls"> <textarea name="physical_meal_comments" id="physical_meal_comments" type="text"><?= $physical->physical_meal_comments ?></textarea> </div> </div> </div> </div> </div> </div> </div> </div> <h4 class="form-section"><span class="text bold">MEDICAL REPORTS</span></h4> <div class="row-fluid"> <div class="span6"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption">Medical Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Medical Health Status</label> <div class="controls"> <textarea name="medical_health_status" id="Medical"><?= $medical->medical_health_status; ?></textarea> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Medical Medication</label> <div class="controls"> <textarea name="medical_medication" id="Medical"><?= $medical->medical_medication; ?></textarea> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Medical Special Requirements</label> <div class="controls"> <textarea name="medical_special_requirements" id="Medical"><?= $medical->medical_special_requirements; ?></textarea> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Medical Notes</label> <div class="controls"> <textarea name="medical_notes" id="Medical"><?= $medical->medical_notes; ?></textarea> </div> </div> </div> </div> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="nutrition"/> <input type="hidden" name="resfunction" value="search_extra"/> <input type="hidden" name="nutrition_id" value="<?= $viewinfo->nutrition_id; ?>"/> <button type="submit" class="btn blue" onclick="addformdata('validateform')"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('student','viewinstudentsearch','search_extra','view_extra','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>