Mini Shell

Direktori : /home/rizant5/www/development/
Upload File :
Current File : /home/rizant5/www/development/our-courses.php

<?php require_once('function-file.php');

require_once('function-menu.php');

require_once('config.php');

require_once('function-testo-footer.php');?>

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta name="description" content="">

    <meta name="author" content="">

    <title>Our Courses | Lanka Virtual Academy</title>

	<?php commoncss();?>    

    <style>
    .course_single > a:hover{ opacity: 0.8; }
    @media (max-width: 767px){ #our_course_list h4{ text-align: center; } }
    @media (min-width: 780px){.text-padd{height:200px;}}
    .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail{ border-right: 4px dotted #ccc !important;background-image: unset !important; }
    .mCSB_dragger_bar{ background-color: #ccc !important; }
    #our_course_list .col-sm-4.col-xs-12 .text-padd{ height: 250px;overflow: auto; }
    </style>

</head><!--/head-->

<body class="our-courses video_tutorial">

    <?php headermenu();?>

    <?php video_tutorial(); ?>

   <section class="header-title">

   		<div class="container">

            <div class="row">

                <div class="col-sm-12"><h2>OUR COURSES</h2></div>

            </div>

        </div>        

   </section>

	<section id="our_course_list">

    	 <div class="container">

         <div class="row">

         <?php $data=$conn->prepare("select * from courses where course_status='0'");

		 $data->execute();$result=$data->fetchall();

		 $i=1;

		 foreach($result as $row){?>

         <div class="col-sm-4 col-xs-12 course_single" style="margin-bottom:30px;" data-href="register.php?course=<?php echo $row['course_id']; ?>">

            	<div><h4><?php echo $row['course_name']; ?></h4></div>

                <div class="box-border col-sm-12">

                    <div style="padding: 2px;"><img src="admin/img/courses/<?php echo $row['course_image']; ?>" class="img-responsive"></div>

                    <div class="overview-head"><h4>Course Overview</h4></div>

                    <div class="text-padd"><?php /*echo substr($row['course_overview'],0,400);*/echo nl2br($row['course_overview']);?><hr/>End of content.</div>

               </div>

                 <a href="register.php?course=<?php echo $row['course_id']; ?>"><div class="foot-tag">

                    <div class="col-sm-8 col-xs-12 take<?php echo $i; ?>"><h4>TAKE THIS COURSE</h4></div>

                    <div class="col-sm-4  col-xs-12 rate"><h4>LKR <?php echo $row['course_fees']; ?></h4></div>

                </div></a>

            </div>

		 <?php $i++;if($i==5){$i=1;}}?>

           </div>

         </div>

    </section>

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

  <div class="modal-dialog" role="document">

  <form method="post" action="#" id="rateform">

    <div class="modal-content">

        <div class="modal-header" style="background: #0382a9;">

        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

        <h4 class="modal-title" id="myModalLabel" align="center" style="color:#fff">Payment Message</h4>

      </div>

        <div class="modal-body" style="    height: 70px;">

          <?php if($_GET['msg']=='success'){?><div class='center' style="color: #0382a9;font-size:16px;"><b>Payment Successfully</b></div>

          <?php }else{ ?><div class='center' style="color: red;font-size:16px;"><b>Something went wrong! Please try again or contact us.</b></div><?php }?>

      </div>

     

    </div>

    </form>

  </div>

</div>

  <?php testofooter();  newssletter();  ?>

<?php footer(); commonjs();

if(!empty($_GET['msg'])){?>   

      <script type="text/javascript">

    $(document).ready(function(){

        $("#myModal").modal('show');

    });

</script>

<?php }?>

<script type="text/javascript">
  $(".text-padd").mCustomScrollbar({
    theme:"rounded-dots",
    scrollInertia:400
  });
  $('.course_single').click(function(){
    // window.location.href = $(this).data('href');
  });
</script>

</body>

</html>

Zerion Mini Shell 1.0