mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
New layout (Znote AAC AtomIO)
Layout is primarily changed to this because the old layout had obsolete javascript dependencies. I still want to make another default layout eventually, which is mobile friendly. This layout has a very nice character search widget though that looks for names realtime and displays them in a list beside the search.
This commit is contained in:
58
layout/widgets/admin.php
Normal file
58
layout/widgets/admin.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<div class="well myaccount_widget widget" id="loginContainer">
|
||||
<div class="header">
|
||||
Administration
|
||||
</div>
|
||||
<div class="body">
|
||||
<ul class="linkbuttons">
|
||||
<li>
|
||||
<a href='admin.php'>Admin Page</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_news.php'>Admin News</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_gallery.php'>Admin Gallery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_skills.php'>Admin Skills</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_reports.php'>Admin Reports</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_helpdesk.php'>Admin Helpdesk</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_shop.php'>Admin Shop</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='admin_auction.php'>Admin Auction</a>
|
||||
</li>
|
||||
<?php
|
||||
$new = 0;
|
||||
$cat = 4; //Category ID for feedback section
|
||||
$threads = mysql_select_multi("SELECT `id`, `player_id` FROM `znote_forum_threads` WHERE `forum_id`='$cat' AND `closed`='0';");
|
||||
if ($threads !== false) {
|
||||
$staffs = mysql_select_multi("SELECT `id` FROM `players` WHERE `group_id` > '1';");
|
||||
|
||||
foreach($threads as $thread) {
|
||||
$response = false;
|
||||
$posts = mysql_select_multi("SELECT `id`, `player_id` FROM `znote_forum_posts` WHERE `thread_id`='". $thread['id'] ."';");
|
||||
if ($posts !== false) {
|
||||
foreach($posts as $post) {
|
||||
foreach ($staffs as $staff) {
|
||||
if ($post['player_id'] == $staff['id']) $response = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$response) $new++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href='forum.php?cat=4'>Feedback: [<?php echo $new; ?>] new</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user