<?php

if (!isset($_SESSION['FirstName'])) {

	session_start();

}

    include ('includes/db1config.php');

    include ('../includes/mysql_connect.php');

?>

<?php include("admin_globals.php"); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

<?php include('title.php'); ?>

<meta name="description" content="<?php //include('seodescr.php'); ?>" />

<meta name="keywords" content="<?php //include('seokeywords.php'); ?>" />



<link href="css/main_style.css" rel="stylesheet" type="text/css" media="screen" />

<link href="css/print_style.css" rel="stylesheet" type="text/css" media="print" />



<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> </script>

<link rel="stylesheet" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">

<script src="//code.jquery.com/jquery-1.9.1.js"></script>

<script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>





<!-- for popup windows -->

<link href="css/popup-style.css" rel="stylesheet" type="text/css" media="all" />

<script type="text/javascript" src="js/script.js"></script>

 <!-- end popup script-->



<!-- <script type="text/javascript" src="js/cssverticalmenu.js">

/***********************************************

* CSS Vertical List Menu- by JavaScript Kit (www.javascriptkit.com)

* Menu interface credits: http://www.dynamicdrive.com/style/csslibrary/item/glossy-vertical-menu/ 

* This notice must stay intact for usage

* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more

***********************************************/ 

</script> -->



<style type="text/css">

  .menu-item-iframe {

    width: 810px;

    height: 100%;

    border: none;

  }

  .add-menu-item {

    width: 100px;

    cursor: pointer;

  }

  .toPopDiv.menu-item {

    top: 10%;

    height: 80%;

  }



	.navi {

	width: 500px;

	margin: 5px;

	padding:2px 5px;

	border:1px solid #eee;

	}



	.show {

	color: blue;

	margin: 5px 0;

	padding: 3px 5px;

	cursor: pointer;

	font: 15px/19px Arial,Helvetica,sans-serif;

	}

	.show a {

	text-decoration: none;

	}

	.show:hover {

	text-decoration: underline;

	}





	ul.setPaginate li.setPage{

	padding:15px 10px;

	font-size:14px;

	}



	ul.setPaginate{

	margin:0px;

	padding:0px;

	height:100%;

	overflow:hidden;

	font:12px 'Tahoma';

	list-style-type:none;	

	}  



	ul.setPaginate li.dot{padding: 3px 0;}



	ul.setPaginate li{

	float:left;

	margin:0px;

	padding:0px;

	margin-left:5px;

	}







	ul.setPaginate li a

	{

	background: none repeat scroll 0 0 #ffffff;

	border: 1px solid #cccccc;

	color: #999999;

	display: inline-block;

	font: 15px/25px Arial,Helvetica,sans-serif;

	margin: 5px 3px 0 0;

	padding: 0 5px;

	text-align: center;

	text-decoration: none;

	}	



	ul.setPaginate li a:hover,

	ul.setPaginate li a.current_page

	{

	background: none repeat scroll 0 0 #48a3db;

	border: 1px solid #999;

	color: #ffffff;

	text-decoration: none;

	}



	ul.setPaginate li a{

	color:black;

	display:block;

	text-decoration:none;

	padding:2px 10px;

	text-decoration: none;

	}

	.show{

	background: #48a3db;

    border: 1px solid #999;

    color: #fff !important;

    padding: 3px 11px;

	}

.formsearch {

	margin-bottom: 20px;

}

.formsearch form {

	display: inline-block;

}

.formsearch a.show {

	margin-left: 5px;

border-radius: 4px;

}

.results{min-width: 49px !important;}



	</style>    





</head>





<body>



<div id="wrapper">



<!-- start header -->

<?php include('includes/header.inc.php'); ?>

<!-- end header-->





<!-- start page -->

<div id="page-container">

<div id="page-bg-top">





<!-- start content -->

<div id="content">

<div id="main-content">

   

		<div class="post">

		  <div class="entry">

          

          <br />

<h1>Customers</h1>



<div id="single-admin-button4">

<ul>

<a href="index.php"><li>BACK TO HOME ADMIN</li></a>

</ul>

</div>



<?php 

if($_SESSION['adminkey']=="security"){

include ("customersub.php");



} else {

	echo '<font color="red"><div align="center">You are not authorized to view this page. <br>Please <a href="index.php"><font color="blue">login here</font></a>.</div></font>';

}

?>

            

            

            </div><!--end location buttons-->

            

            <div style="clear: both;"></div>

       <div style="clear: both;">&nbsp;</div>
			  <div style="text-align:center;"><?php echo $bottom_links; ?></div>

       </div><!-- end main-content-->



<br />





</div>





</div>



</div>

	<!-- end content -->

    <!-- start sidebar -->

<?php include('includes/admin-sidebar.inc.php'); ?>

<!--sidebar-->

<script>

  $(document).ready(function($) {

    $(document).on('click', '.sendcustomerEmail', function(event) {

      $(this).attr('disabled','disabled');

      $.ajax({

        url      : '/cmsadmin/sendUserInmail.php',

        type     : 'POST',

        dataType : 'json',

        data     : { 

          id : $(this).data('id'),

        },

      }).done(function(res) {

        if(res == 1){

          alert('Customer account email sent.');

          $('.sendcustomerEmail').removeAttr('disabled');

        } else {

          alert(res);

          $('.sendcustomerEmail').removeAttr('disabled');

        }

      });

     }); 

  });

</script>

	

<div style="clear: both;">&nbsp;</div>

<div id="page-bg-btm">

</div><!-- end page-bg-btm div -->

</div><!-- end page-bg-top div -->

</div><!-- end page-container -->







</div><!-- end wrapper div-->



<!-- end page -->





<!--footer-->







</body>

</html>

