* Add project creation method.

This commit is contained in:
leiyong
2020-09-18 14:26:27 +08:00
parent ebc593c1c6
commit a8103fd03e
14 changed files with 308 additions and 63 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<div class='modal-dialog' id='guideDialog'>
<div class='modal fade modal-dialog' id='guideDialog'>
<style>
#guideDialog {width: 780px}
#guideDialog h2 {margin: 10px 0 30px 0; font-size: 16px; font-weight: normal}
+6 -9
View File
@@ -1,17 +1,17 @@
<?php
/**
* The html template file of projectlist method of project module of ZenTaoPMS.
* The html template file of PRJBrowse method of program 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 Yidong Wang <yidong@cnezsoft.com>
* @package project
* @package program
* @version $Id: index.html.php 5094 2013-07-10 08:46:15Z chencongzhi520@gmail.com $
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php
js::set('projectID', $programID);
js::set('programID', $programID);
js::set('browseType', $browseType);
?>
<div id="mainMenu" class="clearfix">
@@ -28,10 +28,10 @@ js::set('browseType', $browseType);
<?php if($browseType == $key) $label .= " <span class='label label-light label-badge'>{$pager->recTotal}</span>";?>
<?php echo html::a(inlink('PRJBrowse', "programID=$programID&browseType=$key"), $label, '', "class='btn btn-link $active'");?>
<?php endforeach;?>
<?php echo html::checkbox('mine', array('1' => $lang->program->mine), '', $this->cookie->mine ? 'checked=checked' : '');?>
<?php echo html::checkbox('PRJMine', array('1' => $lang->program->mine), '', $this->cookie->PRJMine ? 'checked=checked' : '');?>
</div>
<div class="btn-toolbar pull-right">
<?php common::printLink('program', 'PRJCreate', "programID=$programID", '<i class="icon icon-plus"></i>' . $lang->program->PRJCreate, '', 'class="btn btn-primary"');?>
<?php echo html::commonButton('<i class="icon icon-plus"></i>' . $lang->program->PRJCreate, 'data-toggle="modal" data-target="#guideDialog"', 'btn btn-primary');?>
</div>
</div>
<div id='mainContent' class="main-row fade">
@@ -96,8 +96,5 @@ js::set('browseType', $browseType);
</form>
</div>
</div>
<script>
$('#project<?php echo $programID;?>').addClass('active');
$(".tree .active").parent('li').addClass('active');
</script>
<?php include 'prjcreateguide.html.php';?>
<?php include '../../common/view/footer.html.php';?>
+20 -25
View File
@@ -1,13 +1,12 @@
<?php
/**
* The create view of project module of ZenTaoPMS.
* The html template file of PRJCreate method of program 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 Chunsheng Wang <chunsheng@cnezsoft.com>
* @package project
* @version $Id: create.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
* @author Yidong Wang <yidong@cnezsoft.com>
* @package program
* @version $Id: index.html.php 5094 2013-07-10 08:46:15Z chencongzhi520@gmail.com $
*/
?>
<?php if(isset($tips)):?>
@@ -46,18 +45,16 @@
<table class='table table-form'>
<tr>
<th class='w-120px'><?php echo $lang->program->PRJTemplate;?></th>
<td><?php echo zget($lang->program->templateList, $template, '');?></td><td></td><td></td>
<td><?php echo zget($lang->program->templateList, $template, '');?></td><td></td><td>
</td>
</tr>
<tr>
<th><?php echo $lang->program->PGMParent;?></th>
<td><?php echo html::select('parent', $programList, $programID, "class='form-control chosen'");?></td><td></td><td></td>
</tr>
<tr>
<th><?php echo $lang->program->PRJName;?></th>
<td class="col-main"><?php echo html::input('name', $name, "class='form-control' required");?></td>
<td>
<div class="checkbox-primary">
<input type="checkbox" name="isCat" value="1" id="isCat">
<label for="isCat"><?php echo $lang->program->PRJParent;?></label>
</div>
</td>
<td></td>
<td class="col-main"><?php echo html::input('name', $name, "class='form-control' required");?></td><td></td><td></td>
</tr>
<tr>
<th><?php echo $lang->program->PRJCode;?></th>
@@ -66,7 +63,7 @@
<?php if($template == 'waterfall'):?>
<tr>
<th><?php echo $lang->program->PRJCategory;?></th>
<td><?php echo html::select('category', $lang->program->categoryList, '', "class='form-control'");?></td><td></td><td></td>
<td><?php echo html::select('category', $lang->program->PRJCategoryList, '', "class='form-control'");?></td><td></td><td></td>
</tr>
<?php endif;?>
<tr>
@@ -74,7 +71,7 @@
<td><?php echo html::select('PM', $pmUsers, '', "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->program->budget;?></th>
<th><?php echo $lang->program->PRJBudget;?></th>
<td>
<div class='input-group'>
<?php echo html::input('budget', '', "class='form-control'");?>
@@ -127,19 +124,19 @@
</tr>
<?php $this->printExtendFields('', 'table');?>
<tr>
<th><?php echo $lang->program->desc;?></th>
<th><?php echo $lang->program->PRJDesc;?></th>
<td colspan='3'>
<?php echo $this->fetch('user', 'ajaxPrintTemplates', 'type=project&link=desc');?>
<?php echo html::textarea('desc', '', "rows='6' class='form-control kindeditor' hidefocus='true'");?>
</td>
</tr>
<tr>
<th><?php echo $lang->program->privway;?></th>
<td colspan='3'><?php echo html::radio('privway', $lang->program->privwayList, $privway, '', 'block');?></td>
<th><?php echo $lang->program->auth;?></th>
<td colspan='3'><?php echo html::radio('privway', $lang->program->PRJAuthList, $privway, '', 'block');?></td>
</tr>
<tr>
<th><?php echo $lang->project->acl;?></th>
<td colspan='3'><?php echo nl2br(html::radio('acl', $lang->program->aclList, $acl, "onclick='setWhite(this.value);'", 'block'));?></td>
<td colspan='3'><?php echo nl2br(html::radio('acl', $lang->program->PRJAclList, $acl, "onclick='setWhite(this.value);'", 'block'));?></td>
</tr>
<tr id='whitelistBox' class='hidden'>
<th><?php echo $lang->project->whitelist;?></th>
@@ -147,16 +144,14 @@
</tr>
<tr>
<td colspan='4' class='text-center form-actions'>
<?php echo html::submitButton();?>
<?php echo html::backButton();?>
<?php
echo html::hidden('template', $template);
echo html::hidden('parent', isset($parentProgram->id) ? $parentProgram->id : 0);
echo html::hidden('template', $template);
echo html::submitButton();
echo html::backButton();
?>
</td>
</tr>
</table>
<?php echo html::hidden('products[]') . html::hidden('plans[]');?>
</form>
</div>
</div>
@@ -0,0 +1,37 @@
<div class="modal fade" id='guideDialog'>
<div class="modal-dialog">
<div class='modal-content'>
<div class='modal-body'>
<h2 class='text-center'><?php echo $lang->program->chooseProgramType; ?></h2>
<div class='row'>
<div class='col-xs-6'>
<div class='program-type text-center'>
<img class='program-type-img' data-type='scrum' src='<?php echo $config->webRoot . 'theme/default/images/main/scrum.png'?>'>
<h3><?php echo $lang->program->scrum; ?></h3>
<p><?php echo $lang->program->scrumTitle; ?></p>
</div>
</div>
<div class='col-xs-6'>
<div class='program-type text-center'>
<img class='program-type-img' data-type='waterfall' src='<?php echo $config->webRoot . 'theme/default/images/main/waterfall.png'?>'>
<h3><?php echo $lang->program->waterfall; ?></h3>
<p><?php echo $lang->program->waterfallTitle; ?></p>
</div>
</div>
</div>
<div class='modal-footer text-center'>
<a class='btn btn-primary btn-wide disabled' id='guideBtn'><?php echo $lang->program->nextStep; ?></a>
<button type='button' class='btn btn-default btn-wide' data-dismiss='modal'><?php echo $lang->cancel; ?></button>
</div>
</div>
</div>
</div>
<script>
$('#guideDialog').on('click', '.program-type-img', function()
{
var $this = $(this);
$('#guideDialog .program-type.active').removeClass('active');
$this.parent().addClass('active');
$('#guideBtn').removeClass('disabled').attr('href', createLink('program', 'PRJCreate', 'template=' + $this.data('type') + "&programID=" + programID));
});
</script>
+11
View File
@@ -1,3 +1,14 @@
<?php
/**
* The html template file of PRJStart method of program 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 Yidong Wang <yidong@cnezsoft.com>
* @package program
* @version $Id: index.html.php 5094 2013-07-10 08:46:15Z chencongzhi520@gmail.com $
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div id='mainContent' class='main-content'>
+13 -12
View File
@@ -1,13 +1,12 @@
<?php
/**
* The setprjmodule file of program module of ZenTaoPMS.
* The html template file of SetPRJModule method of program 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 chunsheng wang <chunsheng@cnezsoft.com>
* @author Yidong Wang <yidong@cnezsoft.com>
* @package program
* @version $Id: setprjmodule.html.php 935 2010-07-06 07:49:24Z jajacn@126.com $
* @link http://www.zentao.net
* @version $Id: index.html.php 5094 2013-07-10 08:46:15Z chencongzhi520@gmail.com $
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
@@ -17,14 +16,16 @@
<div class="modal-body" style="max-height: 564px; overflow: visible;">
<form class="form-condensed" method="post" target="hiddenwin">
<table class="table table-form">
<tbody><tr>
<td class="w-150px"><?php echo $lang->program->PRJModuleOpen;?></td>
<td><?php echo html::radio('PRJModuleStatus', $lang->program->PRJModuleStatus, $status);?></td>
</tr>
<tr>
<td colspan="2" class="text-center"><?php echo html::submitButton();?></td>
</tr>
</tbody></table>
<tbody>
<tr>
<td class="w-150px"><?php echo $lang->program->PRJModuleOpen;?></td>
<td><?php echo html::radio('PRJModuleStatus', $lang->program->PRJModuleStatus, $status);?></td>
</tr>
<tr>
<td colspan="2" class="text-center"><?php echo html::submitButton();?></td>
</tr>
</tbody>
</table>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>