* adjsut the ui of batch create task page.

This commit is contained in:
wangchunsheng
2011-10-29 09:03:06 +00:00
parent 7ac9208c8e
commit 10ed336ca5
2 changed files with 22 additions and 19 deletions
+20 -18
View File
@@ -11,18 +11,18 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<form method='post' enctype='multipart/form-data'>
<table align='center' class='table-1'>
<form method='post'>
<table class='table-1 fixed'>
<caption><?php echo $lang->task->project . $lang->colon . $lang->task->batchCreate;?></caption>
<tr>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th><?php echo $lang->task->story;?></th>
<th><?php echo $lang->task->type;?></th>
<th><?php echo $lang->task->name;?></th>
<th><?php echo $lang->task->desc;?></th>
<th><?php echo $lang->task->assignedTo;?></th>
<th><?php echo $lang->task->pri;?></th>
<th><?php echo $lang->task->estimateBatch;?></th>
<th class='w-300px'><?php echo $lang->task->name;?></th>
<th class='w-200px'><?php echo $lang->task->desc;?></th>
<th class='w-60px'><?php echo $lang->typeAB;?></th>
<th class='w-100px'><?php echo $lang->task->assignedTo;?></th>
<th class='w-50px'><?php echo $lang->task->pri;?></th>
<th class='w-60px'><?php echo $lang->task->estimate;?></th>
</tr>
<?php for($i = 0; $i < $config->task->batchCreate; $i++):?>
<?php $story = $i == 0 ? '' : 'same';?>
@@ -31,18 +31,20 @@
<?php $pri = 3;?>
<tr class='a-center'>
<td><?php echo $i+1;?></td>
<td><?php echo html::select("story[$i]", $stories, $story, 'class=select-2');?></td>
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, "class=select-2"); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("name[$i]", '', "class='text-1'"); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::textarea("desc[$i]", '', "rows='1' class='text-1'");?></td>
<td><?php echo html::select("assignedTo[$i]", $members, '', "class=select-2");?></td>
<td><?php echo html::select("pri[$i]", (array)$lang->task->priList, $pri, 'class=w-50px'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("estimate[$i]", '', "class='w-50px'"); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::select("story[$i]", $stories, $story, 'class=select-1');?></td>
<td><?php echo html::input("name[$i]", '', 'class=text-1'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::textarea("desc[$i]", '', "class=text-1 rows='1'");?></td>
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, 'class=select-1'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::select("assignedTo[$i]", $members, '', 'class=select-1');?></td>
<td><?php echo html::select("pri[$i]", (array)$lang->task->priList, $pri, 'class=select-1'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("estimate[$i]", '', 'class=text-1'); echo "<span class='star'>*</span>";?></td>
</tr>
<?php endfor;?>
<tr>
<td colspan='4' class='a-center'><?php echo "<span class='star'><small>{$lang->task->notes}</small></span>";?></td>
<td colspan='4' class='a-left'><?php echo html::submitButton() . html::resetButton();?></td>
<td colspan='8'>
<div class='f-left red'><?php echo $lang->task->notes;?></div>
<div class='f-right a-left'><?php echo html::submitButton() . html::resetButton();?></div>
</td>
</tr>
</table>
</form>