<center><b>Bug tracker allows you to view current bugs on the server, also you are able to send bug notices to be fixed.</b></center> <br /> <?php if (count($bugs) == 0) { alert("No bugs has been submited."); } else { echo "<center>" . $pages . "</cemter>"; echo "<table width='100%'>"; echo "<tr><td width='2%'></td><td width='30%'><center><b>Title</b></center></td><td><center><b>Category</b></center></td><td><center><b>Priority</b></center></td><td><center><b>Author</b></center></td><td><center><b>Done</b></center></td><td><center><b>Time</b></center></td></tr>"; foreach ($bugs as $bug) { $status = $bug['closed'] == 0 ? "open.gif" : "closed.gif"; echo "<tr class='bugtrackerRow'><td><center><img src='" . WEBSITE . "/public/images/bugtracker/" . $status . "'></center></td><td width='30%'><center><a href='" . WEBSITE . "/index.php/bugtracker/view/" . $bug['id'] . "'>" . truncateString($bug['title'], 26) . "</a></center></td><td><center>" . bugtracker_getCategory($bug['category']) . "</center></td><td><center>" . bugtracker_getPriorityImage($bug['priority']) . " " . bugtracker_getPriority($bug['priority']) . "</center></td><td><center><a href='" . WEBSITE . "/index.php/character/view/" . $bug['name'] . "'>" . $bug['name'] . "</a></center></td><td><center><div class='bugtrackerProgressBar'><div class='bugtrackerProgress' style='width: " . $bug['done'] . "%;'></div></div>" . $bug['done'] . "%</center></td><td><center>" . ago($bug['time']) . "</center></td></tr>"; } echo "</table>"; } echo "<center>" . $pages . "</cemter>";
<?php if ($bug[0]['closed'] == 1) { alert("This submission is closed."); } ?> <div class="bugtrackerBugTable"> <div class="bugtrackerTitle"><?php echo $bug[0]['title']; ?> </div> <label>Category</label> <?php echo bugtracker_getCategory($bug[0]['category']); ?> <div style='clear: both;'></div> <label>Priority</label> <?php echo bugtracker_getPriority($bug[0]['priority']); ?> <div style='clear: both;'></div> <label>Author</label> <a href='".WEBSITE."/index.php/character/view/<?php echo $bug[0]['name']; ?> '><?php echo $bug[0]['name']; ?> </a><div style='clear: both;'></div> <label>Done</label> <?php echo $bug[0]['done']; ?> %