<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
require_once template('head'); 
echo <<<EOT
-->
</head>
<body>
<!--
EOT;
$title='Flash'.$lang_editor;
if($kuaijieskin){
$ffwegitl = $listclass;
$listclass='';
$listclass[5]='class="now"';
require_once template('interface/skin_top');
$listclass=$ffwegitl;
}
require_once template('interface/flash/top');
echo <<<EOT
-->
<form method="POST" name="myform" action="flashsave.php?anyid={$anyid}&lang=$lang&kuaijieskin={$kuaijieskin}" target="_self" onSubmit="return CheckFormflash();">
		<input name="action" type="hidden" value="editor" />
		<input name="module" type="hidden" value="$module" />
		<input name="met_flash_type" type="hidden" value="$mtype" />
		<input name="id" type="hidden" value="$id" />
<div class="v52fmbx_tbmax">
<div class="v52fmbx_tbbox">
<div class="v52fmbx">
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_flashMode}{$lang_marks}</dt>
		<dd>
			<select name="flashmdtype" disabled='disabled'>
				<option value="1" {$flashmdtype1[1]}>{$lang_flashMode1}/{$lang_setflashMode3}</option>
				<option value="2" {$flashmdtype1[2]}>{$lang_flashMode2}</option>
			</select>
		</dd>
	</dl>
	</div>	
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashSize}{$lang_marks}</dt>
		<dd>
			<span style="color:#999;">{$lang_flashmodify}<a href="setflash.php?anyid={$anyid}&lang={$lang}&kuaijieskin={$kuaijieskin}" title="{$lang_indexflashexplain2}" style="color:#690;">{$lang_indexflashset}</a>{$lang_flashmodify1}{$lang_indexflashexplain3}</span>
		</dd>
	</dl>
	</div>	
<!--
EOT;
if($flashmdtype==1){ 
echo <<<EOT
-->	
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_sort}{$lang_marks}</dt>
		<dd>
			<input name="no_order" type="text" class="text mid" value="{$flashrec1[no_order]}" />
			<span class="tips">{$lang_ordernumber}</span>
		</dd>
	</dl>
	</div>	
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashName}{$lang_marks}</dt>
		<dd>
			<input name="img_title" type="text" class="text" value="{$flashrec1[img_title]}" />
		</dd>
	</dl>
	</div>
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashImgUrl}{$lang_marks}</dt>
		<dd>
			<input name="img_path" type="text" class="text" value="{$flashrec1[img_path]}">
			<span class="tips">{$lang_indexflashexplain4}</span>
			<input name="met_upsql" type="file" id="file_upload" />
<script type="text/javascript">
$(document).ready(function(){
	metuploadify('#file_upload','upimage','img_path');
});
</script>
		</dd>
	</dl>
	</div>
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashImgHref}{$lang_marks}</dt>
		<dd>
			<input name="img_link" type="text" class="text" value="{$flashrec1[img_link]}" />
			<span class="tips">{$lang_indexflashexplain9}</span>
		</dd>
	</dl>
	</div>
<!--
EOT;
}elseif($flashmdtype==2){ 
echo <<<EOT
-->	
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_sort}{$lang_marks}</dt>
		<dd>
			<input name="no_order" type="text" class="text mid" value="{$flashrec1[no_order]}"/>
			<span class="tips">{$lang_ordernumber}</span>
		</dd>
	</dl>
	</div>
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashUrl}{$lang_marks}</dt>
		<dd>
			<input name="flash_path" type="text" class="text" value="{$flashrec1[flash_path]}">
			<input name="met_upsql" type="file" id="file_upload" />
		</dd>
	</dl>
	</div>
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashBg}{$lang_marks}</dt>
		<dd>
			<input name="flash_back" type="text" class="text" value="{$flashrec1[flash_back]}">
			<span class="tips">{$lang_indexflashexplain5}</span>
			<input name="met_upsql1" type="file" id="file_upload1" />
<script type="text/javascript">
$(document).ready(function(){
	metuploadify('#file_upload','upfile','flash_path');
	metuploadify('#file_upload1','upimage','flash_back');
});
</script>
		</dd>
	</dl>
	</div>
<!--
EOT;
}
echo <<<EOT
-->	
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_category}{$lang_marks}</dt>
		<dd>
<!--
EOT;
if(count($modclumlist)){
echo <<<EOT
-->
				<div class="flashaddclumn flashaddclumn_c1">
				<h3><p><label><input name="met_clumid_all" type="checkbox" class="checkbox" value="10002" {$met_clumid_all1}> {$lang_allcategory}</label></p></h3>
				<div class="list" style="">
<!--
EOT;
foreach($mod1 as $key=>$val){
$checkeds=$flashrec1['module']=='metinfo'?'checked':($feditlist[$val[id]]==1?'checked':'');
echo <<<EOT
-->	
	<p><label><input name="met_clumid_{$val[id]}" type="checkbox" class="checkbox" value="{$val[id]}" {$checkeds}> {$val[name]}</label></p>
<!--
EOT;
foreach($mod2[$val[id]] as $key=>$val2){
$checkeds2=$flashrec1['module']=='metinfo'?'checked':($feditlist[$val2[id]]==1?'checked':'');
echo <<<EOT
-->	
    <p class="met_bigloumn2id_{$val2[bigclass]}" style="margin-left:22px;"><label><input name="met_clumid_{$val2[id]}" type="checkbox" class="checkbox" value="{$val2[id]}" {$checkeds2}> {$val2[name]}</label></p>
<!--
EOT;
foreach($mod3[$val2[id]] as $key=>$val3){
$checkeds3=$flashrec1['module']=='metinfo'?'checked':($feditlist[$val3[id]]==1?'checked':'');
echo <<<EOT
-->	
    <p class="met_bigloumn3id_{$val3[bigclass]}" style="margin-left:42px;"><label><input name="met_clumid_{$val3[id]}" type="checkbox" class="checkbox" value="{$val3[id]}" {$checkeds3}> {$val3[name]}</label></p>		
<!--
EOT;
}}}  
echo <<<EOT
-->	
				</div>
				</div>
<!--
EOT;
}else{
echo <<<EOT
-->
				<p class="red">{$lang_indexflashexplain6}</p>
<!--
EOT;
}
echo <<<EOT
-->
				<div class="clear"></div>
		</dd>
	</dl>
	</div>
	<div class="v52fmbx_submit">
		<input type="submit" name="Submit" value="{$lang_Submit}" class="submit" onclick="return flashsubm()" />
		<input type="hidden" name="f_columnlist" value="" />
	</div>
</div>
</div>
</div>
</form>
<div class="footer">$foot</div>
<script type="text/javascript">
	function flashsubm(){
		var list = $('.flashaddclumn').find('input');
		var vl = ',';
			list.each(function(){
				if($(this).attr("checked"))vl+=$(this).val()+',';
			});
			if(vl==','){
				alert('{$lang_js67}');
				return false;
			}else{
				$("input[name='f_columnlist']").val(vl);
				return true;
			}
	}
	$("input[name='met_clumid_all']").change(function(){
		if($(this).attr("checked")){
			$('.flashaddclumn').find('input').attr("checked",true);
		}else{	
			$('.flashaddclumn').find('input').attr("checked",false);
		}
	});
	$('.flashaddclumn').find('input').change(function(){
		if(!$(this).attr("checked")){	
			$("input[name='met_clumid_all']").attr("checked",false);
		}
	});
</script>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->