<?php session_start();
if($_SESSION[id]!=""){ ?>
<html dir="rtl">
<style>
td
{
  padding-top:15px;
  padding-bottom:15px;
}

</style>
<body>
<?php //include ('header.php');
include('dbf.php');
?>
<br>
<table dir="rtl" border="0" align="center">
	<tr>
		<td valign="top" align="center">
			<div class="divfieldset">
	        <fieldset style="width:400px;height:200px"><legend align="right" > تعیین مدت امانت و هزینه ی دیرکرد </legend>

			<table border="0" width="400" align="center">
			<tr>
				<td  valign="top" align="center" >
				<?php
				$p=mysql_query("select * from `set_h_t`");
				$fp=mysql_fetch_assoc($p);
				 ?>
					<form name="f1" action=""  method="post">
					<table align="center" cellpadding="3" border="0" dir="rtl"  width="400">
						<tr>
							<td class="label">
							<span> مدت امانت (روز)</span>
							</td>
							<td>
								<input type="text" tabindex="1" size="10" title="مدت امانت به روز"  value="<?php echo $fp['day']; ?>" name="day" id="day" size="20">
							</td>
							<td class="label">
							<span> هزینه دیرکرد</span>
							</td>
							<td>
								<input type="text" tabindex="2" size="10" title="هزینه ی دیرکرد"  value="<?php echo $fp['hazine']; ?>" name="hazine" id="hazine" size="20">
							</td>
						</tr>
						<input type="hidden"  id="val" name="val" value="" >
						<div id="d1"></div>
                        <input type="hidden"  id="dval" name="dval" value="" >
						<tr>
							<td colspan="4" align="center"></br>
								<button  name="edit" type="button" onClick="param('day,hazine'),insert(document.getElementById('val').value,'<?php echo 'a_h_aman.php' ; ?>','day,hazine'),ajaxload('requirpage.php')" value="1" title="ویرایش" tabindex="3"><img src="images/b_edit.png" border="0" height="20" width="20"></button>
								<button   name="ret" value="1" type="button"  onClick="ajaxload('requirpage.php')" title="بازگشت" tabindex="4"><img src="images/r1.png" border="0" height="20" width="20"></button>
							</td>
						</tr>
					</table>
					</form>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top">
	<?php
	//include ('menu.html');
	//include ('back.htm');
	?>
		</td>
	</tr>
</table>
<?php
//include ('foteer.php');

}
else
include('index.php');
?>
</body>
</html>
