This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathadmin.php
64 lines (63 loc) · 3.03 KB
/
admin.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
<?php
require_once("auth.php");
?>
<!doctype html>
<html>
<head>
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="js/flexigrid.pack.js"></script>
<script type="text/javascript" src="js/kiosk.js"></script>
<link rel="stylesheet" href="css/style.css" media="screen" />
<link rel="stylesheet" href="css/print.css" media="print" />
<link type="text/css" href="css/ui-darkness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
<link rel="stylesheet" media="screen" href="flexstyle/flexigrid.pack.css" type="text/css" />
<style>
.flexigrid div.fbutton .add {
background: url("flexstyle/images/add.png") no-repeat scroll left center transparent;
}
.flexigrid div.fbutton .delete {
background: url("flexstyle/images/delete.png") no-repeat scroll left center transparent;
}
div.ui-dialog{
font-size:10px;
}
</style>
</head>
<body>
<div class="centered bodywrap">
<h1><?php echo Settings::$name; ?> Admin Panel</h1>
<div id="flex" class="flexigrid"></div>
<?php
/*
require_once("connect.php");
mysql_query("USE `lovematch`");
$result = mysql_query("SELECT * FROM `responses` ORDER BY `name`;");
mysql_error();
?><a href="stats.php">[stats]</a> <a href="report-all.php">[get all reports]</a> <a href="killsession.php">[logout]</a><br><br><?php
$count_result= mysql_query("SELECT COUNT(*) AS `total` FROM `responses`");
$count = mysql_fetch_array($count_result);
echo("Of ". $count['total'] . " people who took the survey, ");
$count_result= mysql_query("SELECT COUNT(*) AS `total_paid` FROM `responses` WHERE `paid` = 'paid'");
$count = mysql_fetch_array($count_result);
echo($count['total_paid'] . " of them paid for results.<br>");
?><table style="margin: auto; text-align:left;"><?php
while ($row = mysql_fetch_array($result))
{
echo("<tr>");
echo("<td>". $row['name'] ."</td>");
echo("<td>");
if ($row['paid'] == "paid"){e
cho('<a href="report.php?id='. $row['id'] .'">get report</a></td><td>');}else{echo('</td><td><a href="markpaid.php?id='. $row['id'] .'">mark as paid</a>');}
echo("</td>");
echo("</tr>");
}*/
?></table>
<br><a href="stats.php">[stats]</a> <a href="report-all.php">[get all reports]</a><a href="questions.php">[Questions]</a><a href="killsession.php">[logout]</a><br><br><?php
?>
</div>
<a href="cleardb.php?really=yes" style="font-size: xx-small">clear database? only click if you really mean it.</a><br>
<a href="http://lovematch:[email protected]/dh_phpmyadmin/mysql.owenjohnson.info/" style="font-size: xx-small">manually edit database?</a>
<a href="update.php" style="font-size: xx-small">pull updates?</a>
</body>
</html>