|
|
|
@@ -1,6 +1,8 @@
|
|
|
|
|
<?php include '../../common/view/header.html.php';?>
|
|
|
|
|
<?php js::set('projectID', $project->id);?>
|
|
|
|
|
<?php js::set('roles', $roles);?>
|
|
|
|
|
<?php js::set('deptID', $dept);?>
|
|
|
|
|
<?php js::set('copyProjectID', $copyProjectID);?>
|
|
|
|
|
<div id='mainMenu' class='clearfix'>
|
|
|
|
|
<div class='btn-toolbar pull-left'>
|
|
|
|
|
<span class='btn btn-link btn-active-text'>
|
|
|
|
@@ -9,9 +11,9 @@
|
|
|
|
|
<div class='input-group space w-200px'>
|
|
|
|
|
<span class='input-group-addon'><?php echo $lang->execution->selectDept?></span>
|
|
|
|
|
<?php echo html::select('dept', $depts, $dept, "class='form-control chosen' onchange='setDeptUsers(this)' data-placeholder='{$lang->execution->selectDeptTitle}'");?>
|
|
|
|
|
<?php if(count($teams2Import) != 1):?>
|
|
|
|
|
<span class='input-group-addon'><?php echo $lang->execution->copyTeam?></span>
|
|
|
|
|
<?php echo html::select('execution', $teams2Import, $copyProjectID, "class='form-control chosen' onchange='choseTeam2Copy(this)' data-placeholder='{$lang->execution->copyTeamTitle}'");?>
|
|
|
|
|
<?php if(!empty(array_filter($teams2Import))):?>
|
|
|
|
|
<span class='input-group-addon'><?php echo $lang->execution->copyTeam;?></span>
|
|
|
|
|
<?php echo html::select('project', $teams2Import, $copyProjectID, "class='form-control chosen' onchange='choseTeam2Copy(this)' data-placeholder='{$lang->project->copyTeamTitle}'");?>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@@ -51,32 +53,13 @@
|
|
|
|
|
<?php $i ++; $memberCount ++;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
|
|
|
|
|
<?php foreach($members2Import as $member2Import):?>
|
|
|
|
|
<tr class='addedItem'>
|
|
|
|
|
<td><?php echo html::select("accounts[]", $users, $member2Import->account, "class='form-control chosen' onchange='setRole(this.value, $i)'");?></td>
|
|
|
|
|
<td><input type='text' name='roles[]' id='role<?php echo $i;?>' class='form-control' value='<?php echo $member2Import->role;?>' /></td>
|
|
|
|
|
<td><input type='text' name='days[]' id='days<?php echo $i;?>' class='form-control' value='<?php echo $project->days?>'/></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type='text' name='hours[]' id='hours<?php echo $i;?>' class='form-control' value='<?php echo $member2Import->hours;?>' />
|
|
|
|
|
</td>
|
|
|
|
|
<td><?php echo html::radio("limited[$i]", $lang->team->limitedList, 'no');?></td>
|
|
|
|
|
<td class='c-actions text-center'>
|
|
|
|
|
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
|
|
|
|
<a href='javascript:;' onclick='deleteItem(this)' class='btn btn-link'><i class='icon icon-close'></i></a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php $i ++; $memberCount ++;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
|
|
|
|
|
<?php foreach($deptUsers as $deptAccount => $userName):?>
|
|
|
|
|
<?php if(!isset($users[$deptAccount])) continue;?>
|
|
|
|
|
<tr class='addedItem'>
|
|
|
|
|
<td><?php echo html::select("accounts[]", $users, $deptAccount, "class='form-control chosen' onchange='setRole(this.value, $i)'");?></td>
|
|
|
|
|
<td><input type='text' name='roles[]' id='role<?php echo $i;?>' class='form-control' value='<?php echo $roles[$deptAccount]?>'/></td>
|
|
|
|
|
<td><input type='text' name='days[]' id='days<?php echo $i;?>' class='form-control' value='<?php echo $project->days?>'/></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type='text' name='hours[]' id='hours<?php echo $i;?>' class='form-control' value='<?php echo $config->execution->defaultWorkhours?>' />
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type='text' name='roles[]' id='role<?php echo $i;?>' class='form-control' value='<?php echo $roles[$deptAccount]?>'/></td>
|
|
|
|
|
<td><input type='text' name='days[]' id='days<?php echo $i;?>' class='form-control' value='<?php echo $project->days?>'/></td>
|
|
|
|
|
<td><input type='text' name='hours[]' id='hours<?php echo $i;?>' class='form-control' value='<?php echo $config->execution->defaultWorkhours?>' /></td>
|
|
|
|
|
<td><?php echo html::radio("limited[$i]", $lang->team->limitedList, 'no');?></td>
|
|
|
|
|
<td class='c-actions text-center'>
|
|
|
|
|
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
|
|
|
@@ -87,14 +70,29 @@
|
|
|
|
|
<?php $i ++; $memberCount ++;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
|
|
|
|
|
<?php foreach($members2Import as $member2Import):?>
|
|
|
|
|
<?php if(!isset($users[$member2Import->account])) continue;?>
|
|
|
|
|
<tr class='addedItem'>
|
|
|
|
|
<td><?php echo html::select("accounts[]", $users, $member2Import->account, "class='form-control chosen' onchange='setRole(this.value, $i)'");?></td>
|
|
|
|
|
<td><input type='text' name='roles[]' id='role<?php echo $i;?>' class='form-control' value='<?php echo $member2Import->role;?>' /></td>
|
|
|
|
|
<td><input type='text' name='days[]' id='days<?php echo $i;?>' class='form-control' value='<?php echo $project->days?>'/></td>
|
|
|
|
|
<td><input type='text' name='hours[]' id='hours<?php echo $i;?>' class='form-control' value='<?php echo $member2Import->hours;?>' /></td>
|
|
|
|
|
<td><?php echo html::radio("limited[$i]", $lang->team->limitedList, 'no');?></td>
|
|
|
|
|
<td class='c-actions text-center'>
|
|
|
|
|
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
|
|
|
|
<a href='javascript:;' onclick='deleteItem(this)' class='btn btn-link'><i class='icon icon-close'></i></a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php unset($users[$member2Import->account]);?>
|
|
|
|
|
<?php $i ++; $memberCount ++;?>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
|
|
|
|
|
<?php for($j = 0; $j < 5; $j ++):?>
|
|
|
|
|
<tr class='addedItem'>
|
|
|
|
|
<td><?php echo html::select("accounts[]", $users, '', "class='form-control chosen' onchange='setRole(this.value, $i)'");?></td>
|
|
|
|
|
<td><input type='text' name='roles[]' id='role<?php echo ($i);?>' class='form-control' /></td>
|
|
|
|
|
<td><input type='text' name='days[]' id='days<?php echo ($i);?>' class='form-control' value='<?php echo $project->days?>'/></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type='text' name='hours[]' id='hours<?php echo ($i);?>' class='form-control' value='<?php echo $config->execution->defaultWorkhours?>' />
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type='text' name='hours[]' id='hours<?php echo ($i);?>' class='form-control' value='<?php echo $config->execution->defaultWorkhours?>' /></td>
|
|
|
|
|
<td><?php echo html::radio("limited[$i]", $lang->team->limitedList, 'no');?></td>
|
|
|
|
|
<td class='c-actions text-center'>
|
|
|
|
|
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
|
|
|
@@ -122,9 +120,7 @@
|
|
|
|
|
<td><?php echo html::select("accounts[]", $users, '', "class='form-control' onchange='setRole(this.value, $i)'");?></td>
|
|
|
|
|
<td><input type='text' name='roles[]' id='role<?php echo ($i);?>' class='form-control' /></td>
|
|
|
|
|
<td><input type='text' name='days[]' id='days<?php echo ($i);?>' class='form-control' value='<?php echo $project->days?>'/></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type='text' name='hours[]' id='hours<?php echo ($i);?>' class='form-control' value='<?php echo $config->execution->defaultWorkhours?>' />
|
|
|
|
|
</td>
|
|
|
|
|
<td><input type='text' name='hours[]' id='hours<?php echo ($i);?>' class='form-control' value='<?php echo $config->execution->defaultWorkhours?>' /></td>
|
|
|
|
|
<td><?php echo html::radio("limited[$i]", $lang->team->limitedList, 'no');?></td>
|
|
|
|
|
<td class='c-actions text-center'>
|
|
|
|
|
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
|
|
|
|