<body bgcolor="#5ba7db">
<SCRIPT src="date_picker.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">
		
function F_check_picker(var_obj)
{
show_calendar(var_obj);
}

function win(){
javascript: self.close ()


}


  </script>

</script>

<style>
.button  { /*   all form buttons */
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: 600;
padding-left:4px;
padding-right: 4px;
color: #ffffff;
background-color: #0B799D;
border-top: 1px solid #0B799D;
border-left: 1px solid #0B799D;
border-right: 1px solid #0B799D;
border-bottom: 1px solid #0B799D;
}
</style>
<? 
include("../includes/site_config.php");
//include('../session_handler.inc');

//include('date_picker.js');
session_start();
$area = 'member';
$Sess_UserType = $_SESSION['Sess_UserType'];
$mem_id = $_REQUEST['mem_id'];
$Expire_date=$_REQUEST['txtdate'];

if(isset($_REQUEST['submit']))
{
  $query1="UPDATE members SET mem_expiredate='$Expire_date' WHERE mem_userid='$mem_id'";
    $result1=mysql_query($query1,$link) or die(mysql_error());           
?>
<DIV align=center> 
		
		<font color="#ffffff">Date Has Been Changed</font><BR>
		</DIV>
<? }



$query="SELECT * from members WHERE mem_userid='$mem_id'";
  $result=mysql_query($query,$link) or die(mysql_error());  
$rdoQuery=mysql_fetch_array($result);

?>
<table width="100%">
<form name="form" action="UpdMemExp_date.php" method="post">
<tr><td>
<input type="text" name="txtdate" id="txtdate"  value="<?=$rdoQuery['mem_expiredate']?> "readonly><a href="javascript:F_check_picker('form.txtdate','1')">
<img onMouseOver="window.status='Date Picker';return true;" title="Select Date From Calendar" onMouseOut="window.status='';return true;" src="<?=$CONST_LINK_ROOT?>/templates/default/images/b_calendar.png" border=0>
</a></td></tr>
<input type="hidden" name="mem_id" value="<?=$mem_id?>">
<tr><td>
<input type="submit" name="submit" value="Update" class="button">
<input type="button"  onclick="win()" value="Close" class="button">
</td></tr>
<tr><td>&nbsp;</td></tr>
</form>
</table>
</body>