<?php
session_start();

if($_SESSION[onvan]=='عضو')
{
	$pou=0;
	$bacolo='9D7E50';
	if ($_GET['phf']=='1')
	{
	$pic8='images/baner/kotob.jpg';
	}
	elseif ($_GET['phf']=='2')
	{
	$pic8='images/baner/matn.jpg';
	}
	elseif ($_GET['phf']=='3')
	{
	$pic8='images/baner/pdf.jpg';
	}
	elseif ($_GET['phf']=='4')
	{
	$pic8='images/baner/khati.jpg';
	}
	elseif ($_GET['phf']=='5')
	{
	$pic8='images/baner/maghale.jpg';
	}
	elseif ($_GET['phf']=='6')
	{
	$pic8='images/baner/ozv.jpg';
	}
	elseif ($_GET['phf']=='7')
	{
	$pic8='images/baner/sooti.jpg';
	}
	elseif ($_GET['phf']=='8')
	{
	$pic8='images/baner/doa1.jpg';
	}
	else
	{
	$pic8='images/baner/first3.jpg';
	$pou=1;
	$bacolo='6B4F13';
	}
}
?>
<html dir="rtl">
<head>
    <link rel="stylesheet" type="text/css" href="css/style.css">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>نرم افزار کتابداری و کتاب خوانی نوین</title>

</head>
<body  bgcolor="#<?php echo $bacolo; ?>">
<style type="text/css">
	   P {font-size: 10pt;font-family:Tahoma;width:120px;text-align:center;
	   vertical-align:center;}
	   .purpletext {color: purple;}
	   .redtext {color: red;}
	   .blacktext {color: black;}
	   .purpletext {color: purple; }
	   .redtext {color: red;}
	   .blacktext {color: black;}
	   .bluetext {color: blue;}
	   .yellowtext {color: yellow;}
</style>
<table border="0"  width="100%" dir="rtl"  align="center" >
<tr>
	<?php
	if($_SESSION[onvan]=='مدير')
	{
//echo '11111111111111111111';
	?>
	<td width="100%"  height="110" valign="top" align="center"  >
		<table border="0" width="58%"  align="center" background="ket.jpg" style="background-repeat:no-repeat">
			<tr>
				<td width="900" align="left" height="100" dir="ltr">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<img src="0161.gif" height="46" width="200">
				</td>
			</tr>
		</table>
	<?php
	}
	elseif($_SESSION[onvan]=='عضو')
	{ //echo "ssssssssssssssssssssssssssssss";
	?>
	<td width="100%" height="220" valign="top" align="right" style="background-repeat:no-repeat" >
	<table border="0" width="100%" bgcolor="#<?php echo $bacolo; ?>">
			<tr>
				<td width="100%" align="left" height="400">
					<img src="<?php echo $pic8; ?>" height="400" width="100%">
				</td>
			</tr>
			<?php
			if ($pou==1)
			{
			?>
			<tr>
				<td bgcolor="#6B4F13" height="100">
					<table width="100%" align="center" border="0">
						<tr>
							<td height="50" width="6%" onclick="window.open('textpage2.php?bar=1&&phf=2','_blank')">
									<img src="images/baner/matnicon.jpg" border="0" height="150" width="100%" >
							</td>
							<td  width="6%"  onclick="window.open('bookpage2.php?phf=1','_blank')">
									<img src="images/baner/ketabicon.jpg" height="150" width="100%">
							</td>
							<td  width="6%" onclick="window.open('textpage3.php?phf=3','_blank')">
									<img src="images/baner/pdficon.jpg" height="150" width="100%">
							</td>
							<td  width="6%" onclick="window.open('book3.php?kin=1&&phf=4','_blank')">
									<img src="images/baner/khatiicon.jpg" height="150" width="100%">
							</td>

							<td  width="6%" onclick="window.open('book3.php?kin=2&&phf=5','_blank')">
									<img src="images/baner/maghaleicon.jpg" height="150" width="100%">
							</td>
							<td width="6%" onclick="window.open('book4.php?phf=6','_blank')">
									<img src="images/baner/matlabicon.jpg" height="150" width="100%">
							</td>
							<td  width="6%"  onclick="window.open('loginozv.php?bz=1','_blank')" >
									<img src="images/baner/softbank.jpg" height="150" width="100%">
							</td>
							<td  width="6%"  onclick="window.open('doa.php?phf=8','_blank')" >
									<img src="images/baner/doa.jpg" height="150" width="100%">
							</td>
							<td  width="6%"  onclick="window.open('ghamin.php?phf=7','_blank')" title="به زودی این قسمت فعال خواهد شد">
									<img src="images/baner/ghamin.jpg" height="150" width="100%">
							</td>
							<td  width="6%"  onclick="window.open('neshast.php?phf=7','_blank')" title="به زودی این قسمت فعال خواهد شد">
									<img src="images/baner/neshast.jpg" height="150" width="100%">
							</td>
							<td  width="6%"  onclick="window.open('koodak.php?phf=7','_blank')" title="به زودی این قسمت فعال خواهد شد">
									<img src="images/baner/koodak.jpg" height="150" width="100%">
							</td>
							<td  width="6%" onclick="window.open('textpage4.php?phf=7','_blank')" title="کتاب صوتی">
									<img src="images/baner/soati.jpg" height="150" width="100%">
							</td>

							<td  width="6%" >
								<a href="logoff.php" >
									<img src="images/baner/exiticon.jpg" height="150" width="100%">
								</a>
							</td>

						</tr>
					</table>
				</td>
			</tr>
			<?php
			}
			?>
		</table>
	<?php
	}
	?>
	</td>
</tr>

</table>
