Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions www/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,17 @@ th.results {
background-color: #aaaaaa;
text-align: left;
}

th.results.asc, th.results.desc{
background-color:#ddf;
}
th.results.asc:after{
content:'▲';
}
th.results.desc:after{
content:'▼';
}

table#details td {
vertical-align: top;
}
Expand Down
20 changes: 10 additions & 10 deletions www/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@
<?php } ?>

<tr>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=id">ID#</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=ts1">Date</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=ts2">Last Modified</a></th>
<th class="results<?= $order_by === 'id' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=id">ID#</a></th>
<th class="results<?= $order_by === 'ts1' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=ts1">Date</a></th>
<th class="results<?= $order_by === 'ts2' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=ts2">Last Modified</a></th>
<?php if ($package_count !== 1) { ?>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=package_name">Package</a></th>
<th class="results<?= $order_by === 'package_name' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=package_name">Package</a></th>
<?php } ?>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=bug_type">Type</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=status">Status</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=php_version">PHP Version</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=php_os">OS</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=sdesc">Summary</a></th>
<th class="results"><a href="<?php echo $link;?>&amp;reorder_by=assign">Assigned</a></th>
<th class="results<?= $order_by === 'bug_type' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=bug_type">Type</a></th>
<th class="results<?= $order_by === 'status' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=status">Status</a></th>
<th class="results<?= $order_by === 'php_version' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=php_version">PHP Version</a></th>
<th class="results<?= $order_by === 'php_os' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=php_os">OS</a></th>
<th class="results<?= $order_by === 'sdesc' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=sdesc">Summary</a></th>
<th class="results<?= $order_by === 'assign' ? (strcasecmp('desc', $direction)===0 ?' desc':' asc'):''; ?>"><a href="<?php echo $link;?>&amp;reorder_by=assign">Assigned</a></th>
</tr>
<?php

Expand Down