* merege the download.html.php to printFiles.html.php.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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'>
|
||||
|
||||
@@ -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'>
|
||||
|
||||
@@ -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;?>
|
||||
|
||||
Reference in New Issue
Block a user