* merege the download.html.php to printFiles.html.php.

This commit is contained in:
wangchunsheng
2011-02-26 08:17:51 +00:00
parent 2477ef53a4
commit 41a6ce53e8
7 changed files with 18 additions and 25 deletions
-1
View File
@@ -11,7 +11,6 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../file/view/download.html.php';?>
<div id='titlebar'>
<div id='main' <?php if($bug->deleted) echo "class='deleted'";?>>BUG #<?php echo $bug->id . $lang->colon . $bug->title;?></div>
<div>
-1
View File
@@ -11,7 +11,6 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../file/view/download.html.php';?>
<script language='javascript'>
var type = '<?php echo $doc->type;?>';
$(document).ready(function()
-19
View File
@@ -1,19 +0,0 @@
<style>
.button-c {padding:1px}
</style>
<script language='Javascript'>
/* 删除文件。*/
function deleteFile(fileID)
{
if(!fileID) return;
hiddenwin.location.href =createLink('file', 'delete', 'fileID=' + fileID);
}
/* 下载文件。*/
function downloadFile(fileID){
if(!fileID) return;
var URL = createLink('file', 'download', 'fileID=' + fileID + '&mouse=left');
window.open(URL, '_blank');
return false;
}
</script>
+18 -1
View File
@@ -1,3 +1,20 @@
<style>.button-c {padding:1px}</style>
<script language='Javascript'>
/* Delete a file. */
function deleteFile(fileID)
{
if(!fileID) return;
hiddenwin.location.href =createLink('file', 'delete', 'fileID=' + fileID);
}
/* Download a file, append the mouse to the link. Thus we call decide to open the file in browser no download it. */
function downloadFile(fileID)
{
if(!fileID) return;
var URL = createLink('file', 'download', 'fileID=' + fileID + '&mouse=left');
window.open(URL, '_blank');
return false;
}
</script>
<?php if($fieldset == 'true'):?>
<fieldset>
<legend><?php echo $lang->file->common;?></legend>
@@ -7,7 +24,7 @@
foreach($files as $file)
{
if(common::hasPriv('file' , 'download')) echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title .'.' . $file->extension, '_blank', "onclick='return downloadFile($file->id)'");
if(common::hasPriv('file', 'delete')) echo html::commonButton(' x ', "onclick=deleteFile($file->id)");
if(common::hasPriv('file', 'delete')) echo html::commonButton(' x ', "onclick='deleteFile($file->id)'");
}
?>
</div>
-1
View File
@@ -11,7 +11,6 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../file/view/download.html.php';?>
<div class='yui-d0'>
<div id='titlebar'>
-1
View File
@@ -11,7 +11,6 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../file/view/download.html.php';?>
<div class='yui-d0'>
<div id='titlebar'>
-1
View File
@@ -12,7 +12,6 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/colorize.html.php';?>
<?php include '../../file/view/download.html.php';?>
<div class='yui-d0'>
<div id='titlebar' <?php if($case->deleted) echo "class='deleted'";?>>
CASE #<?php echo $case->id . $lang->colon . $case->title;?>