?
Current Path : /home1/savoy/public_html/savoyglobal.net/futuredraft/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/public_html/savoyglobal.net/futuredraft/application/views/student/add_extra.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></script> <script type="text/javascript"> $(document).ready(function() { suggestStudentInfo('#student'); suggestStudentPhysicalInfo('#physical_student'); }); $(".addRow_nutrition").btnAddRow({inputBoxAutoNumber: true}, function(row) { $(row).find('.radio-button').remove(); $(row).find('input[type=radio]').removeClass(); $(row).find('input:radio').checkbox({ cls : 'radio-button', empty :'<?= base_url(); ?>/assets/img/sprites/forms/checkboxes/empty.png' }); }); $(".addRow_nappies").btnAddRow({inputBoxAutoNumber: true}, function(row) { $(row).find('.radio-button').remove(); $(row).find('input[type=radio]').removeClass(); $(row).find('input:radio').checkbox({ cls : 'radio-button', empty :'<?= base_url(); ?>/assets/img/sprites/forms/checkboxes/empty.png' }); }); $(".addRow_food").btnAddRow({inputBoxAutoNumber: true}, function(row) { $(row).find('.radio-button').remove(); $(row).find('input[type=radio]').removeClass(); $(row).find('input:radio').checkbox({ cls : 'radio-button', empty :'<?= base_url(); ?>/assets/img/sprites/forms/checkboxes/empty.png' }); }); $(".addRow_bottle").btnAddRow({inputBoxAutoNumber: true}, function(row) { }); $(".addRow_sleep").btnAddRow({inputBoxAutoNumber: true}, function(row) { }); $(".delRow_sleep").btnDelRow(); $(".delRow_sleep").on('click',function(e){ e.preventDefault(); if($(this).parents('tr').index() > 2) $(this).parents('tr').remove(); // else // alert('2 Row Mandate'); }) $(".delRow_food").btnDelRow(); $(".delRow_food").on('click',function(e){ e.preventDefault(); if($(this).parents('tr').index() > 4) $(this).parents('tr').remove(); // else // alert('4 Row Mandate'); }) $(".delRow_bottle").on('click',function(e){ e.preventDefault(); if($(this).parents('tr').index() > 4) $(this).parents('tr').remove(); // else // alert('4 Row Mandate'); }); $(".delRow_bottle").btnDelRow(); function suggestStudentInfo(div) { $(div).autocomplete("<?= site_url() ?>/master/autosuggeststudent/", { width: 250, selectFirst: false }); } function suggestStudentPhysicalInfo(div) { $(div).autocomplete("<?= site_url() ?>/master/autosuggeststudent/", { width: 250, selectFirst: false }); } </script> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_extra','view_extra','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4> CREATING DAILY REPORTS</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('student/addinstudent/insert_extra/view_extra/1', $attributes); $teacher = $this->mastermodel->get_data('employee', '1', 'employee_teacher'); //$nutrition_sleep_type = $this->mastermodel->getenumvalues('nutrition_sleep', 'nutrition_sleep_type'); //$nutrition_food_type = $this->mastermodel->getenumvalues('nutrition_food', 'nutrition_food_type'); $nutrition_food_status = $this->mastermodel->getenumvalues('nutrition_food', 'nutrition_food_status'); $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'); ?> <table class="table"> <tr><th style="text-align: left;padding-left:50px;color: red;">NUTRITION REPORTS</th></tr> </table> <div class="grid_12" > <div class="grid_6"> <div class="box"> <div class="header main">Child Details</div> <div class="content no-padding"> <div class="section _100"> <label>Student Name</label> <div> <input type="text" name="student" id="student" value=''placeholder="Select Student" class="required reset" /> <input type="hidden" name="student_id" id="student_id" class="reset" /> </div> </div> <div class="section _100" > <label>Looked After By</label> <div > <select name="nutrition_teacher_id" id="nutrition_teacher_id" class="chzn-done" > <option value=''>Select</option> <?php foreach ($teacher as $list) { ?> <option value="<?= $list['employee_id'] ?>"><?= $list['employee_name'] ?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label> Date</label> <div> <input name="nutrition_date" id="nutrition_date" type="text" value="<?= date("d-m-Y"); ?>" class="calfocus required" /> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Arr/Dep Details</div> <div class="content no-padding"> <div class="section _100"> <label>Child Arrived At</label> <div> <?php echo createHours('nutrition_arrived_hour', '09'); ?> <?php echo createMinutes('nutrition_arrived_minute', '00'); ?> </div> </div> <div class="section _100"> <label>Child Departed At</label> <div> <?php echo createHours('nutrition_departed_hour', '09'); ?> <?php echo createMinutes('nutrition_departed_minute', '00'); ?> <!-- <input name="nutrition_departed" id="nutrition_departed" type="text" class="required" />--> </div> </div> </div> </div> </div> </div> <div class="grid_12" > <div class="grid_6" > <div class="box"> <div class="content no-padding"> <div class="header main">Sleep</div> <table class="table" id="student_tb"> <tr> <th> From</th> <th> To</th> <th><input type="button" id="button2" value="Add More" class="addRow_sleep" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <?php echo createHours('nutrition_sleep_from_hour1', '24'); ?> <?php echo createMinutes('nutrition_sleep_from_minute1', '61'); ?> </td> <td> <?php echo createHours('nutrition_sleep_to_hour1', '24'); ?> <?php echo createMinutes('nutrition_sleep_to_minute1', '61'); ?> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow_food clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_sleep_from_hour2', '24'); ?> <?php echo createMinutes('nutrition_sleep_from_minute2', '61'); ?> </td> <td> <?php echo createHours('nutrition_sleep_to_hour2', '24'); ?> <?php echo createMinutes('nutrition_sleep_to_minute2', '61'); ?> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow_sleep clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_6" > <div class="box"> <div class="content no-padding"> <div class="header main">Food</div> <table class="table" id="student_tb"> <tr> <th>Time</th> <th>Consumption</th> <th><input type="button" id="button2" value="Add More" class="addRow_food" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <?php echo createHours('nutrition_food_time_hour1', '24'); ?> <?php echo createMinutes('nutrition_food_time_minute1', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { foreach ($nutrition_food_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_food_status1' name='nutrition_food_status1' value='" . $method . "'/></td><td style='border: 0px;width:55px'>" . $method . "</td>"; ?> <?php } } ?> </tr> </table> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow_food clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_food_time_hour2', '24'); ?> <?php echo createMinutes('nutrition_food_time_minute2', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { foreach ($nutrition_food_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_food_status2' name='nutrition_food_status2' 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/images/icons/close.png" alt="Delete Row" class="delRow_food clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_food_time_hour3', '24'); ?> <?php echo createMinutes('nutrition_food_time_minute3', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { foreach ($nutrition_food_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_food_status3' name='nutrition_food_status3' 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/images/icons/close.png" alt="Delete Row" class="delRow_food clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_food_time_hour4', '24'); ?> <?php echo createMinutes('nutrition_food_time_minute4', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { foreach ($nutrition_food_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_food_status4' name='nutrition_food_status4' 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/images/icons/close.png" alt="Delete Row" class="delRow_food clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_food_time_hour5', '24'); ?> <?php echo createMinutes('nutrition_food_time_minute5', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_food_status['val']) > 0) { foreach ($nutrition_food_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_food_status5' name='nutrition_food_status5' 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/images/icons/close.png" alt="Delete Row" class="delRow_food clickimage" title="Delete Row"/> </td> </tr> </table> <div class="section _100"> <label>Any Dislikes?</label> <div> <input name="nutrition_food_dislike" id="nutrition_food_dislike" type="text"/> </div> </div> </div> </div> </div> </div> <div class="grid_12" > <div class="grid_6" > <div class="box"> <div class="content no-padding"> <div class="header main"> Bottles</div> <table class="table" id="student_tb"> <tr> <th> Time</th> <th> Amount</th> <th><input type="button" id="button2" value="Add More" class="addRow_bottle" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <?php echo createHours('nutrition_bottle_time_hour1', '24'); ?> <?php echo createMinutes('nutrition_bottle_time_minute1', '61'); ?> </td> <td> <input type="text" name="nutrition_bottle_amount1" id="nutrition_bottle_amount1" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow_bottle clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_bottle_time_hour2', '24'); ?> <?php echo createMinutes('nutrition_bottle_time_minute2', '61'); ?> </td> <td> <input type="text" name="nutrition_bottle_amount2" id="nutrition_bottle_amount2" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow_bottle clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div </div> </div> <div class="grid_6" > <div class="box"> <div class="content no-padding"> <div class="header main"> Nappies</div> <table class="table" id="student_tb"> <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_nappies" title="Add Row" style="width:55px;"/></th> </tr> <tr> <td> <?php echo createHours('nutrition_nappies_time_hour1', '24'); ?> <?php echo createMinutes('nutrition_nappies_time_minute1', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_status['val']) > 0) { foreach ($nutrition_nappies_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_status1' name='nutrition_nappies_status1' 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) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_cream1' name='nutrition_nappies_cream1' 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/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_nappies_time_hour2', '24'); ?> <?php echo createMinutes('nutrition_nappies_time_minute2', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_status['val']) > 0) { foreach ($nutrition_nappies_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_status2' name='nutrition_nappies_status2' 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) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_cream2' name='nutrition_nappies_cream2' 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/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_nappies_time_hour3', '24'); ?> <?php echo createMinutes('nutrition_nappies_time_minute3', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_status['val']) > 0) { foreach ($nutrition_nappies_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_status3' name='nutrition_nappies_status3' 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) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_cream3' name='nutrition_nappies_cream3' 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/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <tr> <td> <?php echo createHours('nutrition_nappies_time_hour4', '24'); ?> <?php echo createMinutes('nutrition_nappies_time_minute4', '61'); ?> </td> <td> <table> <tr> <?php if (count($nutrition_nappies_status['val']) > 0) { foreach ($nutrition_nappies_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_status4' name='nutrition_nappies_status4' 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) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='nutrition_nappies_cream4' name='nutrition_nappies_cream4' 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/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <div class="grid_12"> <div class="grid_6"> <div class="box"> <div class="header main">Other</div> <div class="content no-padding"> <div class="section _100"> <label>Outside Play/Indoor Activities</label> <div> <textarea name="nutrition_play" id="nutrition_play"></textarea> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Other</div> <div class="content no-padding"> <div class="section _100"> <label> Requirements</label> <div> <textarea name="nutrition_requirement" id="nutrition_requirement"></textarea> </div> </div> </div> </div> </div> </div> <!--<div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <button class="clickimage">Preview</button> </div> <div class="actions-right"> <button class="clickimage">Nutrition Report</button> </div> </div> </div> </div>--> <table class="table"> <tr><th style="text-align: left;padding-left:50px;padding-top:30px;color: red;">PHYSICAL REPORTS</th></tr> </table> <div class="grid_6"> <div class="box"> <div class="header main">Physical Details </div> <div class="content no-padding"> <div class="section _100"> <label>Child appeared to be</label> <div> <?php if (count($physical_status['val']) > 0) { foreach ($physical_status['val'] as $method) { echo "<td style='padding: 7px 0px;border: 0px;width:1px'><input type='radio' id='physical_status' name='physical_status' value='" . $method . "'/></td><td style='border: 0px;width:55px'>" . $method . "</td>"; } } ?> </div> </div> <div class="section _100"> <label>Essentials Required</label> <div> <input type="checkbox" name="physical_essentials[]" value="Spare Clothes"/>Spare Clothes <input type="checkbox" name="physical_essentials[]" value="Underwear"/>Underwear <input type="checkbox" name="physical_essentials[]" value="Nappies"/>Nappies </div> </div> <div class="section _100"> <label>Essentials Other</label> <div> <textarea name="physical_essentials_other" id="physical_essentials_other"></textarea> </div> </div> <div class="section _100"> <label>Nappies or Toileting</label> <div> <textarea name="physical_nappies" id="physical_nappies"></textarea> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Physical Details </div> <div class="content no-padding"> <div class="section _100"> <label> Play and Learning</label> <div> <textarea name="physical_learning" id="physical_learning"></textarea> </div> </div> <div class="section _100"> <label>Any Comments</label> <div> <textarea name="physical_meal_comments" id="physical_meal_comments"></textarea> </div> </div> </div> </div> </div> <table class="table"> <tr><th style="text-align: left;padding-left:50px;padding-top:30px;color: red;">MEDICAL REPORTS</th></tr> </table> <div class="grid_6"> <div class="box"> <div class="header main">Medical Details </div> <div class="content no-padding"> <div class="section _100"> <label>Health Status</label> <div> <textarea name="medical_health_status" id="Medical"></textarea> </div> </div> <div class="section _100"> <label>Medication</label> <div> <textarea name="medical_medication" id="Medical"></textarea> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Medical Details </div> <div class="content no-padding"> <div class="section _100"> <label>Special Requirements</label> <div> <textarea name="medical_special_requirements" id="Medical"></textarea> </div> </div> <div class="section _100"> <label>Notes</label> <div> <textarea name="medical_notes" id="Medical"></textarea> </div> </div> </div> </div> </div> <!--<div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <button class="clickimage">Preview</button> </div> <div class="actions-right"> <button class="clickimage report">Physical Report</button> </div> </div> </div> </div>--> <!--<table class="table"> <tr><th style="text-align: left;padding-left:50px;padding-top:30px;color: red;">MEDICAL REPORTS</th></tr> </table> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <button class="clickimage">Preview</button> </div> <div class="actions-right"> <button class="clickimage">Medical Report</button> </div> </div> </div> </div>--> <br/><br/> <div class="grid_12" > <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset" /> <input type="hidden" name="tab_name" value="nutrition"/> <input type="hidden" name="resfunction" value="search_extra"/> </div> <div class="actions-right"> <button type="submit" id="submitt" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close(); ?> <script> $(document).ready(function(){ $('.report').live("click",function(e){ e.preventDefault(); var postdata = $('.preview_from').serialize(); var url = "<?= site_url() ?>/report/" + $(this).data('function'); $.ajax({ url : url, data : postdata, type : "post", success : function(data){ alert(data); } }); }); }); </script>