예제 #1
0
파일: show_page.php 프로젝트: volhali/mebel
	public function getPage(){

		if ($this->getParam('ajax')) {
			for ($i = 0 ; $i < 10 ; $i++) ob_end_clean();
			header('Content-type: text/html; charset=windows-1251');

			switch ($this->getParam('ajax')){
				case 'calculate':
					$this->ajax_calculate( $this->getParam('vklad') );
					break;
			}

			exit;
		}


		$DATA = array(
			'action'=>$this->action,
			'VKLAD_json' => custom_json::encode( $this->getVklady() ),
			'SR' => $this->getRefinansirovanie(),
		);


		//  подготавливаем данные о вкладах
		$VAL = $this->getValutsList();
		$Vklady = array();
		foreach ($VAL as $val_key=>$val_name){
			if($VKL = $this->getVklady( array('vklad_val' => $val_key) ) ){
				$Vklady[$val_key] = $VKL;
				$DATA['VAL'][$val_key] = $val_name;
			}
		}



		TPL::PrnTpl('obligacii_standart',$DATA);
		//F::debug($DATA);
	}