isLogged()) { $users->setCurrent($_GET['setCurrent']); } $userData['currentproject'] = intval($_GET['setCurrent']); unset($_SESSION['selectCache']); } $current = $projects->getCurrent($userData); if(!$current) header("location: projects.php?msg=".urlencode("You should create a project first.")); if($users->isAdmin()) { if(!empty($_GET['delete'])) { $bugs->delete($_GET['delete']); header("location: bugs.php?msg=".urlencode("This bug has been deleted.")); } } if(!empty($_GET['project'])) $project = $_GET['project']; else $project = $current; $project = $projects->getById($project); echo $xhtml->head('Bugs for «'.xHTML::Protect($project['title']).'»',"bugs"); echo '
'.nl2br(stripslashes($project['text'])).'
There is no bug reported for this project.
'; } else { if($bugs->getPagination($begin,$bugs->listNb)) { $pagination = 'ID | Title | Status | Updated |
---|---|---|---|
'.$row['id'].' | '; echo ''.xHTML::Protect($row['title']).' | '; echo ''.$row['status'].' | '; echo ''.(empty($row['updated']) ? 'c:'.date('d/m/Y H:i',$row['created']) : date('d/m/Y H:i',$row['updated'])).' | '; echo '