<?php session_start();
if($_SESSION[onvan]!='')
{
$_SESSION[strt]='1';
include ("dbf.php");

$s122=mysql_query("select * from `login` where  id='{$_SESSION[id]}' ");
$ab12=mysql_fetch_assoc($s122);

include_once ("ajax.php");
$s=mysql_query("select * from `login` where  id='{$_SESSION[id]}' ");
$a=mysql_fetch_array($s);
$width='width:880px;';
?>
<html>
<head>
<style  type="text/css">
a
{
 cursor:pointer;
}
</style>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="but_files/cbcscbbut.css" type="text/css" />
<script language="javascript">
function confirmr() {
var msg;
msg="آيا مايليد از برنامه خارج شويد ؟" ;
var agree=confirm(msg);
if (agree)
return true ;
else
return false ;
}

</script>
<script type ="text/javascript" >
function changeHashOnLoad() {
     window.location.href += "#";
     setTimeout("changeHashAgain()", "50");
}

function changeHashAgain() {
  window.location.href += "1";
}

var storedHash = window.location.hash;
window.setInterval(function () {
    if (window.location.hash != storedHash) {
         window.location.hash = storedHash;
    }
}, 50);


</script>

</head>
<body>
<ul id="cbbutebul_table" class="cbbutebul_menulist"   style="<?php echo $width; ?>; height: 45px;float:center;text-align:center" >
  <li class="spaced_li"><a href="logoff.php" target="_self" onClick="return confirmr()" ><img id="cbi_cbbut_1" src="but_files/ebbtcbbut1_0.gif" name="ebbcbbut_1" width="68" height="45" style="vertical-align: bottom;" border="0" alt="خروج" title="" /></a></li>
  <?php if($a['help']==1){?><li class="spaced_li"><a href="help.pdf"  target="_blank"><img id="cbi_cbbut_2" src="but_files/ebbtcbbut2_0.gif" name="ebbcbbut_2" width="111" height="45" style="vertical-align: bottom;" border="0" alt="راهنماي كاربري" title="" /></a></li><?php } ?>
  <?php if($a['usr']==1){?><li class="spaced_li"><a  onClick="ajaxload('user.php')" > <img id="cbi_cbbut_3" src="but_files/ebbtcbbut3_0.gif" name="ebbcbbut_3" width="111" height="45" style="vertical-align: bottom;" border="0" alt="رمز كاربري" title="" /></a></li><?php } ?>
  <?php if($a['majale']==1){?><li class="spaced_li"><a onClick="ajaxload('majale.php')" ><img id="cbi_cbbut_4" src="but_files/ebbtcbbut4_0.gif" name="ebbcbbut_4" width="164" height="45" style="vertical-align: bottom;" border="0" alt="مجلات ، روزنامه ها و مقالات" title="" /></a></li><?php } ?>
  <?php if($a['cd']==1){?><li class="spaced_li"><a onClick="ajaxload('cd.php')" ><img id="cbi_cbbut_5" src="but_files/ebbtcbbut5_0.gif" name="ebbcbbut_5" width="68" height="45" style="vertical-align: bottom;" border="0" alt="CD بانك" title="" /></a></li><?php } ?>
  <?php if($a['dio']==1){?><li class="spaced_li"><a onClick="ajaxload('dio.php')"><img id="cbi_cbbut_6" src="but_files/ebbtcbbut6_0.gif" name="ebbcbbut_6" width="68" height="45" style="vertical-align: bottom;" border="0" alt="كد كنگره" title="" /></a></li><?php } ?>
  <?php if($a['req']==1){?><li class="spaced_li"><a onClick="ajaxload('requirpage.php')"><img id="cbi_cbbut_7" src="but_files/ebbtcbbut7_0.gif" name="ebbcbbut_7" width="68" height="45" style="vertical-align: bottom;" border="0" alt="امانات" title="" /></a></li><?php } ?>
  <?php if($a['txt']==1){?><li class="spaced_li"><a onClick="ajaxload('textpage.php')"><img id="cbi_cbbut_8" src="but_files/ebbtcbbut8_0.gif" name="ebbcbbut_8" width="68" height="45" style="vertical-align: bottom;" border="0" alt="متن ها" title="" /></a></li><?php } ?>
  <?php if($a['book']==1){?><li class="spaced_li"><a onClick="ajaxload('bookpage.php')"><img id="cbi_cbbut_9" src="but_files/ebbtcbbut9_0.gif" name="ebbcbbut_9" width="68" height="45" style="vertical-align: bottom;" border="0" alt="كتاب" title="" /></a></li><?php } ?>
  <?php if($a['ozve']==1){?><li><a onClick="ajaxload('memberpage.php')"><img id="cbi_cbbut_10" src="but_files/ebbtcbbut10_0.gif" name="ebbcbbut_10" width="68" height="45" style="vertical-align: bottom;" border="0" alt="اعضا" title="" /></a></li><?php } ?>
</ul>

<script type="text/javascript" src="but_files/cbjscbbut.js"></script></body>
</html>
<?php
$s122=mysql_query("select * from `login` where  id='{$_SESSION[id]}' ");
$ab12=mysql_fetch_assoc($s122);
}
?>