Mini Shell

Direktori : /home/rizant5/public_html/student/
Upload File :
Current File : /home/rizant5/public_html/student/student-index.txt

           	<div class="col-sm-6"><div class="">

               <!--Start News-->

                 <h5>NEWS</h5>

        <div id="tcb-testimonial-carousel" class="carousel slide" data-ride="carousel">

            <!-- Wrapper for slides -->

            <div class="carousel-inner">

               <?php $newsdata=$conn->prepare("select * from news");

			$newsdata->execute();$newsres=$newsdata->fetchall();$i=1;

			foreach($newsres as $newsrow){?>

                <div class="item <?php if($i==1){echo"active";}?>">

                    <div class="row">

                        <div class="col-xs-12">

                           <figure class="clearfix">

                               <div class="col-md-3 col-sm-2 col-xs-12 no-padd"><a href="../news-details.php?newsid=<?php echo $newsrow['news_id'];?>" target="_blank"><img class="img-responsive media-object" src="../admin/img/news/<?php echo $newsrow['news_img'];?>"></a> </div>

                               <div class="col-md-9 col-sm-10 col-xs-12">

                                    <figcaption class="caption">

                                        <h5 class="no_padding_left"><a href="../news-details.php?newsid=<?php echo $newsrow['news_id'];?>" target="_blank"><?php echo $newsrow['news_title'];?></a></h5>

                                        <p><?php echo substr($newsrow['news_desc'],0,150)."...";?></p>

                                        <p><?php echo date('d M Y',strtotime($newsrow['news_date']));?> <a href="../news-details.php?newsid=<?php echo $newsrow['news_id'];?>" class="btn btn-black btn-default btn-xs" target="_blank">More</a></p>

                                    </figcaption>

                               </div>

                           </figure>

                        </div>

                    </div>

                </div>

			<?php $i++;}?>

            </div>

            </div>

            <hr>

            </div><!--Close News-->

            

            <!-- Controls -->

   </div>

               

                <div class="col-sm-6 ">

                 <div class=""><!--Start Blog-->

                 <h5>BLOG</h5>

        <div id="tcb-testimonial-carousel" class="carousel slide" data-ride="carousel">

            <!-- Wrapper for slides -->

            <div class="carousel-inner">

                <?php $blogdata=$conn->prepare("select * from blogs");

			$blogdata->execute();$blogres=$blogdata->fetchall();$i=1;

			foreach($blogres as $blogrow){?>

                <div class="item <?php if($i==1){echo"active";}?>">

                    <div class="row">

                        <div class="col-xs-12">

                           <figure class="clearfix">

                               <div class="col-md-3 col-sm-2 col-xs-12 no-padd"><a href="../blog-details.php?blogid=<?php echo $blogrow['blog_id'];?>" target="_blank"><img class="img-responsive media-object" src="../admin/img/blogs/<?php echo $blogrow['blog_img'];?>" /></a> </div>

                               <div class="col-md-9 col-sm-10 col-xs-12">

                                    <figcaption class="caption">

                                        <h5 class="no_padding_left"><a href="../blog-details.php?blogid=<?php echo $blogrow['blog_id'];?>" target="_blank"><?php echo $blogrow['blog_title'];?></a></h5>

                                        <p><?php echo substr($blogrow['blog_desc'],0,150)."...";?></p>

                                        <p><?php echo date('d M Y',strtotime($blogrow['blog_date']));?> <a href="../blog-details.php?blogid=<?php echo $blogrow['blog_id'];?>" target="_blank" class="btn btn-black btn-default btn-xs">More</a></p>

                                    </figcaption>

                               </div>

                           </figure>

                        </div>

                    </div>

                </div>

			<?php $i++;}?>

            </div>

            </div><!--Close Blog-->

Zerion Mini Shell 1.0