Files
EasySoft-ZenTaoPMS/module/programplan/view/edit.html.php
2021-11-04 16:55:37 +08:00

108 lines
4.6 KiB
PHP

<?php
/**
* The edit of programplan 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 programplan
* @version $Id: edit.html.php 4903 2013-06-26 05:32:59Z wyd621@gmail.com $
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div id="mainContent" class="main-content fade">
<div class="center-block">
<div class="main-header">
<h2><?php echo $lang->programplan->edit;?></h2>
</div>
<form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
<table class="table table-form">
<tbody>
<tr>
<th class="w-100px"><?php echo $lang->programplan->parent;?></th>
<td colspan='2'><?php echo html::select('parent', $parentStage, $plan->parent, "class='form-control chosen '");?></td>
</tr>
<tr>
<th class='w-100px'><?php echo $lang->programplan->name;?> </th>
<td colspan='2'><?php echo html::input('name', $plan->name, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->programplan->percent;?> </th>
<td colspan='2'>
<div class='input-group'>
<?php echo html::input('percent', $plan->percent, "class='form-control'");?>
<div class='input-group-addon'>%</span>
</div>
</td>
</tr>
<tr class="<?php if($plan->grade == 2) echo "hidden";?>" id="attributeType">
<th><?php echo $lang->programplan->attribute;?> </th>
<td colspan='2'><?php echo html::select('attribute', $lang->stage->typeList, $plan->attribute, "class='form-control'");?></td>
</tr>
<?php if($plan->setMilestone):?>
<tr>
<th><?php echo $lang->programplan->milestone;?> </th>
<td colspan='2'><?php echo html::radio('milestone', $lang->programplan->milestoneList, $plan->milestone);?></td>
</tr>
<?php else:?>
<?php echo html::hidden('milestone', $plan->milestone);?>
<?php endif;?>
<tr>
<th><?php echo $lang->project->acl;?> </th>
<?php $class = $plan->grade == 2 ? "disabled='disabled'" : '';?>
<td colspan='2'><?php echo html::select('acl', $lang->project->aclList, $plan->acl, "class='form-control' $class");?></td>
</tr>
<tr>
<th><?php echo $lang->programplan->planDateRange;?> </th>
<td colspan='2'>
<div class="input-group title-group">
<?php echo html::input('begin', $plan->begin, "class='form-control form-date'");?>
<span class="input-group-addon fix-border br-0"><?php echo $lang->project->to;?></span>
<?php echo html::input('end', $plan->end, "class='form-control form-date'");?>
</div>
</td>
</tr>
<tr>
<th><?php echo $lang->programplan->realDateRange;?> </th>
<td colspan='2'>
<div class="input-group title-group">
<?php echo html::input('realBegan', $plan->realBegan, "class='form-control form-date'");?>
<span class="input-group-addon fix-border br-0"><?php echo $lang->project->to;?></span>
<?php echo html::input('realEnd', $plan->realEnd, "class='form-control form-date'");?>
</div>
</td>
</tr>
<?php if(isset($this->config->qcVersion)):?>
<tr>
<th><?php echo $lang->programplan->output;?> </th>
<td colspan='4'><?php echo html::select('output[]', $documentList, $plan->output, "class='form-control chosen ' multiple");?></td>
</tr>
<?php endif;?>
<tr>
<td colspan='4' class='form-actions text-center'><?php echo html::submitButton() . html::backButton()?></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<script>
$("#parent").change(function()
{
var parent = $(this).children("option:selected").val();
if(parent == 0)
{
$("#attributeType").removeClass('hidden');
$("#acl").attr('disabled', false);
}
else
{
$("#attributeType").addClass('hidden');
$("#acl").attr('disabled', true);
}
});
</script>
<?php include '../../common/view/footer.html.php';?>