<!-- Developed by AbdulRahman@ http://FireflyDevelopers.cf -->
<?php
   session_start ();
   if (! (isset ( $_SESSION ['login'] ))) {	
		header ( 'location:../index.php' );
   }
		include('../config/DbFunction.php');
    $obj=new DbFunction();
   	$rs=$obj->show_reminders();
   ?> 
<script>
   window.onload=function(){
   
   history.pushState(www.sampleurl.com?a=1&b=2,null, http://www.sampleurl.com)
   
   }
</script>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <meta name="name" content="AbdulRahman@ http://FireflyDevelopers.cf">
      <meta name="author" content="AbdulRahman@ http://FireflyDevelopers.cf">
      <title>View SMS</title>
      <link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
      <link href="../bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
      <link href="../bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">
      <link href="../bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">
      <link href="../dist/css/sb-admin-2.css" rel="stylesheet">
      <link href="../bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
   </head>
   <body>
      <script>
         window.onload=function(){
         
         history.pushState(www.sampleurl.com?a=1&b=2,null, http://www.sampleurl.com)
         
         }
      </script>
      <div id="wrapper">
         <?php include('leftbar.php')?>;
         <nav>
         <div id="page-wrapper">
            <div class="row">
               <div class="col-lg-12">
                  <h4 class="page-header"> <?php echo strtoupper("welcome"." ".htmlentities($_SESSION['login']));?></h4>
               </div>
            </div>
            <div class="row">
               <div class="col-lg-12">
                  <div class="panel panel-default">
                     <div class="panel-heading">
                        View SMS
                     </div>
                     <div class="panel-body">
                        <div class="dataTable_wrapper">
                           <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                              <thead>
                                 <tr>
									<th>Banner</th>
                                    <th>Message</th>
                                    <th>Payment</th>
                                    <th>Status</th>
                                    <th>Author</th>
                                    <th>Creation Date</th>
                                    <th style="width: 10%">Action</th>
                                 </tr>
                              </thead>
                              <tbody>
                                 <?php 
                                    $sn=1;
                                    while($res=$rs->fetch_object()){?>	
                                 <tr class="odd gradeX">
                                    <td><?php echo htmlentities( strtoupper($res->Banner));?></td>
                                    <td><?php echo htmlentities( strtoupper($res->Message));?></td>
                                    <td><?php echo htmlentities(strtoupper($res->Payment));?></td>
                                    <td><?php echo htmlentities(strtoupper($res->Status));?></td>
                                    <td><?php echo htmlentities(strtoupper($res->Author));?></td>
                                    <td><?php echo htmlentities(strtoupper($res->CreationDate));?></td>
                                    <td>
													    	<div class="form-button-action">
													    		
													    		<button type="button"><a href="edit-reminders.php?id=<?php echo htmlentities(strtoupper($res->id));?>">Edit</a></td></button>
													    	</div>
													    </td>
                                 </tr>
                                 <?php $sn++;}?>   	           
                              </tbody>
                           </table>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <!-- jQuery -->
      <script src="../bower_components/jquery/dist/jquery.min.js"></script>
      <!-- Bootstrap Core JavaScript -->
      <script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
      <!-- Metis Menu Plugin JavaScript -->
      <script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>
      <!-- DataTables JavaScript -->
      <script src="../bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
      <script src="../bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
      <!-- Custom Theme JavaScript -->
      <script src="../dist/js/sb-admin-2.js"></script>
      <script>
         $(document).ready(function() {
             $('#dataTables-example').DataTable({
                     responsive: true
             });
         });
      </script>
   </body>
</html>