?
Current Path : /home1/savoy/public_html/savoyglobal.net/chess2015open/application/views/site/ |
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/chess2015open/application/views/site/participants_over.php |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <?php $this->load->view('site/header'); ?> <link rel="stylesheet" type="text/css" href="<?=base_url()?>/assets/css/tablesort.css" media="screen" /> </head> <body> <?php $this->load->view('site/menu'); ?> <div id="container"> <div class="banner"> <div class="banner_top"></div><!--banner_top end--> <div class="banner_mid_inner"><img src="<?=base_url()?>assets/images/banners/participants.jpg" alt="Participants"/></div><!--banner_mid end--> <div class="banner_bot"></div><!--banner_bot end--> </div><!--banner end--> <div class="content"> <div class="content_left_contact" style="min-height: 300px;"> <h6>Participants</h6> <br/> <div class="text_cont"> <h2>Participants over 10 years</h2> <table class="sort" style="width:100%;" cellpadding="0" cellspacing="0"> <thead> <tr> <th style="width:2%; text-align:center;">Sl No</th> <th style="width:20%">Name</th> <th style="width:10%">Gender</th> <th style="width:10%">School Name</th> <th style="width:10%">Age</th> </tr> </thead> <tbody> <?php $i=1; foreach ($viewinfo as $participants) { if($participants['status'] == 'Approved'){ $birth = new DateTime($participants['date_of_birth']); $today = new DateTime('2014-02-21'); $diff = $today->diff($birth); // $month = $diff->m; // if($month < 10) // $month = $month * 10; if($diff->y + $diff->m / 100 > 10.00){ ?> <tr> <td class="align-center"><?=$i++;?></td> <td><?=$participants['name'];?></td> <td><?=$participants['gender'];?></td> <td><?=$participants['school_name'];?></td> <td><?= $diff->y.'.'.$diff->m.' Years'; ?></td> </tr> <?php } else { } } } ?> </tbody> </table </div> </div><!--content_left end--> <?php //$this->load->view('site/right'); ?> </div><!--content end--> </div><!--container end--> <?php $this->load->view('site/footer'); ?> </body> </html>