<?php
	/*
	** File: admin_menu
	** Description: menu for administrators
	** Version: 2.0
	** Created: 04/08/1999
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: chris $
	** Last Revised: $Date: 1999/11/02 18:23:12 $
	** Log : $Log: admin_menu,v $
	** Log : Revision 1.13  1999/11/02 18:23:12  chris
	** Log : Added support for coupons.
	** Log :
	** Log : Revision 1.11  1999/10/12 23:14:48  leon
	** Log : Moved localization constants into 'english' module.  Added constant to
	** Log : control whether unregistered shoppers may checkout.
	** Log :
	** Log : Revision 1.10  1999/10/12 00:39:07  chris
	** Log : Moving text into constants in preparation of localization support.
	** Log :
	** Log : Revision 1.9  1999/09/22 23:07:37  leon
	** Log : Added functionality to edit relationship types.
	** Log :
	** Log : Revision 1.8  1999/09/09 20:34:19  leon
	** Log : Added support for an index-based search.
	** Log : Constants in global_settings controls whether the index is used or
	** Log : not.  You can build/re-build the index through a link on the
	** Log : admin menu.
	** Log :
	** Log : Revision 1.7  1999/08/18 22:32:13  leon
	** Log : Returning opening PHP tag to XML-friendly tag
	** Log :
	** Log : Revision 1.6  1999/08/13 18:20:01  leon
	** Log : Added interface for setting sales prices per the requirements specification.
	** Log : (See "Add promotion/discount offers").  Since admin_sales needs to use
	** Log : DepartmentSelector, I tweaked it a bit.
	** Log :
	** Log : Revision 1.5  1999/08/09 23:01:41  leon
	** Log : Added new quick_order screen, added it to side nav, added link to attribute
	** Log : admin back to admin menu, and removed references to batches from build.sql
	** Log :
	** Log : Revision 1.4  1999/08/03 00:26:39  jj
	** Log : A large amount of programming changing the whole department and item admin process.
	** Log :
	** Log : Revision 1.3  1999/07/28 19:27:30  leon
	** Log : Mass update based on code donation from a live project
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/

	if($UserInfo["Permission"]["Administrate"])
	{

	
		print("<H3>" . L_ADMINMENU_ADMINMENU . "</H3>\n");
	
		print("<A HREF=\"" . ScreenURL("admin_departments") . "\">");
		print(L_ADMINMENU_ADMINISTRATEDEPTS);
		print("</A><BR><BR>\n");

		print("<A HREF=\"" . ScreenURL("admin_attribute") . "\">");
		print(L_ADMINMENU_ADMINISTRATEATTRIBUTES);
		print("</A><BR><BR>\n");
	
		print("<A HREF=\"" . ScreenURL("admin_invoice") . "\">");
		print(L_ADMINMENU_ADMINISTRATEINVOICE);
		print("</A><BR><BR>\n");
	
		print("<A HREF=\"" . ScreenURL("admin_coupon") . "\">");
		print(L_ADMINMENU_ADMINISTRATECOUPON);
		print("</A><BR><BR>\n");
	
		print("<A HREF=\"" . ScreenURL("edit_users") . "\">");
		print(L_ADMINMENU_ADMINISTRATEUSERS);
		print("</A><BR><BR>\n");
	
		print("<A HREF=\"" . ScreenURL("admin_tax_rates") . "\">");
		print(L_ADMINMENU_ADMINISTRATETAXRATES);
		print("</A><BR><BR>\n");
	
		print("<A HREF=\"" . ScreenURL("report_inventory") . "\">");
		print(L_ADMINMENU_ADMINISTRATEINVENTORY);
		print("</A><BR><BR>\n");

		print("<A HREF=\"" . ScreenURL("admin_sales") . "\">");
		print(L_ADMINMENU_ADMINISTRATESALES);
		print("</A><BR><BR>\n");

		print("<A HREF=\"" . ScreenURL("create_index") . "\">");
		print(L_ADMINMENU_CREATENEWSEARCHINDEX);
		print("</A><BR><BR>\n");

		print("<A HREF=\"" . ScreenURL("admin_relationships") . "\">");
		print(L_ADMINMENU_ADMINISTRATEITEMTOITEM);
		print("</A><BR><BR>\n");
	
		print("<A HREF=\"" . ScreenURL("admin_fees") . "\">");
		print(L_ADMINMENU_ADMIN_FEES);
		print("</A><BR><BR>\n");
	
	}
	else
	{
		print(L_ADMINMENU_DENIED);
	}	
?>
