<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class poll_edit2Action extends security_login {
	function action(){
		ModuleLimit(__CLASS__);
		global $conn;
		$poll_id=$this->_getParam('poll_id');
		if($poll_id){
			$poll=new model_Poll();
			$poll->setSubsection('WHERE poll_id='.$poll_id);
			$results=$poll->doSelectOne();
		}else{
			$results=new model_Poll();
		}

		


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