Location: PHPKode > projects > Uchome and Discuz > template/default/cp_comment.htm
<!--{template header}-->

<!--{if $_GET['op'] == 'edit'}-->


<h1>Edit</h1>
<a href="javascript:hideMenu();" class="float_del" title="Close">Close</a>
<div class="popupmenu_inner" id="__editcommentform_{$cid}">
<form id="editcommentform_{$cid}" name="editcommentform_{$cid}" method="post" action="cp.php?ac=comment&op=edit&cid=$cid">
<table>
<tr>
	<td>
		<label for="message">Edit Message:</label>
		<a href="###" id="editface_{$cid}" onclick="showFace(this.id, 'message_{$cid}');"><img src="image/facelist.gif" align="absmiddle" /></a>
		<img src="image/zoomin.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomTextarea('message_{$cid}', 1)">
		<img src="image/zoomout.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomTextarea('message_{$cid}', 0)">
		<br />
		<textarea id="message_{$cid}" name="message" cols="70" onkeydown="ctrlEnter(event, 'editsubmit_btn');" rows="8">$comment[message]</textarea>
			
	</td>
</tr>
<tr>
	<td>
	<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
	<input type="hidden" name="editsubmit" value="true" />
	<!--{if $_SGLOBAL[inajax]}-->
	<input type="button" name="editsubmit_btn" id="editsubmit_btn" value="Publish" class="submit" onclick="ajaxpost('editcommentform_{$cid}', 'comment_edit', 2000)" />
	<!--{else}-->
	<input type="submit" name="editsubmit_btn" id="editsubmit_btn" value="Publish" class="submit" />
	<!--{/if}-->
	</td>
</tr>
</table>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>

<!--{elseif $_GET['op'] == 'delete'}-->

<h1>Del Reply</h1>
<a href="javascript:hideMenu();" class="float_del" title="Delete">Delete</a>
<div class="popupmenu_inner" id="__deletecommentform_{$cid}">
<form id="deletecommentform_{$cid}" name="deletecommentform_{$cid}" method="post" action="cp.php?ac=comment&op=delete&cid=$cid">
	<p>Are you sure, dp you want to delete?</p>
	<p class="btn_line">
		<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
		<!--{if $_SGLOBAL[inajax]}-->
		<input type="hidden" name="deletesubmit" value="true" />
		<input type="button" name="deletesubmit_btn" value="È·¶¨" class="submit" onclick="ajaxpost('deletecommentform_{$cid}', 'comment_delete', 2000)" />
		<!--{else}-->
		<input type="submit" name="deletesubmit" value="Continue" class="submit" />
		<!--{/if}-->
	</p>
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>

<!--{elseif $_GET['op'] == 'reply'}-->


<h1>Reply</h1>
<a href="javascript:hideMenu();" class="float_del" title="Close">Close</a>
<div class="popupmenu_inner" id="__replycommentform_{$comment[cid]}">
<form id="replycommentform_{$comment[cid]}" name="replycommentform_{$comment[cid]}" method="post" action="cp.php?ac=comment">
	<table>
		<tbody id="reply_msg_{$comment[cid]}">
			<tr>
				<td>
					<label for="message">Content£º</label>
					<a href="###" id="replyface_{$comment[cid]}" onclick="showFace(this.id, 'message_pop_{$comment[cid]}');return false;"><img src="image/facelist.gif" align="absmiddle" /></a>
					<img src="image/zoomin.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomTextarea('message_pop_{$comment[cid]}', 1)">
	
					<img src="image/zoomout.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomTextarea('message_pop_{$comment[cid]}', 0)">
	
					<br />
					<textarea id="message_pop_{$comment[cid]}" name="message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" rows="8" cols="70"></textarea>
				</td>
			</tr>
			<tr>
				<td>
					<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
					<input type="hidden" name="id" value="$comment[id]">
					<input type="hidden" name="idtype" value="$comment[idtype]">
					<input type="hidden" name="cid" value="$comment[cid]" />
					<input type="hidden" name="commentsubmit" value="true" />
					<!--{if $_SGLOBAL[inajax]}-->
						<!--{if $comment['idtype']=='uid'}-->
						<input type="button" name="commentsubmit_btn" id="commentsubmit_btn" value="Reply" class="submit" onclick="ajaxpost('replycommentform_{$comment[cid]}','',2000)" />
						<!--{elseif $_GET['feedid']}-->
						<input type="button" name="commentsubmit_btn" id="commentsubmit_btn" value="Reply" class="submit" onclick="ajaxpost('replycommentform_{$comment[cid]}', 'feedcomment_add', 2000)" />
						<!--{else}-->
						<input type="button" name="commentsubmit_btn" id="commentsubmit_btn" value="Reply" class="submit" onclick="ajaxpost('replycommentform_{$comment[cid]}', 'comment_add', 2000)" />
						<!--{/if}-->
					<!--{else}-->
					<input type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="Reply" class="submit" />
					<!--{/if}-->
				</td>
			</tr>
		</tbody>
		<tbody id="reply_doodle_{$comment[cid]}" style="display: none">
			<tr>
				<td>
					<object id="doodle_{$comment[cid]}" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0" width="438" height="304">
						<param name="quality" value="high" />
						<param name="allowScriptAccess" value="always" />
						<param name="movie" value="image/doodle.swf?fid=reply_doodle_{$comment[cid]}&oid=message_pop_{$comment[cid]}&tid=reply_msg_{$comment[cid]}" />
						<embed src="image/doodle.swf?fid=reply_doodle_{$comment[cid]}&oid=message_pop_{$comment[cid]}&tid=reply_msg_{$comment[cid]}" allowScriptAccess="always" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="438" height="304"></embed>
					</object>
				</td>
			</tr>
			<tr>
				<td>
					<input type="button" name="back_btn" id="back_btn" value="Reply" onclick="selCommentTab('reply_doodle_{$comment[cid]}', 'reply_msg_{$comment[cid]}');" class="button" />
				</td>
			</tr>
		</tbody>
	</table>
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>

<!--{/if}-->
<!--{template footer}-->
Return current item: Uchome and Discuz