<?php
if($_SESSION[id]!="")
{
$ar=array("1","2","3","4","5");
 ?>
<style>
td
{
  padding-top:15px;
  padding-bottom:15px;
}

</style>
<br>
<table dir="rtl" border="0" align="center">
	<tr>
		<td valign="top">
			<table border="0" width="750" align="center">
				<tr>
					<td >
						<form name="f4"  action="index1.php?page=one"  method="post">
						<table border="0"  width="750">
							<tr>
								<td colspan="4" dir="rtl" height="270" valign="top" align="center">
								<div class="divfieldset">
	                              <fieldset style="width:300px;height:150px"><legend align="right" >تعیین مدت اعتبار کارت عضویت </legend>

								<?php $f=mysql_query("select * from `expire`"); $ff=mysql_fetch_assoc($f); ?>
									<table border="0" dir="rtl" align="center" width="300">
										<tr align="center">
											<td class="label"><span>تاریخ انقضاء</span></td>
											<td>
												<select name="en" id="en" >
													<option value="<?php echo $ff['exp']; ?>"><?php echo $ff['exp'].' سال'; ?></option>
														<?php for($i=0;$i<count($ar);$i++){ if($ar[$i]!=$ff['exp']){ ?>
													<option value="<?php echo $ar[$i]; ?>"><span class="blacktext"><?php echo $ar[$i].' سال'; ?></span></option>
														<?php }} ?>
												</select>
											</td>
										</tr>

										<input type="hidden"  id="val" name="val" value="" >
                                         <div id="d1"></div>
                                         <input type="hidden"  id="dval" name="dval" value="" >
										<tr>
											<td align="center" colspan="2">
												<button  name="exp" value="1" title="تایید" type="button" onClick="param('en,en'),insert(document.getElementById('val').value,'<?php echo 'a_memberpage.php' ; ?>','en,en'),ajaxload('memberpage.php')" ><img src="images/b_edit.png" height="20" width="20"></button>
												<button  name="ret" title="بازگشت" type="button"  onClick="ajaxload('memberpage.php')"><img src="images/r1.png" height="20" width="20"></button>
											</td>
										</tr>
									</table>
									</fieldset>
                                    </div>
								</td>
							</tr>
						</table>
						</form>
					</td>
					<td valign="top">
					<?php
					//include ('menu.html');
					//include ('back.htm');
					?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<?php
}
else
include('index.php');
?>