{assign var=bgcolor value =F2F2F2} {assign var=comments value=$myquery->get_comments($id,$type)} {if $comments}
CID UID Username Email Comment Date Votes  
{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} {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} {/if} {/foreach} {if $bgcolor == 'F2F2F2'} {assign var=bgcolor value =FFF} {elseif $bgcolor == 'FFF'} {assign var=bgcolor value =F2F2F2} {/if} {/if} {/foreach}
{$comment.comment_id} {$comment.userid} {if $comment.anonym_name}{$comment.anonym_name}{else}{$udetails.username}{/if} {if $comment.anonym_email}{$comment.anonym_email}{else}{$udetails.email}{/if}
{$comment.comment}
{$comment.date_added|date_format} {$comment.vote} Delete
{$reply.comment_id} {$reply.userid} {if $reply.anonym_name}{$reply.anonym_name}{else}{$udetails.username}{/if} {if $reply.anonym_email}{$reply.anonym_email}{else}{$udetails.email}{/if}
{$comment.comment_id} ⇔ {$reply.comment}
{$reply.date_added|date_format} {$reply.vote} Delete
{else}
No User Comments
{/if}