More better webpages
This commit is contained in:
parent
b48af7c0c0
commit
331fb9ac4e
|
|
@ -81,14 +81,12 @@
|
|||
</div><!-- /.navbar -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<h2>TriviaTime</h2>
|
||||
<p>
|
||||
We are #trivialand on Freenode. Come join us!
|
||||
</p>
|
||||
</div>
|
||||
<div class="hero-unit">
|
||||
<h1>About Us</h1>
|
||||
<p>TriviaTime is a trivia word game meant for irc. The source code is on github, be sure to check it out.</p>
|
||||
<p>We are #trivialand on Freenode. Come join us!</p>
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
|
|
|
|||
|
|
@ -81,14 +81,11 @@
|
|||
</div><!-- /.navbar -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<h2>Contact Us</h2>
|
||||
<p>
|
||||
We are #trivialand on Freenode. Come join us!
|
||||
</p>
|
||||
</div>
|
||||
<div class="hero-unit">
|
||||
<h1>Contact Us</h1>
|
||||
<p>We are #trivialand on Freenode. Come join us!</p>
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
|
|
|
|||
|
|
@ -81,14 +81,11 @@
|
|||
</div><!-- /.navbar -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<h2>TriviaTime</h2>
|
||||
<p>
|
||||
Get the latest stats for players and updates.
|
||||
</p>
|
||||
</div>
|
||||
<div class="hero-unit">
|
||||
<h1>TriviaTime</h1>
|
||||
<p>Get the latest stats for players and updates.</p>
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
|
|
|
|||
|
|
@ -81,11 +81,25 @@
|
|||
</div><!-- /.navbar -->
|
||||
</div>
|
||||
|
||||
<div class="hero-unit">
|
||||
<h1>Reports</h1>
|
||||
<p>The reports and edits that are currently pending.</p>
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="span6">
|
||||
<h2>Reports</h2>
|
||||
<p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Username</th>
|
||||
<th>Report Text</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($db) {
|
||||
$q = $db->query('SELECT * FROM triviareport LIMIT 10');
|
||||
|
|
@ -94,19 +108,33 @@
|
|||
} else {
|
||||
$result = $q->fetchAll();
|
||||
foreach($result as $res) {
|
||||
echo $res['reported_at'] . ' ' . $res['channel'] . ' ' . $res['username'] . ' ' . $res['report_text'] . "<br>\n";
|
||||
echo '<tr>';
|
||||
echo '<td>' . $res['id'] . '</td>';
|
||||
echo '<td>' . $res['username'] . '</td>';
|
||||
echo '<td>' . $res['report_text'] . '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
die('Couldnt connect to db');
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="span6">
|
||||
<h2>Edits</h2>
|
||||
<p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Edit #</th>
|
||||
<th>Username</th>
|
||||
<th>New Question</th>
|
||||
<th>Question #</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($db) {
|
||||
$q = $db->query('SELECT * FROM triviaedit ORDER BY id DESC LIMIT 10');
|
||||
|
|
@ -115,14 +143,20 @@
|
|||
} else {
|
||||
$result = $q->fetchAll();
|
||||
foreach($result as $res) {
|
||||
echo 'Edit#' . $res['id'] . ' new:`' . $res['question'] . '` by:' . $res['username'] . ' Question#' . $res['question_id'] . "<br>\n";
|
||||
echo '<tr>';
|
||||
echo '<td>' . $res['id'] . '</td>';
|
||||
echo '<td>' . $res['username'] . '</td>';
|
||||
echo '<td>' . $res['question'] . '</td>';
|
||||
echo '<td>' . $res['question_id'] . '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
die($err);
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -81,11 +81,26 @@
|
|||
</div><!-- /.navbar -->
|
||||
</div>
|
||||
|
||||
<div class="hero-unit">
|
||||
<h1>Stats</h1>
|
||||
<p>Stats are updated continuously and instantly.</p>
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="span6">
|
||||
<h2>Top10 of ALL TIME</h2>
|
||||
<p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Username</th>
|
||||
<th>Points</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($db) {
|
||||
$q = $db->query('SELECT username, sum(points_made) as points FROM triviauserlog GROUP BY username ORDER BY points DESC LIMIT 10');
|
||||
|
|
@ -93,19 +108,34 @@
|
|||
die("Error: database error: table does not exist\n");
|
||||
} else {
|
||||
$result = $q->fetchAll();
|
||||
foreach($result as $res) {
|
||||
echo $res['username'] . ' ' . $res['points'] . "<br>\n";
|
||||
|
||||
foreach($result as $key=>$res) {
|
||||
|
||||
echo '<tr>';
|
||||
echo '<td>' . ($key+1) . '</td>';
|
||||
echo '<td>' . $res['username'] . '</td>';
|
||||
echo '<td>' . $res['points'] . '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
die($err);
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<h2>Todays TOP10</h2>
|
||||
<p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Username</th>
|
||||
<th>Points</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$day = date('j');
|
||||
$month = date('m');
|
||||
|
|
@ -118,15 +148,20 @@
|
|||
die("Error: database error: table does not exist\n");
|
||||
} else {
|
||||
$result = $q->fetchAll();
|
||||
foreach($result as $res) {
|
||||
echo $res['username'] . ' ' . $res['points'] . "<br>\n";
|
||||
foreach($result as $key=>$res) {
|
||||
echo '<tr>';
|
||||
echo '<td>' . ($key+1) . '</td>';
|
||||
echo '<td>' . $res['username'] . '</td>';
|
||||
echo '<td>' . $res['points'] . '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
die($err);
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue