| Current Path : /var/www/html/nadineandmiabeauty/admin/ |
| Current File : /var/www/html/nadineandmiabeauty/admin/contactus.php |
<?php
require_once('autoload.php');
include_once('header.php');
date_default_timezone_set('America/New_York');
$config = config::getAppConfig();
$user->checklogin($config['loginPath']);
$db = new pdocrudhandler();
$res = $db->select($config['table']['contactus'],array("*"),"ORDER BY datetime DESC");
if($res['status'] == 'success'){
?>
<style type="text/css">
.wrap{word-wrap: break-word;}
.fixed{table-layout: fixed; width: 100%}
</style>
<div class="content " id="main-cont">
<div class="container-fluid">
<?php
require_once ('alertmsg/alerts.php');
?>
<table class="table table-hover table-striped fixed">
<thead>
<tr>
<th width="50px">SNO.</th>
<th width="100px">Name</th>
<th width="125px">Email</th>
<th width="125px">Subject</th>
<th>Message</th>
<th width="125px">Date</th>
<th width="125px">Delete</th>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i < $res['rowsAffected'] ; $i++) {
?>
<tr>
<td class="wrap" width="50px"><?php echo $i+1; ?></td>
<td class="wrap" width="100px"><?php echo $res['result'][$i]->name; ?></td>
<td class="wrap" width="125px"><?php echo $res['result'][$i]->email ?></td>
<td class="wrap" width="125px"><?php echo $res['result'][$i]->subject ?></td>
<td class="wrap"><?php echo $res['result'][$i]->message ?></td>
<td><?php echo date("F j, Y, g:i a", strtotime($res['result'][$i]->datetime));?></td>
<td>
<form method="post" action="classes/allfunctions.php?">
<input type="hidden" name="action" id="action" value="deletecontactus">
<input type="hidden" name="id" value="<?php echo $res['result'][$i]->id; ?>">
<button><i class="ti-trash"></i></button>
</form>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<?php
require_once('footer.php');
?>