* Finish task #7727.
This commit is contained in:
@@ -105,7 +105,7 @@ var browseType = '<?php echo $browseType;?>';
|
||||
<?php $star = strpos($lib->collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?>
|
||||
<?php $collectTitle = strpos($lib->collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?>
|
||||
<tr>
|
||||
<td class="c-name"><?php echo html::a($this->createLink('doc', 'browse', "libID={$lib->id}&browseType=all¶m=0&orderBy=$orderBy&from=$from"), "<i class='icon icon-folder text-yellow'></i> " . $lib->name);?></td>
|
||||
<td class="c-name"><?php echo html::a(inlink('browse', "libID={$lib->id}&browseType=all¶m=0&orderBy=$orderBy&from=$from"), "<i class='icon icon-folder text-yellow'></i> " . $lib->name);?></td>
|
||||
<td class="c-num"></td>
|
||||
<td class="c-user"></td>
|
||||
<td class="c-datetime"></td>
|
||||
@@ -124,9 +124,9 @@ var browseType = '<?php echo $browseType;?>';
|
||||
<?php foreach($attachLibs as $libType => $attachLib):?>
|
||||
<tr>
|
||||
<?php if($libType == 'project'):?>
|
||||
<td class="c-name"><?php echo html::a($this->createLink('doc', 'allLibs', "type=project&product={$currentLib->product}"), "<i class='icon icon-folder text-yellow'></i> " . $attachLib->name);?></td>
|
||||
<td class="c-name"><?php echo html::a(inlink('allLibs', "type=project&product={$currentLib->product}"), "<i class='icon icon-folder text-yellow'></i> " . $attachLib->name);?></td>
|
||||
<?php elseif($libType == 'files'):?>
|
||||
<td class="c-name"><?php echo html::a($this->createLink('doc', 'showFiles', "type=$type&objectID={$currentLib->$type}"), "<i class='icon icon-folder text-yellow'></i> " . $attachLib->name);?></td>
|
||||
<td class="c-name"><?php echo html::a(inlink('showFiles', "type=$type&objectID={$currentLib->$type}"), "<i class='icon icon-folder text-yellow'></i> " . $attachLib->name);?></td>
|
||||
<?php endif;?>
|
||||
<td class="c-num"></td>
|
||||
<td class="c-user"></td>
|
||||
@@ -141,7 +141,7 @@ var browseType = '<?php echo $browseType;?>';
|
||||
<?php $star = strpos($module->collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?>
|
||||
<?php $collectTitle = strpos($module->collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?>
|
||||
<tr>
|
||||
<td class="c-name"><?php echo html::a($this->createLink('doc', 'browse', "libID=$libID&browseType=bymodule¶m=$module->id&orderBy=$orderBy&from=$from"), "<i class='icon icon-folder text-yellow'></i> " . $module->name);?></td>
|
||||
<td class="c-name"><?php echo html::a(inlink('browse', "libID=$libID&browseType=bymodule¶m=$module->id&orderBy=$orderBy&from=$from"), "<i class='icon icon-folder text-yellow'></i> " . $module->name);?></td>
|
||||
<td class="c-num"></td>
|
||||
<td class="c-user"></td>
|
||||
<td class="c-datetime"></td>
|
||||
@@ -158,7 +158,7 @@ var browseType = '<?php echo $browseType;?>';
|
||||
<?php $star = strpos($doc->collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?>
|
||||
<?php $collectTitle = strpos($doc->collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?>
|
||||
<tr>
|
||||
<td class="c-name"><?php echo html::a($this->createLink('doc', 'view', "docID=$doc->id"), "<i class='icon icon-file-text text-muted'></i> " . $doc->title);?></td>
|
||||
<td class="c-name"><?php echo html::a(inlink('view', "docID=$doc->id"), "<i class='icon icon-file-text text-muted'></i> " . $doc->title);?></td>
|
||||
<td class="c-num"><?php echo $doc->fileSize ? $doc->fileSize : '-';?></td>
|
||||
<td class="c-user"><?php echo zget($users, $doc->addedBy);?></td>
|
||||
<td class="c-datetime"><?php echo formatTime($doc->addedDate, 'y-m-d');?></td>
|
||||
|
||||
@@ -66,19 +66,19 @@ $sideWidth = common::checkNotCN() ? '270' : '238';
|
||||
<?php
|
||||
if($subLibID == 'project')
|
||||
{
|
||||
$subLibLink = $this->createLink('doc', 'allLibs', "type=project&product=$tabMenu->id");
|
||||
$subLibLink = inlink('allLibs', "type=project&product=$tabMenu->id");
|
||||
$activeClass = ($this->methodName == 'alllibs' && $type == 'project' && $$tabValue == $tabMenu->id) ? "class='active'" : '';
|
||||
$icon = 'icon-stack';
|
||||
}
|
||||
elseif($subLibID == 'files')
|
||||
{
|
||||
$subLibLink = $this->createLink('doc', 'showFiles', "type=$tabValue&objectID=$tabMenu->id");
|
||||
$subLibLink = inlink('showFiles', "type=$tabValue&objectID=$tabMenu->id");
|
||||
$activeClass = ($this->methodName == 'showfiles' && $type == $tabValue && $object->id == $tabMenu->id) ? "class='active'" : '';
|
||||
$icon = 'icon-paper-clip';
|
||||
}
|
||||
else
|
||||
{
|
||||
$subLibLink = $this->createLink('doc', 'browse', "libID=$subLibID");
|
||||
$subLibLink = inlink('browse', "libID=$subLibID");
|
||||
$activeClass = ($this->methodName == 'browse' && $browseType != 'bymodule' && $subLibID == $libID) ? "class='active'" : '';
|
||||
$icon = 'icon-folder-outline';
|
||||
}
|
||||
@@ -181,7 +181,7 @@ $sideWidth = common::checkNotCN() ? '270' : '238';
|
||||
<strong><?php echo $lang->doc->customShowLibs;?></strong>
|
||||
</div>
|
||||
<div class='modal-body'>
|
||||
<form action='<?php echo $this->createLink('custom', 'ajaxSetDoc', '');?>' target='hiddenwin' method='post'>
|
||||
<form action='<?php echo $this->createLink('custom', 'ajaxSetDoc');?>' target='hiddenwin' method='post'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<td><?php echo html::checkbox('showLibs', $lang->doc->customShowLibsList, $config->doc->custom->showLibs);?></td>
|
||||
|
||||
Reference in New Issue
Block a user