Mini Shell

Direktori : /proc/self/root/proc/self/root/home/rizant5/public_html_old/development/admin/
Upload File :
Current File : //proc/self/root/proc/self/root/home/rizant5/public_html_old/development/admin/newsletter.php

<?php 
require_once("../config.php");
require_once("function-file.php");
require_once("function-menu.php");
cookiecheck();
if((!empty($_GET['action']))&&($_GET['action']=='delete')){
	$slet_id=$_GET['slet_id'];
	$conn->exec("delete from newsletter where slet_id='$slet_id'");
	header("location:newsletter.php");
}?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Newsletter</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php  cssfile();datatablecss();?>
    <style>.selected{color:red;}</style>
  </head>
  <body class="hold-transition skin-blue layout-top-nav">
    <!-- Site wrapper -->
    <div class="wrapper">
<?php headermenu();?>
      <!-- =============================================== -->
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- Main content -->
        <div class="col-sm-12">
        <section class="content">
          <!-- Default box -->
          <div class="box">
            <div class="box-header with-border">
              <h3 class="box-title">Newsletter</h3>
            </div>
            <div class="box-body">
              <table class="table table-bordered table-striped dataTable" id="data-table">
                <thead><tr><th>S.No</th><th>Email ID</th><th>Registered Date</th><th>Action</th></tr></thead>
                 <tbody>
                 	<?php  $data=$conn->prepare("select * from newsletter");
					$data->execute();$result=$data->fetchall();$i=1;
					foreach($result as $row){
						echo "<tr>";
						echo "<td>$i</td>";
						echo "<td>$row[slet_email]</td>";
						echo "<td>".date('d-M-Y',strtotime($row['slet_date']))."</td>";
						echo "<td>";?><a href='newsletter.php?action=delete&slet_id=<?php echo $row['slet_id'];?>' onclick="return confirm('Are you sure you want to delete?')" title='Delete EmailID' class='btn btn-danger btn-xs'>Delete</a></td><?php
						echo "</tr>";
						$i++;
					}
					?>
                 </tbody>
                 </table>
            </div><!-- /.box-body -->
          </div><!-- /.box -->
        </section><!-- /.content -->
        </div>
      </div></div><!-- /.content-wrapper -->
      <?php footer();?>
    </div><!-- ./wrapper -->
   <?php jsfile();datatablejs();?>
   <script>
$('#data-table').dataTable({
     responsive: true,
     "dom": 'T<"clear">lfrtip',
     "tableTools": {
           "sSwfPath": "../apptheme/plugins/datatables/extensions/TableTools/swf/copy_csv_xls_pdf.swf",
		   "aButtons": [
            {
                "sExtends": "copy",
                "mColumns": [0, 1, 2]
            },
   			{
                "sExtends": "xls",
                 "mColumns": [0, 1, 2]
            },
                        {
                "sExtends": "pdf",
                "mColumns": [0, 1, 2]
            },
        ]
      }
});
</script>
  </body>
</html>

Zerion Mini Shell 1.0