1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Minor UI fixes to forum

This commit is contained in:
Moc
2013-03-29 12:46:58 +01:00
parent f67854e3eb
commit e8bfe22859
2 changed files with 17 additions and 14 deletions

View File

@@ -466,7 +466,7 @@ class forumAdmin
$text = "
<form method='post' action='".e_SELF.'?'.e_QUERY."'>
<table class='table adminform'>
<colgroup span='2'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
</colgroup>
@@ -533,21 +533,24 @@ class forumAdmin
$text = "
<form method='post' action='".e_SELF.'?'.e_QUERY."'>\n
<table class='table adminform'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td>".FORLAN_22.":</td>
<td>";
<td>".FORLAN_22.":</td>
<td>";
$sql->select('forum', '*', 'forum_parent=0');
$text .= "<select name='forum_parent' class='tbox'>\n";
while (list($fid, $fname) = $sql->fetch(MYSQL_NUM))
{
$sel = ($fid == vartrue($fInfor['forum_parent']) ? "selected='selected'" : '');
$text .= "<option value='{$fid}' {$sel}>{$fname}</option>\n";
}
$text .= "</select>
</td>
$sql->select('forum', '*', 'forum_parent=0');
$text .= "<select name='forum_parent' class='tbox'>\n";
while (list($fid, $fname) = $sql->fetch(MYSQL_NUM))
{
$sel = ($fid == vartrue($fInfor['forum_parent']) ? "selected='selected'" : '');
$text .= "<option value='{$fid}' {$sel}>{$fname}</option>\n";
}
$text .= "</select>
</td>
</tr>
<tr>
<td>".LAN_NAME.":</td>
<td><input class='tbox' type='text' name='forum_name' size='60' value='".$tp->toForm(vartrue($fInfo['forum_name']))."' maxlength='250' /><span class='field-help'>".FORLAN_179."</span></td>

View File

@@ -111,8 +111,8 @@ $FORUM_TEMPLATE['main-parent'] = "<tr>
$FORUM_TEMPLATE['main-forum'] = "<tr>
<td>{NEWFLAG}</td>
<td>{FORUMNAME}<br /><small>{FORUMDESCRIPTION}</small>{FORUMSUBFORUMS}</td>
<td>{THREADSX}</td>
<td>{REPLIESX}</td>
<td>{THREADSX}</td>
<td><small>{LASTPOSTUSER} {LASTPOSTDATE}</small></td>
</tr>";