<!--<?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;
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
-->
<div class="v52fmbx_tbmax">
<div class="v52fmbx_tbbox">
<h3 class="v52fmbx_hr">
	<a href="flashadd.php?anyid={$anyid}&lang={$lang}&kuaijieskin={$kuaijieskin}" title="{$lang_indexflashaddimg}" class="addmenu btn btn-danger">+{$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&kuaijieskin={$kuaijieskin}" target="_self">
				<input name="class1" type="hidden" value="250">
				<input name="class2" type="hidden" value="">
				<input name="class3" type="hidden" value="">
	
				&nbsp;{$lang_category}
				<select name="modulex" style="margin:3px 0px;" onchange='javascript:window.location.href=$(this).val();'>
				<option value='flash.php?anyid={$anyid}&lang=$lang&kuaijieskin={$kuaijieskin}'>{$lang_setflashBelong}</option>
<!--
EOT;
foreach($mod1 as $key=>$val){
echo <<<EOT
-->	
	<option value='flash.php?anyid={$anyid}&lang=$lang&module=$val[id]&kuaijieskin={$kuaijieskin}' {$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]&kuaijieskin={$kuaijieskin}' {$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]&kuaijieskin={$kuaijieskin}' {$module1[$val3[id]]}>&nbsp;&nbsp;&nbsp;&nbsp;-- $val3[name]</option>		
<!--
EOT;
}}}  
echo <<<EOT
-->	
            </select>

				&nbsp;{$lang_type}
				<select name="ftype" id="shaix-top" onchange="handle_form('filterform')">
					<option value="all" {$ftype1[all]}>{$lang_selected}</option>
					<option value="1" {$ftype1[1]}>{$lang_image}</option>
					<option value="2" {$ftype1[2]}>{$lang_flashMode2}</option>
				</select>
				</form>
			</div>
</h3>
<table cellpadding="0" cellspacing="1" class="table">
	<tr>
		<td width="30" class="list">{$lang_selected}</td>
		<td width="30" class="list">{$lang_sort}</td>
		<td width="60" class="list">{$lang_setflashBelong}</td>
		<td width="40" class="list">{$lang_type}</td>
		<td width="80" class="list list_left">{$lang_setflashName}</td>
		<td width="100" class="list">{$lang_setflashUrl}</td>
		<td class="list list_left">{$lang_operate}</td>
	</tr>
<form name="del" method="Post" action="flashdelete.php?anyid={$anyid}&lang={$lang}&kuaijieskin={$kuaijieskin}">
	<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]=$val['img_path']!=''?$val['img_path']:$val['flash_path'];
$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 width="30" class="list-text">{$val[no_order]}</td>
			<td class="list-text" title="{$val[modulename]}">{$valmname}</td>
			<td class="list-text">{$val[ftype]}</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}&kuaijieskin={$kuaijieskin}" >{$lang_editor}</a>&nbsp;&nbsp;
				<a href="flashdelete.php?anyid={$anyid}&lang=$lang&module={$module}&id={$val[id]}&kuaijieskin={$kuaijieskin}" 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="7">{$lang_csvnodata}</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="all"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAllx($(this),'del')" value="checkbox" /></td>
			<td class="all-submit" colspan="6">
				<input name="submit" type='submit' value='{$lang_deleteselected}' class="submit li-submit" onclick="return met_modify($(this),'del','del');" />
			 </td>
          </tr>
   	    <tr> 
			<td class="page_list" colspan="7">{$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.
?>-->