oops, those mcp templates are probably rather "wrong" ... Ashe, will talk to you about a few changes I think are needed in the code

git-svn-id: file:///svn/phpbb/trunk@4238 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-07-13 15:17:35 +00:00
parent d6fbcb2e22
commit 990f8e35e1
10 changed files with 63 additions and 52 deletions

View file

@ -1,9 +1,13 @@
<!-- $ Id: $ -->
<!-- INCLUDE mcp_header.html -->
<form method="post" name="main" action="{S_MCP_ACTION}"><table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<form method="post" name="main" action="{S_MCP_ACTION}"><table class="tablebg" width="100%" cellspacing="1" cellpadding="4" border="0">
<tr>
<td class="cat" colspan="6" height="28" align="center"><span class="gensmall">{L_DISPLAY_LOG}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
<th colspan="6" height="28" nowrap="nowrap">{L_DISPLAY_OPTIONS}</th>
</tr>
<tr>
<td colspan="2" class="cat" height="28" align="left" nowrap="nowrap"><!-- INCLUDE mcp_jumpbox.html --></td>
<td colspan="4" class="cat" height="28" align="center"><span class="gensmall">{L_DISPLAY_LOG}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
</tr>
<tr>
<th width="4%" height="28" nowrap="nowrap">&nbsp;</th>
@ -25,12 +29,18 @@
<td class="row1" colspan="8" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
</tr>
<!-- END topicrow -->
<tr>
<td class="cat" colspan="6" height="28" align="center"><span class="gensmall">{L_QUICK_MOD}:</span> <select name="mode">{S_MOD_OPTIONS}</select> <input class="btnlite" type="submit" value="{L_GO}" /></td>
<tr align="right">
<td class="cat" colspan="6" height="28">
<!-- IF S_CAN_DELETE --><input type="submit" name="delete_topics" class="btnlite" value="{L_DELETE}" /> &nbsp;<!-- ENDIF -->
<!-- IF S_CAN_MOVE --><input type="submit" name="move" class="btnlite" value="{L_MOVE}" /> &nbsp;<!-- ENDIF -->
<!-- IF S_CAN_FORK --><input type="submit" name="fork" class="btnlite" value="{L_FORK}" /> &nbsp;<!-- ENDIF -->
<!-- IF S_CAN_LOCK --><input type="submit" name="lock" class="btnlite" value="{L_LOCK}" /> &nbsp;<input type="submit" name="unlock" class="btnlite" value="{L_UNLOCK}" /> &nbsp;<!-- ENDIF -->
<!-- IF S_CAN_SYNC --><input type="submit" name="resync" class="btnlite" value="{L_RESYNC}" />&nbsp;<!-- ENDIF -->
</td>
</tr>
</table>
<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td class="nav" align="left" valign="middle">{PAGE_NUMBER}</td>
<td align="right" valign="top" nowrap="nowrap"><b class="gensmall"><a href="javascript:marklist(true);">{L_MARK_ALL}</a> :: <a href="javascript:marklist(false);">{L_UNMARK_ALL}</a></b><br /><span class="nav">{PAGINATION}</span></td>

View file

@ -4,7 +4,7 @@
<form method="post" name="main" action="{S_MCP_ACTION}">
<!-- IF S_FORUM_ID -->
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<table class="tablebg" width="100%" cellspacing="1" cellpadding="4" border="0">
<tr>
<th colspan="2" height="28" nowrap="nowrap">{L_FORUM_INFO}</th>
</tr>
@ -34,7 +34,7 @@
<!-- ELSE -->
<table width="95%" class="tablebg" cellspacing="1" cellpadding="4" border="0" align="center">
<table width="100%" class="tablebg" cellspacing="1" cellpadding="4" border="0">
<tr>
<th height="28"><b>{L_FORUM_INFO}</b></th>
</tr>

View file

@ -2,12 +2,10 @@
<!-- INCLUDE mcp_header.html -->
<!-- IF S_SHOW_UNAPPROVED -->
<h1>{L_LATEST_UNAPPROVED}</h1>
<p>{L_LATEST_UNAPPROVED_EXPLAIN}</p>
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<table class="tablebg" width="100%" cellspacing="1" cellpadding="2" border="0">
<tr>
<td class="cat" colspan="5" height="28"><span class="cattitle">{L_LATEST_UNAPPROVED}</span></td>
</tr>
<tr>
<th height="28">&nbsp;{L_FORUM}&nbsp;</th>
<th>&nbsp;{L_TOPIC}&nbsp;</th>
@ -39,12 +37,10 @@
<!-- ENDIF -->
<!-- IF S_SHOW_REPORTS -->
<h1>{L_LATEST_REPORTED}</h1>
<p>{L_LATEST_REPORTED_EXPLAIN}</p>
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<table class="tablebg" width="100%" cellspacing="1" cellpadding="2" border="0">
<tr>
<td class="cat" colspan="5" height="28"><span class="cattitle">{L_LATEST_REPORTED}</span></td>
</tr>
<tr>
<th height="28">&nbsp;{L_FORUM}&nbsp;</th>
<th>&nbsp;{L_TOPIC}&nbsp;</th>
@ -76,12 +72,10 @@
<!-- ENDIF -->
<!-- IF S_SHOW_LOGS -->
<h1>{L_LATEST_LOGS}</h1>
<p>{L_LATEST_LOGS_EXPLAIN}</p>
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<table class="tablebg" width="100%" cellspacing="1" cellpadding="2" border="0">
<tr>
<td class="cat" colspan="5" height="28"><span class="cattitle">{L_LATEST_LOGS}</span></td>
</tr>
<tr>
<th width="15%" height="28" nowrap="nowrap">{L_USERNAME}</th>
<th width="12%" nowrap="nowrap">{L_IP}</th>

View file

@ -12,7 +12,7 @@ function marklist(status)
//-->
</script>
<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<!-- IF TOPIC_TITLE -->
<tr>
<td class="titles" colspan="2" align="left" valign="bottom"><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
@ -22,22 +22,22 @@ function marklist(status)
<td class="titles" colspan="2" align="left" valign="bottom"><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
<!-- ENDIF -->
<!-- IF PAGINATION -->
<tr>
<td valign="bottom" class="gensmall">{MODERATORS}</td>
<td align="right" valign="bottom" nowrap="nowrap"><b class="gensmall">{PAGINATION}</b></td>
</tr>
<!-- ENDIF -->
<tr>
<td class="nav" colspan="2" align="left" valign="middle"><!-- IF S_FORUM_NAV --><a href="{U_INDEX}">{L_INDEX}</a><!-- BEGIN navlinks --> -> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --><!-- ENDIF --></td>
</tr>
</table>
<table width="95%" cellspacing="0" cellpadding="0" border="0" align="center">
<table class="tablebg" cellspacing="1" cellpadding="4" border="0" align="left">
<tr>
<td><table class="tablebg" cellspacing="1" cellpadding="4" border="0">
<tr>
<!-- BEGIN tab --><!-- IF tab.S_IS_SELECTED --><td class="row1" nowrap="nowrap">&nbsp;<span class="gen"><b>{tab.NAME}</b><!-- ELSE --><td class="row2" nowrap="nowrap">&nbsp;<a class="nav" href="{tab.U_LINK}">{tab.NAME}</a><!-- ENDIF -->&nbsp;</td>
<!-- END tab -->
</tr>
</table></td>
<!-- BEGIN tab --><!-- IF tab.S_IS_SELECTED --><td class="row1" nowrap="nowrap">&nbsp;<span class="gen"><b>{tab.NAME}</b><!-- ELSE --><td class="row2" nowrap="nowrap">&nbsp;<a class="nav" href="{tab.U_LINK}">{tab.NAME}</a><!-- ENDIF -->&nbsp;</td>
<!-- END tab -->
</tr>
</table>
<br clear="all" />

View file

@ -1,13 +1,13 @@
<!-- $Id$ -->
<!-- INCLUDE overall_header.html -->
<form action="{S_MCP_ACTION}" name="main" method="post">{S_HIDDEN_FIELDS}<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<form action="{S_MCP_ACTION}" name="main" method="post">{S_HIDDEN_FIELDS}<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
</tr>
</table>
<table class="tablebg" width="95%" cellpadding="4" cellspacing="1" border="0" align="center">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="tablebg">
<tr>
<th height="28"><b>{L_MODE_TITLE}</b></th>
</tr>

View file

@ -1,6 +1,7 @@
<!-- INCLUDE mcp_header.html -->
<form method="post" name="main" action="{S_MCP_ACTION}"><table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" width="center">
<form method="post" name="main" action="{S_MCP_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="tablebg">
<tr>
<th colspan="2" height="28" align="center">{L_POST_DETAILS}</th>
</th>
@ -31,9 +32,9 @@
</table>
<!-- IF S_POST_REPORTED -->
<br clear="all" />
<br /><a name="reports"></a>
<a name="reports"></a><table class="tablebg" width="95%" cellspacing="1" cellspacing="4" border="0" align="center">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="tablebg">
<tr>
<th colspan="2" height="28" align="center">{L_REPORTS}</th>
</tr>
@ -60,9 +61,9 @@
<!-- ENDIF -->
<!-- IF S_CAN_CHANGE_POSTER or S_CAN_LOCK_POST-->
<br clear="all" />
<br /><a name="mod"></a>
<a name="mod"></a><table class="tablebg" cellspacing="1" cellpadding="4" border="0" align="center">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="tablebg">
<tr>
<th colspan="2" height="28" align="center">{L_MOD_OPTIONS}</th>
</tr>
@ -85,7 +86,7 @@
<!-- IF S_CAN_VIEWIP -->
<br /><a name="ip"></a>
<table class="tablebg" width="100%" cellspacing="1" cellpadding="4" border="0" width="center">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="tablebg">
<tr>
<th colspan="2" height="28" align="center">{L_IP_INFO}</th>
</tr>

View file

@ -1,6 +1,6 @@
<!-- INCLUDE mcp_header.html -->
<form name="main" method="post" action="{S_MCP_ACTION}"><table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<table width="100%" class="tablebg" cellspacing="1" cellpadding="4" border="0"><form name="main" method="post" action="{S_MCP_ACTION}">
<tr>
<th colspan="6" height="28" nowrap="nowrap">{L_DISPLAY_OPTIONS}</th>
</tr>
@ -55,9 +55,9 @@
<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_POSTS}</span></td>
</tr>
<!-- ENDIF -->
</table></form>
</form></table>
<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td class="nav" align="left" valign="middle">{PAGE_NUMBER}</td>
<td align="right" valign="top" nowrap="nowrap"><b class="gensmall"><a href="javascript:marklist(true);">{L_MARK_ALL}</a> :: <a href="javascript:marklist(false);">{L_UNMARK_ALL}</a></b><br /><span class="nav">{PAGINATION}</span></td>

View file

@ -1,8 +1,12 @@
<!-- INCLUDE mcp_header.html -->
<form name="main" method="post" action="{S_MCP_ACTION}"><table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<table width="100%" class="tablebg" cellspacing="1" cellpadding="4" border="0"><form name="main" method="post" action="{S_MCP_ACTION}">
<tr>
<td class="cat" colspan="6" height="28" align="center"><span class="gensmall">{L_DISPLAY_LOG}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
<th colspan="6" height="28" nowrap="nowrap">{L_DISPLAY_OPTIONS}</th>
</tr>
<tr>
<td colspan="2" class="cat" height="28" align="left" nowrap="nowrap"><!-- INCLUDE mcp_jumpbox.html --></td>
<td colspan="4" class="cat" height="28" align="center"><span class="gensmall">{L_DISPLAY_LOG}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
</tr>
<tr>
<th height="28">&nbsp;{L_TOPIC}&nbsp;</th>
@ -29,7 +33,7 @@
<!-- END reportrow -->
</table>
<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td class="nav" align="left" valign="middle">{PAGE_NUMBER}</td>
<td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span></td>

View file

@ -1,6 +1,6 @@
<!-- INCLUDE mcp_header.html -->
<form name="main" method="post" action="{S_FORM_ACTION}"><table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<form name="main" method="post" action="{S_FORM_ACTION}"><table class="tablebg" width="100%" cellspacing="1" cellpadding="2" border="0">
<!-- IF S_CAN_SPLIT -->
<tr>
<th colspan="3" height="28" nowrap="nowrap">{L_SPLIT_TOPIC}</th>
@ -114,13 +114,14 @@
<tr>
<td class="cat" colspan="3" height="28" align="center"><span class="gensmall">{L_DISPLAY_POSTS}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" name="sort" value="{L_GO}" /></span></td>
</tr>
</table></form>
</table>
<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td class="nav" align="left" valign="middle">{PAGE_NUMBER}</td>
<td align="right" valign="top" nowrap="nowrap"><b class="gensmall"><a href="javascript:marklist(true);">{L_MARK_ALL}</a> :: <a href="javascript:marklist(false);">{L_UNMARK_ALL}</a></b><br /><span class="nav">{PAGINATION}</span></td>
</tr>
</table>
</form>
<!-- INCLUDE overall_footer.html -->

View file

@ -1,7 +1,8 @@
<!-- $Id$ -->
<!-- INCLUDE mcp_header.html -->
<form method="post" name="main" action="{S_MCP_ACTION}"><table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<form method="post" name="main" action="{S_MCP_ACTION}">
<table class="tablebg" width="100%" cellspacing="1" cellpadding="2" border="0">
<tr>
<th colspan="5" height="28" nowrap="nowrap">{L_DISPLAY_OPTIONS}</th>
</tr>
@ -36,7 +37,7 @@
<!-- END log -->
</table>
<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td class="nav" align="left" valign="middle">{PAGE_NUMBER}</td>
<td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span></td>