?
Current Path : /home1/savoy/public_html/savoyglobal.net/oscardraft/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/oscardraft/application/views/student/preview.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); //var_dump($details); $student = $this->mastermodel->get_single_field_value('student', 'first_name', 'student_id', $details['student_id']); $teacher = $this->mastermodel->get_single_field_value('employee', 'employee_name', 'employee_id', $details['nutrition_teacher_id']); $center_info = $this->mastermodel->getdatas('nursery'); foreach ($center_info as $row) { $nursery_name = $row['nursery_name']; $nursery_address = $row['address']; $nursery_phone = $row['contact_no']; $nursery_email = $row['email']; $nursery_website = $row['website']; $nursery_logo = $row['logo']; } $essentials = ""; if (isset($details['physical_essentials'])) { $essentials = implode(',', $details['physical_essentials']); } //var_dump($student); ?> <!--<table class="table"> <tr><th style="text-align: left;padding-left:50px;color: red;">NUTRITION REPORTS</th></tr> </table>--> <table width="100%" height="100%" style="font-size: 12px;"> <tr> <td width="50%"> <table width="100%" height="100%" style="font-size: 12px;"> <tr> <td width="50%"> <table width="95%" style="height: 100%; border: 1px solid black;border-radius: 10px;font-size: 12px;float: left;"> <tr> <td style="text-align:center;"><font size="16px"><b>Nutrition Report</b></font></td> </tr> <tr> <td> <table width="100%"> <tr> <td> <img style="width:60px;height:60px" src="<?= base_url() ?>assets/logo/<?= $nursery_logo; ?>" > </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%"> <tr> <td style="text-align:left;"> <?= $nursery_name ?>,<?= $nursery_address ?><br/>Tel:<?= $nursery_phone ?>, Email: <?= $nursery_email ?>, Website: <?= $nursery_website ?></td> </tr> </table> <hr> </td> </tr> <tr><td style="text-align:center;font-size: 25px;">Dear Parent....</td></tr> <tr><td style="height: 2px;"></td></tr> <tr> <td width="100%"> <table width="100%"> <tr> <td width="50%"> You are looked after by Mr/Miss: </td> <td width="50%" style="border-bottom:1px dotted #444;color:#333;"> <span style="color:#000;"><b><?= $teacher; ?></b></span></td> </tr> </table> </td> </tr> <?php // $nutrition_sleep = $this->mastermodel->get_data('nutrition', $details['nutrition_id'], 'nutrition_id'); ?> <tr> <td width="100%"> <table width="100%"> <tr> <td style="width: 25%">Arrived: </td> <td style="border-bottom:1px dotted #444;color:#333;width: 25%;" ><?= $details['nutrition_arrived_hour'] . ':' . $details['nutrition_arrived_minute'] ?><span style="color:#000;"></span></td> <td style="width: 25%">Departed: </td> <td style="border-bottom:1px dotted #444;color:#333;width: 25%;" ><?= $details['nutrition_departed_hour'] . ':' . $details['nutrition_departed_minute'] ?><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr><td style="height: 5px;"></td></tr> <tr> <td><h3><span style="color:#000;"><b>Sleep</b></span></h3></td> </tr> <tr> <td> <table style="width: 100%"> <?php $i = 1; while (isset($details['nutrition_sleep_from_hour' . $i])) { if ($details['nutrition_sleep_from_hour' . $i] != '' && $details['nutrition_sleep_to_hour' . $i] != '') { // for ($i = 0; $i < count($nutrition_sleep); $i+=2) { ?> <tr> <td>From:</td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_sleep_from_hour' . $i] . ':' . $details['nutrition_sleep_from_minute' . $i]; ?></td> <td>To:</td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_sleep_to_hour' . $i] . ':' . $details['nutrition_sleep_to_minute' . $i] ?></td> <?php if (isset($details['nutrition_sleep_from_hour' . $i + 1])) { ?> <td>From:</td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_sleep_from_hour' . $i + 1] . ':' . $details['nutrition_sleep_from_minute' . $i + 1]; ?></td> <td>To:</td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_sleep_to_hour' . $i + 1] . ':' . $details['nutrition_sleep_to_minute' . $i + 1]; ?></td> </tr> <?php } } $i++; } ?> </table> </td> </tr> <tr><td style="height: 5px;"></td></tr> <tr> <td><h3><span style="color:#000;"><b>Food</b></span></h3></td> </tr> <tr> <td> <table style="width: 100%"> <?php $j = 1; while (isset($details['nutrition_food' . $j])) { // $nutrition_food = $this->mastermodel->get_data('nutrition_food', $details['nutrition_id'], 'nutrition_id'); // foreach ($nutrition_food as $list) { ?> <tr> <td>Time: </td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_food_time_hour' . $j] . ':' . $details['nutrition_food_time_minute' . $j]; ?><span style="color:#000;"></span></td> <td width="5%"></td> <td>Consumption: </td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_food_status' . $j]; ?></td> </tr> <?php $j++; } ?> </table> </td> </tr> <tr> <td> <table style="width: 100%"> <tr> <td width="30%">Any dislikes?</td> <td width="70%" style="border-bottom:1px dotted #444;color:#333;" ><span style="color:#000;"><?= $details['nutrition_food_dislike'] ?></span></td> </tr> </table> </td> </tr> <tr><td style="height: 5px;"></td></tr> <tr> <td><h3><b>Bottles</b></h3></td> </tr> <tr> <td> <table style="width: 100%"> <?php $l = 1; while (isset($details['nutrition_bottle_time_hour' . $l])) { // $nutrition_bottle = $this->mastermodel->get_data('nutrition_bottle', $details['nutrition_id'], 'nutrition_id'); // foreach ($nutrition_bottle as $list) { ?> <tr> <td>Time:</td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_bottle_time_hour' . $l] . ':' . $details['nutrition_bottle_time_minute' . $l]; ?><span style="color:#000;"></span></td> <td width="5%"></td> <td>Amount:</td> <td>Time:</td><td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_bottle_amount' . $l]; ?></td> </tr> <?php $l++; } ?> </table> </td> </tr> <tr><td style="height: 5px;"></td></tr> <tr> <td><h3><span style="color:#000;"><b>Nappies</b></span></h3></td> </tr> <tr> <td> <table style="width: 100%"> <?php $k = 1; while (isset($details['nutrition_nappies_time_hour' . $k]) && isset($details['nutrition_nappies_status' . $k]) && isset($details['nutrition_nappies_cream' . $k])) { // $nutrition_nappies = $this->mastermodel->get_data('nutrition_nappies', $details['nutrition_id'], 'nutrition_id'); // foreach ($nutrition_nappies as $list) { ?> <tr> <td>Time: </td> <td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_nappies_time_hour' . $k] . ':' . $details['nutrition_nappies_time_minute' . $k]; ?></td> <td width="2%"></td> <td>Status: </td><td style="border-bottom:1px dotted #444;color:#333;" ><?= $details['nutrition_nappies_status' . $k]; ?></td> <td width="2%"></td> <td>Cream applied: </td> <td style="border-bottom:1px dotted #444;color:#333;" > <?php echo $details['nutrition_nappies_cream' . $k] ?> </td> </tr> <?php $k++; } ?> </table> </td> </tr> <tr><td style="height: 5px;"></td></tr> <tr> <td><h3><span style="color:#000;"><b>Other</b></span></h3></td> </tr> <tr> <td> <table style="width: 100%"> <tr> <td width="100%">Outside Play/Indoor Activities:</td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height: 10px" ><?= $details['nutrition_play'] ?></td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height: 10px" ></td> </tr> <!-- <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height: 10px" ></td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height: 10px" ></td> </tr>--> </table> <table style="width: 100%"> <tr> <td width="100%">Requirements:</td> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height: 10px" ><?= $details['nutrition_requirement'] ?></td> </tr> </table> </td> </tr> </table> </td> <td width="50%"> <table width="95%" style="height: 100%; border: 1px solid black;border-radius: 10px;font-size: 12px;float: left;"> <tr> <td style="text-align:center;"><font size="16px"><b>Nutrition Report</b></font></td> </tr> <tr> <td> <table width="100%"> <tr> <td> <img style="width:60px;height:60px" src="<?= base_url() ?>assets/logo/<?= $nursery_logo; ?>" > </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%"> <tr> <td style="text-align:left;"> <?= $nursery_name ?>,<?= $nursery_address ?><br/>Tel:<?= $nursery_phone ?>, Email: <?= $nursery_email ?>, Website: <?= $nursery_website ?></td> </tr> </table> <hr> </td> </tr> <!-- <tr> <td style="text-align:center;"><font size="16px"><b>Nutrition Report</b></font></td> </tr> <tr> <td> <table width="100%"> <tr> <td> <img style="width:60px;height:60px" src="<?= base_url() ?>assets/logo/<?= $nursery_logo; ?>" > </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%"> <tr> <td style="text-align:left;"> <?= $nursery_name ?>,<?= $nursery_address ?><br/>Tel:<?= $nursery_phone ?>, Email: <?= $nursery_email ?>, Website: <?= $nursery_website ?></td> </tr> </table> <hr> </td> </tr>--> <tr><td style="text-align:center;font-size: 25px;">Dear Nursery....</td></tr> <tr><td style="height: 15px;"></td></tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:8%;">Day</td> <td style="width:40%;">Mon/Tue/Wed/Thur/Fri</td> <td style="width:5%;"><b>Date</b>:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr><td style="height: 15px;"></td></tr> <tr> <td><span style="color:#000;"><b>Sleep</b></span></td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:15%;">Went to bed at:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> <td style="width:15%;">Wake up at:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr><td style="height: 15px;"></td></tr> <tr> <td><span style="color:#000;"><b>Food</b></span></td> </tr> <tr> <td><span style="color:#000;">Is your child being weaned? </span></td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:30%;">If yes state food:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 70%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:30%;">Last bottle time:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 70%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:30%;">Amount:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 70%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:30%;">Breakfast:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 70%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:30%;">Time:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 70%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table width="100%" height="100%"> <tr> <td width="50%"> <table width="95%" style="height: 100%; border: 1px solid black;border-radius: 10px;font-size: 12px;float: left;"> <tr> <td style="text-align:center;"><font size="16px"><b>Physical Report</b></font></td> </tr> <tr> <td> <table width="100%"> <tr> <td> <img style="width:60px;height:60px" src="<?= base_url() ?>assets/logo/<?= $nursery_logo; ?>" > </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%"> <tr> <td style="text-align:left;"> <?= $nursery_name ?>,<?= $nursery_address ?><br/>Tel:<?= $nursery_phone ?>, Email: <?= $nursery_email ?>, Website: <?= $nursery_website ?></td> </tr> </table> <hr> </td> </tr> <tr><td style="text-align:center;font-size: 25px;">Dear Parent....</td></tr> <tr><td style="height: 15px;"></td></tr> <tr> <td> <table style="width: 100%;font-size: 12px;"> <tr> <td style="border-bottom:1px dotted #444;color:#333;width: 25%" ><span style="color:#000;"><b><?= $student; ?></b></span></td> <td style="width:22%;">was looked after by</td> <td style="border-bottom:1px dotted #444;color:#333;width: 20%" ><span style="color:#000;"><b><?= $teacher; ?></b></span></td> <td style="width:8%;"><b>Date</b>:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"><?= $this->mastermodel->convertdatenormalformat($details['nutrition_date']) ?></span></td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px;"> <tr> <td width="35%">Your child has appeared to be:</td> <td width="65%" style="border-bottom:1px dotted #444;color:#333;" > <?php if (isset($details['physical_status'])) { ?> <span style="color:#000; float: left"><b><?= $details['physical_status']; ?></b></span> <?php } ?> </td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td><span style="color:#000;height: 20px;text-align: center"><b>Nappies or Toileting</b></span></td> </tr> <tr> <td>Any comments/changes</td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px;"> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 10px" ><span style="color:#000;"><?= $details['physical_nappies']; ?></span></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr style="height: 20px;"> <td><span style="color:#000;height: 20px;"><b>Essentials</b></span></td> </tr> <tr> <td>Could you please send some more: <b><?= $essentials; ?></b></td> </tr> <tr> <td>Other: <b><?= $details['physical_essentials_other']; ?></b></td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td><span style="color:#000;height: 20px;"><b>Play and Learning</b></span> </tr> <tr> <td>Outdoor/Indoor Activities enjoyed today</td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px;"> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 10px" ><span style="color:#000;"><?= $details['physical_learning']; ?></span></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td><span style="color:#000;height: 20px;"><b>Notes from home</b></span></td> </tr> <tr> <td> <table style="width: 100%;"> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height:10px;" ><span style="color:#000;"></span></td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height:10px;" ><span style="color:#000;"></span></td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height:10px;" ><span style="color:#000;"></span></td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height:10px;" ><span style="color:#000;"></span></td> </tr> <tr> <td width="100%" style="border-bottom:1px dotted #444;color:#333;height:10px;" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td> <table style="width: 100%;"> <tr> <td width="40%">Parent's Name: </td> <td width="30%">Date: </td> <td width="30%">Signature: </td> </tr> </table> </td> </tr> </table> </td> <td width="50%"> <table width="95%" style="height: 100%; border: 1px solid black;border-radius: 10px;font-size: 12px;float: left;"> <tr> <td style="text-align:center;"><font size="16px"><b>Medical Report</b></font></td> </tr> <tr> <td> <table width="100%"> <tr> <td> <img style="width:60px;height:60px" src="<?= base_url() ?>assets/logo/<?= $nursery_logo; ?>" > </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%"> <tr> <td style="text-align:left;"> <?= $nursery_name ?>,<?= $nursery_address ?><br/>Tel:<?= $nursery_phone ?>, Email: <?= $nursery_email ?>, Website: <?= $nursery_website ?></td> </tr> </table> <hr> <!-- <br/>--> </td> </tr> <tr><td style="text-align:center;font-size: 25px;">Dear Nursery....</td></tr> <tr><td style="height: 15px;"></td></tr> <tr> <td> <table style="width: 100%;font-size: 12px;"> <tr> <td style="width:22%;">Child Name</td> <td style="border-bottom:1px dotted #444;color:#333;width: 25%" ><span style="color:#000;"><b><?= $student; ?></b></span></td> <td></td> <td style="width:12%;"><b>Date</b>:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"><?= $this->mastermodel->convertdatenormalformat($details['nutrition_date']) ?></span></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td><span style="color:#000;"><b>Medication</b></span></td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="">Please state any medication given in the last 12hours, including teething gel,</td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:17%;">Name of the medication:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:4%;">Amount:</td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> <td style="border-bottom:1px dotted #444;color:#333;width: 15%" ><span style="color:#000;"></span></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="width:20%;">Other special requirements</td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr><td style="height: 15px;"></td></tr> <tr> <td><span style="color:#000;height: 20px;"><b>Notes from home</b></span></td> </tr> <tr> <td> <table style="width: 100%;font-size: 12px"> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> <tr> <td style="border-bottom:1px dotted #444;color:#333;height: 15px" ></td> </tr> </table> </td> </tr> <tr><td style="height: 25px;"></td></tr> <tr> <td> <table style="width: 100%;"> <tr> <td width="40%">Parent's Name: </td> <td width="30%">Date: </td> <td width="30%">Signature: </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <!--<div class="grid_12"> <div class="grid_6"> <div class="box"> <div class="header main">Nutrition Details </div> <div class="content no-padding"> <div class="section _100"> <label>Student Name</label> <div class="single_page"> <?php var_dump($_POST); ?> </div> </div> <div class="section _100"> <label>Looked After By</label> <div class="single_page"> </div> </div> <div class="section _100"> <label> Date</label> <div class="single_page"> </div> </div> </div> </div> </div>-->