27 lines
809 B
PHP
27 lines
809 B
PHP
<?php
|
|
// Default to the queue.
|
|
if (!isset($_REQUEST['queue']))
|
|
$queue = TRUE;
|
|
else
|
|
$queue = get_queue();
|
|
$num_stories = 15;
|
|
|
|
if (!get_id() && (get_count() > 1))
|
|
echo sort_options("/publish/edit");
|
|
|
|
if ($queue) { ?>
|
|
|
|
<p>To view already-posted articles, <a href="edit?queue=0">click here</a>.</p>
|
|
<?php } else { ?>
|
|
<p>To view articles in the queue, <a href="edit?queue=1">click here</a>.</p>
|
|
<div class="input" style="text-align: justify">
|
|
<form action="" method="get">
|
|
<input name="search" type="text" class="input" id="search" maxlength="40" value="<?= form_value(get_search_args()) ?>" />
|
|
<input name="queue" type="hidden" value="0" />
|
|
<button type="submit" id="choose" name="action" value="choose" class="inputbutton">Search</button>
|
|
</form>
|
|
</div>
|
|
<?php }
|
|
echo display_stories();
|
|
?>
|