* finish task 2109.

This commit is contained in:
ChuJilu
2014-11-03 09:33:42 +08:00
parent 094ddff047
commit 449bc717ae
+3 -2
View File
@@ -35,11 +35,12 @@ function downloadFile(fileID)
if(common::hasPriv('file', 'download'))
{
echo "<li class='list-group-item'><i class='icon-file-text text-muted icon'></i> &nbsp;";
echo '<strong>' . html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $file->title .'.' . $file->extension, '_blank', "onclick='return downloadFile($file->id)'") . '</strong>';
echo "<span class='pull-right'>";
common::printLink('file', 'edit', "fileID=$file->id", "<i class='icon-pencil'></i>", '', "class='edit btn-icon' title='{$lang->file->edit}'");
if(common::hasPriv('file', 'delete')) echo html::a('###', "<i class='icon-remove'></i>", '', "class='btn-icon' onclick='deleteFile($file->id)' title='$lang->delete'");
echo '</span></li>';
echo '</span>';
echo '<strong>' . html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $file->title .'.' . $file->extension, '_blank', "onclick='return downloadFile($file->id)'") . '</strong>';
echo '</li>';
}
}
?>