<!--<?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_add;
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">
		<input name="action" type="hidden" value="add" />
		<input name="module" type="hidden" value="$module" />
		<input name="met_flash_type" type="hidden" value="$mtype" />
<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="0" /> <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="" />
		</dd>
	</dl>
	</div>
	<div class="v52fmbx_dlbox">
	<dl>
		<dt>{$lang_setflashImgUrl}{$lang_marks}</dt>
		<dd>
			<input name="img_path" type="text" class="text" value="" />
			<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="" />
			<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"> {$lang_allcategory}</label></p></h3>
			<div class="list">
<!--
EOT;
foreach($mod1 as $key=>$val){
if(!$val[wap_ok]&&$met_wapshowtype)continue;
echo <<<EOT
-->	
	<p><label><input name="met_clumid_{$val[id]}" type="checkbox" class="checkbox" value="{$val[id]}"> {$val[name]}</label></p>
<!--
EOT;
foreach($mod2[$val[id]] as $key=>$val2){
if(!$val2[wap_ok]&&$met_wapshowtype)continue;
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]}"> {$val2[name]}</label></p>
<!--
EOT;
foreach($mod3[$val2[id]] as $key=>$val3){
if(!$val3[wap_ok]&&$met_wapshowtype)continue;
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]}"> {$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.
?>-->