<!--<?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='Banner管理 > '.'Banner'.$lang_editor;
require_once template('app/wap/flash_top');
echo <<<EOT
-->
<form method="POST" name="myform" action="flashsave.php?anyid={$anyid}&lang=$lang&cs=$cs" 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_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]}" />
			<input name="met_upsql" type="file" id="file_upload" />
		</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>
	<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){
if(!$val[wap_ok]&&$met_wapshowtype)continue;
$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){
if(!$val2[wap_ok]&&$met_wapshowtype)continue;
$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){
if(!$val3[wap_ok]&&$met_wapshowtype)continue;
$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);
		}
	});
$(document).ready(function(){
	metuploadify('#file_upload','upimage','img_path');
});
</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.
?>-->