?
Current Path : /home1/savoy/public_html/savoyglobal.net/koolkids/school/application/views/Settings/ |
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/koolkids/school/application/views/Settings/show_alert.php |
<div class="table_wrapper"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <th style="width: 17px;">Sl No.</th> <th><span>Stud ID</span></th> <th><span>Name </span></th> <th>D.O.B</th> <th>Age</th> <th></th> </tr> <?php $i=1; foreach($details as $row) { $date1=date("Y-m-d",strtotime(date("Y-m-d").'+'.$day.' day')); $date2=$row['dob']; $diff = abs(strtotime($date2) - strtotime($date1)); $years = floor($diff / (365*60*60*24)); $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24)); if($years>=4) { ?> <tr> <td><?=$i?> </td> <td> <?=$row['student_id']?></td> <td><?=$row['last_name']?></td> <td><?=$row['dob']?></td> <td><?=$years?></td> <td><input type="checkbox" name="check_<?=$i?>" value="<?=$row['student_id']?>"></td> </tr> <?php $i++; } } ?> </tbody> </table> <div class="row"> <div class="inputs"> <input type="hidden" name="tab_name" value="alert"/> <span class="button blue_button search_button" onclick="addformdata('validateform')"><span><span><em>Add Alert</em></span></span><input name="" type="submit" /></span> </div> </div> <input type="hidden" name="limit" id="limit" value="<?=$i?>"/> </div>