hjkhghtjhjjhjhjhjhjjhjhjjhrrtrtoirh
bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg
/
home
/
u506006416
/
public_html
/
public_html
/
clients_portal
/
Upload FileeE
HOME
<?php include("lib/mail-2.php");?> <html> <head> <meta charset="utf-8"> <link rel="icon" type="image/png" sizes="16x16" href="assets/images/favicon.ico"> <title>Automation Email</title> <link href="assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.css" rel="stylesheet"> <link href="dist/css/style.min.css" rel="stylesheet"> </head> <style>.left-sidebar {width: 200px;}#main-wrapper[data-sidebartype=full] .page-wrapper {margin-left: 200px;}@media (min-width: 768px){ #main-wrapper[data-sidebartype=full] .topbar .top-navbar .navbar-header {width: 200px; }}</style> <body> <div class="preloader"> <div class="lds-ripple"> <div class="lds-pos"></div> <div class="lds-pos"></div> </div> </div> <script language="javascript"> function del(aa){ if(confirm('Do you really want to delete this?')==true){ window.location.href = window.location.href + '?action=delete&cid='+aa; return true;} else return false; } </script> <div id="main-wrapper"> <style type="text/css"> span.logo-text img { height: 50px; margin-left: 10%; } </style> <header class="topbar" data-navbarbg="skin5"> <nav class="navbar top-navbar navbar-expand-md navbar-dark"> <div class="navbar-header" data-logobg="skin5"> <a class="nav-toggler waves-effect waves-light d-block d-md-none" href="javascript:void(0)"><i class="ti-menu ti-close"></i></a> <a class="navbar-brand" href="index.html"> <span class="logo-text"> <img src="assets/images/logo.png" alt="homepage" class="light-logo" /> </span> </a> <a class="topbartoggler d-block d-md-none waves-effect waves-light" href="javascript:void(0)" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><i class="ti-more"></i></a> </div> <div class="navbar-collapse collapse" id="navbarSupportedContent" data-navbarbg="skin5"> <ul class="navbar-nav float-start me-auto"> <li class="nav-item d-none d-lg-block"> <a class="nav-link sidebartoggler waves-effect waves-light" href="javascript:void(0)" data-sidebartype="mini-sidebar"><i class="mdi mdi-menu font-24"></i></a> </li> </ul> <ul class="navbar-nav float-left mr-auto"> </ul> <ul class="navbar-nav float-right"> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle text-muted waves-effect waves-dark pro-pic" href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="assets/images/users/1.jpg" alt="user" class="rounded-circle" width="31" style="margin-top: 50%;"></a> <div class="dropdown-menu dropdown-menu-right user-dd animated"> <a class="dropdown-item" href="javascript:void(0)"><i class="fa fa-power-off m-r-5 m-l-5"></i> Logout</a> </div> </li> </ul> </div> </nav> </header> <?php include('sidebar.php'); $resultRep = $user->selectByCondition('sendreport','id',1); $report = $resultRep[0]; if (isset($_POST['updateData'])) { $data = dataReturn($_POST); $add_data = $user->updateQuery('sendreport',$data,'id',1); if($add_data){ echo "<script>"; echo "window.location.href='report.php'; </script>"; }else{ echo "<script>"; echo "alert('Something Went Wrong !'); window.location.href='report.php'; </script>"; } } ?> <div class="page-wrapper"> <div class="page-breadcrumb"> <div class="row"> <div class="col-12 d-flex no-block align-items-center"> <h4 class="page-title">Tables</h4> <div class="ml-auto text-right"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <button type="button" class="btn btn-primary margin-5 text-white" data-toggle="modal" data-target="#addnewCategory"> <i class="fa fa-plus"></i> Add New </button> </ol> </nav> </div> </div> </div> </div> <div class="container-fluid"> <div class="row"> <div class="col-md-12 col-lg-12 col-xlg-12"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table id="zero_config" class="table table-striped table-bordered"> <thead> <tr> <th>id</th> <th>Date</th> <th>Report</th> <th>Change</th> </tr> </thead> <tbody> <tr> <td>1</td> <td><?=date("d-M-Y",strtotime($report['date']))?></td> <td><?=$report['emaildata']?></td> <td><button type="button" class="btn btn-success margin-5 text-white" data-toggle="modal" data-target="#addnewCategory"> <i class="fa fa-edit"></i> Edit </button></td> </tr> </tbody> <tfoot> <tr> <th>id</th> <th>Date</th> <th>Report</th> <th>Change</th> </tr> </tfoot> </table> </div> </div> </div> </div> </div> </div> </div> </div> <?php include('footer.php');?> <div class="modal fade" id="addnewCategory" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Add New Data</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>"> <input type="hidden" name='status' value='1'> <div class="form-group row"> <label for="cono1" class="col-sm-3 text-right control-label col-form-label">Working Date</label> <div class="col-sm-9"> <input type="date" class="form-control" value="<?=date("Y-m-d")?>" name="date" required=""> </div> </div> <div class="form-group row"> <label for="cono1" class="col-sm-3 text-right control-label col-form-label">Add Report</label> <div class="col-sm-9"> <textarea class="form-control" placeholder="Report Data" name="emaildata" rows="5" id='short_desc'><?=$report['emaildata']?></textarea> </div> </div> </div> <div class="modal-footer"> <input type="submit" name="updateData" class="btn btn-success" value="Save"> </form> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </div> </div> </div> <script type="text/javascript">CKEDITOR.replace("short_desc",{height:"200px"});</script>