</div>
	<br><br>
	
	<div id="header">
		</div><!-- header -->

	<div id="mainmenu">
		<?php 
$this->widget('zii.widgets.CMenu', array('items' => array(array('label' => 'Items', 'url' => array('/items/freeSearch/')), array('label' => 'Inbound', 'url' => array('/items/inboundSearch')), array('label' => 'Outbound', 'url' => array('/items/outboundSearch')), array('label' => 'Purchase Order', 'url' => array('/purchaseOrder/admin')), array('label' => 'ItemsOnOrder', 'url' => array('/itemOnOrder/admin')), array('label' => 'Set Up', 'url' => array('/setup/view&id=1')), array('label' => 'Back Up', 'url' => array('/site/backup'), 'visible' => !Yii::app()->user->isGuest))));
?>
	</div><!-- mainmenu -->

	<div id='submenu' style="text-align:center">
		<?php 
$addons_list = Addons::model()->findAll(array('condition' => 'active=1'));
foreach ($addons_list as $addon) {
    echo "<li>";
    echo CHtml::link($addon->addon_label, array('/' . $addon->name));
    echo "</li>";
}
?>
	
	</div>
	
	
	
	
	
	<?php 
if (isset($this->breadcrumbs)) {
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = Addons::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }