-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more development for ticket system [#1]
- Loading branch information
1 parent
893e5e0
commit e6d244f
Showing
7 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Bug Detail</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link href="sunlight.png" rel="icon"> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<h1>Bug Detail</h1> | ||
</header> | ||
<nav> | ||
<ul> | ||
<li><a href="index.php">Home</a></li> | ||
<li><a href="tickets.php" class="active">Bug Reports</a></li> | ||
</ul> | ||
</nav> | ||
|
||
<div class="content"> | ||
<?php | ||
@include 'util.php'; | ||
|
||
if (isset($_GET['bug_id'])) { | ||
$bug_id = $_GET['bug_id']; | ||
|
||
$query = mysqli_query(database_blogpost(), "SELECT * FROM bug_reports WHERE id = $bug_id"); | ||
|
||
if ($result = $query) { | ||
foreach ($query as $bug) { | ||
echo "<div class='bug-detail'>"; | ||
echo "<h2>Bug #" . $bug['id'] . "</h2>"; | ||
echo "<p><strong>Description:</strong> " . $bug['description'] . "</p>"; | ||
echo "<p><strong>Reporter:</strong> " . $bug['reporter_name'] . "</p>"; | ||
echo "<p><strong>Created at:</strong> " . $bug['created_at'] . "</p>"; | ||
echo "<p><strong>Status:</strong> " . $bug['status'] . "</p>"; | ||
echo "</div>"; | ||
} | ||
} else { | ||
echo "Bug not found."; | ||
} | ||
} else { | ||
echo "Bug ID not provided."; | ||
} | ||
?> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
echo "LOGIN: soon"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
echo "REGISTER: soon"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters