* finish task #1591 1590.

This commit is contained in:
wyd621
2013-07-25 13:46:02 +08:00
parent ee40002fba
commit 4c3ebc9cc7
4 changed files with 358 additions and 31 deletions
+13 -31
View File
@@ -1,32 +1,14 @@
<?php
/**
* The import view file of file module of ZenTaoPMS.
*
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Congzhi Chen <congzhi@cnezsoft.com>
* @package file
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<form method='post' enctype='multipart/form-data' class='a-center'>
<input type='file' name='file' class='text-5' /></td>
<?php echo html::select('fileType', $lang->importEncodeList,'gbk');?>
<?php echo html::submitButton('确定');?>
<?php include '../../common/view/header.lite.html.php';?>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
<table class='table-1 mt-10px'>
<caption><?php echo $lang->testcase->importCase?></caption>
<tr>
<td align='center'>
<input type='file' name='file'/>
<?php echo html::select('encode', $config->charsets[$this->cookie->lang], 'utf-8');?>
<?php echo html::submitButton();?>
</td>
<tr>
</table>
</form>
<form>
<table>
<?php foreach($result as $items):?>
<tr>
<?php foreach($items as $item):?>
<td>
<?php echo $item = ($fileType == 'gbk' or $fileType == 'big5') ? iconv(strtoupper($fileType), "UTF-8", $item) : $item;?>
</td>
<?php endforeach;?>
</tr>
<?php endforeach;?>
</table>
</form>
<?php include '../../common/view/footer.html.php';?>
<?php include '../../common/view/footer.lite.html.php';?>