2014-01-21 06:39:27 +00:00
< h2 class = "page_title" > Comments Manager< / h2 >
2014-01-18 13:35:29 +00:00
< br / >
2014-01-27 08:36:11 +00:00
< div class = "btn-group" >
< table >
< tr >
< a class = "btn btn-primary btn-xs" href = "?type=v" title = "View Video Comments" > View Video Comments< / a >
< a class = "btn btn-primary btn-xs" href = "?type=t" > View Topic Posts< / a >
< a class = "btn btn-primary btn-xs" href = "?type=c" > View Channel Comments< / a >
< a class = "btn btn-primary btn-xs" href = "?type=cl" > View Collection Comments< / a >
< a class = "btn btn-primary btn-xs" href = "?type=p" > View Photo Comments< / a >
< / tr >
< / table >
2014-01-18 13:35:29 +00:00
< / div >
< form name = "comments_manager" method = "post" >
2014-01-21 06:39:27 +00:00
< div class = "btn-grp formOptions" >
< input class = "btn btn-xs btn-info" type = "submit" name = "mark_spam" value = "Mark Spam" class = "button" id = "mark_spam" / >
< input class = "btn btn-xs btn-info" type = "submit" name = "not_spam" value = "Not Spam" class = "button" id = "not_spam" / >
< input class = "btn btn-xs btn-info" type = "submit" name = "delete_selected" value = "Delete" class = "button" onclick = "return confirm_it('Are you sure you want to delete selected comment(s)')" / >
< / div >
< table class = "table table-bordered" >
2014-01-18 13:35:29 +00:00
< tr >
< td width = "40" align = "center" valign = "middle" class = "left_head" >
< input type = "checkbox" name = "checkall" onclick = "checkUncheckAll(this);" / > < / td >
< td width = "50" class = "head" > CID< / td >
< td class = "head" > Comment< / td >
< / tr >
< / table >
{if $comments}
2014-01-21 06:39:27 +00:00
< table class = "table table-bordered" >
2014-01-18 13:35:29 +00:00
{foreach from=$comments item=comment}
{if $comment.anonym_name != ""}
{assign var=comment_owner value=$comment.anonym_name}
{else}
{assign var=comment_owner value=$userquery->get_user_details($comment.3)}
{/if}
< tr class = "video_opt_td" id = "comment_{$comment.comment_id}" style = "background-color:{if $comment.spam_votes > 0} #ffd7d7{else}{$bgcolor}{/if};" >
2014-01-27 08:36:11 +00:00
2014-01-18 13:35:29 +00:00
< td width = "40" align = "center" valign = "top" class = "video_opt_td" > < input name = "check_comments[]" type = "checkbox" id = "check_comments" value = "{$comment.comment_id}" / > < / td >
< td width = "50" align = "left" valign = "top" class = "video_opt_td" > {$comment.comment_id}< / td >
< td valign = "top" class = "video_opt_td" onmouseover = "$('#comm_opt-{$comment.comment_id}').show()" onmouseout = "$('#comm_opt-{$comment.comment_id}').hide()" >
{if $type == '' || $type == 'v'}
2014-01-27 08:36:11 +00:00
{if is_array($comment_owner)} < a href = "{$userquery->profile_link($comment_owner)}" > < strong > {$comment_owner.username}< / strong > < / a > {else} < strong > {$comment_owner}< / strong >
< div class = "videoTitle row" >
< div class = "col-md-10" >
{/if} commented on {$comment.date_added|date_format} on a video< span style = "text-transform:none" >
< a href = "{videoLink vdetails=$comment}" title = "{$comment.title}" > {$comment.title|truncate:40}< / a >
2014-01-21 06:39:27 +00:00
< div class = "clear-fix" > < / div >
2014-01-27 08:36:11 +00:00
< span style = "font-size:11px;" id = "{$comment.comment_id}" class = "edit_comment" > < strong > {$comment.comment}< / strong > < / span >
< / span >
< / div >
< / div >
< td >
2014-01-18 13:35:29 +00:00
< div style = "height:20px;" >
2014-01-27 08:36:11 +00:00
< div class = "dropdown" >
< button id = "dropdownMenu1" class = "btn btn-primary btn-xs dropdown-toggle" data-toggle = "dropdown" > Actions < i class = "caret" > < / i > < / button >
< ul class = "dropdown-menu" aria-labelledby = "dropdownMenu1" role = "menu" >
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "{videoLink vdetails=$comment}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target = "_blank" > {lang code='view'} {lang code='comment'}< / a > < / li >
2014-01-18 13:35:29 +00:00
2014-01-27 08:36:11 +00:00
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "#" id = "spam_comment_{$comment.comment_id}" onclick = "admin_spam_comment({$comment.comment_id}); return false;" { if $ comment . spam_votes = =0} style = "display:inline" { else } style = "display:none;" { / if } > Mark {lang code='spam'}< / a > < a href = "#" id = "remove_spam_comment_{$comment.comment_id}" onclick = "admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}< / a > < / li >
2014-01-18 13:35:29 +00:00
2014-01-27 08:36:11 +00:00
< li role = "presentation" > < a role = "menuitem" tabindex = "-1" href = "#" onclick = "delete_comment('{$comment.comment_id}','v'); return false;" > {lang code='delete'}< / a > < / li >
< / ul >
2014-01-18 13:35:29 +00:00
< / div > < / div >
2014-01-21 06:39:27 +00:00
< / td >
2014-01-18 13:35:29 +00:00
< / tr >
{/if}
{if $type == 't'}
< span class = "vdo_sets" >
{if is_array($comment_owner)} < a href = "{$userquery->profile_link($comment_owner)}" > < strong > {$comment_owner.username}< / strong > < / a > {else} < strong > {$comment_owner}< / strong > {/if} commented on < strong > {$comment.date_added|date_format}< / strong > on a topic named < span style = "text-transform:none" > < a href = "{$cbgroup->topic_link($comment)}" title = "{$comment.topic_title}" > {$comment.topic_title|truncate:40}< / a > < / span >
2014-01-27 08:36:11 +00:00
< / span >
2014-01-18 13:35:29 +00:00
< div style = "height:5px; clear:both;" > < / div >
< span style = "font-size:11px;" class = "edit_comment" > {$comment.comment}< / span >
< div style = "height:20px;" >
< div id = "comm_opt-{$comment.comment_id}" class = "vid_opts" style = "display:none" >
< a href = "{$cbgroup->topic_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target = "_blank" > {lang code='view'} {lang code='comment'}< / a > |
< a href = "#" id = "spam_comment_{$comment.comment_id}" onclick = "admin_spam_comment({$comment.comment_id}); return false;" { if $ comment . spam_votes = =0} style = "display:inline" { else } style = "display:none;" { / if } > Mark {lang code='spam'}< / a > < a href = "#" id = "remove_spam_comment_{$comment.comment_id}" onclick = "admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}< / a > |
< a href = "#" onclick = "delete_comment('{$comment.comment_id}','v'); return false;" > {lang code='delete'}< / a >
< / div > < / div >
{/if}
{if $type == 'c'}
< span class = "vdo_sets" >
{if is_array($comment_owner)} < a href = "{$userquery->profile_link($comment_owner)}" > < strong > {$comment_owner.username}< / strong > < / a > {else} < strong > {$comment_owner}< / strong > {/if} commented on < strong > {$comment.date_added|date_format}< / strong > on a channel named < span style = "text-transform:none" > < a href = "{$userquery->profile_link($comment)}" title = "{$comment.username}" > {$comment.username|truncate:40}< / a > < / span >
< / span >
< div style = "height:5px; clear:both;" > < / div >
< span style = "font-size:11px;" class = "edit_comment" > {$comment.comment}< / span >
< div style = "height:20px;" >
< div id = "comm_opt-{$comment.comment_id}" class = "vid_opts" style = "display:none" >
< a href = "{$userquery->profile_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target = "_blank" > {lang code='view'} {lang code='comment'}< / a > |
< a href = "#" id = "spam_comment_{$comment.comment_id}" onclick = "admin_spam_comment({$comment.comment_id}); return false;" { if $ comment . spam_votes = =0} style = "display:inline" { else } style = "display:none;" { / if } > Mark {lang code='spam'}< / a > < a href = "#" id = "remove_spam_comment_{$comment.comment_id}" onclick = "admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}< / a > |
< a href = "#" onclick = "delete_comment('{$comment.comment_id}','v'); return false;" > {lang code='delete'}< / a >
< / div > < / div >
{/if}
{if $type == 'cl'}
< span class = "vdo_sets" >
{if is_array($comment_owner)} < a href = "{$userquery->profile_link($comment_owner)}" > < strong > {$comment_owner.username}< / strong > < / a > {else} < strong > {$comment_owner}< / strong > {/if} commented on < strong > {$comment.date_added|date_format}< / strong > on a collection named < span style = "text-transform:none" > < a href = "{$cbcollection->collection_links($comment,'vc')}" title = "{$comment.collection_name}" > {$comment.collection_name|truncate:40}< / a > < / span >
< / span >
< div style = "height:5px; clear:both;" > < / div >
< span style = "font-size:11px;" class = "edit_comment" > {$comment.comment}< / span >
< div style = "height:20px;" >
< div id = "comm_opt-{$comment.comment_id}" class = "vid_opts" style = "display:none" >
< a href = "{$cbcollection->collection_links($comment,'vc')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target = "_blank" > {lang code='view'} {lang code='comment'}< / a > |
< a href = "#" id = "spam_comment_{$comment.comment_id}" onclick = "admin_spam_comment({$comment.comment_id}); return false;" { if $ comment . spam_votes = =0} style = "display:inline" { else } style = "display:none;" { / if } > Mark {lang code='spam'}< / a > < a href = "#" id = "remove_spam_comment_{$comment.comment_id}" onclick = "admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}< / a > |
< a href = "#" onclick = "delete_comment('{$comment.comment_id}','v'); return false;" > {lang code='delete'}< / a >
< / div > < / div >
{/if}
{if $type == 'p'}
< span class = "vdo_sets" >
{if is_array($comment_owner)} < a href = "{$userquery->profile_link($comment_owner)}" > < strong > {$comment_owner.username}< / strong > < / a > {else} < strong > {$comment_owner}< / strong > {/if} commented on < strong > {$comment.date_added|date_format}< / strong > on a photo named < span style = "text-transform:none" > < a href = "{$cbphoto->photo_links($comment,'view_photo')}" title = "{$comment.photo_title}" > {$comment.photo_title|truncate:40}< / a > < / span >
< / span >
< div style = "height:5px; clear:both;" > < / div >
< span style = "font-size:11px;" class = "edit_comment" > {$comment.comment}< / span >
< div style = "height:20px;" >
< div id = "comm_opt-{$comment.comment_id}" class = "vid_opts" style = "display:none" >
< a href = "{$cbphoto->photo_links($comment,'view_photo')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target = "_blank" > {lang code='view'} {lang code='comment'}< / a > |
< a href = "#" id = "spam_comment_{$comment.comment_id}" onclick = "admin_spam_comment({$comment.comment_id}); return false;" { if $ comment . spam_votes = =0} style = "display:inline" { else } style = "display:none;" { / if } > Mark {lang code='spam'}< / a > < a href = "#" id = "remove_spam_comment_{$comment.comment_id}" onclick = "admin_remove_spam({$comment.comment_id}); return false;"
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}< / a > |
< a href = "#" onclick = "delete_comment('{$comment.comment_id}','v'); return false;" > {lang code='delete'}< / a >
< / div > < / div >
2014-01-27 08:36:11 +00:00
2014-01-18 13:35:29 +00:00
{/if}
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/foreach}
< / table >
{else}
< div align = "center" > < em > {lang code='no_comments'}< / em > < / div >
{/if}
< / form >
2014-01-27 08:36:11 +00:00
< div class = "btn-group" >
< table >
< tr >
< a class = "btn btn-primary btn-xs" href = "?type=v" title = "View Video Comments" > View Video Comments< / a >
< a class = "btn btn-primary btn-xs" href = "?type=t" > View Topic Posts< / a >
< a class = "btn btn-primary btn-xs" href = "?type=c" > View Channel Comments< / a >
< a class = "btn btn-primary btn-xs" href = "?type=cl" > View Collection Comments< / a >
< a class = "btn btn-primary btn-xs" href = "?type=p" > View Photo Comments< / a >
< / tr >
< / table >
< / div >
2014-01-18 13:35:29 +00:00
< div style = "height:10px; clear:both" > < / div >
2014-01-27 08:36:11 +00:00
{include file="$style_dir/blocks/pagination.html" }