<!-- include the Placeholders.js file at the bottom of your page -->
<script type="text/javascript">
   $('input[type=text], textarea').placeholder();
</script>
<!-- Slider-->
<div data-ride="carousel" class="carousel slide banner" id="myCarousel">
   <!-- Indicators -->
   <ol class="carousel-indicators">
      <li class="" data-slide-to="0" data-target="#myCarousel"></li>
      <li data-slide-to="1" data-target="#myCarousel" class=""></li>
      <li data-slide-to="2" data-target="#myCarousel" class="active"></li>
   </ol>
   <div class="carousel-inner">
      <div class="item">
         <img alt="Second slide" data-src="/holder.js/900x500/auto/#666:#6a6a6a/text:Second slide" src="<?php echo base_url();?>assets/designs/images/banner2.png">
         <div class="container">
         </div>
      </div>
      <div class="item">
         <img alt="Second slide" data-src="/holder.js/900x500/auto/#666:#6a6a6a/text:Second slide" src="<?php echo base_url();?>assets/designs/images/banner.png">
         <div class="container">
         </div>
      </div>
      <div class="item active">
         <img alt="Second slide" data-src="/holder.js/900x500/auto/#666:#6a6a6a/text:Second slide" src="<?php echo base_url();?>assets/designs/images/banner1.png">
         <div class="container">
         </div>
      </div>
   </div>
   <?php //$this->load->library("session");   
      if( !$loginuserID )   
      {
      ?>
   <div class="carousel-caption width-form f-h " id="login-box">
   
      <div class="form-box" id="login-box">
    <div class="header"><?=$this->lang->line('signin')?></div>
    <form method="post">

        <!-- style="margin-top:40px;" -->

        <div class="body white-bg">
        <?php
            if($form_validation == "No"){
            } else {
                if(inicompute($form_validation)) {
                    echo "<div class=\"alert alert-danger alert-dismissable\">
                        <i class=\"fa fa-ban\"></i>
                        <button aria-hidden=\"true\" data-dismiss=\"alert\" class=\"close\" type=\"button\">×</button>
                        $form_validation
                    </div>";
                }
            }
            if($this->session->flashdata('reset_success')) {
                $message = $this->session->flashdata('reset_success');
                echo "<div class=\"alert alert-success alert-dismissable\">
                    <i class=\"fa fa-ban\"></i>
                    <button aria-hidden=\"true\" data-dismiss=\"alert\" class=\"close\" type=\"button\">×</button>
                    $message
                </div>";
            }
        ?>
            <div class="form-group">
                <input class="form-control" placeholder="Username" name="username" type="text" autofocus value="<?=set_value('username')?>">
            </div>
            <div class="form-group">
                <input class="form-control" placeholder="Password" name="password" type="password">
            </div>


            <div class="checkbox">
                <label>
                    <input type="checkbox" value="Remember Me" name="remember">
                    <span> &nbsp; Remember Me</span>
                </label>
                <span class="pull-right">
                    <label>
                        <a href="<?=base_url('reset/index')?>"> Forgot Password?</a>
                    </label>
                </span>
            </div>

            <?php if(isset($siteinfos->captcha_status) && $siteinfos->captcha_status == 0) { ?>
                <div class="form-group">
                    <?php echo $recaptcha['widget']; echo $recaptcha['script']; ?>
                </div>
            <?php } ?>
            
            <input type="submit" class="btn btn-lg btn-success btn-block" value="SIGN IN" />
        </div>
    </form>
</div>

   </div>
     
       
   <?php } ?>
   <a data-slide="prev" href="#myCarousel" class="left carousel-control"><span class="glyphicon glyphicon-chevron-left"></span></a>
   <a data-slide="next" href="#myCarousel" class="right carousel-control"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
<!-- Slider-->
<!-- Middle Content-->
<div class="container-fluid content-bg">
   <div class="spacer"></div>
   <div class="container">
      <div class="col-lg-4 padding test-moni">
         <h2 class="test-hed">Testimonials</h2>
         <div class="carousel slide" id="testimonials-rotate">
            <ol class="carousel-indicators">
               <li class="active" data-slide-to="0" data-target="#testimonials-rotate"></li>
               <li data-slide-to="1" data-target="#testimonials-rotate"></li>
               <li data-slide-to="2" data-target="#testimonials-rotate"></li>
            </ol>
            <!--div class="carousel-inner">
               <?php if(count($testimonials)>0) { 
                  $i = 1;
                  foreach($testimonials as $tm) {
                  if($tm->author_photo != '')
                    $author_image = $tm->author_photo;
                  else
                    $author_image = 'blankuser.jpg';
                ?>
               <div class="item <?php if($i++ == 1) echo 'active';?>">
                  <div class="col-md-4"><img alt="" src="<?php echo base_url();?>assets/uploads/testimony_images/images(98x98)/<?php echo $author_image;?>" class="img-circle img-responsive"  /></div>
                  <div class="testimonials col-md-8">
                     <p class="test-con">
                        <i class="fa fa-quote-left"></i>
                        <?php echo $tm->description;?> <i class="fa fa-quote-right"></i><br>
                        - <small><?php echo $tm->author;?></small>
                     </p>
                  </div>
                  <div class="clearfix"></div>
               </div>
               <?php } 
         } 
         else echo "No Testimonials Written.";
         ?>
            </div -->
         </div>
         <div class="pull-right pull">
            <a class="left" href="#testimonials-rotate" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
            <a class="right" href="#testimonials-rotate" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
            <div class="clearfix"></div>
         </div>
      </div>
      <div class="col-lg-4 test-moni padding">
         <h2 class="test-hed">Notifications</h2>
         <marquee direction="up" scrollamount="2" scrolldelay="2" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 2, 0);" height="218">
            <div class="notif">
               <ul>
                  <?php if(count($notifications)>0) {
                     foreach($notifications as $n) {
                  ?>
                  <li>
                     <a href="<?php echo base_url();?>welcome/notifications/<?php echo $n->nid;?>/<?php echo $n->title;?>">
                     <?php echo $n->title;?>. <br/>
                     Post Date: <?php echo date('d-m-Y',strtotime($n->post_date));?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Last Date: <?php echo date('d-m-Y',strtotime($n->last_date));?>
                     </a>
                  </li>
                  <?php }
          } 
          else echo "coming soon.";
          ?>
               </ul>
            </div>
         </marquee>
      </div>
      <div class="col-lg-4 padding test-moni">
         <h2 class="test-hed">Latest Exams</h2>
         <marquee direction="up" scrollamount="2" scrolldelay="2" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 2, 0);" height="218">
            <div class="notif">
               <ul>
                  <?php if (count($latest_quizzes)>0) {
                     foreach($latest_quizzes as $lq) {
            $style = '';
            if ($loginuserID) {
              $style = 'cursor:default;text-decoration:none;';
              $href = "";
            }       
            else {
              $href = 'href="'.base_url().'user/instructions/'.$lq->quizid.'"';
            }
                    ?>
                  <li>
                     <a <?php echo $href;?> style="<?php echo $style;?>">
                     Quiz of <b><?php echo $lq->name;?></b> has been added on <?php echo date('d-m-Y',strtotime($lq->startdate));?>. And will be closed on <?php echo date('d-m-Y',strtotime($lq->enddate));?>.<br/>
                     Quiz Duration (Minutes): <?php echo $lq->deauration;?>
                     </a>
                  </li>
                  <?php } 
          } 
          else echo "coming soon.";
          ?>
               </ul>
            </div>
         </marquee>
      </div>
   </div>
   <div class="spacer"></div>
</div>


</div>
 


 
 
