* finish task #2304.
This commit is contained in:
2
module/doc/css/view.css
Normal file
2
module/doc/css/view.css
Normal file
@@ -0,0 +1,2 @@
|
||||
.file-content fieldset .files-list{font-size:25px;}
|
||||
.file-content fieldset .files-list i.icon-file-text{font-size:25px;}
|
||||
5
module/doc/js/view.js
Normal file
5
module/doc/js/view.js
Normal file
@@ -0,0 +1,5 @@
|
||||
$(function()
|
||||
{
|
||||
var outerH =$('.outer').css('min-height').replace('px', '');
|
||||
$('#url-content').height(outerH - 180);
|
||||
})
|
||||
@@ -48,18 +48,13 @@
|
||||
<div class='row-table'>
|
||||
<div class='col-main'>
|
||||
<div class='main'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->doc->digest;?></legend>
|
||||
<div><?php echo $doc->digest;?></div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->doc->keywords;?></legend>
|
||||
<div><?php echo $doc->keywords;?></div>
|
||||
</fieldset>
|
||||
<?php if($doc->type == 'url'):?>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->doc->url;?></legend>
|
||||
<div><?php echo html::a(urldecode($doc->url), '', '_blank');?></div>
|
||||
<div>
|
||||
<?php echo html::a(urldecode($doc->url), '', '_blank');?>
|
||||
<iframe src='<?php echo urldecode($doc->url);?>' width='100%'frameborder='0' id='url-content'></iframe>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif;?>
|
||||
<?php if($doc->type == 'text'):?>
|
||||
@@ -68,15 +63,24 @@
|
||||
<div class='content'><?php echo $doc->content;?></div>
|
||||
</fieldset>
|
||||
<?php endif;?>
|
||||
<?php if($doc->type == 'file'):?>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $doc->files, 'fieldset' => 'true'));?>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<div class='file-content'>
|
||||
<?php if($doc->type == 'file'):?>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $doc->files, 'fieldset' => 'true'));?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class='actions'><?php if(!$doc->deleted) echo $actionLinks;?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='col-side'>
|
||||
<div class='main main-side'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->doc->digest;?></legend>
|
||||
<div><?php echo $doc->digest;?></div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->doc->keywords;?></legend>
|
||||
<div><?php echo $doc->keywords;?></div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->doc->basicInfo;?></legend>
|
||||
<table class='table table-data table-condensed table-borderless table-fixed'>
|
||||
@@ -110,6 +114,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,8 +34,8 @@ function downloadFile(fileID)
|
||||
{
|
||||
if(common::hasPriv('file', 'download'))
|
||||
{
|
||||
echo "<li class='list-group-item'><i class='icon-file-text text-muted icon'></i> ";
|
||||
echo html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $file->title .'.' . $file->extension, '_blank', "onclick='return downloadFile($file->id)'");
|
||||
$fileTitle = "<li class='list-group-item'><i class='icon-file-text text-muted icon'></i> " . $file->title .'.' . $file->extension;
|
||||
echo html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $fileTitle, '_blank', "onclick='return downloadFile($file->id)'");
|
||||
echo "<span class='right-icon'>";
|
||||
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'");
|
||||
|
||||
Reference in New Issue
Block a user