public function indexAction() 
	{
		$vehicles = new Vehicle_Models_VehicleMapper();
		$errorMsg = null;
		if($this->getRequest()->isPost())
		{
			$formData = $this->getRequest()->getPost();
			$arrayVehicles = array();
			$key = trim($formData['key']);
			if($key!=null)
			{
				$condition = $formData['condition'];
				$arrayVehicles = $vehicles->fetchAllJoin($key,$condition);
				if(count($arrayVehicles) == 0)
				{
					$errorMsg = General_Models_Text::$text_searchErrorNr;
					//waring a message  :  no match result
				}
			}
			else
			{
				$errorMsg = General_Models_Text::$text_searchErrorNi;
				//waring a message  :  please input a key word
			}
		}
		else
		{
			$arrayVehicles = $vehicles->fetchAllJoin();
		}
		if(count($arrayVehicles) != 0)
		{
			$pageNumber = $this->_getParam('page');
			$arrayVehicles->setCurrentPageNumber($pageNumber);
			$arrayVehicles->setItemCountPerPage('20');
			}
		$this->view->messages = $this->_helper->flashMessenger->getMessages();
		$this->view->arrayVehicles = $arrayVehicles;
		$this->view->errorMsg = $errorMsg;
		$this->view->modelName = "车辆信息";
		}
	public function indexAction()
	{
		$projects = new Project_Models_ProjectMapper();
		$vehicles = new Vehicle_Models_VehicleMapper();
		
		$arrayProjects = $projects->fetchAllJoin();
		$arrayVehicles = $vehicles->fetchAllJoin();
		
		$this->view->arrayProjects = $arrayProjects;
		$this->view->arrayVehicles = $arrayVehicles;
		
		$messages = new Admin_Models_MessageMapper();
		$validations = new Pment_Models_MplanMapper();
		
		$userId = $this->getUserId();
		$arrayMessages = $messages->fetchAllNews($userId);
		$arrayValidations = $validations->fetchAllValidations($userId);
		
		$this->view->arrayMessages = $arrayMessages;
		$this->view->arrayValidations = $arrayValidations;
	}