<!--<?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;
require_once template('system/database/top');
echo <<<EOT
-->
<div class="v52fmbx_tbmax">
<div class="v52fmbx_tbbox">
<table cellpadding="2" cellspacing="1" class="table">
		<tr> 
            <td width="40" class="list">{$lang_smstips17}</td>
            <td width="60" class="list">{$lang_setdbFilename}</td>
			<td width="60" class="list">{$lang_setdbsysver}</td>
            <td width="60" class="list">{$lang_setdbFilesize}</td>
            <td width="160" class="list">{$lang_setdbTime}</td>
            <td width="60" class="list">{$lang_setdbNumber}</td>
            <td class="list list_left">{$lang_operate}</td>
		</tr>
<!--
EOT;
if($infos){
$i=0;
foreach($infos as $id => $info){
$filenamearray=explode(".sql",$info[filename]);
$i++;
echo <<<EOT
-->
            <tr class="mouse"> 
            <td class="list-text">$i</td>
            <td class="list-text">$info[filename]</td>
			<td class="list-text">{$info[ver]}</td>
            <td class="list-text">{$info[filesize]} MB</td>
            <td class="list-text">$info[maketime]</td>
            <td class="list-text">$info[number]</td>
            <td class="list-text list_left">
<!--
EOT;
if($info[error]==1){
echo <<<EOT
-->	
			{$lang_setdbLack}&nbsp;
			<a href="?anyid={$anyid}&action=delete&filenames=$id&lang=$lang&rutnmt=import" onclick="return linkSmit($(this),1);" title="{$lang_delete}">{$lang_delete}</a>&nbsp;  
			<a href="filedown.php?anyid={$anyid}&lang=$lang&cs=6&filenames=$id" target="_self" title="{$lang_setdbDownload}">{$lang_setdbDownload}</a>
<!--
EOT;
}elseif($info[error]==2){
echo <<<EOT
-->	
			{$lang_unitytxt_6}&nbsp;
			<a href="?anyid={$anyid}&action=delete&filenames=$id&lang=$lang&rutnmt=import" onclick="return linkSmit($(this),1);" title="{$lang_delete}">{$lang_delete}</a>&nbsp;  
			<a href="filedown.php?anyid={$anyid}&lang=$lang&cs=6&filenames=$id" target="_self" title="{$lang_setdbDownload}">{$lang_setdbDownload}</a>
<!--
EOT;
}else{
echo <<<EOT
-->			
			<a href="?anyid={$anyid}&pre=$info[pre]&action=daoru&lang=$lang" title="{$lang_setdbImportData}">{$lang_setdbImportData}</a>&nbsp; 
	        <a href="?anyid={$anyid}&action=delete&filenames=$id&lang=$lang&rutnmt=import" onclick="return linkSmit($(this),1);" title="{$lang_delete}">{$lang_delete}</a>&nbsp;  
	        <a href="filedown.php?anyid={$anyid}&lang=$lang&cs=6&filenames=$id" target="_self" title="{$lang_setdbDownload}">{$lang_setdbDownload}</a></td>
<!--
EOT;
}
echo <<<EOT
-->				
			</tr>
<!--
EOT;
}
}else{
echo <<<EOT
-->
		<tr><td class="list-text list_left color999" colspan="7">{$lang_dataexplain1}</td></tr>
<!--
EOT;
}
echo <<<EOT
-->
<tr>
	<td class="list"></td>
	<td class="list list_normal list_left" colspan="6">
		<span class="tips">{$lang_dataexplain2}</span>
		<input name="met_upsql" type="file" id="file_upload" />
	</td>
</tr> 
</table>
</div>
</div>
	<div class="footer">$foot</div>
<script type='text/javascript'>
	$(document).ready(function(){
		metuploadify('#file_upload','sql','');
	});
</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.
?>-->