<?php session_start();
 if( !isset($_SESSION['ps_user']) )
 {
    die();
} 
include('includes/config.php');
if($lang == 'en'){include('languages/en.php');}else if($lang == 'ar'){include('languages/ar.php');}	
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title><?echo $lang_420;?></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="<?echo $lang_1;?>">
	<meta name="author" content="Ahmed Saleh">
	<!-- The styles -->
			<? include 'includes/css.php';?>

	<script type="text/javascript">
// Popup window code
function newPopup(url) {
	popupWindow = window.open(
	url,'popUpWindow','height=300,width=300,left=10,top=10,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes')
	popupWindow.focus();
}
</script>
<script type="text/javascript">
// Popup window code
function newPopup2(url) {
	popupWindow = window.open(
	url,'popUpWindow','height=700,width=300,left=10,top=10,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes')
	popupWindow.focus();
}
</script>	
</head>
<body>
		<!-- topbar starts -->
<?include('includes/navbar.php');?>
<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">		
<!-- left menu starts -->
<?include('includes/menu.php');?>
<!-- left menu ends -->
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			<div id="content" class="span10">
			<!-- content starts -->
  			 		<center>
<form action="actions/members/edit.php" method="POST" >
 		 <label class="control-label" for="focusedInput"><?echo $lang_420;?></label>
								<div class="controls">
								<?
								$id = $_GET['id'];
								$result = mysql_query("SELECT * FROM `members` WHERE id = $id");
while($row = mysql_fetch_array($result))
{
								?>
								<input type="hidden" name="id" value="<?echo $id;?>"/>
  <?echo $lang_21;?>:<br/><input  type="text" name="new_member_name"  value="<?echo $row['name'];?>" required><br/>
  <?echo $lang_37;?>:<br/><input  type="text" name="new_member_mobile" value="<?echo $row['mobile'];?>" required><br/>
  <?echo $lang_38;?>:<br/><input  type="text" name="new_member_card" value="<?echo $row['card'];?>"  ><br/>
  <?echo $lang_39;?>:<br/><input  type="text" name="new_member_points" value="<?echo $row['points'];?>" ><br/>
								
<?}?></div>
  <button type="submit" class="btn btn-primary"><?echo $lang_232;?></button>
  </center>
  </form>       
					<!-- content ends -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
		<hr>
		<div class="modal hide fade" id="myModal">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">�</button>
				<h3>Settings</h3>
			</div>
			<div class="modal-body">
				<p>Here settings can be configured...</p>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">Close</a>
				<a href="#" class="btn btn-primary">Save changes</a>
			</div>
		</div>
		<footer>
			<p class="pull-left">&copy; <a href="http://www.gesture-sys.com/playstation" target="_blank">Gesture For Playstation</a> <?$Year = idate('Y');   echo $Year;?></p>
		</footer>
	</div><!--/.fluid-container-->
	<? include 'includes/js.php';?>

	</body>
    </html>