<?php
/**
 **	/navigation/leftNav_perm_AGENT_SHOWALL.inc
 ** 	leftNav library file
 **
 **	Original Author:	Robby Anderson
 **	Original Date:		September 2005
 **
 **	Modified By:
 **	Modified On:
 **	Modifications:
 **
 ** This should be called after all the other nav libs. It takes the two
 ** arrays generated (navSections and navLinks) and displays them
 **
 **/


/***

	Current section list
	====================

	// Agent Workflow
	$navSections[10] = 'Customer Service';
	$navSections[11] = 'Production';
	$navSections[12] = 'Fulfillment';
	$navSections[13] = 'Channel Functions';

	$navSections[30] = 'Underwriting';

	$navSections[50] = 'Product Sales';

	$navSections[60] = 'Mortgage Apps';
	$navSections[61] = 'Mortgage Workflow';


	// Agent/Admin functions
	$navSections[100] = 'Admin Functions';

	$navSections[110] = 'App Functions';
	$navSections[111] = 'Task Management';
	$navSections[112] = 'User Management';
	$navSections[113] = 'Queue Management';

	$navSections[120] = 'Site Management';
	$navSections[130] = 'Form Management';
	$navSections[140] = 'Accounting';
	$navSections[150] = 'Mailer Functions';


	// Lender functions
	$navSections[200] = 'New Applications';
	$navSections[201] = 'Approved Applications';
	$navSections[202] = 'Other Functions';


	// External functions
	$navSections[300] = 'Applications';
	$navSections[301] = 'Customer Service';
	$navSections[302] = 'User Admin';
	$navSections[303] = 'Application Admin';


	// Misc
	$navSections[999] = 'Reports';


***/


	if ( count($navLinks) ) {

		// Start the left nav
		$leftNav .= '<div class="subnav" style="text-align:left;">';

		// Sort the navSections array by key
		ksort($navSections);



		// Loop through each section
		foreach ( array_keys($navSections) as $thisID ) {

			// Start a new section
			$leftNav .= '				<div class="feature02"><b>'.$navSections[$thisID].'</b></div>';
			$leftNav .= '				<ul>';

			// Loop through the links in the section
			foreach ( $navLinks[$thisID] as $thisLink ) {
				$leftNav .= "			  	<li>{$thisLink}</li>";
			}

			// End the section
			$leftNav .= "				</ul>";
		}


		// End the left nav
		$leftNav .= '</div>';
	}

?>