90 lines
3.4 KiB
PHP
90 lines
3.4 KiB
PHP
<table class='cont-lt1'>
|
|
<tr valign='top'>
|
|
<td class='side <?php echo $treeClass;?>' id='treebox'>
|
|
<nobr>
|
|
<div class='box-title'><?php echo $productName;?></div>
|
|
<div class='box-content'>
|
|
<?php echo $moduleTree;?>
|
|
<div class='text-right'><?php common::printLink('tree', 'browse', "productID=$productID&view=bug", $lang->tree->manage);?></div>
|
|
</div>
|
|
</nobr>
|
|
</td>
|
|
<td class='divider'></td>
|
|
<td>
|
|
<form method='post' action='<?php echo inLink('batchEdit', "productID=$productID");?>'>
|
|
<table class='table-1 colored tablesorter datatable' id='bugList'>
|
|
<?php $vars = "productID=$productID&browseType=$browseType¶m=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
|
|
<thead>
|
|
<tr class='colhead'>
|
|
<?php foreach($customFields as $fieldName):?>
|
|
<th><nobr><?php common::printOrderLink($fieldName, $orderBy, $vars, $lang->bug->$fieldName);?></nobr></th>
|
|
<?php endforeach;?>
|
|
<th class='w-70px {sorter:false}'><nobr><?php echo $lang->actions;?></nobr></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($bugs as $bug):?>
|
|
<?php $bugLink = inlink('view', "bugID=$bug->id");?>
|
|
<tr>
|
|
<?php $i = 0;?>
|
|
<?php foreach($customFields as $fieldName):?>
|
|
<?php $i ++;?>
|
|
<td><nobr>
|
|
<?php if($i == 1):?>
|
|
<input type='checkbox' name='bugIDList[]' value='<?php echo $bug->id;?>'/>
|
|
<?php endif;?>
|
|
<?php
|
|
if(preg_match('/^(id|title)$/i', $fieldName))
|
|
{
|
|
echo html::a($bugLink, $bug->$fieldName);
|
|
}
|
|
elseif(preg_match('/assignedTo|by/i', $fieldName))
|
|
{
|
|
echo $users[$bug->$fieldName];
|
|
}
|
|
elseif(preg_match('/^(severity|pri|resolution|os|type|browse|status|confirmed)$/i', $fieldName))
|
|
{
|
|
$key = $fieldName . 'List';
|
|
$list = $lang->bug->$key;
|
|
echo $list[$bug->$fieldName];
|
|
}
|
|
else
|
|
{
|
|
echo !($bug->$fieldName == '0') ? $bug->$fieldName : '';
|
|
}
|
|
?>
|
|
</nobr></td>
|
|
<?php endforeach;?>
|
|
<td class='text-center'><nobr>
|
|
<?php
|
|
$params = "bugID=$bug->id";
|
|
common::printIcon('bug', 'resolve', $params, $bug, 'list', '', '', 'iframe', true);
|
|
common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe', true);
|
|
common::printIcon('bug', 'edit', $params, $bug, 'list');
|
|
?>
|
|
</nobr>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan='<?php echo count($customFields) + 1?>'>
|
|
<?php if(!empty($bugs)):?>
|
|
<div class='f-left'>
|
|
<?php
|
|
echo html::selectAll() . html::selectReverse();
|
|
if(common::hasPriv('bug', 'batchEdit') and $bugs) echo html::submitButton($lang->edit);
|
|
?>
|
|
</div>
|
|
<?php endif?>
|
|
<div class='text-right'><?php $pager->show();?></div>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|