modified.

This commit is contained in:
umaircb 2014-02-28 12:13:34 +00:00
parent 0c4897acdd
commit f9b83ef946

View file

@ -1,21 +1,20 @@
<h2 class="page_title">Comments Manager</h2>
<br />
<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 id="vid_opt-{$groups[gp_list].group_id}" class="dropdown">
<button id="dropdownMenu" class="btn btn-primary btn-xs dropdown-toggle pull-right"
data-toggle="dropdown">View Comments <i class="caret"></i></button>
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=v" title="View Video Comments">View Video Comments</a>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=t">View Topic Posts</a>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=c">View Channel Comments</a>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=cl">View Collection Comments</a>
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=p">View Photo Comments</a>
</ul>
</div>
<form name="comments_manager" method="post">
<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 _cb.confirm_it('Are you sure you want to delete selected comment(s)')"/>
<input class="btn btn-xs btn-primary" type="submit" name="mark_spam" value="Mark Spam" class="button" id="mark_spam"/>
<input class="btn btn-xs btn-primary" type="submit" name="not_spam" value="Not Spam" class="button" id="not_spam"/>
<input class="btn btn-xs btn-primary" type="submit" name="delete_selected" value="Delete" class="button" onclick="return _cb.confirm_it('Are you sure you want to delete selected comment(s)')"/>
</div>
<table class="table table-bordered">
<tr>
@ -37,29 +36,24 @@
{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};">
<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()" >
<tr>
<td width="50"><input name="check_comments[]" type="checkbox" id="check_comments" value="{$comment.comment_id}" /></td>
<td>{$comment.comment_id}</td>
<td onmouseover="$('#comm_opt-{$comment.comment_id}').show()" onmouseout="$('#comm_opt-{$comment.comment_id}').hide()" >
{if $type == '' || $type == 'v'}
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong>
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <span id="{$comment.comment_id}" class="edit_comment"><strong>{$comment.comment}</strong></span>
<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>
<a href="view_user.php?uid={$video.userid}">{$comment_owner}</a> {/if} commented on a video named <a href="{videoLink vdetails=$comment}" title="{$comment.title}">{$comment.title|truncate:40}</a>
on {$comment.date_added|date_format}
<div class="clear-fix"></div>
<span style="font-size:11px;" id="{$comment.comment_id}" class="edit_comment"><strong>{$comment.comment}</strong></span>
</span>
</div>
</div>
<td>
<div style="height:20px;">
<div class="dropdown">
<div class="dropdown pull-right">
<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>
<li role="presentation"><a role="menuitem" tabindex="-1" 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></li>
<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>
@ -67,73 +61,71 @@
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick="_cb.delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a></li>
</ul>
</div></div>
</div>
</td>
</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>
</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="{$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="_cb.delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></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>
<span style="font-size:11px;" class="edit_comment"><strong>{$comment.comment}</strong></span><br>
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong><a href="{$userquery->profile_link($comment_owner)}">{$comment_owner}</a></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: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> |
<div class="dropdown pull-right">
<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 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></li>
<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> |
<li role="presentation"><a role="menuitem" tabindex="-1" href 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> </li>
<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="_cb.delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></div>
<li role="presentation"><a role="menuitem" tabindex="-1" href href="#" onclick="_cb.delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a></li>
</ul>
</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>
<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">
<div class="labels">
<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="_cb.delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
</div></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">
<span>{$comment.comment}</span>
<div class="labels">
<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;"
@ -155,17 +147,6 @@
<div align="center"><em>{lang code='no_comments'}</em></div>
{/if}
</form>
<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>
<div style="height:10px; clear:both"></div>
{include file="$style_dir/blocks/pagination.html" }