root/ip/tags/release_1_3_0_53/templates/default/posting_topic_review.tpl

111163
1
1
2
<script type="text/javascript">
2
<script type="text/javascript">
3
<!--
3
// <![CDATA[
4
4
5
message = new Array();
5
message = new Array();
6
<!-- BEGIN postrow -->
6
<!-- BEGIN postrow -->
7
message[{postrow.U_POST_ID}] = " user=\"{postrow.POSTER_NAME}\" post=\"{postrow.U_POST_ID}\"]{postrow.PLAIN_MESSAGE}[/";
7
message[{postrow.U_POST_ID}] = " user=\"{postrow.POSTER_NAME}\" post=\"{postrow.U_POST_ID}\"]{postrow.PLAIN_MESSAGE}[/";
8
<!-- END postrow -->
8
<!-- END postrow -->
9
9
10
function addquote(post_id, tag)
10
// ]]>
11
{
12
	str_find = new Array("&lt;","&gt;", "--&gt;","&quot;")
13
	str_replace = new Array("&lt;","&gt;", "-->","\"")
14
	for(var i = 0; i < message[post_id].length; i++)
15
	{
16
		for (var j = 0; j < str_find.length; j++)
17
		{
18
			if (message[post_id].search(str_find[j]) != -1)
19
			{
20
				message[post_id] = message[post_id].replace(str_find[j],str_replace[j]);
21
			}
22
		}
23
	}
24
	//message[post_id] = message[post_id].replace('&lt;','<')
25
	//message[post_id] = message[post_id].replace('&gt;','>')
26
	window.parent.document.post.message.value += "[" + tag + message[post_id] + tag + "]";
27
	window.parent.document.post.message.focus();
28
	return;
29
}
30
31
function open_postreview(ref)
32
{
33
	height = screen.height / 3;
34
	width = screen.width / 2;
35
	window.open(ref,'_phpbbpostreview','height=' + height + ',width=' + width + ',resizable=yes,scrollbars=yes');
36
	return;
37
}
38
//-->
39
</script>
11
</script>
40
12
41
<!-- BEGIN switch_inline_mode -->
13
<!-- BEGIN switch_inline_mode -->
...
...
62
							<td align="left"><div class="post-subject">{postrow.POST_SUBJECT}</div></td>
34
							<td align="left"><div class="post-subject">{postrow.POST_SUBJECT}</div></td>
63
							<td align="right">
35
							<td align="right">
64
								<span class="post-buttons">
36
								<span class="post-buttons">
65
									<a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27quote%27);"><img src="{IMG_QUICK_QUOTE}"
alt="{L_QUICK_QUOTE}" title="{L_QUICK_QUOTE}" /></a>
37
									<a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27quote%27,false,true);"><img src="{IMG_QUICK_QUOTE}" alt="{L_QUICK_QUOTE}" title="{L_QUICK_QUOTE}" /></a>
66
									<a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27ot%27);"><img src="{IMG_OFFTOPIC}" alt="{L_OFFTOPIC}"
title="{L_OFFTOPIC}" /></a>
38
									<a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27ot%27,false,true);"><img src="{IMG_OFFTOPIC}" alt="{L_OFFTOPIC}" title="{L_OFFTOPIC}" /></a>
67
								</span>
39
								</span>
68
							</td>
40
							</td>
69
						</tr>
41
						</tr>