clipbucket/upload/admin_area/styles/cbadmin/layout/blocks/comments.html
Arslan Hassan d65e7ee595 ADDED : ClipBucket Object Class
ADDED : New ClipBucket Template
ADDED : New Templating System
ADDED : New Favicon
ADDED : New ClipBucket Player
2009-09-28 05:23:50 +00:00

64 lines
No EOL
3.2 KiB
HTML

{assign var=bgcolor value =F2F2F2}
{if $myquery->get_comments($id,$type)}
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" align="center" class="left_head">CID</td>
<td width="35" class="head_sep_left">UID</td>
<td width="100" class="head_sep_left">Username</td>
<td width="100" class="head_sep_left">Email</td>
<td class="head_sep_left"><div class="head_sep_left" style="width:200px">Comment</div></td>
<td width="200" class="head_sep_left">Date</td>
<td width="70" class="head_sep_left">Votes</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
<div>
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="block" style="text-indent:15px">
{foreach from=$myquery->get_comments($id,$type) item=comment}
{if $comment.parent_id == 0}
{if $comment.userid !='' }{assign var="udetails" value=$userquery->get_user_details($comment.userid)}{/if}
<tr style="background-color:#{$bgcolor}">
<td width="35" align="left">{$comment.comment_id}</td>
<td width="35" align="left">{$comment.userid}</td>
<td width="100" align="left">{if $comment.anonym_name}{$comment.anonym_name}{else}{$udetails.username}{/if}</td>
<td width="100" align="left">{if $comment.anonym_email}{$comment.anonym_email}{else}{$udetails.email}{/if}</td>
<td ><div class="edit_comment" id="{$comment.comment_id}">{$comment.comment}</div></td>
<td width="200" align="left" >{$comment.date_added|date_format}</td>
<td width="70" align="left" >{$comment.vote}</td>
<td width="100" ><a href="?{$link}&amp;delete_comment={$comment.comment_id}">Delete</a></td>
</tr>
{foreach from=$myquery->get_comments($id,$type,false,$comment.comment_id,TRUE) item=reply}
{if $reply.comment !=''}
{if $reply.userid !='' }{assign var="udetails" value=$userquery->get_user_details($reply.userid)}{/if}
<tr style="background-color:#{$bgcolor}">
<td width="35" align="left">{$reply.comment_id}</td>
<td width="35" align="left">{$reply.userid}</td>
<td width="100" align="left">{if $reply.anonym_name}{$reply.anonym_name}{else}{$udetails.username}{/if}</td>
<td width="100" align="left">{if $reply.anonym_email}{$reply.anonym_email}{else}{$udetails.email}{/if}</td>
<td ><div class="edit_comment" id="{$reply.comment_id}">{$comment.comment_id} &hArr; {$reply.comment}</div></td>
<td width="200" align="left" >{$reply.date_added|date_format}</td>
<td width="70" align="left" >{$reply.vote}</td>
<td width="100" ><a href="?{$link}&amp;delete_comment={$reply.comment_id}">Delete</a></td>
</tr>
{/if}
{/foreach}
{if $bgcolor == 'F2F2F2'}
{assign var=bgcolor value =FFF}
{elseif $bgcolor == 'FFF'}
{assign var=bgcolor value =F2F2F2}
{/if}
{/if}
{/foreach}
{else}
<tr style="background-color:#FFF">
<td colspan="8" align="center"><em>No User Comments For This Video</em></td>
</tr>
{/if}
</table>
</div>