<?php require_once("blog_category.php"); ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <script type="text/javascript">

	function SearchBlogs()
	{
		//frmNews.txtAction.value = "search_news";
		frmBlogs.submit();
	}
	
	</script>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>Blogs – Asian College of Teachers</title>
    
    <style type="text/css">
    	.article-block-in {padding: 10px 20px; margin: 10px 0px; border-bottom: 1px dashed #666;}
		.news-dt {color: #dd4415; font-weight: bold; font-family: "Open sans";}
		.head_gry_sm2 {font-size:20px !important; color: #1e1e1e; text-transform: capitalize;}
		.article-block-in p {font-size: 15px !important; line-height: 20px; padding: 5px 0px 5px 0; margin: 0; text-align: justify;}
		.readmore-3 a {color: #f25526; background: url(images/read-more.png) no-repeat right top; padding: 11px 21px; width:110px; height:39px; text-indent:-5;}
		.readmore-3 a:hover {color: #f25526; background: url(images/read-more-hover.png) no-repeat right top; padding: 11px 21px; width:110px; height:39px; text-indent:-5;}
    </style>
	<link rel="stylesheet" href="css/paginate.css" type="text/css">
	<?php include('common/inner-page-script.php'); ?>
</head><!--/head-->

<body>

    
    <?php include('common/header.php');?>


    <section id="blog" class="container">
        <div class="container">
				<ul class="breadcrumbs">
                <li class="first">You Are Here</li>
      <li>»</li>
      <li><a href="../index.php">Home</a></li>
      <li>»</li>
      <li><strong>Blogs</strong></li>  
     
				</ul>
				
			</div>

        <div class="blog">
            <div class="row">
                <div class="col-md-8">
                    <div class="blog-item">
                        <img class="img-responsive img-blog" src="images/slider/slider-1.jpg" width="100%" alt="Governing Body" title="Governing Body for Asian College of Teachers" />
                            <div class="row">  
                                
                                <div class="col-xs-12 col-sm-12 blog-content">
                                   <div class="media reply_section">
                                 <div class="media-body post_reply_content">
                                <h2>BLOGS</h2>
								<form class="form" role="form" name="frmBlogs" id="frmBlogs" method="post" style="padding:0;">
								<div class="form-group">
								<div class="col-sm-10 col-xs-8">
								  <input type="text" class="form-control" id="txtBlogs" placeholder="Enter Your Search Option" style="width:100%;" name="txtBlogs" value="<?php echo $blogs; ?>">
								</div>
								  <button type="submit" class="btn btn-success btn-sm col-sm-2 col-xs-4" style="margin:5px 0 0 0;" onClick="SearchBlogs()">Search</button>
								  <input name="txtAction" id="txtAction" type="hidden">
								</div>
								</form>
								<div class="clearfix"></div>
								
                                <?php  for($i=0; $i<$no_of_blogs; $i++)  {  ?>
								<?php $blog_title_org[$i] = $blog_title[$i];
									  //$blog_title[$i] = str_replace("-","",$blog_title[$i]);
								      $blog_title[$i] = str_replace(" ","-",$blog_title[$i]);
									  $blog_title[$i] = str_replace("?","",$blog_title[$i]);
									  $blog_title[$i] = str_replace("!","",$blog_title[$i]);
									  $blog_title[$i] = str_replace("'","",$blog_title[$i]);
									  $blog_title[$i] = str_replace(":","",$blog_title[$i]);
									  $blog_title[$i] = str_replace(";","",$blog_title[$i]);
									  $blog_title[$i] = str_replace("_","",$blog_title[$i]);
									  $blog_title[$i] = str_replace("–","",$blog_title[$i]);
									  $blog_title[$i] = str_replace("/","",$blog_title[$i]); 
									  $blog_title[$i] = str_replace("&","-",$blog_title[$i]); 
									  $blog_title[$i] = str_replace("(","",$blog_title[$i]); 
									  $blog_title[$i] = str_replace(")","",$blog_title[$i]); 
									  $blog_title[$i] = str_replace(",","",$blog_title[$i]);?>
                                <div class="article-block-in">
                                 <?php /*?><p class="news-dt"><?php echo date('jS F Y',strtotime($posting_dt[$i])); ?></p><?php */?>
                                 <h2 class="head_gry_sm2"><a href="<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ","",$blog_title[$i]); ?>-blog.php"><?php echo $blog_title_org[$i]; ?></a></h2>
                                 <p class="head_gry_sm2"><?php echo date('jS F Y',strtotime($posting_dt[$i])); ?></p>
                                 <p>
                                   <?php if($blog_image_path[$i] != "")  {  ?>
                                   <?php $image_path = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);?>
                                   <img src="../admin_act/blogs/<?php echo $blog_image_path[$i];  ?>" style="float:left; margin:15px 15px 15px 0px; border:1px solid #ccc; padding:2px;" width="180" height="110">
                                   <?php  }  ?>
                                    <p><?php //echo substr($blog_desc[$i],0,500)."...";  ?>
									<?php $text = str_ireplace('<p>','<br>',$blog_desc[$i]);  $text = str_ireplace('</p>','',$text);?>
                                    <?php echo substr(strip_tags($text),0,500); ?> ... </p><br/>
                                    <p class="readmore-3 pull-right"><a href="<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ","",$blog_title[$i]); ?>-blog.php" style="color:#fff;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></p>
                                    <div class="clearfix"></div>
                                </div>
                                <?php  }//end of loop for $i  ?>
                                <!--PAGINATION START-->
        	<div class="paginate wrapper"><!-- The "wrapper" is just a comestic addition. You don't need this for the pagination to work. -->
                <ul>
                    <li><a href="page-1.php">First</a></li>
                    <li><a <?php if($page == 1) { ?>href="page-<?php echo $page; ?>.php" <?php } else { ?> href="page-<?php echo $page-1; ?>.php" <?php } ?>>Prev</a></li>
                    
                    <?php  for ($x=$s; $x<=$e; $x++) {  //echo $page; echo $i; ?>
                    <li><a <?php if($page == $x) { ?> class="active" <?php } else { ?> class="inactive" <?php } ?> href="page-<?php echo $x; ?>.php" ><?php echo $x; ?></a></li>
                    <?php  }  ?>
                    
                    <!--<li><a href="" class="more">&hellip;</a></li>-->
                    <li><a <?php if($page == $total_pages) { ?>href="page-<?php echo $total_pages; ?>.php" <?php } else { ?> href="page-<?php echo $page+1; ?>.php" <?php } ?>>Next</a></li>
                    <li><a href="page-<?php echo $total_pages; ?>.php">Last</a></li>
                </ul>
            </div>
            
            <!--PAGINATION END-->

<!--<ul class="lead">

<li>We have 25 to 30 teachers and professionals in our core team who are deeply involved in dispersing their expertise and experience</li>
<li>ACT aspires to conduct conferences for the academicians at least twice a year</li>
<li>One of the conferences will be of international level, where we might involve professionals from across the globe</li>
<li>The other conference will constitute of local teachers and academicians </li>
<li>Asian College of Teachers also plans to develop of E-Magazine where our venture can be shared globally</li>
<li>Various workshops will be of help for teachers who want to learn the new methods of teaching and are interested in upgrading their skills and sharing their own experience</li></ul>-->




                             
                            </div>
                        </div>

                                   

                                </div>
                            </div>
                        </div><!--/.blog-item-->
                        
                         
                        
                      
                     
                    </div><!--/.col-md-8-->

                <?php include('common/about-us-rightpanel-2.php');?>     

            </div><!--/.row-->

         </div><!--/.blog-->

    </section><!--/#blog-->
    
    <?php include('common/footer.php');?>


</body>
</html>