Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
aerograf committed Sep 15, 2017
1 parent 944a110 commit e3454e1
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
2 changes: 2 additions & 0 deletions admin/admin_cat_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function editCategory(XoopsObject $categoryObject = null)
$adminObject->addItemButton(_AM_NEWBB_CREATENEWCATEGORY, 'admin_cat_manager.php?op=mod', $icon = 'add');
$adminObject->displayButton();

echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
echo "<th align='left' class='bg3'>" . _AM_NEWBB_CATEGORY1 . '</th>';
Expand All @@ -197,6 +198,7 @@ function editCategory(XoopsObject $categoryObject = null)
echo '</tr>';
}
echo '</table>';
echo '</td></tr></table>';
break;
}

Expand Down
3 changes: 2 additions & 1 deletion admin/admin_digest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
echo '<li>' . _AM_NEWBB_DIGEST_HELP_2 . '</li>';
echo '<li>' . _AM_NEWBB_DIGEST_HELP_3 . '</li>';
echo '<li>' . _AM_NEWBB_DIGEST_HELP_4 . '</li></ul>';
echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo '<form action="' . xoops_getenv('PHP_SELF') . '" method="post">';
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
Expand All @@ -117,7 +118,7 @@
echo $hidden->render() . '</form>';

echo '</table>';

echo '</td></tr></table>';
$nav = new XoopsPageNav($digestHandler->getDigestCount(), $limit, $start, 'start');
echo $nav->renderNav(4);

Expand Down
7 changes: 6 additions & 1 deletion admin/admin_forum_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
$box .= newbbForumSelectBox($forum_id, 'all', true, true);
$box .= '</select>';

echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo '<form action="./admin_forum_manager.php" method="post" name="forummove" id="forummove">';
echo '<input type="hidden" name="op" value="moveforum" />';
echo '<input type="hidden" name="forum" value=' . $forum_id . ' />';
Expand All @@ -91,6 +92,7 @@
echo '<tr><td class="bg1" align="center">' . $box . '</td></tr>';
echo '<tr><td align="center"><input type="submit" name="save" value=' . _GO . ' class="button" /></td></tr>';
echo '</table></form>';
echo '</td></tr></table>';
}
break;

Expand Down Expand Up @@ -129,7 +131,7 @@
$box .= '<option value=0 selected>' . _SELECT . '</option>';
$box .= newbbForumSelectBox($forum_id, 'all');
$box .= '</select>';

echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo '<form action="' . xoops_getenv('PHP_SELF') . '" method="post" name="forummove" id="forummove">';
echo '<input type="hidden" name="op" value="mergeforum" />';
echo '<input type="hidden" name="forum" value=' . $forum_id . ' />';
Expand All @@ -140,6 +142,7 @@
echo '<tr><td class="bg1" align="center">' . $box . '</td></tr>';
echo '<tr><td align="center"><input type="submit" name="save" value=' . _GO . ' class="button" /></td></tr>';
echo '</form></table>';
echo '</td></tr></table>';
}
break;

Expand Down Expand Up @@ -238,6 +241,7 @@
}

$echo = $adminObject->displayNavigation(basename(__FILE__));
$echo .= "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
$echo .= "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
$echo .= "<tr align='center'>";
$echo .= "<th class='bg3' colspan='2'>" . _AM_NEWBB_NAME . '</th>';
Expand Down Expand Up @@ -296,6 +300,7 @@

echo $echo;
echo '</table>';
echo '</td></tr></table>';
break;
}
include_once __DIR__ . '/admin_footer.php';
7 changes: 4 additions & 3 deletions admin/admin_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@
$adminObject->addItemButton($title_other, $item_other, $icon = 'add');
$adminObject->displayButton();
echo _AM_NEWBB_REPORTADMIN_HELP;
echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo '<form action="' . xoops_getenv('PHP_SELF') . '" method="post">';
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
echo "<td class='bg3' width='80%'>" . _AM_NEWBB_REPORTTITLE . '</td>';
echo "<td class='bg3' width='10%'>" . $extra . '</td>';
echo "<th class='bg3' width='80%'>" . _AM_NEWBB_REPORTTITLE . '</th>';
echo "<th class='bg3' width='10%'>" . $extra . '</th>';
echo '</tr>';

$reports = $reportHandler->getAllReports('report_id', 'ASC', $limit, $start, $process_result);
Expand Down Expand Up @@ -175,7 +176,7 @@
echo $hidden->render() . '</form>';

echo '</table>';

echo '</td></tr></table>';
$nav = new XoopsPageNav($reportHandler->getCount(new Criteria('report_result', $process_result)), $limit, $start, 'start', 'item=' . $item);
echo $nav->renderNav(4);
break;
Expand Down
3 changes: 2 additions & 1 deletion admin/admin_synchronization.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
$form .= '<input type="submit" name="submit" value=' . _SUBMIT . ' />';
$form .= '</div>';
$form .= '</form>';

echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo $form;
echo '</td></tr></table>';
include_once __DIR__ . '/admin_footer.php';
8 changes: 8 additions & 0 deletions admin/admin_type_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
$adminObject->addItemButton(_AM_NEWBB_TYPE_FORUM, 'admin_type_manager.php?op=forum', $icon = 'add');
$adminObject->displayButton();
echo '<legend style="font-weight: bold; color: #900;">' . _AM_NEWBB_TYPE_ORDER_DESC . '</legend>';
echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo "<form name='template' method='post' action='" . xoops_getenv('PHP_SELF') . "'>";
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
Expand Down Expand Up @@ -154,6 +155,7 @@
echo "<input type='reset' value='" . _CANCEL . "' />";
echo '</td></tr></table>';
echo '</form>';
echo '</td></tr></table>';
break;

case 'save_template':
Expand Down Expand Up @@ -197,6 +199,7 @@
$adminObject->addItemButton(_AM_NEWBB_TYPE_FORUM, 'admin_type_manager.php?op=forum', $icon = 'add');
$adminObject->displayButton();

echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
echo "<th class='bg3' width='20%'>" . _AM_NEWBB_TYPE_NAME . '</th>';
Expand All @@ -219,6 +222,7 @@
unset($typesObject[$key]);
}
echo '</table>';
echo '</td></tr></table>';
echo '<br>';
$fmform->display();
break;
Expand Down Expand Up @@ -296,6 +300,7 @@
$adminObject->addItemButton(_AM_NEWBB_TYPE_FORUM, 'admin_type_manager.php?op=forum', $icon = 'add');
$adminObject->displayButton();
echo '<legend style="font-weight: bold; color: #900;">' . _AM_NEWBB_TYPE_ORDER_DESC . '</legend>';
echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo "<form name='template' method='post' action='" . xoops_getenv('PHP_SELF') . "'>";
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
Expand Down Expand Up @@ -339,6 +344,7 @@
echo "<input type='reset' value='" . _CANCEL . "' />";
echo '</td></tr></table>';
echo '</form>';
echo '</td></tr></table>';
break;

case 'save_forum':
Expand Down Expand Up @@ -366,6 +372,7 @@
$adminObject->displayButton();
}
echo _AM_NEWBB_TYPE_HELP;
echo "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>";
echo "<form name='list' method='post' action='" . xoops_getenv('PHP_SELF') . "'>";
echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
echo "<tr align='center'>";
Expand Down Expand Up @@ -418,6 +425,7 @@
echo "<input type='reset' value='" . _CANCEL . "' />";
echo '</td></tr></table>';
echo '</form>';
echo '</td></tr></table>';
break;
}

Expand Down
5 changes: 3 additions & 2 deletions admin/admin_votedata.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@

xoops_cp_header();
$adminObject->displayNavigation(basename(__FILE__));

echo "<div style='padding: 8px;'>\n
<div><strong>" . _AM_NEWBB_VOTE_USERAVG . ": </strong>$useravgrating</div>\n
<div><strong>" . _AM_NEWBB_VOTE_TOTALRATE . ": </strong>$uservotes</div>\n
<div style='padding: 8px;'>\n
<ul><li> " . _AM_NEWBB_VOTE_DELETEDSC . "</li></ul>
<div>\n
<br>\n
<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>
<table width='100%' cellspacing='1' cellpadding='2' class='outer'>\n
<tr>\n
<th align='center'>" . _AM_NEWBB_VOTE_ID . "</th>\n
Expand Down Expand Up @@ -124,6 +124,7 @@
</tr>\n";
}
echo '</table>';
echo '</td></tr></table>';
//Include page navigation
include_once $GLOBALS['xoops']->path('class/pagenav.php');
$page = ($votes > 10) ? _AM_NEWBB_INDEX_PAGE : '';
Expand Down

0 comments on commit e3454e1

Please sign in to comment.