<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class mvedio_miniAction extends security_login {
	function action(){
		ModuleLimit(__CLASS__);
		global $conn;

		if($this->_getParam('mvedio_id')){
			$cid=$this->_getParam('mvedio_id');
			$category=new model_Filecategory();
			$category->setSubsection('WHERE filecategory_id='.$cid);
			$categoryrs=$category->doSelectOne();
			$cname=$categoryrs->getTitle();			
		}else{
			$cname='视频库';
			$cid=0;
		}

		$miceSession = new session();
		$filenames=$miceSession->get('upfilename');
		
		$ufn=str_replace(',','","',strtolower(MICE_UPLOAD_FILE_NAME));
		$ufn='"'.$ufn.'"';

		

		$smarty = new Smarty();
		$smarty->load_filter('pre','micePreCompileAdmin');
		$smarty->assign('cname',$cname);
		$smarty->assign('cid',$cid);
		$smarty->assign('ufn',$ufn);
		$smarty->assign('formaction',MICE_URL.'admin.php/mvedio/file');
		$smarty->assign('miniupload',MICE_URL.'admin.php/mvedio/mini');
		$smarty->assign('filesize',MICE_UPLOAD_FILE_SIZE);
		$smarty->assign('fileexts',MICE_UPLOAD_FILE_NAME);
		$smarty->assign('filenames',$filenames);
		$filename = new getTPLFileName(__CLASS__);
		$smarty->display($filename->TPLFileName);
	}
}
?>