<?php session_start();
if($_SESSION[id]!=""){ ?>
<html dir="rtl">
<head>
<title>
صفحه درخواست کتاب
</title>
<style>
td
{
  padding-top:10px;

}

</style>
</head>
<body>
<?php
include('dbf.php');
//include ('header.php');
$v=mysql_query("select * from ozv where id='{$_SESSION[id]}'");
$vf=mysql_fetch_assoc($v);
?>
<br>
<table dir="rtl" border="0" align="center">
	<tr>
		<td valign="top">
			<table border="0" width="750" align="center">
			<tr>
				<td height="360" valign="middle" align="center">

					<form name="f1" action=""  method="post"  enctype="multipart/form-data" >
					<div class="divfieldset">
	                <fieldset style="width:350px;height:300px"><legend align="right" >درخواست خرید کتاب </legend>
					<table align="center" cellpadding="3" border="0" dir="rtl" >
						<tr>
							<td  class="label"><span>نام عضو : </span></td>
							<td align="right" width="100">
							<input type="hidden" tabindex="2" size="30" name="name_ozv"  id="name_ozv"  value="<?php echo $vf['fname']." ".$vf['lname']; ?>">
               				   <span><?php echo $vf['fname']." ".$vf['lname']; ?></span>
							</td>
						</tr>
						<tr>
							<td  align="right" class="label"><span>عنوان کتاب : </span></td>
							<td align="right" width="100">
               					<input type="text" tabindex="2" size="30" name="name_b"  id="name_b" >
							</td>
						</tr>
						<tr>
							<td  align="right" class="label"><span>نویسنده : </span></td>
							<td align="right" width="100">
               					<input type="text" tabindex="2" size="30" name="nev" id="nev" >
							</td>
						</tr>
						<tr>
							<td  align="right" class="label"><span>ناشر : </span></td>
							<td align="right" width="100">
               					<input type="text" tabindex="2" size="30" name="nash" id="nash"  >
							</td>
						</tr>
						<tr>
							<td  align="right" class="label"><span>سال نشر : </span></td>
							<td align="right" width="100">
               					<input type="text" tabindex="2" size="30" name="s_nashr"  id="s_nashr">
							</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="sabt" value="1" title="ثبت" tabindex="3" type="button" onClick="param('name_b,name_ozv,nev,s_nashr,nash'),insert(document.getElementById('val').value,'<?php echo 'a_bookpage.php' ; ?>','name_b,nev,s_nashr,nash')"><img src="images/sabtf2.png" border="0" height="20" width="20"></button>
								<button  name="ret" type="button"  onClick="ajaxload('bookpage.php')" title="بازگشت" tabindex="4"><img src="images/r1.png" border="0" height="20" width="20"></button>
							</td>
						</tr>
					</table>
					</fieldset>
                  </div>
					</form>
					</td>
				</tr>
			</table>
		</td>

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