* adjust the file export page.

This commit is contained in:
wangchunsheng
2013-02-25 01:45:03 +00:00
parent 39afa71386
commit 589d3f0db5
5 changed files with 16 additions and 17 deletions

View File

@@ -35,7 +35,6 @@ $lang->link = 'Link';
$lang->unlink = 'Unlink';
$lang->import = 'Import';
$lang->export = 'Export';
$lang->exportType = 'Exprot Type';
$lang->setFileName = 'Filename:';
$lang->activate = 'Activate';
$lang->submitting = 'Saving...';
@@ -115,8 +114,8 @@ $lang->exportFileTypeList['csv'] = 'csv';
$lang->exportFileTypeList['xml'] = 'xml';
$lang->exportFileTypeList['html'] = 'html';
$lang->exportTypeList['all'] = 'Export ALL';
$lang->exportTypeList['selected'] = 'Export Checked';
$lang->exportTypeList['all'] = 'All records';
$lang->exportTypeList['selected'] = 'Only checked';
/* Support charset. */
$lang->exportEncodeList['gbk'] = 'GBK';

View File

@@ -35,7 +35,6 @@ $lang->link = '关联';
$lang->unlink = '移除';
$lang->import = '导入';
$lang->export = '导出';
$lang->exportType = '导出类型';
$lang->setFileName = '文件名:';
$lang->activate = '激活';
$lang->submitting = '稍候...';
@@ -115,8 +114,8 @@ $lang->exportFileTypeList['csv'] = 'csv';
$lang->exportFileTypeList['xml'] = 'xml';
$lang->exportFileTypeList['html'] = 'html';
$lang->exportTypeList['all'] = '导出全部';
$lang->exportTypeList['selected'] = '导出选中';
$lang->exportTypeList['all'] = '全部记录';
$lang->exportTypeList['selected'] = '选中记录';
/* 支持的编码格式。*/
$lang->exportEncodeList['gbk'] = 'GBK';

View File

@@ -43,18 +43,19 @@ function switchEncode(fileType)
}
}
</script>
<br /><br />
<form method='post' target='hiddenwin' onsubmit='setDownloading();'>
<form method='post' target='hiddenwin' onsubmit='setDownloading();' style='margin-top:10px'>
<table class='table-1'>
<caption><?php echo $lang->export;?></caption>
<tr>
<td class='a-center'>
<?php echo '<p>' . $lang->exportType . '' . html::radio('exportType', $lang->exportTypeList, ($this->cookie->checkedItem) ? 'selected' : 'all') . '</p>'?>
<?php echo $lang->setFileName;?>
<?php echo html::input('fileName', '', 'size=15');?>
<?php echo html::select('fileType', $lang->exportFileTypeList, '', 'onchange=switchEncode(this.value)');?>
<?php echo html::select('encode', $lang->exportEncodeList, 'gbk', key($lang->exportFileTypeList) == 'csv' ? "" : "class='hidden'");?>
<?php echo html::submitButton();?>
<td class='a-center' style='padding:30px'>
<?php
echo $lang->setFileName . ' ';
echo html::input('fileName', '', 'class=text-2');
echo html::select('fileType', $lang->exportFileTypeList, '', 'onchange=switchEncode(this.value)');
echo html::select('encode', $lang->exportEncodeList, 'gbk', key($lang->exportFileTypeList) == 'csv' ? "" : "class='hidden'");
echo html::select('exportType', $lang->exportTypeList, ($this->cookie->checkedItem) ? 'selected' : 'all');
echo html::submitButton();
?>
</td>
</tr>
</table>

View File

@@ -526,7 +526,7 @@ function setSubversionLink()
/* Set the colorbox of export. */
function setExport()
{
if($('.export').size()) $(".export").colorbox({width:500, height:220, iframe:true, transition:'none', scrolling:true});
if($('.export').size()) $(".export").colorbox({width:600, height:200, iframe:true, transition:'none', scrolling:true});
}
/**

View File

@@ -380,7 +380,7 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
#poweredby {padding-right:10px}
/* Debug. */
.debugwin {display:block; width:200px; height:20px; bottom:50px; border-left:10px solid red; position:fixed;}
.debugwin {display:block; width:50px; height:20px; bottom:50px; border-left:10px solid red; position:fixed;}
/* Pager. */
.pager {margin-bottom:0}