<?php include "layouts/menu.php"; ?>
<?php
			session_start();
			
			if($_SESSION['uname']==""&&$_SESSION['pwd']=="")
			{
			
				header("location:index.php");
			}
			

?>
    <head>
	<title>SENTHOOR MURUGAN AUTO FINANCE</title>
	
	<link rel="shortcut icon" type="image/x-icon" href="images/jaff.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
  <script type="text/javascript">var _siteRoot='index.html',_root='index.html';</script>
  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript" src="js/scripts.js"></script>
  <script>
  $(function() {
    $("#datepicker").datepicker({ dateFormat: 'dd-mm-yy' });
  });
  </script>
  <link rel="stylesheet" href="css/jquery-ui.css" />
  <script src="js/jquery-1.9.1.js"></script>
  <script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  </head>
  </style>
  <body style="background-color:#DFF0D8;">

  <div class="container">
  <div class="page-header">
  <div class="row">
  <div class="col-xs-2 col-md-1">
   <img src="images/kurunji.jpg" />
   </div>
   <div class="col-xs-1 col-md-6">
  <h1 style="color:#0A0B0D;">SENTHOOR MURUGAN AUTO FINANCE</h1>
  </div>
  </div>

</div>
    <ul class="nav nav-tabs">
    <li ><a href="user.php">Welcome</a></li>
	<li><a href="register1.php">Register</a></li>
	<li><a href="updatede.php">Update</a></li>
	 <li><a href="duemonth1.php">Insert month</a></li>
	<li><a href="search.php">Paydue</a></li>
	 <li><a href="getuserdue.php">View Dues</a></li>
	 <li><a href="all.php">Customer Details</a></li>
   <li> <a href="netamtt.php">Settle Amount</a></li>	  
<li><a href="closedacc.php">Full Settlement</a></li>
<li><a href="doc.php">Documentation Charge</a></li>
   <li><a href="hpl.php">Amount</a></li>	
 <li><a href="tallylogin.php">Tally</a></li>
 <li><a href="pending.php">Pending</a></li>
    <li><a href="changepwd.php">Change Password</a></li>	   	
 <li class="active"><a href="contactmsg.php">Contact</a></li>
  <li><a href="page3.php">Logout</a></li>
  
</ul>
	<div class="panel panel-default">
  <div class="panel-body">
   <div class="alert alert-info">Here the people who are like to contact you</div>
  
                    <?php
					
						$qry=mysqli_query($conn, "select * from contact");
						$n=mysqli_num_rows($qry);
						if($n==0)
						{
							echo "Nothing To Display";
						}
						else
					{ 
						?></p>
					<table class="table" border="0" align="center" cellspacing="0" cellpadding="10" width="100%" style="table-layout: fixed;">
					<col width="100px">
						<tr class="danger" style="color:purple;">
						<th>Name</th>
						<th>E-Mail</th>
						<th>Mobile Number</th>
						<th>Message</th>
						<th>More Information</th>
					</tr>
					<?php 
					while($row=mysqli_fetch_array($qry))
						{
					?>
					<tr class="warning">
					<col width="100px">
						<td><?php echo $row['name'];?></td>
						<td><?php echo $row['mail'];?></td>
						<td><?php echo $row['mno'];?></td>
						<td style="overflow: hidden;text-overflow: ellipsis;"><?php echo $row['msg'];?></td>
						<td><a href="cdelete.php?pid=<?php echo $pid;?>&mno=<?php echo $row['mno'];?>">More Info</a></td>
					</tr>
					<?php
						}
					}
				
					?>
					</table>
					
</div>
 <?php include "layouts/fooder.php"; ?>
 
</div>
</div>
	</body>
</html>		