Added full source code
This commit is contained in:
commit
33f8586698
1377 changed files with 123808 additions and 0 deletions
67
scripts/site/beta5/output/forums/en/category.inc
Normal file
67
scripts/site/beta5/output/forums/en/category.inc
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?
|
||||
|
||||
$cat = $args['all'][$args['id']];
|
||||
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('C#'.$args['id'], $args['all']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<table cellspacing='0' cellpadding='0'><tr>
|
||||
<td class="pc50"><h1><?=utf8entities($cat['title'])?></h1></td>
|
||||
<td class='maar'><a href="?cmd=<?=urlencode('MC#'.$cat['type']."#".$cat['id'])?>" <?=tooltip('Click here to mark all topics in the forums belonging to this category as read')?>>Mark forums as read</a></td>
|
||||
</tr></table>
|
||||
<p><?
|
||||
|
||||
if ($cat['desc'] != '')
|
||||
echo preg_replace('/\n/', '<br/>', utf8entities($cat['desc']));
|
||||
else if ($cat['type'] == 'A')
|
||||
echo "<p>These are the forums of the alliance called <b>".utf8entities($cat['title'])."</b></p>";
|
||||
else
|
||||
echo " ";
|
||||
|
||||
echo "</p>\n";
|
||||
|
||||
if (count($cat['forums']))
|
||||
{
|
||||
echo "<table cellspacing='0' cellpadding='0' class='fcf'>\n";
|
||||
echo "<tr><td class='fst' colspan='2'> </td><th class='fnm'>Forum name</th>";
|
||||
echo "<th class='fnt'>Topics</th><th class='fnp'>Posts</th><th class='flpl'>Last post</th></tr>\n";
|
||||
for ($i=0;$i<count($cat['forums']);$i++)
|
||||
{
|
||||
echo "<tr><td class='fst' rowspan='2'> </td>";
|
||||
$pic = config::$main['staticurl'] . "/beta5/pics/" . ($cat['forums'][$i]['unread'] > 0 ? 'un' : '') . 'read.gif';
|
||||
echo "<td class='fst' rowspan='2'><img src='$pic' alt='FIXME' /></td>";
|
||||
echo "<td class='fnm'><a href='?cmd=".urlencode("F#".$cat['type']."#".$cat['forums'][$i]['id'])."' ".tooltip('Click here to go to this forum topics list page')." >";
|
||||
echo utf8entities($cat['forums'][$i]['title']) . "</a></td>";
|
||||
echo "<td class='fnt'>" . $cat['forums'][$i]['topics'] . "</td>";
|
||||
echo "<td class='fnp'>" . $cat['forums'][$i]['posts'] . "</td>";
|
||||
echo "<td class='flpl' rowspan='2'> ";
|
||||
$l = $cat['forums'][$i]['last'];
|
||||
if (is_null($l))
|
||||
echo "No Posts";
|
||||
else
|
||||
{
|
||||
echo "Last post by <b>" . utf8entities($l['author']) . "</b><br/>";
|
||||
echo preg_replace('/ /', ' ', gmstrftime("%H:%M:%S on %d/%m/%Y", $l['moment']));
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>\n<tr><td colspan='3'><p>";
|
||||
if ($cat['forums'][$i]['description'] != '')
|
||||
echo preg_replace('/\n/', '<br/>', utf8entities($cat['forums'][$i]['description']));
|
||||
else
|
||||
echo " ";
|
||||
echo "</p></td></tr>\n";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<p>There are no forums in this category.</p>";
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
11
scripts/site/beta5/output/forums/en/catnotfound.inc
Normal file
11
scripts/site/beta5/output/forums/en/catnotfound.inc
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('', $args); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Category Not Found</h1>
|
||||
<p>The category you wish to view no longer exists.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
146
scripts/site/beta5/output/forums/en/forum.inc
Normal file
146
scripts/site/beta5/output/forums/en/forum.inc
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?
|
||||
$f = $args['forum'];
|
||||
$fid = 'F#'.$f['ctype']."#".$f['id'];
|
||||
list($tPPage,$page,$nPages) = $args['details'];
|
||||
$mod = $f['mod'];
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu($fid, $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<table cellspacing='0' cellpadding='0'><tr>
|
||||
<td class="pc50"><h1><?=utf8entities($f['title'])?></h1></td>
|
||||
<td class='maar'><a href="?cmd=<?=urlencode('MF#'.$f['ctype']."#".$f['id'])?>&pg=<?=$page?>" <?=tooltip('Click here to mark all topics in this forum as read')?>>Mark topics as read</a></td>
|
||||
</tr></table>
|
||||
<?
|
||||
if ($f['description'] != '')
|
||||
echo "<p>" . preg_replace('/\n/', '<br/>', utf8entities($f['description'])) . "</p>\n";
|
||||
?>
|
||||
<form action="?" method="post">
|
||||
<input type="hidden" name="cmd" value="<?=$fid?>" />
|
||||
<input type="hidden" name="pg" value="<?=$page?>" />
|
||||
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd"><tr>
|
||||
<td><?
|
||||
|
||||
if ($f['user_post'] || $f['mod'])
|
||||
echo "<a href='?cmd=n&f=".urlencode($fid)."' ".tooltip('Click here to go to the new topic form and post a new topic').">New topic</a>";
|
||||
else
|
||||
echo "Only moderators can create topics";
|
||||
|
||||
?></td>
|
||||
<td>
|
||||
Display <span <?=tooltip('Use this drop down list to choose the number of topics to display on each page')?>><select name="tpp" onChange="form.submit()"><?
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
{
|
||||
echo "<option value='" . ($i * 10) . "'";
|
||||
if ($i*10 == $tPPage)
|
||||
echo " selected='selected'";
|
||||
echo ">" . ($i*10) . "</option>";
|
||||
}
|
||||
|
||||
?></select></span> topics per page
|
||||
</td>
|
||||
<td <?=tooltip('Use this drop down list to choose the page of topics to display')?>>Page <?
|
||||
|
||||
if ($nPages <= 1)
|
||||
echo "1 / 1";
|
||||
else
|
||||
{
|
||||
echo "<select name='pg' onChange='form.submit()'>";
|
||||
for ($i=0;$i<$nPages;$i++)
|
||||
echo "<option value='$i'" . ($page == $i ? " selected='selected'" : "") . ">" . ($i+1) . "</option>";
|
||||
echo "</select> / $nPages";
|
||||
}
|
||||
|
||||
?></td>
|
||||
</tr></table>
|
||||
|
||||
<table cellspacing="0" cellpadding="0" class="ftop">
|
||||
<?
|
||||
|
||||
if ($f['topics'] == 0)
|
||||
echo "<tr><td class='fem'>This forum is empty.</tr></td>\n";
|
||||
else
|
||||
{
|
||||
echo "<tr><th class='tpic'> </th>";
|
||||
if ($mod)
|
||||
echo "<th class='tpic'> </th>";
|
||||
echo "<th class='tnm'>Topic</th><th class='trp'>Replies</th>";
|
||||
echo "<th class='tps'>First Post</th><th class='tps'>Last Post</th></tr>\n";
|
||||
|
||||
$topics = $args['topics'];
|
||||
for ($i=0;$i<count($topics);$i++)
|
||||
{
|
||||
echo "<tr>";
|
||||
if ($mod)
|
||||
echo "<td class='tpic'><input " . tooltip('Use this checkbox to select this topic') . " type='checkbox' id='msel$i' name='msel[]' value='" . $topics[$i]['id'] . "' /></td>";
|
||||
$pic = config::$main['staticurl'] . "/beta5/pics/" . ($topics[$i]['read'] ? '' : 'un') . 'read';
|
||||
if ($topics[$i]['sticky'])
|
||||
$pic .= '_sticky';
|
||||
$pic .= '.gif';
|
||||
$text = ($topics[$i]['read'] ? 'Read' : 'Unread') . ($topics[$i]['sticky'] ? " sticky" : "") . " topic";
|
||||
echo "<td class='tpic'><img src='$pic' alt='$text' /></td>";
|
||||
echo "<td class='tnm'><a href='?cmd=".urlencode("T#".$f['ctype']."#".$topics[$i]['id'])."' " . tooltip('Click here to diplay the posts in this topic') . ">";
|
||||
// FIXME: poll icon
|
||||
echo utf8entities($topics[$i]['title']) . "</a></td>";
|
||||
echo "<td class='trp'>" . $topics[$i]['posts'] . "</td>";
|
||||
echo "<td class='tps'>" . gmstrftime('%H:%M:%S on %d/%m/%Y', $topics[$i]['moment']) . " by ";
|
||||
if ($topics[$i]['author_id'] != '')
|
||||
echo "<a href='message?a=c&ct=0&id=".$topics[$i]['author_id']."' ". tooltip('Click here to send a message to the author of this topic') . " >".utf8entities($topics[$i]['author'])."</a>";
|
||||
else
|
||||
echo "<b>".utf8entities($topics[$i]['author'])."</b>";
|
||||
echo "</td><td class='tps'>" . gmstrftime('%H:%M:%S on %d/%m/%Y', $topics[$i]['last_moment']) . " by ";
|
||||
if ($topics[$i]['last_author_id'] != '')
|
||||
echo "<a href='message?a=c&ct=0&id=".$topics[$i]['last_author_id']."' ". tooltip('Click here to send a message to author of the last post in this topic') . " >".utf8entities($topics[$i]['last_author'])."</a>";
|
||||
else
|
||||
echo "<b>".utf8entities($topics[$i]['last_author'])."</b>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
<?
|
||||
if ($mod && count($topics))
|
||||
{
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd"><tr>
|
||||
<td>
|
||||
<input <?=tooltip('Click here to delete the selected topics')?> type="submit" name="dt" value="Delete" onClick="return confirmDelete()" />
|
||||
<input <?=tooltip('Click here to go to switch sticky status on the selected topics')?> type="submit" name="st" value="Switch sticky" onClick="return confirmSticky()" />
|
||||
</td>
|
||||
<td>
|
||||
<?
|
||||
$mf = array();
|
||||
foreach ($args['cats'] as $cid => $cat) {
|
||||
if ($cat['type'] == 'A' && $f['ctype'] != 'A' || $cat['type'] != 'A' && $f['ctype'] == 'A')
|
||||
continue;
|
||||
foreach ($cat['forums'] as $cf)
|
||||
if ($cf['id'] != $f['id'] && $cf['mod'])
|
||||
array_push($mf, $cf);
|
||||
}
|
||||
|
||||
if (!count($mf))
|
||||
echo " ";
|
||||
else
|
||||
{
|
||||
echo "<input type='submit' " . tooltip('Click here to move the selected topics to the chosen forum') . " name='mt' value='Move' onClick='return confirmMove()' /> to forum ";
|
||||
echo"<span " . tooltip('use this drop down list to choose the forum to which to move the selected topics') . " ><select name='mdest' id='mdest'><option value=''>---------</option>";
|
||||
foreach ($mf as $cf)
|
||||
echo "<option value='" . $cf['id'] . "'>" . utf8entities($cf['title']) . "</option>";
|
||||
echo "</select></span>";
|
||||
}
|
||||
?></td>
|
||||
</tr></table>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
11
scripts/site/beta5/output/forums/en/forumnopost.inc
Normal file
11
scripts/site/beta5/output/forums/en/forumnopost.inc
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('', $args); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Permission Denied</h1>
|
||||
<p>You are not allowed to post in this forum; only its moderators can do so.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
11
scripts/site/beta5/output/forums/en/forumnotfound.inc
Normal file
11
scripts/site/beta5/output/forums/en/forumnotfound.inc
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('', $args); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Forum Not Found</h1>
|
||||
<p>The forum you wish to browse no longer exists.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
98
scripts/site/beta5/output/forums/en/latest.inc
Normal file
98
scripts/site/beta5/output/forums/en/latest.inc
Normal file
|
@ -0,0 +1,98 @@
|
|||
<?
|
||||
if ($args['cat'] == '')
|
||||
{
|
||||
$mode = 'l';
|
||||
$title = 'Latest Messages in All Forums';
|
||||
}
|
||||
else
|
||||
{
|
||||
$mode = 'L#' . $args['cat'];
|
||||
$title = $args['cats'][$args['cat']]['title'] . ": Latest Messages";
|
||||
}
|
||||
list($mPPage,$page) = $args['details'];
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu($mode, $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1><?=utf8entities($title)?></h1>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='<?=$mode?>' />
|
||||
<input type='hidden' name='pg' value='<?=$page?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td><?=($page > 0) ? ("<a href='?cmd=".urlencode($mode)."&pg=".($page - 1)."' ".tooltip('Click here to go to the previous page of the latest messages in this forums category'). " >") : ""?><- Previous page<?=($page > 0) ? "</a>" : ""?></td>
|
||||
<td>Display <span <?=tooltip('Use this drop down list to choose the number of messages to diplay on each page')?> ><select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> posts per page</td>
|
||||
<td><?=(count($args['posts'])==$mPPage+1)?("<a href='?cmd=".urlencode($mode)."&pg=".($page+1)."' ".tooltip('Click here to go to the next page of the latest messages in this forums category'). " >"):""?>Next page -><?=(count($args['posts'])==$mPPage+1)?"</a>":""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?
|
||||
|
||||
$p = $args['posts'];
|
||||
$nbp = min($mPPage,count($p));
|
||||
if ($nbp == 0)
|
||||
echo "<center><b>No posts were found.</b></center>";
|
||||
else
|
||||
{
|
||||
for ($i=0;$i<$nbp;$i++)
|
||||
{
|
||||
echo "<table cellspacing='0' cellpadding='0' class='ftp'>";
|
||||
echo "<tr><th class='pfor'>";
|
||||
if ($args['cat'] == '')
|
||||
echo utf8entities($p[$i]['cname'] . " > ");
|
||||
echo utf8entities($p[$i]['fname']) . "</th>";
|
||||
echo "<td class='cmd' rowspan='3'><a href='?cmd=".urlencode("F#".$p[$i]['rctype']."#".$p[$i]['fid'])."'".tooltip('Click here to go to the main page of the forum in which this message was posted'). " >View forum</a><br/>";
|
||||
echo "<a href='?cmd=".urlencode("T#".$p[$i]['rctype']."#".$p[$i]['tid'])."'".tooltip('Click here to go to go to the page of the topic in which this message was posed'). " >View topic</a><br/>";
|
||||
echo "<a href='?cmd=".urlencode("R#".$p[$i]['rctype']."#".$p[$i]['id'])."&q=0'".tooltip('Click here to go to the compose form and reply to this message'). " >Reply</a> - ";
|
||||
echo "<a href='?cmd=".urlencode("R#".$p[$i]['rctype']."#".$p[$i]['id'])."&q=1'".tooltip('Click here to go to the compose form and reply to this message by quoting it'). " >Quote</a>\n";
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr><th>" . utf8entities($p[$i]['title']) . "</th></tr>\n";
|
||||
|
||||
echo "<tr><td>Posted <b>" . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['moment']);
|
||||
echo "</b> by ".(is_null($p[$i]['pid'])?'<b>':('<a href="message?a=c&ct=0&id='.$p[$i]['pid'].'"'.tooltip('Click here to go to the compose form and send a private message to the author of this post'). ' >'));
|
||||
echo $p[$i]['author'].(is_null($p[$i]['pid'])?'</b>':'</a>')."</td>";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr><td colspan='2'>" . $p[$i]["contents"] . "</td></tr>\n";
|
||||
|
||||
if ($p[$i]['edited'] != 0)
|
||||
{
|
||||
echo "<tr><td class='edit' colspan='2'>Edited by ";
|
||||
echo (is_null($p[$i]['edit_id']) ? '<b>' : ('<a href="message?a=c&ct=0&id='.$p[$i]['edit_id'].'"'.tooltip('Click here to go to the compose form and send a private message to the player who last edited this post'). ' >')) . utf8entities($p[$i]['edited_by']);
|
||||
echo (is_null($p[$i]['edit_id']) ? '</b>' : '</a>'). " at " . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['edited']) . "</td></tr>";
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
}
|
||||
?>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='<?=$mode?>' />
|
||||
<input type='hidden' name='pg' value='<?=$page?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td><?=($page > 0) ? ("<a href='?cmd=".urlencode($mode)."&pg=".($page - 1)."'".tooltip('Click here to go to the previous page of the latest messages in this forums category'). ">") : ""?><- Previous page<?=($page > 0) ? "</a>" : ""?></td>
|
||||
<td>Display <span <?=tooltip('Use this drop down list to choose the number of messages to diplay on each page')?> ><select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> posts per page</td>
|
||||
<td><?=(count($args['posts'])==$mPPage+1)?("<a href='?cmd=".urlencode($mode)."&pg=".($page+1)."'".tooltip('Click here to go to the next page of the latest messages in this forums category'). " >"):""?>Next page -><?=(count($args['posts'])==$mPPage+1)?"</a>":""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
61
scripts/site/beta5/output/forums/en/overview.inc
Normal file
61
scripts/site/beta5/output/forums/en/overview.inc
Normal file
|
@ -0,0 +1,61 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('o', $args); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Forums Overview</h1>
|
||||
<?
|
||||
|
||||
foreach ($args as $cid => $cat)
|
||||
{
|
||||
echo "<table cellspacing='0' cellpadding='0' class='fcat'>\n";
|
||||
echo "<tr class='hdr'><th class='hdr'><a href='?cmd=".urlencode("C#$cid")."'" . tooltip('Click here to go to the main page of this forum category') . ">";
|
||||
echo utf8entities($cat['title']) . "</a></th><td class='ctype'>(" . ($cat['type'] == "A" ? "alliance" : "general") . ")</td></tr>\n";
|
||||
echo "<tr><td colspan='2'>";
|
||||
if ($cat['desc'] != "")
|
||||
echo "<p>" . preg_replace('/\n/', '<br/>', utf8entities($cat['desc'])) . "</p>\n";
|
||||
else
|
||||
echo " ";
|
||||
echo "</td></tr>\n";
|
||||
|
||||
if (count($cat['forums']))
|
||||
{
|
||||
echo "<tr><td colspan='2'><table cellspacing='0' cellpadding='0' class='fcf'>\n";
|
||||
echo "<tr><td class='fst'> </td><th class='fnm'>Forum name</th>";
|
||||
echo "<th class='fnt'>Topics</th><th class='fnp'>Posts</th><th class='flp'>Last post</th></tr>\n";
|
||||
for ($i=0;$i<count($cat['forums']);$i++)
|
||||
{
|
||||
$pic = config::$main['staticurl'] . "/beta5/pics/" . ($cat['forums'][$i]['unread'] > 0 ? 'un' : '') . 'read.gif';
|
||||
echo "<tr><td class='fst' rowspan='2'><img src='$pic' alt='FIXME' /></td>";
|
||||
echo "<td class='fnm'><a href='?cmd=".urlencode("F#".$cat['type']."#".$cat['forums'][$i]['id'])."'" . tooltip('Click here to go to the main page of this forum') . ">";
|
||||
echo utf8entities($cat['forums'][$i]['title']) . "</a></td>";
|
||||
echo "<td class='fnt' rowspan='2'>" . $cat['forums'][$i]['topics'] . "</td>";
|
||||
echo "<td class='fnp' rowspan='2'>" . $cat['forums'][$i]['posts'] . "</td>";
|
||||
echo "<td class='flp' rowspan='2'> ";
|
||||
$l = $cat['forums'][$i]['last'];
|
||||
if (is_null($l))
|
||||
echo "No Posts";
|
||||
else
|
||||
{
|
||||
echo "Last post by <b>" . utf8entities($l['author']) . "</b><br/>";
|
||||
echo preg_replace('/ /', ' ', gmstrftime("%H:%M:%S on %d/%m/%Y", $l['moment']));
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>\n<tr><td><p>";
|
||||
if ($cat['forums'][$i]['description'] != '')
|
||||
echo preg_replace('/\n/', '<br/>', utf8entities($cat['forums'][$i]['description']));
|
||||
else
|
||||
echo " ";
|
||||
echo "</p></td></tr>\n";
|
||||
}
|
||||
echo "</table></td></tr>";
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
118
scripts/site/beta5/output/forums/en/post.inc
Normal file
118
scripts/site/beta5/output/forums/en/post.inc
Normal file
|
@ -0,0 +1,118 @@
|
|||
<?
|
||||
$f = $args['forum'];
|
||||
if ($args['cmd'] == 'n')
|
||||
$title = utf8entities($f['title'])." - New Topic";
|
||||
else if (substr($args['cmd'],0,2) == 'R#')
|
||||
$title = "Reply to '" . utf8entities($args['posts'][0]['title']) . "'";
|
||||
else if (substr($args['cmd'],0,2) == 'E#')
|
||||
$title = "Editing '" . utf8entities($args['post']['title']) . "'";
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('F#'.$args['cfid'], $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h2><?=$title?></h2>
|
||||
<form action="?#box" method='post'>
|
||||
<input type='hidden' name='cmd' value='<?=$args['cmd']?>' />
|
||||
<input type='hidden' name='f' value='F#<?=$args['cfid']?>' />
|
||||
<input type='hidden' name='ref' value='<?=$args['ref']?>' />
|
||||
<input type='hidden' name='uid' value='<?=$args['uid']?>' />
|
||||
|
||||
<a name='box'></a>
|
||||
<table cellspacing="0" cellpadding="0" class="fpost">
|
||||
<tr><td colspan='3'> </td></tr>
|
||||
<?
|
||||
|
||||
$errs = array('Subject is too short.', 'Subject is too long.', 'Contents are too short.', 'Contents are too long.');
|
||||
if ($args['err'])
|
||||
echo "<tr><td> </td><th class='err'>" . $errs[$args['err']-1] . "</th><td> </td></tr>";
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<th><label for="sub" accesskey="s"><?=$args['cmd'] == 'n' ? "Topic title" : "Subject"?>:</label></th>
|
||||
<td colspan="2"><input <?=tooltip('Use this text field to type in or modify the subject of your post')?> type='text' id="sub" name='sub' value="<?=utf8entities($args['sub'], ENT_QUOTES)?>" maxlength="100" size='60' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="txt" accesskey="t">Text:</label></th>
|
||||
<td <?=tooltip('Use this text area to type in or modify your message')?> ><textarea name='txt' id="txt" cols='60' rows='15'><?=utf8entities($args['txt'])?></textarea></td>
|
||||
<td id="jszone"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Options:</th>
|
||||
<td colspan="2">
|
||||
<input <?=tooltip('Use this checkbox to enable / disable graphical smileys')?> type='checkbox' name='sm' id="esm" value='1'<?=$args['sm']?" checked='checked'":""?> /> <label for="esm" accesskey="e">Enable graphical smileys</label>
|
||||
<input <?=tooltip('Use this checkbox to enable / disable forum tags')?> type='checkbox' name='fc' id="efc" value='1'<?=$args['fc']?" checked='checked'":""?> /> <label for="efc" accesskey="f">Enable forum tags</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
if ($args['sst'])
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th>Sticky topic:</th>
|
||||
<td colspan="2">
|
||||
<input <?=tooltip('Use this checkbox to change the sticky status of the post')?> type='checkbox' name='st' id="est" value='1'<?=$args['st']?" checked='checked'":""?> /> <label for="est" accesskey="y">Enable sticky topic</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
?>
|
||||
<tr><td colspan='3'> </td></tr>
|
||||
<tr><td> </td><td colspan='2' class='butt'>
|
||||
<input <?=tooltip('Click here to post your message')?> type='submit' name='e' value='Submit' accesskey="g" />
|
||||
<input <?=tooltip('Click here to preview your message as it will be displayed in the forums')?> type='submit' name='p' value='Preview' accesskey="p" />
|
||||
<input <?=tooltip('Click here to cancel your changes and go back to the previous page')?> type='submit' name='c' value='Cancel' accesskey="c" />
|
||||
</td></tr>
|
||||
<?php
|
||||
|
||||
if ($args['prev'] != "")
|
||||
{
|
||||
echo " <tr><td rowspan='3'> </td><td> </td><td rowspan='3'> </td></tr>\n";
|
||||
echo " <tr><th class='hdprev'>Preview - " . utf8entities($args['sub']) . "</th></tr>\n";
|
||||
echo " <tr><td class='prev'>" . $args['prev'] . "</td></tr>\n";
|
||||
}
|
||||
|
||||
if (is_array($args['posts']))
|
||||
{
|
||||
echo " <tr><td rowspan='3'> </td><td> </td><td rowspan='3'> </td></tr>\n";
|
||||
echo " <tr><th class='hdprev'>Replying to ...</th></tr>\n";
|
||||
echo " <tr><td>";
|
||||
$p = $args['posts'];
|
||||
for ($i=0;$i<count($p);$i++)
|
||||
{
|
||||
echo "<table cellspacing='0' cellpadding='0' class='ftp'>";
|
||||
echo "<tr><th>" . utf8entities($p[$i]['title']) . "</td></tr>\n";
|
||||
echo "<tr><td>Posted <b>" . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['moment']);
|
||||
echo "</b> by <b>".$p[$i]['author']."</b></td>";
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr><td>" . $p[$i]["html"] . "</td></tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
echo "</td></tr>\n";
|
||||
}
|
||||
else if (is_array($args['post']))
|
||||
{
|
||||
echo " <tr><td rowspan='3'> </td><td> </td><td rowspan='3'> </td></tr>\n";
|
||||
echo " <tr><th class='hdprev'>Original post</th></tr>\n";
|
||||
echo " <tr><td>";
|
||||
$p = $args['post'];
|
||||
echo "<table cellspacing='0' cellpadding='0' class='ftp'>";
|
||||
echo "<tr><th>" . utf8entities($p['title']) . "</td></tr>\n";
|
||||
echo "<tr><td>Posted <b>" . gmstrftime("%H:%M:%S on %d/%m/%Y", $p['moment']);
|
||||
echo "</b> by <b>".$p['author']."</b></td>";
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr><td>" . $p["html"] . "</td></tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</td></tr>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
11
scripts/site/beta5/output/forums/en/postnotfound.inc
Normal file
11
scripts/site/beta5/output/forums/en/postnotfound.inc
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('', $args); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Post Not Found</h1>
|
||||
<p>The post you wish to edit no longer exists.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
76
scripts/site/beta5/output/forums/en/search.inc
Normal file
76
scripts/site/beta5/output/forums/en/search.inc
Normal file
|
@ -0,0 +1,76 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('s', $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Search the Forums</h1>
|
||||
<form action="?" method="post">
|
||||
<input type="hidden" name="cmd" value="s" />
|
||||
<table cellspacing="0" cellpadding="0" class="fsrc">
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr>
|
||||
<th>Text:</th>
|
||||
<td><input <?=tooltip('Use this text field to type in the string you wish to search for in the forums')?> type="text" name="stxt" value="<?=utf8entities($args['sparm']['text'], ENT_QUOTES)?>" size='40' /></td>
|
||||
</tr>
|
||||
<tr><td> </td><td>Note: use the '*' character for partial matches</td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr>
|
||||
<th>Search in:</th>
|
||||
<td>
|
||||
<input <?=tooltip('Use this radio button to search in post titles only')?> type="radio" name="sin" value="0"<?=$args['sparm']['whole']?'':' checked="checked"'?> id="sin0" /> <label for="sin0">Post titles</label>
|
||||
<input <?=tooltip('Use this radio button to search in whole posts')?> type="radio" name="sin" value="1"<?=$args['sparm']['whole']?' checked="checked"':''?> id="sin1" /> <label for="sin1">Whole posts</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Forum:</th>
|
||||
<td <?=tooltip('Use this drop down list to select in which forums to search')?> ><select name="sif"><option value="">All Available Forums</option><?
|
||||
|
||||
foreach ($args['cats'] as $cid => $cat)
|
||||
{
|
||||
$ctype = $cat['type'] . "#";
|
||||
foreach ($cat['forums'] as $f)
|
||||
{
|
||||
$id = $ctype . $f['id'];
|
||||
echo "<option value='$id'" . ($args['sparm']['fid']==$id ? " selected='selected'" : "") . ">";
|
||||
echo utf8entities($cat['title'] . " - " . $f['title']) . "</option>";
|
||||
}
|
||||
}
|
||||
|
||||
?></select></td>
|
||||
</tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr>
|
||||
<th>Sort by:</th>
|
||||
<td <?=tooltip('Use this drop down list to select a sort criteria for the retrieved posts')?> ><select name="sst">
|
||||
<?php
|
||||
|
||||
$st = array('Post Time', 'Post Title');
|
||||
for ($i=0;$i<count($st);$i++)
|
||||
echo "<option value='$i'" . ($args['sparm']['stype'] == $i ? " selected='selected'" : "") . ">" . $st[$i] . "</option>";
|
||||
|
||||
?>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input <?=tooltip('Use this radio button to use an ascending ordering of the retrieved posts')?> type="radio" name="sor" value="0"<?=$args['sparm']['sord']?'':' checked="checked"'?> id="sor0" /> <label for="sor0">Ascending</label>
|
||||
<input <?=tooltip('Use this radio button to use a descending ordering of the retrieved posts')?> type="radio" name="sor" value="1"<?=$args['sparm']['sord']?' checked="checked"':''?> id="sor1" /> <label for="sor1">Descending</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Display results:</th>
|
||||
<td>
|
||||
<input <?=tooltip('Use this radio button to display whole posts')?> type="radio" name="srp" value="0"<?=$args['sparm']['resd']?'':' checked="checked"'?> id="srp0" /> <label for="srp0">As posts</label>
|
||||
<input <?=tooltip('Use this radio button to display only the topics of the retrieved posts')?> type="radio" name="srp" value="1"<?=$args['sparm']['resd']?' checked="checked"':''?> id="srp1" /> <label for="srp1">As topics</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr><td> </td><td><input <?=tooltip('Click here to launch the search')?> type="submit" name="s" value="Search" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
86
scripts/site/beta5/output/forums/en/sresposts.inc
Normal file
86
scripts/site/beta5/output/forums/en/sresposts.inc
Normal file
|
@ -0,0 +1,86 @@
|
|||
<?
|
||||
$mPPage = $args['sparm']['perpage'];
|
||||
$page = $args['sparm']['page'];
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('s', $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Search results</h1>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='s' />
|
||||
<input type='hidden' name='pg' value='<?=$page?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td><?=($page > 0) ? ("<a href='?cmd=s&pg=".($page - 1)."' " .tooltip('Click here to go to the previous page of retrieved posts') . " >") : ""?><- Previous page<?=($page > 0) ? "</a>" : ""?></td>
|
||||
<td>Display <span <?=tooltip('Use this drop down list to select the number of posts to display on each page')?>><select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> posts per page</td>
|
||||
<td><?=(count($args['posts'])==$mPPage+1)?("<a href='?cmd=s&pg=".($page+1)."' " .tooltip('Click here to go to the next page of retrieved posts') . " >"):""?>Next page -><?=(count($args['posts'])==$mPPage+1)?"</a>":""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?
|
||||
|
||||
$p = $args['posts'];
|
||||
$nbp = min($mPPage,count($p));
|
||||
if ($nbp == 0)
|
||||
echo "<center><b>No posts were found.</b></center>";
|
||||
else
|
||||
{
|
||||
for ($i=0;$i<$nbp;$i++)
|
||||
{
|
||||
echo "<table cellspacing='0' cellpadding='0' class='ftp'>";
|
||||
echo "<tr><th class='pfor'>" . utf8entities($p[$i]['cname'] . " > " . $p[$i]['fname']) . "</th>";
|
||||
echo "<td class='cmd' rowspan='3'><a href='?cmd=".urlencode("F#".$p[$i]['rctype']."#".$p[$i]['fid'])."' " .tooltip('Click here to go to the main page of the forum in which that message was posted') . " >View forum</a><br/>";
|
||||
echo "<a href='?cmd=".urlencode("T#".$p[$i]['rctype']."#".$p[$i]['tid'])."' " .tooltip('Click here to go to the page of the topic in which that message was posted') . " >View topic</a><br/>";
|
||||
echo "<a href='?cmd=".urlencode("R#".$p[$i]['rctype']."#".$p[$i]['id'])."&q=0' " .tooltip('Click here to go to the compose form and reply to this post') . " >Reply</a> - ";
|
||||
echo "<a href='?cmd=".urlencode("R#".$p[$i]['rctype']."#".$p[$i]['id'])."&q=1' " .tooltip('Click here to go to the compose form and reply to this post with included quotations') . " >Quote</a>\n";
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr><th>" . utf8entities($p[$i]['title']) . "</td></tr>\n";
|
||||
|
||||
echo "<tr><td>Posted <b>" . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['moment']);
|
||||
echo "</b> by ".(is_null($p[$i]['pid'])?'<b>':('<a href="message?a=c&ct=0&id='.$p[$i]['pid'].'" ' .tooltip('Click here to go to the compose form and send a private message to the author of this post') . ' >'));
|
||||
echo $p[$i]['author'].(is_null($p[$i]['pid'])?'</b>':'</a>')."</td>";
|
||||
echo "</td></tr>\n";
|
||||
|
||||
echo "<tr><td colspan='2'>" . $p[$i]["contents"] . "</td></tr>\n";
|
||||
|
||||
if ($p[$i]['edited'] != 0)
|
||||
{
|
||||
echo "<tr><td class='edit' colspan='2'>Edited by ";
|
||||
echo (is_null($p[$i]['edit_id']) ? '<b>' : ('<a href="message?a=c&ct=0&id='.$p[$i]['edit_id'].'"' .tooltip('Click here to go to the compose form and send a private message to the author of this post') . ' >')) . utf8entities($p[$i]['edited_by']);
|
||||
echo (is_null($p[$i]['edit_id']) ? '</b>' : '</a>'). " at " . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['edited']) . "</td></tr>";
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
}
|
||||
?>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='s' />
|
||||
<input type='hidden' name='pg' value='<?=$page?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td><?=($page > 0) ? ("<a href='?cmd=s&pg=".($page - 1)."'" .tooltip('Click here to go to the previous page of retrieved posts') . " >") : ""?><- Previous page<?=($page > 0) ? "</a>" : ""?></td>
|
||||
<td>Display <span <?=tooltip('Use this drop down list to select the number of posts to display on each page')?><select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> posts per page</td>
|
||||
<td><?=(count($args['posts'])==$mPPage+1)?("<a href='?cmd=s&pg=".($page+1)."'" .tooltip('Click here to go to the next page of retrieved posts') . " >"):""?>Next page -><?=(count($args['posts'])==$mPPage+1)?"</a>":""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
92
scripts/site/beta5/output/forums/en/srestopics.inc
Normal file
92
scripts/site/beta5/output/forums/en/srestopics.inc
Normal file
|
@ -0,0 +1,92 @@
|
|||
<?
|
||||
$mPPage = $args['sparm']['perpage'];
|
||||
$page = $args['sparm']['page'];
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('s', $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Search results</h1>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='s' />
|
||||
<input type='hidden' name='pg' value='<?=$page?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td><?=($page > 0) ? ("<a href='?cmd=s&pg=".($page - 1)."' " .tooltip('Click here to go to the previous page of retrieved topics') . " >") : ""?><- Previous page<?=($page > 0) ? "</a>" : ""?></td>
|
||||
<td>Display<span <?=tooltip('Use this drop down list to select the number of topics to display on each page')?>> <select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> topics per page</td>
|
||||
<td><?=(count($args['topics'])==$mPPage+1)?("<a href='?cmd=s&pg=".($page+1)."' " .tooltip('Clickhere to go to the next page of retrieved topics') . " >"):""?>Next page -><?=(count($args['topics'])==$mPPage+1)?"</a>":""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?
|
||||
|
||||
$p = $args['topics'];
|
||||
$nbp = min($mPPage,count($p));
|
||||
if ($nbp == 0)
|
||||
echo "<center><b>No posts were found.</b></center>";
|
||||
else
|
||||
{
|
||||
echo '<table cellspacing="0" cellpadding="0" class="ftop">';
|
||||
echo "<tr><th class='tpic'> </th>";
|
||||
echo "<th class='tnm'>Topic</th><th class='trp'>Replies</th>";
|
||||
echo "<th class='tps'>First Post</th><th class='tps'>Last Post</th></tr>\n";
|
||||
for ($i=0;$i<count($p);$i++)
|
||||
{
|
||||
echo "<tr>";
|
||||
$pic = config::$main['staticurl'] . "/beta5/pics/" . ($p[$i]['read'] ? '' : 'un') . 'read';
|
||||
if ($p[$i]['sticky']) {
|
||||
$pic .= '_sticky';
|
||||
}
|
||||
$pic .= '.gif';
|
||||
$text = ($p[$i]['read'] ? 'Read' : 'Unread') . ($p[$i]['sticky'] ? " sticky" : "") . " topic";
|
||||
$id = $p[$i]['rctype'] . "#" . $p[$i]['id'];
|
||||
echo "<td class='tpic'><img src='$pic' alt='$text' /></td>";
|
||||
echo "<td class='tnm'><a href='?cmd=".urlencode("T#$id")."' " .tooltip('Click here to go to the page of the topic containing the search string') . " >";
|
||||
// FIXME: poll icon
|
||||
echo utf8entities($p[$i]['title']) . "</a><br/>Forum: ";
|
||||
echo "<a href='?cmd=".urlencode("C#".$p[$i]['rctype']."#".$p[$i]['catid']) . "' " .tooltip('Click here to go to main page of the category of forums in which the post containing the search string was posted') . " >" . utf8entities($p[$i]['catname']) . "</a> > ";
|
||||
echo "<a href='?cmd=".urlencode("F#".$p[$i]['rctype']."#".$p[$i]['fid']) . "' " .tooltip('Click here to go to main page of the forum in which the post containing the search string was posted') . " >" . utf8entities($p[$i]['fname']) . "</a></td>";
|
||||
echo "<td class='trp'>" . ($p[$i]['nitems'] - 1) . "</td>";
|
||||
echo "<td class='tps'>" . gmstrftime('%H:%M:%S on %d/%m/%Y', $p[$i]['moment']) . " by ";
|
||||
if ($p[$i]['author_id'] != '')
|
||||
echo "<a href='message?a=c&ct=0&id=".$p[$i]['author_id']."' " .tooltip('Click here to go to compose page and send a private message to the author of the first post ') . " >".utf8entities($p[$i]['author'])."</a>";
|
||||
else
|
||||
echo "<b>".utf8entities($p[$i]['author'])."</b>";
|
||||
echo "</td><td class='tps'>" . gmstrftime('%H:%M:%S on %d/%m/%Y', $p[$i]['last_moment']) . " by ";
|
||||
if ($p[$i]['last_author_id'] != '')
|
||||
echo "<a href='message?a=c&ct=0&id=".$p[$i]['last_author_id']."' " .tooltip('Click here to go to compose page and send a private message to the author of the last post ') . " >".utf8entities($p[$i]['last_author'])."</a>";
|
||||
else
|
||||
echo "<b>".utf8entities($p[$i]['last_author'])."</b>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
?>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='s' />
|
||||
<input type='hidden' name='pg' value='<?=$page?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td><?=($page > 0) ? ("<a href='?cmd=s&pg=".($page - 1) . "' " .tooltip('Click here to go to the previous page of retrieved topics') . "> ") : ""?><- Previous page<?=($page > 0) ? "</a>" : ""?></td>
|
||||
<td>Display <span <?=tooltip('Use this drop down list to select the number of topics to display on each page')?>><select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> topics per page</td>
|
||||
<td><?=(count($args['topics'])==$mPPage+1)?("<a href='?cmd=s&pg=".($page+1)."' " .tooltip('Clickhere to go to the next page of retrieved topics') . " >"):""?>Next page -><?=(count($args['topics'])==$mPPage+1)?"</a>":""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
102
scripts/site/beta5/output/forums/en/topic.inc
Normal file
102
scripts/site/beta5/output/forums/en/topic.inc
Normal file
|
@ -0,0 +1,102 @@
|
|||
<?
|
||||
$f = $args['forum'];
|
||||
$t = $args['topic'];
|
||||
$fid = 'F#'.$f['ctype']."#".$f['id'];
|
||||
list($mPPage,$page,$nPages,$threaded,$reverse) = $args['details'];
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu($fid, $args['cats']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1><?=utf8entities($t['title'])?></h1>
|
||||
<form method='post' action='?'>
|
||||
<input type='hidden' name='cmd' value='T#<?=$f['ctype'].'#'.$t['id']?>' />
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td>Display <span <?=tooltip('Use this drop down list to select the number of posts to display on each page')?>><select name='mpp' onChange="submit();"><?php
|
||||
|
||||
for ($i=1;$i<6;$i++)
|
||||
echo "<option" . ($i*10==$mPPage?" selected='selected'":"") . ">" . ($i*10) . "</option>";
|
||||
|
||||
?></select></span> posts per page</td>
|
||||
<td><?php
|
||||
|
||||
if ($nPages > 1)
|
||||
{
|
||||
echo "Page <span" .tooltip('Use this drop down list to select the page of posts to display') . "><select name='pg' onChange='submit();'>";
|
||||
for ($i=0;$i<$nPages;$i++)
|
||||
echo "<option" . ($i==$page?" selected='selected'":"") . ">".($i+1)."</option>";
|
||||
echo "</select></span> / " . $nPages;
|
||||
}
|
||||
else
|
||||
echo "Page 1 / 1";
|
||||
|
||||
?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?
|
||||
|
||||
$p = $args['posts'];
|
||||
for ($i=0;$i<count($p);$i++)
|
||||
{
|
||||
$d = min($p[$i]['depth'], 20);
|
||||
if ($d)
|
||||
echo "<table cellspacing='0' cellpadding='0'><tr><td class='ftd$d'> </td><td>\n";
|
||||
|
||||
echo "<table cellspacing='0' cellpadding='0' class='ftp'>";
|
||||
echo "<tr><th>" . utf8entities($p[$i]['title']) . "</th>";
|
||||
echo "<td rowspan='2' class='cmd'>";
|
||||
echo "<a href='?cmd=".urlencode("R#".$f['ctype']."#".$p[$i]['id'])."&q=0'".tooltip('Click here to go to the compose form and reply to this message'). " >Reply</a> - ";
|
||||
echo "<a href='?cmd=".urlencode("R#".$f['ctype']."#".$p[$i]['id'])."&q=1'".tooltip('Click here to go to the compose form and reply to this message by quoting it'). " >Quote</a>\n";
|
||||
if ($f['mod'] || $p[$i]['mine'])
|
||||
{
|
||||
echo "<br/>";
|
||||
echo "<a href='?cmd=".urlencode("E#".$f['ctype']."#".$p[$i]['id'])."'".tooltip('Click here to go to the compose form and make changes to this post'). " >Edit</a>";
|
||||
if ($p[$i]['id'] != $t['fpid'] || $f['mod'])
|
||||
{
|
||||
echo " - <a href='?cmd=".urlencode("D#".$f['ctype']."#".$p[$i]['id'])."'".tooltip('Click here to delete this post'). " onClick='return confirm";
|
||||
echo ($p[$i]['id'] != $t['fpid']) ? 'DPost' : 'DTopic';
|
||||
echo "();'>Delete</a>\n";
|
||||
}
|
||||
}
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "<tr><td>Posted <b>" . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['moment']);
|
||||
echo "</b> by ".(is_null($p[$i]['pid'])?'<b>':('<a href="message?a=c&ct=0&id='.$p[$i]['pid'].'"'.tooltip('Click here to go to the compose form and send a private message to the author of this post'). ' >'));
|
||||
echo $p[$i]['author'].(is_null($p[$i]['pid'])?'</b>':'</a>')."</td>";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr><td colspan='2'>" . $p[$i]["contents"] . "</td></tr>\n";
|
||||
|
||||
if ($p[$i]['edited'] != 0)
|
||||
{
|
||||
echo "<tr><td class='edit' colspan='2'>Edited by ";
|
||||
echo (is_null($p[$i]['edit_id']) ? '<b>' : ('<a href="message?a=c&ct=0&id='.$p[$i]['edit_id'].'" '.tooltip('Click here to go to the compose form and send a private message to the last person who edited this post'). ' >')) . utf8entities($p[$i]['edited_by']);
|
||||
echo (is_null($p[$i]['edit_id']) ? '</b>' : '</a>'). " at " . gmstrftime("%H:%M:%S on %d/%m/%Y", $p[$i]['edited']) . "</td></tr>";
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
if ($d)
|
||||
echo "</td></tr></table>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
<table cellspacing="0" cellpadding="0" class="fcmd">
|
||||
<tr>
|
||||
<td>Display mode: <span <?=tooltip('Use this drop down list to choose the display mode (threaded or linear)')?> ><select name='thr' onChange="submit();">
|
||||
<option value='0'>Linear</option>
|
||||
<option value='1'<?=$threaded?" selected='selected'":""?>>Threaded</option>
|
||||
</select></span></td>
|
||||
<td>Messages order:<span <?=tooltip('Use this drop down list to choose the messages order (newest or oldest first)')?> > <select name='ord' onChange="submit();">
|
||||
<option value='0'>Oldest first</option>
|
||||
<option value='1'<?=$reverse?" selected='selected'":""?>>Newest first</option>
|
||||
</select></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
11
scripts/site/beta5/output/forums/en/topicnotfound.inc
Normal file
11
scripts/site/beta5/output/forums/en/topicnotfound.inc
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="mmenu">
|
||||
<? drawForumsMenu('', $args); ?>
|
||||
</td>
|
||||
<td>
|
||||
<h1>Topic Not Found</h1>
|
||||
<p>The topic you wish to view no longer exists.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
Reference in a new issue