diff --git a/module/doc/model.php b/module/doc/model.php index ed6d482ef3..9771692585 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -108,7 +108,7 @@ class docModel extends model } $actions = $this->setFastMenu($fastLib); - $actions .= common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib', "type={$type}&objectID={$currentLib}"), " " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe'") : ''; + $actions .= common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib', "type={$type}&objectID={$currentLib}", '', '', $this->session->program), " " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe'") : ''; $this->lang->modulePageActions = $actions; } diff --git a/module/doc/view/browse.html.php b/module/doc/view/browse.html.php index 16f0bda852..57aeaeca8a 100644 --- a/module/doc/view/browse.html.php +++ b/module/doc/view/browse.html.php @@ -46,9 +46,9 @@ var browseType = ''; @@ -57,7 +57,7 @@ var browseType = ''; @@ -75,7 +75,7 @@ var browseType = ''; doc->noDoc;?> - createLink('doc', 'create', "libID={$libID}&moduleID=$moduleID"), " " . $lang->doc->create, '', "class='btn btn-info'");?> + createLink('doc', 'create', "libID={$libID}&moduleID=$moduleID", '', '', $this->session->program), " " . $lang->doc->create, '', "class='btn btn-info'");?> doc->noEditedDoc;?> @@ -105,17 +105,17 @@ var browseType = ''; collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?> - id}&browseType=all¶m=0&orderBy=$orderBy&from=$from"), "  " . $lib->name);?> + createLink('doc', 'browse', "libID={$lib->id}&browseType=all¶m=0&orderBy=$orderBy&from=$from", '', '', $this->session->program), "  " . $lib->name);?> - id&objectType=doclib");?>" title="" class='btn btn-link ajaxCollect'> + id&objectType=doclib", '', '', $this->session->program);?>" title="" class='btn btn-link ajaxCollect'> - id", "", '', "title='{$lang->edit}' class='btn btn-link iframe'")?> - id&type=doc", "", '', "title='{$lang->tree->manage}' class='btn btn-link'")?> + id", "", '', "title='{$lang->edit}' class='btn btn-link iframe'", '', '', '', $this->session->program)?> + id&type=doc", "", '', "title='{$lang->tree->manage}' class='btn btn-link'", '', '', '', $this->session->program)?> @@ -124,9 +124,9 @@ var browseType = ''; $attachLib):?> - product}"), "  " . $attachLib->name);?> + createLink('doc', 'allLibs', "type=project&product={$currentLib->product}", '', '', $this->session->program), "  " . $attachLib->name);?> - $type}"), "  " . $attachLib->name);?> + createLink('doc', 'showFiles', "type=$type&objectID={$currentLib->$type}", '', '', $this->session->program), "  " . $attachLib->name);?> @@ -141,14 +141,14 @@ var browseType = ''; collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?> - id&orderBy=$orderBy&from=$from"), "  " . $module->name);?> + createLink('doc', 'browse', "libID=$libID&browseType=bymodule¶m=$module->id&orderBy=$orderBy&from=$from", '', '', $this->session->program), "  " . $module->name);?> - id&objectType=module");?>" title="" class='btn btn-link ajaxCollect'> + id&objectType=module", '', '', $this->session->program);?>" title="" class='btn btn-link ajaxCollect'> @@ -158,17 +158,17 @@ var browseType = ''; collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?> - id"), "  " . $doc->title);?> + createLink('doc', 'view', "docID=$doc->id", '', '', $this->session->program), "  " . $doc->title);?> fileSize ? $doc->fileSize : '-';?> addedBy);?> addedDate, 'y-m-d');?> editedDate, 'y-m-d');?> - id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> + id&objectType=doc", '', '', $this->session->program);?>" title="" class='btn btn-link ajaxCollect'> - id", "", '', "title='{$lang->edit}' class='btn btn-link'")?> - id", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?> + id", "", '', "title='{$lang->edit}' class='btn btn-link'", '', '', '', $this->session->program)?> + id", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'", '', '', '', $this->session->program)?> diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index d2426215b9..64d0d49a7a 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -37,7 +37,7 @@ $sideWidth = common::checkNotCN() ? '270' : '238';
  • doclib->create, $tabValue, ''); - if($text and common::hasPriv($tabValue, 'create')) echo html::a($this->createLink($tabValue, 'create'), $text, '', "class='text-ellipsis'"); + if($text and common::hasPriv($tabValue, 'create')) echo html::a($this->createLink($tabValue, 'create', '', '', '', $this->session->program), $text, '', "class='text-ellipsis'"); ?>
  • @@ -60,9 +60,9 @@ $sideWidth = common::checkNotCN() ? '270' : '238'; ?>
  • > 0):?> - createLink('doc', 'objectLibs', "type=$tabValue&objectID=$tabMenu->id"), $icon . $tabMenu->name, '', "class='text-ellipsis' title='{$tabMenu->name}'");?> + createLink('doc', 'objectLibs', "type=$tabValue&objectID=$tabMenu->id", '', '', $this->session->program), $icon . $tabMenu->name, '', "class='text-ellipsis' title='{$tabMenu->name}'");?> - createLink('doc', 'browse', "libID=$mainLibID"), $icon . $tabMenu->name, '', "class='text-ellipsis' title='{$tabMenu->name}'");?> + createLink('doc', 'browse', "libID=$mainLibID", '', '', $this->session->program), $icon . $tabMenu->name, '', "class='text-ellipsis' title='{$tabMenu->name}'");?> id])):?>