<?php
/*
osCommerce, Open Source E-Commerce Solutions 
http://www.oscommerce.com 

Copyright (c) 2003 osCommerce 

osCommRes, Services Online 
http://www.oscommres.com 
Copyright (c) 2005 osCommRes 

Freeway eCommerce 
http://www.zac-ware.com/freeway 
Copyright (c) 2007 ZacWare

Released under the GNU General Public License
*/
// Set flag that this is a parent file
	define( '_FEXEC', 1 );
 require('includes/application_top.php');
 tep_get_last_access_file();
 require('includes/functions/faqdesk_general.php');
 require('includes/languages/'. $language .'/cms_news.php');
 $table_product_categories=TABLE_FAQDESK_CATEGORIES;
 $table_product_categories_description=TABLE_FAQDESK_CATEGORIES_DESCRIPTION;
 $table_product=TABLE_FAQDESK;
 $table_product_description=TABLE_FAQDESK_DESCRIPTION;
 $table_product_to_categories=TABLE_FAQDESK_TO_CATEGORIES;
 $product_name_str='faqdesk_question';
 $product_description_str='faqdesk_answer_long';
 $product_shorttext_str='faqdesk_answer_short';
 $product_url_str='faqdesk_extra_url';
 $product_viewed_str='faqdesk_extra_viewed';
 $product_image_text_str='faqdesk_image_text';
 $product_image_text_two_str='faqdesk_image_text_two';
 $product_image_text_three_str='faqdesk_image_text_three';
 $product_image_str='faqdesk_image';
 $product_image_two_str='faqdesk_image_two';
 $product_image_three_str='faqdesk_image_three';
 $product_date_added_str='faqdesk_date_added';
 $product_last_modified_str='faqdesk_last_modified';
 $product_date_available_str='faqdesk_date_available';
 $product_status_str='faqdesk_status'; 
 $product_sticky_str='faqdesk_sticky';
 $product_id_str='faqdesk_id'; 
 $product_filename=FILENAME_FAQDESK;
 require('includes/functions/cms_news_faq.php');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="JavaScript" src="includes/modules/faqdesk/html_editor/jsfunc.js" type="text/javascript"></script>
<?php require('includes/cms_news.js.php'); ?>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="SetFocus();">
<div id="spiffycalendar" class="text"></div>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
	<tr> 
<!-- body_text //-->
		<td width="100%" valign="top">
	<table border="0" width="100%" cellspacing="0" cellpadding="2">
		<tr>
		<td>
		  <table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr class="dataTableHeadingRow" style="height:27">
				<td class="main" width="15%" align="left" valign="bottom"><?php echo '<a onMouseOver="javascript:change_class(this,2);" onMouseOut="javascript:change_class(this,3);" alt="Faqdesk" title="Faqdesk" id="img_new"  href="javascript:expand_category(0,2);">'.tep_image('images/template/img_new.gif').'</a>';?></td>
				<td class="smallText" align="right" valign="bottom" width="10%"><?php echo HEADING_TITLE_SEARCH . ' ' . tep_draw_input_field('search', tep_db_prepare_input($HTTP_POST_VARS['search']),' onkeyup="javascript:go_search(event);"'); ?></td>
				<td valign="bottom" align="left" width="2%"><?php echo '<a alt="Search" title="Search" href="javascript:go_search(10);" >' . tep_image('images/template/img_search.gif','Search','','',' style="cursor:hand;cursor:pointer;" valign="bottom" border="0" width="20" height="20"') . '</a>';?></td>
				<td align="right" width="10%"><?php echo TEXT_JUMP_TO . '&nbsp;' . tep_draw_pull_down_menu("cbo_jumpto",faqdesk_get_category_tree(),'','onChange="javascript:do_jump_list(this.value)"'); ?></td>
			</tr>
	</table>
  </td>
  </tr>
   <tr>				
		<td class="dataTableHeadingContent" width="100%" align="left"><?php echo HEADING_TITLE; ?></td>
    </tr>
	 <tr>
		<td valign="top">
		  <table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr><td class="dataTableHeadingContent" colspan="2" id="res_display" style="display:none"></td></tr>
			  <tr>
				<td colspan="2">
				   <?php echo tep_draw_form('new_product', FILENAME_FAQDESK, 'command=file_upload', 'post', ' onSubmit="javascript:return AIM.submit(document.new_product, {\'onStart\' : startCallback_cms, \'onComplete\' : completeCallback_cms});" enctype="multipart/form-data"');?>
						<input type='hidden' name='product_id' id='product_id'>						
						<input type="hidden" name="sort_order" id="sort_order">						
						<input type='hidden' name='action_type' id='action_type'>
						<input type='hidden' name='image_type' id='image_type'>
				        <div id="search_details"><?php output_sub_result(0,1,'A',0,'',1); ?></div>
 				        <div id="new_category"></div>
					</form>										
				</td>
			</tr>	
		</table>
		</td>
	</tr>
	<div id="ajax_load_img" style="display:none">
		<?php echo tep_image(DIR_WS_IMAGES . '24-1.gif') ;?>
	</div>
</table>
	</td>
	</tr>	
	</table>
	</td>
	</tr>
</table>
		</td>
	</tr>
</table>
		</td>
<!-- body_text_eof //-->
	</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
