* add version in doc and add priv.

This commit is contained in:
wangyidong
2016-10-19 10:26:11 +08:00
parent 37933349d8
commit cac3f55ada
20 changed files with 462 additions and 323 deletions
+38 -38
View File
@@ -12,13 +12,7 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<script language='javascript'>
var type = '<?php echo $doc->type;?>';
$(document).ready(function()
{
setType(type);
});
</script>
<?php js::set('type', $type)?>
<div class='container mw-1400px'>
<div id='titlebar'>
<div class='heading'>
@@ -31,52 +25,58 @@ $(document).ready(function()
<table class='table table-form'>
<tr>
<th class='w-80px'><?php echo $lang->doc->lib;?></th>
<td class='w-p25-f'><?php echo html::select('lib', $libs, $doc->lib, "class='form-control chosen' onchange='loadModule(this.value);changeByLib(this.value)'");?></td><td></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->doc->project;?></th>
<td class='w-p25-f'><?php echo html::select('project', $projects, $doc->project, "class='form-control chosen' onchange=loadProducts(this.value)");?></td><td></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->doc->product;?></th>
<td class='w-p25-f'><?php echo html::select('product', $products, $doc->product, "class='form-control chosen'");?></td><td></td>
<td class='w-p25-f'><?php echo html::select('lib', $libs, $doc->lib, "class='form-control chosen' onchange='loadModules(this.value)'");?></td><td></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->doc->module;?></th>
<td class='w-p25-f'><?php echo html::select('module', $moduleOptionMenu, $doc->module, "class='form-control chosen'");?></td><td></td>
<td class='w-p25-f'><span id='moduleBox'><?php echo html::select('module', $moduleOptionMenu, $doc->module, "class='form-control chosen'");?></span></td><td></td>
</tr>
<tr>
<th><?php echo $lang->doc->type;?></th>
<td colspan='2'><?php echo $lang->doc->types[$doc->type];?></td>
</tr>
<tr>
<th><?php echo $lang->doc->title;?></th>
<td colspan='2'><?php echo html::input('title', $doc->title, "class='form-control'");?></td>
</tr>
<tr id='contentBox'>
<th><?php echo $lang->doc->content;?></th>
<td colspan='2'><?php echo html::textarea('content', $doc->content, "class='form-control' rows='5' style='width:90%; height:200px'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->digest;?></th>
<td colspan='2'><?php echo html::textarea('digest', $doc->digest, "class='form-control' rows=2");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->comment;?></th>
<td colspan='2'><?php echo html::textarea('comment','', "class='form-control' rows=2");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->keywords;?></th>
<td colspan='2'><?php echo html::input('keywords', $doc->keywords, "class='form-control'");?></td>
</tr>
<tr id='urlBox' class='hide'>
<th><?php echo $lang->doc->url;?></th>
<td colspan='2'><?php echo html::input('url', urldecode($doc->url), "class='form-control'");?></td>
</tr>
<tr id='contentBox' class='hide'>
<th><?php echo $lang->doc->content;?></th>
<td colspan='2'><?php echo html::textarea('content', htmlspecialchars($doc->content), "class='form-control' rows='8' style='width:90%; height:200px'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->digest;?></th>
<td colspan='2'><?php echo html::textarea('digest', htmlspecialchars($doc->digest), "class='form-control' rows=3");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->comment;?></th>
<td colspan='2'><?php echo html::textarea('comment','', "class='form-control' rows=3");?></td>
</tr>
<tr id='fileBox' class='hide'>
<tr id='fileBox'>
<th><?php echo $lang->doc->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
</tr>
<tr>
<th><?php echo $lang->doclib->control;?></th>
<td>
<div class='input-group'>
<span class='input-group-addon'><?php echo $lang->doclib->acl?></span>
<?php echo html::select('acl', $lang->doc->aclList, $doc->lib, "class='form-control' onchange='toggleAcl(this.value)'")?>
</div>
</td>
</tr>
<tr id='whiteListBox' class='hidden'>
<th><?php echo $lang->doc->whiteList;?></th>
<td colspan='2'>
<div class='input-group'>
<span class='input-group-addon'><?php echo $lang->doclib->group?></span>
<?php echo html::select('groups[]', $groups, $doc->groups, "class='form-control chosen' multiple")?>
</div>
<div class='input-group'>
<span class='input-group-addon'><?php echo $lang->doclib->user?></span>
<?php echo html::select('users[]', $users, $doc->users, "class='form-control chosen' multiple")?>
</div>
</td>
</tr>
<tr>
<td></td>
<td colspan='2'>