aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/templates/subSilver/posting_topic_review.html
blob: f45be07ca42eda2743f27316a593c05fbbf5954b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

<!-- IF S_DISPLAY_INLINE -->
<table class="tablebg" border="0" cellpadding="3" cellspacing="1" width="100%">
	<tr>
		<th height="28" align="center">{L_TOPIC_REVIEW}</th>
	</tr>
	<tr>
		<td class="row1"><iframe width="100%" height="300" name="review_window" src="{U_REVIEW_TOPIC}">

<!-- ELSE -->

<!-- INCLUDE simple_header.html -->


<script language="javascript" type="text/javascript" src="templates/subSilver/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="100%" cellpadding="2" cellspacing="1" border="0">
	<tr>
		<th width="22%" height="26">{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 width="22%" align="left" valign="top"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span></td>
		<td height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100%">{postrow.MINI_POST_IMG}<span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen">&nbsp;</span>&nbsp;&nbsp;&nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
				<td valign="top" align="right" nowrap="nowrap"><!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a><!-- ENDIF --></td>
			</tr>
			<tr>
				<td colspan="2"><hr /></td>
			</tr>
			<tr>
				<td colspan="2"><span class="postbody"><div id="message_{postrow.POST_ID}">{postrow.MESSAGE}</div></span></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>

<!-- ENDIF -->

<!-- IF S_DISPLAY_INLINE -->
		</iframe></td>
	</tr>
</table>
<!-- ELSE -->

<!-- INCLUDE simple_footer.html -->

<!-- ENDIF -->