<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>مدیریت فرمساز</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="index, nofollow" />
<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />   
    
<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="css/ie7.css" media="screen" />
<![endif]-->
	
<!--[if IE 8]>
	<link rel="stylesheet" type="text/css" href="css/ie8.css" media="screen" />
<![endif]-->

<!--[if IE 9]>
	<link rel="stylesheet" type="text/css" href="css/ie9.css" media="screen" />
<![endif]-->

<link href="css/theme.css" rel="stylesheet" type="text/css" />
<?php
	if(!empty($mf_settings['admin_theme'])){
		echo '<link href="css/themes/theme_'.$mf_settings['admin_theme'].'.css" rel="stylesheet" type="text/css" />';
	}
?>
<link href="css/bb_buttons.css" rel="stylesheet" type="text/css" />
<?php if(!empty($header_data)){ echo $header_data; } ?>
<link href="css/override.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="bg">

<div id="container">

	<div id="header">
	<?php
		if(!empty($mf_settings['admin_image_url'])){
			$machform_logo_main = htmlentities($mf_settings['admin_image_url']);
		}else{
			if(!empty($mf_settings['admin_theme'])){
				$machform_logo_main = 'images/machform_logo_'.$mf_settings['admin_theme'].'.png';
			}else{
				$machform_logo_main = 'images/machform_logo.png';
			}
		}
	?>
		<div id="logo">
			<img class="title" src="<?php echo $machform_logo_main; ?>" style="margin-left: 8px" alt="MachForm" />
		</div>	

		
		<div class="clear"></div>
		
	</div><!-- /#header -->
	<div id="main">
	
		<div id="navigation">
		
			<ul id="nav">
           		<li class="page_item nav_manage_forms <?php if($current_nav_tab == 'manage_forms'){ echo 'current_page_item'; } ?>"><a href="manage_forms.php"><span class="icon-file"></span><font style="font-family:B Koodak; font-size:17px;"> مدیریت فرم ها</font></a></li>
				
				<?php if(!empty($_SESSION['mf_user_privileges']['priv_new_themes'])){ ?>
				<li class="page_item nav_change_themes <?php if($current_nav_tab == 'edit_theme'){ echo 'current_page_item'; } ?>"><a id="nav_change_themes" href="edit_theme.php" title="ویرایش قالب ها"><span class="icon-palette"></span><font style="font-family:B Koodak; font-size:17px;">ویرایش قالب ها</font></a></li>
				<?php } ?>

				<?php if(!empty($_SESSION['mf_user_privileges']['priv_administer'])){ ?>
				<li class="page_item nav_users <?php if($current_nav_tab == 'users'){ echo 'current_page_item'; } ?>"><a id="nav_users" href="manage_users.php" title="کاربران"><span class="icon-user"></span><font style="font-family:B Koodak; font-size:17px;">کاربران</font></a></li>
				<li class="page_item nav_settings <?php if($current_nav_tab == 'main_settings'){ echo 'current_page_item'; } ?>"><a id="nav_settings" href="main_settings.php" title="تنظیمات"><span class="icon-wrench"></span><font style="font-family:B Koodak; font-size:17px;">تنظیمات</font></a></li>
				<?php } ?>
				
				<li class="page_item nav_my_account <?php if($current_nav_tab == 'my_account'){ echo 'current_page_item'; } ?>"><a id="nav_my_account" href="my_account.php" title=" من"><span class="icon-key"></span><font style="font-family:B Koodak; font-size:17px;">اکانت من</font></a></li>
				
				<?php if(!empty($_SESSION['mf_user_privileges']['priv_administer'])){ ?>
				<li class="page_item nav_help"><a id="nav_help" href="javascript:void(window.open('http://support.khoein.ir','','width=590,height=640,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))" title="راهنمایی"><span class="icon-question"></span><font style="font-family:B Koodak; font-size:17px;">پشتیبانی فارسی سیستم</font></a></li>
				<?php } ?>

				<li class="page_item nav_logout"><span id="unregisted_holder"><?php if($mf_settings['customer_name'] == 'unregistered'){ echo "UNREGISTERED LICENSE";} ?></span><a id="nav_logout" href="logout.php" title="خروج"><span class="icon-exit"></span><font style="font-family:B Koodak; font-size:17px;">خروج</font></a></li>
            </ul>
			
			<div class="clear"></div>
			
		
		</div><!-- /#navigation -->