diff --git a/module/common/view/header.html.php b/module/common/view/header.html.php index 5e3a344972..cb9e3eb983 100755 --- a/module/common/view/header.html.php +++ b/module/common/view/header.html.php @@ -7,6 +7,10 @@ include 'chosen.html.php'; app->loadConfig('sso');?> sso->redirect)) js::set('ssoRedirect', $config->sso->redirect);?> +getModuleName() == 'doc';?> +getMethodName()},") !== false;?> + + + + + - - + + - - - -doc->placeholder);?> - -
-
-
-

doc->create;?>

-
- - ' . $lang->doc->createLib, '', 'class="iframe hidden createCustomLib"');?> - -
- - - - - - - - - - - - - - - - - - - - - doc->types as $typeKey => $typeName) $typeKeyList[$typeKey] = $typeKey; - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
doc->lib;?>
doc->module;?> - -
doc->title;?>
doc->keywords;?>doc->keywordsTips}'");?>
doc->type;?>doc->types, zget($typeKeyList, $docType, 'text'));?>
doc->content;?> -
- - -
doc->files;?>fetch('file', 'buildform');?>
doc->mailto;?> -
- fetch('my', 'buildContactLists'); - ?> -
-
doclib->control;?> - acl == 'default' ? 'open' : $lib->acl;?> - type == 'project' and $acl == 'private') ? 'open' : $acl;?> - doc->aclList, $acl, "onchange='toggleAcl(this.value, \"doc\")'");?> - doc->noticeAcl['doc'][$acl];?> -
- - goback, "data-app='{$app->tab}'");?> - goback, '', "class='btn btn-back btn-wide'");?> -
-
-
-
- -doc->noticeAcl['doc']);?> - + diff --git a/module/doc/view/createothertype.html.php b/module/doc/view/createothertype.html.php new file mode 100644 index 0000000000..06cb9cc168 --- /dev/null +++ b/module/doc/view/createothertype.html.php @@ -0,0 +1,137 @@ + + * @package doc + * @version $Id: create.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $ + * @link http://www.zentao.net + */ +?> +doc->officeTypes, $docType) !== false):?> + +
+
+
+

doc->create;?>

+
+ config->edition != 'open'):?> +
+ doc->notSetOffice, zget($lang->doc->typeList, $docType), common::hasPriv('custom', 'libreoffice') ? $this->createLink('custom', 'libreoffice', '', '', true) : '###');?> +
+ +
doc->cannotCreateOffice, zget($lang->doc->typeList, $docType));?>
+ +
+
+ + + + + + + +doc->placeholder);?> + +
+
+
+

doc->create;?>

+
+ + ' . $lang->doc->createLib, '', 'class="iframe hidden createCustomLib"');?> + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
doc->lib;?>
doc->module;?> + +
doc->title;?>
doc->keywords;?>doc->keywordsTips}'");?>
doc->content;?> +
+ + + +
doc->files;?>fetch('file', 'buildform');?>
doc->mailto;?> +
+ fetch('my', 'buildContactLists'); + ?> +
+
doclib->control;?> + acl == 'default' ? 'open' : $lib->acl;?> + type == 'project' and $acl == 'private') ? 'open' : $acl;?> + doc->aclList, $acl, "onchange='toggleAcl(this.value, \"doc\")'");?> + doc->noticeAcl['doc'][$acl];?> +
+ + goback, "data-app='{$app->tab}'");?> + goback, '', "class='btn btn-back btn-wide'");?> +
+
+
+
+ +doc->noticeAcl['doc']);?> + + diff --git a/module/doc/view/createtexttype.html.php b/module/doc/view/createtexttype.html.php new file mode 100644 index 0000000000..b143d76f8d --- /dev/null +++ b/module/doc/view/createtexttype.html.php @@ -0,0 +1,161 @@ + + * @package doc + * @version $Id: createtext.html.php 975 2022-07-14 13:49:25Z $ + * @link http://www.zentao.net + */ +?> + + + +doc->placeholder);?> + + + + ' . $lang->doc->createLib, '', 'class="iframe hidden createCustomLib"');?> + +
+
+ + + + + + + + + + +
doc->titlePlaceholder}' class='form-control' required");?>
+
+
+
+ + + +
+ +
+
+
+
+ + +doc->noticeAcl['doc']);?> + diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index 3569041e5c..1f6d3b8382 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -10,109 +10,8 @@ * @link http://www.zentao.net */ ?> - -contentType == 'html') include '../../common/view/kindeditor.html.php';?> -contentType == 'markdown') include '../../common/view/markdown.html.php';?> -content != $doc->draft);?> -doc->confirmUpdateContent);?> -id);?> -draft);?> -
-
-
-

- id;?> - createLink('doc', 'view', "docID=$doc->id"), $doc->title, '', "title='$doc->title'");?> - arrow . ' ' . $lang->doc->edit;?> -

-
save, '', 'id="top-submit" class="btn btn-primary"');?>
-
-
- - - - - - - - - - - - - - - - - - - - - - type == 'url') echo "class='hidden'"?>> - - - - type != 'url') echo "class='hidden'"?>> - - - - - - - - - - - - - - - - - - - - - - -
doc->lib;?> lib, "class='form-control chosen' onchange=loadDocModule(this.value)");?>
doc->module;?> - module, "class='form-control chosen'");?> -
doc->title;?>title, "class='form-control' required");?>
doc->keywords;?>keywords, "class='form-control' placeholder='{$lang->doc->keywordsTips}'");?>
doc->type;?> - doc->types; - if(!isset($lang->doc->types[$doc->type])) $typeList = $lang->doc->typeList; - echo html::radio('type', array($doc->type => zget($typeList, $doc->type)), $doc->type); - ?> -
doc->content;?>type == 'url' ? '' : htmlSpecialString($doc->content), "style='width:100%; height:200px'") . html::hidden('contentType', $doc->contentType);?>
doc->url;?>type == 'url' ? $doc->content : '', "class='form-control'");?>
doc->files;?>fetch('file', 'buildform');?>
doc->mailto;?> -
- mailto, "multiple class='form-control picker-select' data-drop-direction='top'"); - echo $this->fetch('my', 'buildContactLists'); - ?> -
-
doclib->control;?> - acl == 'private' ? 'private' : $doc->acl;?> - doc->aclList, $acl, "onchange='toggleAcl(this.value, \"doc\")'")?> - doc->noticeAcl['doc'][$acl];?> -
- editedDate); - echo html::submitButton(); - echo html::backButton($lang->goback, "data-app='{$app->tab}'"); - ?> -
-
-
-
-doc->noticeAcl['doc']);?> - +type == 'text'):?> + + + + diff --git a/module/doc/view/editothertype.html.php b/module/doc/view/editothertype.html.php new file mode 100644 index 0000000000..3569041e5c --- /dev/null +++ b/module/doc/view/editothertype.html.php @@ -0,0 +1,118 @@ + + * @package doc + * @version $Id: edit.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $ + * @link http://www.zentao.net + */ +?> + +contentType == 'html') include '../../common/view/kindeditor.html.php';?> +contentType == 'markdown') include '../../common/view/markdown.html.php';?> +content != $doc->draft);?> +doc->confirmUpdateContent);?> +id);?> +draft);?> +
+
+
+

+ id;?> + createLink('doc', 'view', "docID=$doc->id"), $doc->title, '', "title='$doc->title'");?> + arrow . ' ' . $lang->doc->edit;?> +

+
save, '', 'id="top-submit" class="btn btn-primary"');?>
+
+
+ + + + + + + + + + + + + + + + + + + + + + type == 'url') echo "class='hidden'"?>> + + + + type != 'url') echo "class='hidden'"?>> + + + + + + + + + + + + + + + + + + + + + + +
doc->lib;?> lib, "class='form-control chosen' onchange=loadDocModule(this.value)");?>
doc->module;?> + module, "class='form-control chosen'");?> +
doc->title;?>title, "class='form-control' required");?>
doc->keywords;?>keywords, "class='form-control' placeholder='{$lang->doc->keywordsTips}'");?>
doc->type;?> + doc->types; + if(!isset($lang->doc->types[$doc->type])) $typeList = $lang->doc->typeList; + echo html::radio('type', array($doc->type => zget($typeList, $doc->type)), $doc->type); + ?> +
doc->content;?>type == 'url' ? '' : htmlSpecialString($doc->content), "style='width:100%; height:200px'") . html::hidden('contentType', $doc->contentType);?>
doc->url;?>type == 'url' ? $doc->content : '', "class='form-control'");?>
doc->files;?>fetch('file', 'buildform');?>
doc->mailto;?> +
+ mailto, "multiple class='form-control picker-select' data-drop-direction='top'"); + echo $this->fetch('my', 'buildContactLists'); + ?> +
+
doclib->control;?> + acl == 'private' ? 'private' : $doc->acl;?> + doc->aclList, $acl, "onchange='toggleAcl(this.value, \"doc\")'")?> + doc->noticeAcl['doc'][$acl];?> +
+ editedDate); + echo html::submitButton(); + echo html::backButton($lang->goback, "data-app='{$app->tab}'"); + ?> +
+
+
+
+doc->noticeAcl['doc']);?> + diff --git a/module/doc/view/edittexttype.html.php b/module/doc/view/edittexttype.html.php new file mode 100644 index 0000000000..8cc0af0a7c --- /dev/null +++ b/module/doc/view/edittexttype.html.php @@ -0,0 +1,158 @@ + + * @package doc + * @version $Id: create.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $ + * @link http://www.zentao.net + */ +?> + +contentType == 'html') include '../../common/view/kindeditor.html.php';?> +contentType == 'markdown') include '../../common/view/markdown.html.php';?> +content != $doc->draft);?> +doc->confirmUpdateContent);?> +id);?> +draft);?> +doc->placeholder);?> + + +
+
+ + + + + + + + + + +
title, "placeholder='{$lang->doc->titlePlaceholder}' class='form-control' required");?>
+
+
+
content), "style='width:100%;'");?>
+ contentType);?> + + editedDate);?> +
+ +
+
+
+
+ +doc->noticeAcl['doc']);?> + diff --git a/module/doc/view/selectlibtype.html.php b/module/doc/view/selectlibtype.html.php index 8c92315749..aa1057648c 100644 --- a/module/doc/view/selectlibtype.html.php +++ b/module/doc/view/selectlibtype.html.php @@ -21,12 +21,19 @@ - vision == 'lite'):?> - doc->libTypeList;?> - - doc->libTypeList + $lang->doc->libGlobalList;?> - - + + + + + + + + + doc->types as $typeKey => $typeName) $typeKeyList[$typeKey] = $typeKey; + ?> + diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 450dd6afd5..40c2d6b7cc 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -6267,7 +6267,7 @@ class upgradeModel extends model foreach($stories as $storyID => $story) { - if(!empty($story->assingnedTo)) + if(!empty($story->assignedTo)) { $story->reviewer = $story->assingnedTo; }
doc->libType;?>
doc->lib;?>
doc->type;?>doc->types, 'text');?>
confirm);?>