| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 | <?phpif(!defined('InEmpireCMS')){	exit();}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>	<head>		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">		<title>上传Flash</title>		<link type="text/css" href="images/editorpage.css" rel=stylesheet>		<script>		function EcmsEditorReturnDoAction2(str){			window.parent.EHEcmsEditorDoTranFlash(str);			self.location.href=self.location.href;		}		</script>		<script type="text/javascript">		function DoCheckTranFile(obj){			var ctypes,actypes,cfiletype,sfile,sfocus;			ctypes="<?=$ecms_config['sets']['tranflashtype']?>";			if(obj.file.value=='')			{				alert('请选择要上传的FLASH');				obj.file.focus();				return false;			}			sfile=obj.file.value;			sfocus=0;			cfiletype=','+ToGetFiletype(sfile)+',';			if(ctypes.indexOf(cfiletype)==-1)			{				alert('文件扩展名错误');				obj.file.focus();				return false;			}			return true;		}		function ToGetFiletype(sfile){			var filetype,s;			s=sfile.lastIndexOf(".");			filetype=sfile.substring(s+1).toLowerCase();			return '.'+filetype;		}		//返回编号		function ExpStr(str,exp){			var pos,len,ext;			pos=str.lastIndexOf(exp)+1;			len=str.length;			ext=str.substring(pos,len);			return ext;		}		function ReturnFileNo(obj){			var filename,str,exp;			if(obj.no.value!='')			{				return '';			}			str=obj.file.value;			if(str.indexOf("\\")>=0)			{				exp="\\";			}			else			{				exp="/";			}			filename=ExpStr(str,exp);			obj.no.value=filename;		}		</script>	</head>	<body scroll="no" style="OVERFLOW: hidden" topmargin="0">		   <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" id="tranpictb">    <form id="TranFlashFormT" name="TranFlashFormT" method="post" target="eeditoruploadflash<?=$ecms_topager['InstanceId']?>" enctype="multipart/form-data" action="../../../DoInfo/ecms.php" onsubmit="return DoCheckTranFile(TranFlashFormT);">      <input type=hidden name=classid value="<?=$ecms_topager['classid']?>">      <input type=hidden name=filepass value="<?=$ecms_topager['filepass']?>">	  <input type=hidden name=infoid value="<?=$ecms_topager['infoid']?>">      <input type=hidden name=enews value="MEditorTranFile">      <input type=hidden name=type value="2">      <input type=hidden name=doing value="0">      <input type=hidden name=tranfrom value="1">      <input type=hidden name=InstanceName value="<?=$ecms_topager['InstanceName']?>">	  <input type=hidden name=InstanceId value="<?=$ecms_topager['InstanceId']?>">	  <input type=hidden name=doecmspage id=doecmspage value="<?=$doecmspage?>">            <tr>         <td><strong>本地上传</strong><br>           <input type="file" name="file" id="file" style="width: 100%">        </td>      </tr>            <tr>         <td height="30"> <input type="submit" name="Submit2" value="上 传">        </td>      </tr>    </form>  </table>  <iframe name="eeditoruploadflash<?=$ecms_topager['InstanceId']?>" id="eeditoruploadflash<?=$ecms_topager['InstanceId']?>" style="display:none" src="images/blank.html"></iframe>  	</body></html>
 |