ok

Mini Shell

Direktori : /home2/globaltriumphfou/public_html/admin_panel/
Upload File :
Current File : /home2/globaltriumphfou/public_html/admin_panel/contactus_enquiry.php

<?php
include "dbconn.php";
include "checklogin.php";
include "function.php";
include "ps_pagination.php";
$limit=100;
if(isset($_POST['searchbut']))
	{
	$search=$_POST['search'];
	$sqlt="select * from contact where name like '%$search%' or mno =  '$search' or email like '%$search%' order by id desc";
	}else
	$sqlt="select * from contact order by id desc";
	$query=mysqli_query($connection,$sqlt);
	$num=mysqli_num_rows($query);
	if($num>0)
	{
		$pager = new PS_Pagination($connection, $sqlt,$limit, 5,'');
		$pager->setDebug(true);
		$dquery = $pager->paginate();
	}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="description" content="Admin">
    <!-- Twitter meta-->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:site" content="@pankaj">
    <meta property="twitter:creator" content="@pankaj">
    <!-- Open Graph Meta-->
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="Aaram Chairs">
    <meta property="og:title" content="Aaram Chairs">
    <meta property="og:description" content="Aaram Chairs Admin">
    <title>Conatact-Data</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Main CSS-->
    <link rel="stylesheet" type="text/css" href="css/main.css">
    <!-- Font-icon css-->
    <link rel="stylesheet" type="text/css" href="fontawesome/font-awesome.min.css">
	<script type="text/javascript" src="js/sortable.js"></script>
	<style>
	.table th, .table td {
    padding: 3px;
    vertical-align: top;
}
.sortable th a{
	color:#000;
	}
    a.btn{
    color:white;
}
	</style>
  </head>
  <body class="app sidebar-mini rtl">
    <!-- Navbar-->
  <?php include "header.php"; ?>
    <!-- Sidebar menu-->
    <div class="app-sidebar__overlay" data-toggle="sidebar"></div>
    <?php 
	$currentPage="contactus_enquiry";
	include "aside.php"; ?>
    <main class="app-content">
      <div class="app-title">
        <div>
          <h1><i class="fa fa-user"></i>&nbsp;&nbsp;Contact Us Enquiry Data</h1>
        </div>
        <ul class="app-breadcrumb breadcrumb">
          <li class="breadcrumb-item"></li>
        </ul>
      </div>
      <div class="row">
        <div class="col-md-12">
          <div class="tile">
            <div class="tile-body table-responsive">
			<!---->
			<?php if($num<=0)
			{
				echo "<h5> Sorry !!! No Data Exists</h5>";
			}
			else
			{
			?>
		<table class="table">
		<thead>
			<tr>
				<th>
				
				<form id="fm1" name="fm1" method="post">
					<table class="table">
						<tr> 
							<td align="left" valign="middle"><input value="<?php echo $search; ?>" name="search" type="text" placeholder="Search by Sitename" class="form-control"></td>
							<td><input type="submit" name="searchbut" value="Search" class="btn btn-primary"></td>
							
							
							<td  align="center" valign="middle">
								<table class="table table-bordered">
									<tr>
                                    <td align="center" valign="middle">Total Data = <?php echo $num; ?>&nbsp;<?php echo $pager->exportintoexcel(); ?></td>
                                    <td align="center" valign="middle">( <?php echo $pager->rendercount(); ?>  )</td>
										<td align="center" valign="middle" class="first"><?php echo $pager->renderFirst();  ?></td>
										<td align="center" valign="middle" class="next"><?php echo  $pager->renderPrev();  ?></td>
										<td align="center" valign="middle" class="next"><?php echo $pager->renderNext();  ?></td>
										<td align="center" valign="middle" class="first"><?php echo $pager->renderLast();  ?></td>
									</tr>
								</table>
							</td>
							
						</tr>
					</table>
					</form>
				</th>
			</tr>
		</thead>
		<tbody>
		<tr>
			<td align="left" valign="top">
				<table class="table table-bordered table-striped sortable" id="anyid">
					<tr>
						<th align="center" valign="middle"  class="unsortable">S.No</th>
						<th>Date Time</th>
                       <th>Name</th>
						<th>Email</th>
						<th>Mobile</th>
						<th>Message</th>
						
						
					</tr>
					<?php
					$i=1;
					while($rows=mysqli_fetch_assoc($dquery))
					{
						
					?>
					<tr>
						<td><?php echo $i++; ?></td>
						<td><?php echo date('Y-m-d',strtotime($rows['create_date'])); ?></td>
						<td><?php echo $rows['name']; ?></td>
						<td><?php echo $rows['email']; ?></td>
						<td><?php echo $rows['mno']; ?></td>
						<td><?php echo $rows['msg']; ?></td>
						
						
					</tr>
					<?php
					}
					?>	
				</table>
			</td>
		</tr>
		</tbody>
	</table>
<?php
	}
?>	

			<!---->
			
			</div>
          </div>
        </div>
      </div>
    </main>
	<?php include "footer.php"; ?>
    <!-- Essential javascripts for application to work-->
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/main.js"></script>
    <!-- The javascript plugin to display page loading on top-->
    <script src="js/plugins/pace.min.js"></script>
    <!-- Page specific javascripts-->
	
  </body>
</html>

Zerion Mini Shell 1.0