* ajusted views of module 'project'.

This commit is contained in:
Catouse
2014-04-09 16:27:09 +08:00
parent acb22c6c3b
commit f8a131070e
2 changed files with 56 additions and 27 deletions
+31 -20
View File
@@ -19,21 +19,26 @@ $(function(){
})
var browseType = '<?php echo $browseType;?>';
</script>
<div id='querybox'></div>
<div>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
<table class='table-1 colored tablesorter'>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['task']);?></span>
<strong><small class='text-muted'><?php echo html::icon($lang->icons['import']);?></small> <?php echo $lang->project->importBug;?></strong>
</div>
<div id='querybox' class='show'></div>
</div>
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin'>
<table class='table tablesorter table-fixed'>
<thead>
<tr class='colhead'>
<th class='w-id'> <?php echo $lang->idAB;?></th>
<th class='w-severity'> <?php echo $lang->bug->severityAB;?></th>
<th class='w-pri'> <?php echo $lang->priAB;?></th>
<th><?php echo $lang->bug->title;?></th>
<th class='w-80px'><?php echo $lang->bug->statusAB;?></th>
<th class='w-80px'><?php echo $lang->task->pri;?></th>
<th class='w-150px'><?php echo $lang->task->assignedTo;?></th>
<th class='w-80px nobr {sorter:false}'><?php echo $lang->task->estimate;?></th>
</tr>
<tr class='colhead'>
<th class='w-id'> <?php echo $lang->idAB;?></th>
<th class='w-severity'> <?php echo $lang->bug->severityAB;?></th>
<th class='w-pri'> <?php echo $lang->priAB;?></th>
<th><?php echo $lang->bug->title;?></th>
<th class='w-80px'><?php echo $lang->bug->statusAB;?></th>
<th class='w-80px'><?php echo $lang->task->pri;?></th>
<th class='w-150px'><?php echo $lang->task->assignedTo;?></th>
<th class='w-80px nobr {sorter:false}'><?php echo $lang->task->estimate;?></th>
</tr>
</thead>
<tbody>
<?php foreach($bugs as $bug):?>
@@ -46,15 +51,21 @@ var browseType = '<?php echo $browseType;?>';
<td><span class='<?php echo 'pri' . $lang->bug->priList[$bug->pri]?>'><?php echo $lang->bug->priList[$bug->pri]?></span></td>
<td class='text-left nobr'><?php common::printLink('bug', 'view', "bugID=$bug->id", $bug->title, '', "class='preview'", true, true);?></td>
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
<td><?php echo html::select("pri[$bug->id]", $lang->task->priList, 3);?></td>
<td><?php echo html::select("assignedTo[$bug->id]", $users, zget($users, $bug->assignedTo, '', $bug->assignedTo));?></td>
<td><?php echo html::input("estimate[$bug->id]", '', 'size=4');?></td>
<td><?php echo html::select("pri[$bug->id]", $lang->task->priList, 3, "class='input-sm form-control'");?></td>
<td><?php echo html::select("assignedTo[$bug->id]", $users, zget($users, $bug->assignedTo, '', $bug->assignedTo), "class='input-sm form-control'");?></td>
<td><?php echo html::input("estimate[$bug->id]", '', 'size=4 class="input-sm form-control"');?></td>
</tr>
<?php endforeach;?>
</tbody>
<tr><td colspan='9'><div class='text-right'><?php $pager->show();?></div></td></tr>
<tfoot>
<tr>
<td colspan='8'>
<div class='table-actions clearfix'><?php echo "<div class='btn-group'>" . html::selectAll() . html::selectReverse() . '</div>' . html::submitButton($lang->import) . html::backButton();?>
</div>
<?php $pager->show();?>
</td>
</tr>
</tfoot>
</table>
<div><?php echo html::selectAll() . html::selectReverse() . html::submitButton($lang->import) . html::backButton();?></div>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>
+25 -7
View File
@@ -12,14 +12,22 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['task']);?></span>
<strong><small class='text-muted'><?php echo html::icon($lang->icons['import']);?></small> <?php echo $lang->project->importTask;?></strong>
</div>
</div>
<form class='form-condensed' method='post' target='hiddenwin'>
<table class='table tablesorter table-fixed'>
<caption>
<?php
$projects = array(0 => $lang->project->fromproject) + $projects;
echo $lang->project->selectProject . ':';
echo html::select('fromproject', $projects, $fromProject, "onchange='reload($projectID, this.value)'");
?>
<caption class='text-left'>
<div class='form-group mg-0'>
<div class='input-group'>
<?php $projects = array(0 => $lang->project->fromproject) + $projects;?>
<span class='input-group-addon'><?php echo $lang->project->selectProject;?></span>
<?php echo html::select('fromproject', $projects, $fromProject, "onchange='reload($projectID, this.value)' class='form-control' style='width: 200px'");?>
</div>
</div>
</caption>
<thead>
<tr class='colhead'>
@@ -68,8 +76,18 @@
</td>
</tr>
<?php endforeach;?>
<tfoot>
<tr>
<td colspan='9'>
<div class='table-actions clearfix'>
<div class='btn-group'><?php echo html::selectAll() . html::selectReverse();?></div>
<?php echo html::submitButton($lang->project->importTask);?>
</div>
</td>
</tr>
</tfoot>
</tbody>
</table>
<div><?php echo html::selectAll() . html::selectReverse() . html::submitButton($lang->project->importTask);?></div>
<div></div>
</form>
<?php include '../../common/view/footer.html.php';?>