<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class product_producteditAction extends security_login {
	function action(){
		ModuleLimit(__CLASS__);
		global $conn;
		$form_id=$this->_getParam('form_id');
		if($form_id){
			$form=new model_Form();
			$form->setSubsection('WHERE type=\'product\' and form_id='.$form_id);
			$results=$form->doSelectOne();
			if($results)
			{
				$form->setIsview('1');
				$results2=$form->doUpdate();
			}
		}else{
			$results=new model_Form();
		}

		
		
		$smarty = new Smarty();
		$smarty->load_filter('pre','micePreCompileAdmin');
		$smarty->assign('results',$results);
		$smarty->assign('index',MICE_URL.'admin.php/product/list');
		$filename = new getTPLFileName(__CLASS__);
		$smarty->display($filename->TPLFileName);
	}
}
?>