<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once template('head');
$fcls='';
$fclsa='';
if($flashmode==1)$fcls='downalnk';
if($flashmode==2)$fclsa='downalnk';
echo <<<EOT
-->
<title>{$lang_indexflash}</title>
</head>
<body>
<!--
EOT;
$title='Banner管理';
require_once template('app/wap/flash_top');
echo <<<EOT
-->
<div class="v52fmbx_tbmax">
<div class="v52fmbx_tbbox">
<h3 class="v52fmbx_hr">
	<a href="flashadd.php?anyid={$anyid}&lang={$lang}&cs={$cs}" title="{$lang_indexflashaddimg}" class="addmenu">+{$lang_indexflashaddflash}</a>
	<div class="formright">
		<form method="POST" style="position:relative; top:2px;" name="filterform" action="flash.php?anyid={$anyid}&lang=$lang&search=detail_search&cs={$cs}">
			<input name="class1" type="hidden" value="250">
			<input name="class2" type="hidden" value="">
			<input name="class3" type="hidden" value="">
			{$lang_category}
			<select name="modulex" style="margin:3px 0px;" onchange='javascript:window.location.href=$(this).val();'>
			<option value='flash.php?anyid={$anyid}&lang=$lang'>{$lang_setflashBelong}</option>
<!--
EOT;
foreach($mod1 as $key=>$val){
echo <<<EOT
-->	
			<option value='flash.php?anyid={$anyid}&lang=$lang&module=$val[id]' {$module1[$val[id]]}>$val[name]</option>
<!--
EOT;
foreach($mod2[$val[id]] as $key=>$val2){
echo <<<EOT
-->	
			<option value='flash.php?anyid={$anyid}&lang=$lang&module=$val2[id]' {$module1[$val2[id]]}>&nbsp;&nbsp;-- $val2[name]</option>
<!--
EOT;
foreach($mod3[$val2[id]] as $key=>$val3){
echo <<<EOT
-->	
			<option value='flash.php?anyid={$anyid}&lang=$lang&module=$val3[id]' {$module1[$val3[id]]}>&nbsp;&nbsp;&nbsp;&nbsp;-- $val3[name]</option>		
<!--
EOT;
}}}  
echo <<<EOT
-->	
			</select>
		</form>
	</div>
</h3>
<table cellpadding="2" cellspacing="1" class="table">
	<tr>
		<td width="30" class="list">{$lang_selected}</td>
		<td width="30" class="list">{$lang_sort}</td>
		<td width="100" class="list">{$lang_setflashBelong}</td>
		<td width="100" class="list list_left">{$lang_setflashName}</td>
		<td width="70" class="list">{$lang_mobiletips6}</td>
		<td class="list list_left">{$lang_operate}</td>
	</tr>
<form name="del" method="Post" action="flashdelete.php?anyid={$anyid}&lang={$lang}">
	<input name="module" type="hidden" value="$module">
<!--
EOT;
foreach($flashrec as $key=>$val){
$valmdy=explode(',',$val[modulename]);
if(count($valmdy)==3){
	$val[modulename]=$valmdy[1];
}elseif(count($valmdy)>3){
	$val[modulename]='';
	for($i=0;$i<count($valmdy);$i++){
		if($valmdy[$i]!='')$val[modulename].=$i==(count($valmdy)-2)?$valmdy[$i]:$valmdy[$i].'-';
	}
}
$valmname=utf8substr($val[modulename],0,6);
$val[ftype]=$val['img_path']!=''?$lang_image:$lang_flashMode2;
$val[img_path]="<a href='../../{$val[img_path]}' target='_blank'>{$lang_clickview}</a>";
echo <<<EOT
-->
		<tr class="mouse">
			<td class="list-text">$mp<input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val[id]' class="xz"></td>     
			<td class="list-text">{$val[no_order]}</td>
			<td class="list-text" title="{$val[modulename]}">{$valmname}</td>
			<td class="list-text list_left">{$val[img_title]}</td>
			<td class="list-text">{$val[img_path]}</td>
			<td class="list-text list_left">
				<a href="flashedit.php?anyid={$anyid}&lang=$lang&id=$val[id]&module={$module}&cs={$cs}" >{$lang_editor}</a>&nbsp;&nbsp;
				<a href="flashdelete.php?anyid={$anyid}&lang=$lang&module={$module}&id={$val[id]}&cs={$cs}" onClick="return linkSmit($(this),1);" >{$lang_delete}</a>
			</td>
		</tr>
<!--
EOT;
}if(count($flashrec)==0){
echo <<<EOT
-->
		<tr class="mouse">
			<td class="list-text" colspan="6">{$lang_indexflashexplain8}</td>
		</tr>
<!--
EOT;
}
echo <<<EOT
-->
              <input name="action" type="hidden" id="action" value="del">
			  <input name="allid" type="hidden" id="allid" value="">			
			</form> 
   	    <tr> 
            <td class="list">
				<input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAllx($(this),'del')" value="checkbox" />
			</td>
			<td class="list list_left" colspan="5">
				<input name="submit" type='submit' value='{$lang_deleteselected}' class="submit li-submit" onclick="return met_modify($(this),'del','del');" />
			 </td>
        </tr>
   	    <tr> 
			<td class="list list_normal" colspan="6">{$page_list}</td>
        </tr>
</table>
</div>
</div>
<div class="footer">$foot</div>
</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.
?>-->