forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfeedback-view.php
More file actions
139 lines (128 loc) · 4.08 KB
/
Copy pathfeedback-view.php
File metadata and controls
139 lines (128 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?PHP
require 'includes/master.inc.php';
$Auth->requireAdmin('login.php');
$f = new Feedback($_GET['id']);
if(!$f->ok()) redirect('feedback.php');
if(isset($_POST['btnNew']))
{
$f->new = 1;
$f->update();
redirect('feedback.php');
}
elseif(isset($_POST['btnDelete']))
{
$f->delete();
redirect('feedback.php');
}
else
{
$f->new = 0;
$f->update();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Shine</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
<link rel="stylesheet" href="css/yuiapp.css" type="text/css">
<style type="text/css" media="screen">
th { text-align:right; font-weight:bold; }
</style>
</head>
<body class="rounded">
<div id="doc3" class="yui-t0">
<div id="hd">
<h1>Shine</h1>
<div id="navigation">
<ul id="primary-navigation">
<li><a href="index.php">Applications</a></li>
<li><a href="orders.php">Orders</a></li>
<li class="active"><a href="feedback.php">Feedback</a></li>
<li><a href="stats.php">Sparkle Stats</a></li>
</ul>
<ul id="user-navigation">
<li><a href="users.php">Users</a></li>
<li><a href="settings.php">Settings</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
<div class="clear"></div>
</div>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<div class="block tabs spaces">
<div class="hd">
<h2>Orders</h2>
<ul>
<li><a href="feedback.php">All Feedback</a></li>
<li><a href="feedback.php?type=support">Support Questions</a></li>
<li><a href="feedback.php?type=bug">Bug Reports</a></li>
<li><a href="feedback.php?type=feature">Feature Requests</a></li>
<li class="active"><a href="feedback-view.php?id=<?PHP echo $f->id; ?>">Ticket #<?PHP echo $f->id; ?></a></li>
</ul>
<div class="clear"></div>
</div>
<div class="bd">
<table>
<tr>
<th>App Name</th>
<td><?PHP echo $f->appname . ' ' . $f->appversion;?></td>
</tr>
<tr>
<th>System</th>
<td><?PHP echo $f->systemversion;?></td>
</tr>
<tr>
<th>Email</th>
<td><a href="mailto:<?PHP echo $f->email;?>"><?PHP echo $f->email;?></a></td>
</tr>
<tr>
<th>Type</th>
<td><?PHP echo ucwords($f->type);?></td>
</tr>
<tr>
<th>Message</th>
<td><?PHP echo nl2br($f->__message);?></td>
</tr>
<?PHP if($f->type == "feature") : ?>
<tr>
<th>Importance</th>
<td><?PHP echo $f->importance;?></td>
</tr>
<?PHP endif; ?>
<?PHP if($f->type == "bug") : ?>
<tr>
<th>Critical</th>
<td><?PHP echo ($f->critical == 0) ? "No" : "Yes!"; ?></td>
</tr>
<?PHP endif; ?>
<tr>
<th>Date Submitted</th>
<td><?PHP echo dater('n/j/Y g:ia', $f->dt); ?></td>
</tr>
<tr>
<th>IP</th>
<td><?PHP echo $f->ip;?></td>
</tr>
</table>
<form action="feedback-view.php?id=<?PHP echo $f->id;?>" method="post">
<p>
<input type="submit" name="btnNew" value="Mark as New" id="btnnew"/>
<input type="submit" name="btnDelete" value="Delete" id="btndelete" onclick="return confirm('Are you sure?');"/>
</p>
</form>
</div>
</div>
</div></div>
</div>
<div id="sidebar" class="yui-b">
</div>
</div>
<div id="ft"></div>
</div>
</body>
</html>