EVOLUTION-NINJA
Edit File: course_home.php
<?php //print_r($con_upcoming); //die(); echo view('includes/flow-header',$conference); ?> <!-- <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/conference.css'); ?>"> --> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;1,400&family=Montserrat&family=Ms+Madi&family=My+Soul&family=Open+Sans&family=Poppins:wght@200;400&family=Roboto:ital,wght@0,300;0,500;1,300&family=Updock&display=swap" rel="stylesheet"> <section class="spec-main"> <div class="row"> <div class="col-sm-3"> <div class="spec-left"> <ul> <li><a href="">Online Exam Edge</a></li> </ul> <!-- <div class="go-back"> <a href="<?php echo base_url('Mels-Cme');?>"><i class="fa fa-arrow-left" aria-hidden="true"></i>Go Back</a> </div> --> </div> </div> <div class="col-sm-9"> <section class="exam-prep"> <div class="conf-head"> <div class="row" id="conf-bt"> <div class="col-sm-5"> <div class="conf-left-text"> <h5>EDIAC II</h5> </div> </div> <div class="col-sm-7" id="go-back-new"> <a href="<?php echo base_url('Course-list-gas');?>"><i class="fa fa-arrow-left" aria-hidden="true"></i>Back</a> </div> </div><!-----> <div class="row pt-4" style="display:none;"> <div class="col-sm-6"> <div class="conf-cont"> <p>Medusys E Learning system (MeLS) is, essentially, a very helpful platform designed to manage and collaborate online learning (instructor-led training, virtual instructor-led training , and more) in the field of medicine.</p> <p>It’s a platform that both learners and administrators can log into to either upload and distribute courses and learning materials, or take courses.</p> </div> </div> <div class="col-sm-6"> <img src="<?php echo base_url('public/assets/images/exam-banner.jpg');?>" class="img-fluid d-block mx-auto"> </div> </div><!-----> <div class="conf-table"> <h3>Upcoming / Current Courses</h3> <?php foreach($con_upcoming as $key=>$val){ $today = strtotime("today midnight"); $con_time = strtotime($val['date_from']); if($con_time >= $today){ ?> <div class="row new-link"> <div class="col-sm-7"> <a href="<?php echo base_url('/Course-Details-gas?id='.$val['conference_id']); ?>"><?php echo $val['title'];?></a> </div> <div class="col-sm-5"> <?php if($val['date_from'] == $val['date_to']){ ?> <p><?php echo date('F j, Y',strtotime($val['date_from'])); ?></p> <?php } else{ ?> <p><?php echo date('F j, Y',strtotime($val['date_from'])). ' To '.date('F j, Y',strtotime($val['date_to']));?></p> <?php } ?> </div> </div><!--row---> <?php } } ?> <div class="row" id="empty-row"></div> </div><!--conf-table--> <!----------------------------------------------------------------> <div class="conf-table"> <h3>Previous Courses</h3> <?php foreach($con_upcoming as $key=>$val){ $today = strtotime("today midnight"); $con_time = strtotime($val['date_from']); if($con_time < $today){ ?> <div class="row new-link"> <div class="col-sm-7" id="course_link"> <a href="<?php echo base_url('/Course-Details-gas?id='.$val['conference_id']); ?>"><?php echo $val['title'];?></a> </div> <div class="col-sm-5"> <?php if($val['date_from'] == $val['date_to']){ ?> <p><?php echo date('F j, Y',strtotime($val['date_from'])); ?></p> <?php } else{ ?> <p><?php echo date('F j, Y',strtotime($val['date_from'])). ' To '.date('F j, Y',strtotime($val['date_to']));?></p> <?php } ?> </div> </div><!--row---> <?php } } ?> <div class="row" id="empty-row"></div> </div><!--conf-table--> <!----------------------------------------------------------------> <div class="conf-table"> <h3>Events Calendar</h3> </div><!--conf-table--> </div> </section> </div> </div> </section> <?php echo view('includes/flow-footer'); ?> <style type="text/css"> .new-link a{ color: red; font-weight: 600; } @media only screen and (min-width:320px) and (max-width:640px){ .conference-left{ width: auto; } .conf-head{ padding-left: 5%; } } </style>