forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
versions.php
80 lines (73 loc) · 2.65 KB
/
versions.php
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
<?PHP
require 'includes/master.inc.php';
$Auth->requireAdmin('login.php');
$nav = 'applications';
$app = new Application($_GET['id']);
if(!$app->ok()) redirect('index.php');
$versions = $app->versions();
?>
<!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">
<link rel="alternate" type="application/rss+xml" title="Appcast Feed" href="appcast.php?id=<?PHP echo $app->id; ?>" />
</head>
<body class="rounded">
<div id="doc3" class="yui-t0">
<div id="hd">
<?PHP include('inc/header.inc.php'); ?>
</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>Applications</h2>
<ul>
<li><a href="application.php?id=<?PHP echo $app->id; ?>"><?PHP echo $app->name; ?></a></li>
<li class="active"><a href="versions.php?id=<?PHP echo $app->id; ?>">Versions</a></li>
<li><a href="pirates.php?id=<?PHP echo $app->id; ?>">Pirates</a></li>
<li><a href="version-new.php?id=<?PHP echo $app->id; ?>">Release New Version</a></li>
</ul>
<div class="clear"></div>
</div>
<div class="bd">
<table>
<thead>
<tr>
<th>Human Readable Version</th>
<th>Sparkle Version Number</th>
<th>Release Date</th>
<th>Downloads</th>
<th>Updates</th>
<th>Pirate Count</th>
</tr>
</thead>
<tbody>
<?PHP foreach($versions as $v) : ?>
<tr>
<td><a href="version-edit.php?id=<?PHP echo $v->id; ?>"><?PHP echo $v->human_version; ?></a></td>
<td><?PHP echo $v->version_number; ?></td>
<td><?PHP echo dater($v->dt, 'n/d/Y g:ia'); ?></td>
<td><?PHP echo number_format($v->downloads); ?></td>
<td><?PHP echo number_format($v->updates); ?></td>
<td><?PHP echo number_format($v->pirate_count); ?></td>
</tr>
<?PHP endforeach; ?>
</tbody>
</table>
</div>
</div>
</div></div>
</div>
<div id="sidebar" class="yui-b">
</div>
</div>
<div id="ft"></div>
</div>
</body>
</html>