<?php
	require_once "parse_url.php";
	$news=returnUrl("http://linkskool.com/portal/process_news.php?dkb=easse");
?>
<!DOCTYPE html >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Emmanuel Anglican Secondary School</title>

	<link rel="shortcut icon" type="image/x-icon" href="images/school_logo.png" />
	<link href="my_styles/index.css" rel="stylesheet">
    <link href="my_styles/my_responsive.css" rel="stylesheet">
    <link href="Metro-UI-CSS-master/build/css/metro-icons.min.css" rel="stylesheet">
	<link href="Metro-UI-CSS-master/fonts/metro.ttf" rel="stylesheet">
    <link href="Metro-UI-CSS-master/build/css/metro.min.css" rel="stylesheet">
    <link href="Metro-UI-CSS-master/build/css/metro-responsive.min.css" rel="stylesheet">
   <!-- <link href="Metro-UI-CSS-master/docs/css/metro-schemes.css" rel="stylesheet">-->
    <script src="Metro-UI-CSS-master/build/js/jquery.js"></script> 
    <script src="Metro-UI-CSS-master/build/js/metro.min.js"></script>
    <script src="my_scripts/ajax.js"></script>
    <script src="my_scripts/script.js"></script>
    
    

<!--<link href="Metro-UI-CSS-master/build/css/metro.css" rel="stylesheet">

<script type="text/javascript" src="my_scripts/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="Metro-UI-CSS-master/build/js/metro.js"></script>-->
</head>

<body>
   
   <?php require_once('nav.php');?>
    <!--contents beside the navigation side bar-->
    <div class="from_hd">
        <div class="grid app-bar bg-darkCobalt myhead fixed-top">
            <div class="my_crump">
                <img id="mym" src="images/my_crump.png">
            </div>
            <div class="logo-afa"><div class="afa1"><img class="mysize place-right" src="images/school_logo.png"></div><div class="afa2">Emmanuel Anglican Secondary School</div>
            </div>
        </div>
        <!--Load other pages here-->
        <div data-role="dialog" data-hide="5000" data-close-button="true" class="padding20 dialog redBg" id="dialog2">
                	<p >
                	</p>
                </div>
                
                
        
            <div id="mycont" class="posi shift-l mycont ">
                <div class="cova bg-white">
                    <div class="bg-black">
                        <div class="bg10"><h2 class="align-center myrotate360 txtshad">News</h2></div>
                    </div>
                    
                    
                    
                    <?php foreach($news as $k => $v) { ?>
                    <div class="newz theme_color2 fg-grayLighter no-margin line_ht1 li_W padding40">
                    	<h2 class="hrW"><?php echo $v->subject ; ?></h2>
                        <div class="padTop2"><?php echo $v->content ; ?> ...</div>
                        <a href="news_read.php?id=<?php echo $v->id ; ?>"><span class="mif-chevron-right"></span><span class="mif-chevron-right"></span>Read More</a>
                        <br><p><?php echo $v->post_time ; ?></p>
                        
                    </div>
                   
             		<?php } ?>
                    
                    
                </div>
                
                
                <?php require_once('footer.php') ?>
            </div>
        
	</div>
</body>
</html>