<?php session_start();
if($_SESSION[id]!=""){ ?>
<script src="AjaxFunctionbook_aj.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html dir="rtl">
<style>
td
{
  padding-top:10px;

}

</style>
<body>
<?php
include('dbf.php');
//include ('header.php');
?>
<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="a_textpage.php"  method="post"  enctype="multipart/form-data" >
					<div class="divfieldset">
	                    <fieldset style="width:450px;height:200px"><legend align="right" > آپلود کتاب </legend>
					<table align="center" cellpadding="3" border="0" dir="rtl"  >
						<tr>
							<td  align="right" class="label" ><span>عنوان کتاب : </span></td>
							<td align="right" width="100">
               					<input type="text" tabindex="2" size="10" name="bookname" onkeyup="getbook(this.value)">
							</td>
							<td align="right" width="120">
								<div id="bookodiv" >
								<select name="booko"  tabindex="3" >
									<option value=''>انتخاب نماييد</option>
							       	</div>
									<?php
										$q=mysql_query("select * from ketab ");
										while($n=mysql_fetch_array($q)){
										echo "<option value=$n[id]>".$n[name]."</option>";
										}
									?>
								</select>
							</td>
							<td align="right" >
               					<input type="text" title="بارکد کتاب" tabindex="4" size="10" name="bookid" >
							</td>
						</tr>
						<tr>
							<td align="right" class="label"><span>	آپلود کتاب        :</span></td>
							<td align="right" colspan="3">
								<input type="file" name="up_book" id="up_book">
							</td>
						</tr>
						<tr>
							<td colspan="5" align="center"></br>
								<button type="submit" name="upload" value="1" title="ثبت" tabindex="3"><img src="images/sabtf2.png" border="0" height="20" width="20"></button>
								<button   name="ret" value="1" type="button"  onClick="ajaxload('textpage.php')" title="بازگشت" tabindex="6"><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
//include ('foteer.php');

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