diff --git a/module/doc/css/createlib.css b/module/doc/css/createlib.css new file mode 100644 index 0000000000..8ab73a0b3b --- /dev/null +++ b/module/doc/css/createlib.css @@ -0,0 +1 @@ +body{background:white; margin-top:20px; padding-bottom:0} diff --git a/module/doc/css/editlib.css b/module/doc/css/editlib.css new file mode 100644 index 0000000000..8ab73a0b3b --- /dev/null +++ b/module/doc/css/editlib.css @@ -0,0 +1 @@ +body{background:white; margin-top:20px; padding-bottom:0} diff --git a/module/doc/js/common.js b/module/doc/js/common.js new file mode 100644 index 0000000000..4e449d5799 --- /dev/null +++ b/module/doc/js/common.js @@ -0,0 +1,29 @@ +/* Load the products of the roject. */ +function loadProducts(project) +{ + link = createLink('project', 'ajaxGetProducts', 'projectID=' + project); + $('#productBox').load(link); +} + +/* Set doc type. */ +function setType(type) +{ + if(type == 'url') + { + $('#urlBox').show(); + $('#fileBox').hide(); + $('#contentBox').hide(); + } + else if(type == 'text') + { + $('#urlBox').hide(); + $('#fileBox').hide(); + $('#contentBox').show(); + } + else + { + $('#urlBox').hide(); + $('#fileBox').show(); + $('#contentBox').hide(); + } +} diff --git a/module/doc/js/create.js b/module/doc/js/create.js new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/module/doc/js/create.js @@ -0,0 +1 @@ + diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index 54b03231f5..6679279901 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -12,87 +12,59 @@ ?> - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
doc->create;?>
doc->product;?>
doc->project;?>
doc->product;?>
doc->module;?>
doc->type;?>doc->types, 'file', "onclick=setType(this.value)");?>
doc->title;?>
doc->keywords;?>
doc->digest;?>
doc->files;?>fetch('file', 'buildform', 'fileCount=2');?>
-
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
doc->create;?>
doc->product;?>
doc->project;?>
doc->product;?>
doc->module;?>
doc->type;?>doc->types, 'file', "onclick=setType(this.value)");?>
doc->title;?>
doc->keywords;?>
doc->digest;?>
doc->files;?>fetch('file', 'buildform', 'fileCount=2');?>
+
diff --git a/module/doc/view/createlib.html.php b/module/doc/view/createlib.html.php index 86ebdb9c8c..2431816ec7 100644 --- a/module/doc/view/createlib.html.php +++ b/module/doc/view/createlib.html.php @@ -11,22 +11,16 @@ */ ?> - -
-
- - - - - - - - - -
doc->createLib;?>
doc->libName;?>
- -
-
-
- - +
+ + + + + + + + + +
doc->createLib;?>
doc->libName;?>
+
+ diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index 3b154149a3..385d3d1052 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -13,69 +13,52 @@ -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
doc->edit;?>
doc->module;?>module, "class='select-3'");?>
doc->type;?>doc->types[$doc->type];?>
doc->title;?>title, "class='text-1'");?>
doc->keywords;?>keywords, "class='text-1'");?>
doc->digest;?>digest, "class='text-1' rows=3");?>
- - product) . html::hidden('project', $doc->project);?> -
-
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
doc->edit;?>
doc->module;?>module, "class='select-3'");?>
doc->type;?>doc->types[$doc->type];?>
doc->title;?>title, "class='text-1'");?>
doc->keywords;?>keywords, "class='text-1'");?>
doc->digest;?>digest, "class='text-1' rows=3");?>
+ + product) . html::hidden('project', $doc->project);?> +
+
diff --git a/module/doc/view/editlib.html.php b/module/doc/view/editlib.html.php index c553ac3126..89ce6b3a8e 100644 --- a/module/doc/view/editlib.html.php +++ b/module/doc/view/editlib.html.php @@ -11,22 +11,17 @@ */ ?> - -
- -

doc->errorEditSystemDoc;?>

- -
- - - - - - - -
doc->editLib;?>
doc->libName;?>
-
- -
- - + +

doc->errorEditSystemDoc;?>

+ +
+ + + + + + + +
doc->editLib;?>
doc->libName;?>
+
+ diff --git a/module/doc/view/view.html.php b/module/doc/view/view.html.php index e18ffecb74..8823f4d64c 100644 --- a/module/doc/view/view.html.php +++ b/module/doc/view/view.html.php @@ -16,65 +16,61 @@ var type = 'type;?>'; $(document).ready(function() { - /* Jude the type. */ - if(type == 'url') $('#urlBox').show(); - else if(type == 'text') $('#contentBox').show(); - else $('#fileBox').show(); + setType(type); }); -
- +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
title . $lang->colon . $lang->doc->view;?>
doc->title;?>deleted) echo "class='deleted'";?>>title;?>
doc->lib;?>
doc->module;?>moduleName;?>
doc->type;?>doc->types[$doc->type];?>
doc->title;?>title;?>
doc->keywords;?>keywords;?>
doc->digest;?>digest);?>
-
- session->docList ? $this->session->docList : inlink('browse'); - if(!$doc->deleted) - { - common::printLink('doc', 'edit', "docID=$doc->id", $lang->edit); - common::printLink('doc', 'delete', "docID=$doc->id", $lang->delete, 'hiddenwin'); - } - echo html::a($browseLink, $lang->goback); - ?> -
+ + doc->title;?> + deleted) echo "class='deleted'";?>>title;?> + + + doc->lib;?> + + + + doc->module;?> + moduleName;?> + + + doc->type;?> + doc->types[$doc->type];?> + + doc->title;?> + title;?> + + + doc->keywords;?> + keywords;?> + + + doc->url;?> + url), '', '_blank');?> + + + doc->content;?> + content;?> + + + doc->digest;?> + digest);?> + + + files;?> + fetch('file', 'printFiles', array('files' => $doc->files, 'fieldset' => 'false'));?> + + +
+ session->docList ? $this->session->docList : inlink('browse'); + if(!$doc->deleted) + { + common::printLink('doc', 'edit', "docID=$doc->id", $lang->edit); + common::printLink('doc', 'delete', "docID=$doc->id", $lang->delete, 'hiddenwin'); + } + echo html::a($browseLink, $lang->goback); + ?> +