mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
38270aa63c
commit
bc3c3df65a
@ -1,5 +1,8 @@
|
|||||||
CHANGE LOG
|
CHANGE LOG
|
||||||
|
|
||||||
|
2015-10-27 by newman
|
||||||
|
Paginate ask the staff
|
||||||
|
|
||||||
2015-10-24 by newman
|
2015-10-24 by newman
|
||||||
Implement locked accounts and site options. Locked accounts is an intermediary between enabled and disabled, and is presented on a user's staff tools. It limits the user to navigating to only the locked page and staffpm. Site options eliminates the need to hardcode values that may change in the future.
|
Implement locked accounts and site options. Locked accounts is an intermediary between enabled and disabled, and is presented on a user's staff tools. It limits the user to navigating to only the locked page and staffpm. Site options eliminates the need to hardcode values that may change in the future.
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
error(404);
|
error(404);
|
||||||
}
|
}
|
||||||
Text::$TOC = true;
|
Text::$TOC = true;
|
||||||
|
define('QUESTIONS_PER_PAGE', 25);
|
||||||
|
list($Page, $Limit) = Format::page_limit(QUESTIONS_PER_PAGE);
|
||||||
|
|
||||||
$DB->query("
|
$DB->query("
|
||||||
SELECT
|
SELECT
|
||||||
@ -28,7 +30,8 @@
|
|||||||
FROM staff_answers AS sq
|
FROM staff_answers AS sq
|
||||||
WHERE sq.UserID = '$LoggedUser[ID]'
|
WHERE sq.UserID = '$LoggedUser[ID]'
|
||||||
)
|
)
|
||||||
ORDER BY uq.Date DESC");
|
ORDER BY uq.Date DESC
|
||||||
|
LIMIT $Limit");
|
||||||
$Questions = $DB->to_array();
|
$Questions = $DB->to_array();
|
||||||
|
|
||||||
$DB->query("
|
$DB->query("
|
||||||
@ -37,8 +40,13 @@
|
|||||||
list($TotalQuestions) = $DB->next_record();
|
list($TotalQuestions) = $DB->next_record();
|
||||||
|
|
||||||
View::show_header('Ask the Staff', 'questions,bbcode');
|
View::show_header('Ask the Staff', 'questions,bbcode');
|
||||||
|
if ($TotalQuestions > QUESTIONS_PER_PAGE) { ?>
|
||||||
?>
|
<div class="linkbox">
|
||||||
|
<?
|
||||||
|
$Pages = Format::get_pages($Page, $TotalQuestions, QUESTIONS_PER_PAGE);
|
||||||
|
echo $Pages;?>
|
||||||
|
</div>
|
||||||
|
<? } ?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h2>User Questions</h2>
|
<h2>User Questions</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user