91 lines
4.1 KiB
PHP
91 lines
4.1 KiB
PHP
<?php
|
|
/**
|
|
* The edit view of doc module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Jia Fu <fujia@cnezsoft.com>
|
|
* @package doc
|
|
* @version $Id: edit.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<?php if($doc->contentType == 'html') include '../../common/view/ueditor.html.php';?>
|
|
<?php if($doc->contentType == 'markdown') include '../../common/view/markdown.html.php';?>
|
|
<?php js::set('type', 'doc')?>
|
|
<div class='container mw-1400px'>
|
|
<div id='titlebar'>
|
|
<div class='heading'>
|
|
<span class='prefix'><?php echo html::icon($lang->icons['doc']);?> <strong><?php echo $doc->id;?></strong></span>
|
|
<strong><?php echo $crumb . $lang->arrow . html::a($this->createLink('doc', 'view', "docID=$doc->id"), $doc->title);?></strong>
|
|
<small class='text-muted'> <?php echo html::icon($lang->icons['edit']) . ' ' . $lang->doc->edit;?></small>
|
|
</div>
|
|
</div>
|
|
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
|
|
<table class='table table-form'>
|
|
<tr>
|
|
<th class='w-80px'><?php echo $lang->doc->module;?></th>
|
|
<td class='w-400px'>
|
|
<?php echo html::hidden('lib', $doc->lib)?>
|
|
<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->title;?></th>
|
|
<td colspan='2'><?php echo html::input('title', $doc->title, "class='form-control'");?></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>
|
|
<th><?php echo $lang->doc->type;?></th>
|
|
<td><?php echo html::radio('type', $lang->doc->types, $doc->type);?></td>
|
|
</tr>
|
|
<tr id='contentBox' <?php if($doc->type == 'url') echo "class='hidden'"?>>
|
|
<th><?php echo $lang->doc->content;?></th>
|
|
<td colspan='2'><?php echo html::textarea('content', $doc->type == 'url' ? '' : htmlspecialchars($doc->content), "style='width:100%; height:200px'") . html::hidden('contentType', $doc->contentType);?></td>
|
|
</tr>
|
|
<tr id='urlBox' <?php if($doc->type != 'url') echo "class='hidden'"?>>
|
|
<th><?php echo $lang->doc->url;?></th>
|
|
<td colspan='2'><?php echo html::input('url', $doc->type == 'url' ? $doc->content : '', "class='form-control'");?></td>
|
|
</tr>
|
|
<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><?php echo html::radio('acl', $lang->doc->aclList, $doc->acl, "onchange='toggleAcl(this.value)'")?></td>
|
|
</tr>
|
|
<tr id='whiteListBox' class='hidden'>
|
|
<th><?php echo $lang->doc->whiteList;?></th>
|
|
<td colspan='2'>
|
|
<div class='row-table'>
|
|
<div class='col-table w-p50'>
|
|
<div class='input-group w-p100'>
|
|
<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>
|
|
<div class='col-table'>
|
|
<div class='input-group w-p100'>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td colspan='2'>
|
|
<?php echo html::submitButton() . html::backButton();?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php';?>
|