<?php
/*
  osCommRes, Services Online
  http://www.oscommres.com

  Copyright (c) 2005 osCommRes

  Released under the GNU General Public License
  
  v
*/
// Check to ensure this file is included in Freeway!
defined('_FEXEC') or die();
?>
<tr height="133">
	<!--<td align="center" style="background:url(../../freeway/templates/<?php echo DEFAULT_TEMPLATE; ?>/images/freeway.png); background-repeat:no-repeat; background-color:#D7D8D6; background-position:center;">-->
	<td align="center" bgcolor="#D7D8D6"><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'admin_logo.png', STORE_NAME,'','','align=absmiddle'); ?></a>
	
    	<?php 
		
			//$url='<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_TEMPLATES.DEFAULT_TEMPLATE.'/'.DIR_WS_IMAGES . COMPANY_LOGO,  STORE_NAME, '95', '113') . '</a>';
		//echo $url;
		
		//echo tep_image(DIR_WS_IMAGES . 'admin_logo.png', STORE_NAME,'','','align=absmiddle');?>
	</td>
</tr>
<tr>
	<td>
	 <table border="0" cellpadding="0" cellspacing="0" width="100%" id="menu_l1" class="cell_bg_navig_l1">
		<tr>
			<td valign="top">
				<?php  draw_panel_handle_start("Quick Links","ico_quick_links.gif");?>
			</td>
		</tr>
		<?php //echo "SELECT filename,params,title,sort_order from " . TABLE_QUICK_LINKS . " where login_group_id='". $login_groups_id ."' order by sort_order limit 5";
			$quick_links=tep_db_query("SELECT filename,params,title,sort_order from " . TABLE_QUICK_LINKS . " where login_group_id='". (int)$login_groups_id ."' order by sort_order limit 5");
			
			if (tep_db_num_rows($quick_links)>0){
				while($quick_result=tep_db_fetch_array($quick_links)){				
					$temp_link=tep_href_link($quick_result["filename"],$quick_result["params"] . (($quick_result['params']!='')?'&top=1':'top=1'));
		?>
			<tr>
				<td valign="top"><?php echo '<a href="' . $temp_link . '" title="'. $quick_result['title'].'">' . substr($quick_result["title"],0,15) .'</a>';?>
			</tr>
		<?php } ?>
			<tr>
				<td valign="top"><?php echo '<a href='. tep_href_link(FILENAME_QUICK_LINKS,'rebuild=1'). '>...</a>';?></td>
			</tr>	
		<?php	
			}
		draw_panel_handle_end();
		?>
		<tr>
			<td valign="top">
		<?php 	
		//echo tep_get_mpath(190);
			draw_panel_handle_start("Menus","ico_menu.gif");
			$left_menu=&$menu_arr["1"];
			reset($left_menu);
			while(list($key,$value)=each($left_menu)){
				if ($value["params"]!='') $value['params'].="&";				
				$value["params"].="from=col&top=1&mPath=" . $value['path'];				
		?>
			<tr>
				<td>
				<?php echo '<a ' .($value["select"]?'class="menu_l1_select"':'') . ' href="' . tep_href_link($value["file"],$value["params"]) . '">' . trim($value["text"]) . '</a>'; ?>
				</td>
			</tr>
		<?php 		
				
				} //while
				echo '<tr><td></tr>';
				draw_panel_handle_end();
		?>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<?php 	draw_panel_handle_start("Tools","ico_tools.gif"); ?>
				<tr height="20">
					<td><?php echo '<a target="_blank" href="' . tep_catalog_href_link('index.php') . '">Front End</a>';?></td>
				</tr>
				<tr height="20">
					<td><?php echo '<a target="_blank" href="http://www.openfreeway.org/bugzilla" title="Keep Freeway healthy, report any bugs">Report Bugs</a>';?></td>
				</tr>
				<tr height="20">
					<td><?php echo '<a target="_blank" href="http://www.openfreeway.org/" title="Become part of the Freeway Community">Community</a>';?></td>
				</tr>
				<tr height="20">
					<td><a target="_blank" href="http://www.zac-ware.com" title="Access subscription support from the Freeway Project sponsors.">ZacWare</a></td>
				</tr>
			<?php draw_panel_handle_end(); ?>
			</td>
		</tr>
	</table>
	</td>
</tr>
		<tr height="20">
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td valign="top" align="center" class="versionTitle">
			 <?php
			 	/*if(!defined('CHECK_VERSION_DISPLAY')){ 
					if(!defined('CHECK_OSCOMMRES_VERSION')){*/
							echo tep_check_current_version(); 
					//}
				//}	
			?>
			</td>
		</tr>	
