1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00
php-phpbb/phpBB/styles/subSilver/template/posting_topic_review.html
Meik Sievertsen 8675e30366 some small fixes
got rid of iframe (topic review)... tested new div method with various browsers, further testing and oppinions would be nice. ;)
NOTE: New css element added to theme


git-svn-id: file:///svn/phpbb/trunk@4510 89ea8834-ac86-4346-8a33-228a782c2dd0
2003-09-24 19:41:14 +00:00

121 lines
3.6 KiB
HTML

<!-- $Id$ -->
<table class="tablebg" width="95%" border="0" cellpadding="3" cellspacing="1" align="center">
<tr>
<th height="28" align="center">{L_TOPIC_REVIEW}</th>
</tr>
<tr>
<td class="row1"><div class="postreview">
<script language="javascript" type="text/javascript" src="styles/subSilver/template/editor.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
var parent_form_name = 'post';
var parent_text_name = 'message';
function insert_quote(text) {
if (window.parent.document.forms[parent_form_name].elements[parent_text_name].createTextRange && window.parent.document.forms[parent_form_name].elements[parent_text_name].caretPos)
{
var caretPos = window.parent.document.forms[parent_form_name].elements[parent_text_name].caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
window.parent.document.forms[parent_form_name].elements[parent_text_name].focus();
} else {
window.parent.document.forms[parent_form_name].elements[parent_text_name].value += text;
window.parent.document.forms[parent_form_name].elements[parent_text_name].focus();
}
}
function addquote(post_id, username) {
var text_name = 'message_' + post_id;
if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text; // Get text selection - does not consider the div only!
}
if (!theSelection)
{
eval("theSelection = document.all." + text_name + ".innerText;");
}
if (theSelection)
{
insert_quote('[quote="' + username + '"]' + theSelection + '[/quote]');
}
return;
}
//-->
</script>
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
<tr>
<th width="22%" height="28">{L_AUTHOR}</th>
<th>{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<!-- IF postrow.S_ROW_COUNT is even -->
<tr class="row1">
<!-- ELSE -->
<tr class="row2">
<!-- ENDIF -->
<td rowspan="2" align="left" valign="top"><a name="{postrow.U_POST_ID}"></a>
<table width="150" cellspacing="0" cellpadding="4" border="0">
<tr>
<td align="center"><b class="postauthor">{postrow.POSTER_NAME}</b></td>
</tr>
<tr>
<td align="center">{postrow.KARMA_IMG}</td>
</tr>
</table>
</td>
<td width="100%" height="28"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>&nbsp;</td>
<td class="gensmall" valign="middle" nowrap="nowrap"><b>{L_POST_SUBJECT}:</b>&nbsp;</td>
<td class="gensmall" width="100%" valign="middle">{postrow.POST_SUBJECT}</td>
<td valign="top" nowrap="nowrap">&nbsp;<!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a><!-- ENDIF --></td>
</tr>
</table></td>
</tr>
<!-- IF postrow.S_ROW_COUNT is even -->
<tr class="row1">
<!-- ELSE -->
<tr class="row2">
<!-- ENDIF -->
<td valign="top"><table width="100%" cellspacing="0" cellpadding="5" border="0">
<tr>
<td valign="top"><table width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><div id="message_{postrow.POST_ID}" class="postbody">{postrow.MESSAGE}</div></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr valign="middle">
<td width="100%">&nbsp;</td>
<td width="10" nowrap="nowrap"><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a></td>
<td class="gensmall" nowrap="nowrap"><b>{L_POSTED}:</b> {postrow.POST_DATE}</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
</table>
</div></td>
</tr>
</table>