<?php
/* @var $this CompanyController */
/* @var $model Company */

//$this->breadcrumbs=array(
//	'Companies'=>array('index'),
//	$model->name=>array('view','id'=>$model->id),
//	'Update',
//);
//$this->menu=array(
//	array('label'=>'List Company', 'url'=>array('index')),
//	array('label'=>'Create Company', 'url'=>array('create')),
//	array('label'=>'View Company', 'url'=>array('view', 'id'=>$model->id)),
//	array('label'=>'Manage Company', 'url'=>array('admin')),
//);
$user_id = Yii::app()->user->getState('__userid');
$userStatus = Yii::app()->user->getState('__statusAdmin');
if ($userStatus == 'Admin') {
//    $this->menu = array(
//        array('label' => 'List Company', 'url' => array('index')),
//        array('label' => 'Create Company', 'url' => array('create')),
//        array('label' => 'View Company', 'url' => array('view', 'id' => $model->id)),
//        array('label' => 'Manage Company', 'url' => array('admin')),
//    );
} else {
    $this->menu = array(
        //array('label' => 'Create Company', 'url' => array('/company/createusercompany/','id'=>$user_id)),
        //array('label' => 'Manage Companies', 'url' => array('/company/useradmin/', 'id' => $user_id)),
    );
}
?>

<h4>Update Company <?php echo $model->name; ?></h4>

<?php
$this->renderPartial('_form', array('model' => $model));
?>