150 lines
No EOL
7.2 KiB
HTML
150 lines
No EOL
7.2 KiB
HTML
{if $mode=='view'}
|
||
<h2>Flagged Groups Manager</h2>
|
||
<!-- DIsplaying Videos -->
|
||
<form name="flagged_video" method="post" id="flagged_video">
|
||
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<div class= "usersMenuButtons">
|
||
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
|
||
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
|
||
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Groups" class="button" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
|
||
|
||
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||
<table class="table table-bordered">
|
||
<tr>
|
||
<td width="30" align="center" valign="middle" class="left_head">
|
||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||
<td width="50" align="left" class="head">GP-ID</td>
|
||
<td class="head">Details</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
|
||
|
||
|
||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||
<table class="table table-bordered">
|
||
{assign var = bgcolor value = ""}
|
||
{section name=gp_list loop=$groups}
|
||
<tr class="video_opt_td">
|
||
|
||
<td width="30" align="center" valign="top" class="video_opt_td"><input name="check_group[]" type="checkbox" id="check_group" value="{$groups[gp_list].group_id}" /></td>
|
||
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
|
||
<td valign="top" class="video_opt_td" >
|
||
<div style="float:left; width:60px; height:40px;" >
|
||
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" width="50" height="50" />
|
||
</div>
|
||
<div style="position:relative; min-height: 45px">
|
||
<div class="col-md-10">
|
||
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank" style="text-indent:10px">
|
||
{$groups[gp_list].group_name}
|
||
</a>
|
||
<div class="col-md-2" style="float:right; width:60px; height:40px;" >
|
||
Owner<strong> <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong>
|
||
|
||
</div>
|
||
<div style="position:relative; min-height: 30px">
|
||
<div class="videoTitle row">
|
||
<span class="label"><strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong></span>
|
||
<span class="label {if $u.usr_status == Ok}label- {else}label-success{/if}"><span></span><strong>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</strong></span>
|
||
<span class="label label-danger"><span>Members:</span><strong>{$groups[gp_list].total_members|number_format}</strong></span>
|
||
<span class="label label-info"><span>Flags:</span><strong>{$groups[gp_list].total_flags}</strong></span>
|
||
</span>
|
||
|
||
<td>
|
||
<div id="vid_opt-{$groups[gp_list].group_id}" 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="{group_link details=$groups[gp_list]}" target="_blank">View</a> </li>
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a></li>
|
||
{if $groups[gp_list].active == yes}
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else}</li>
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} </li>
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a></li>
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_group={$groups[gp_list].group_id}">Delete</a></li>
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?mode=view_flags&gid={$groups[gp_list].group_id}">View Flags</a></li>
|
||
<li class="divider"></li>
|
||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_flags={$groups[gp_list].group_id}">Delete Flags</a></li>
|
||
</div>
|
||
</td>
|
||
|
||
</tr>
|
||
{if $bgcolor == ""}
|
||
{assign var = bgcolor value = "#EEEEEE"}
|
||
{else}
|
||
{assign var = bgcolor value = ""}
|
||
{/if}
|
||
|
||
{/section}
|
||
</table>
|
||
|
||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td>
|
||
<div class= "usersMenuButtons">
|
||
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
|
||
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button" />
|
||
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Groups" class="button" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
|
||
|
||
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" class="button" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
</form>
|
||
|
||
<!-- DIsplaying Videos Ends-->
|
||
{include file="$style_dir/blocks/pagination.html" }
|
||
|
||
{/if}
|
||
|
||
|
||
{if $mode=='view_flags'}
|
||
|
||
<span class="page_title">Viewing {$group.group_name} flags</span> — <a href="{group_link details=$group}">View Group</a> • <a href="edit_group.php?group_id={$group.group_id}">Edit Group</a> • <a href="?delete_flags={$group.group_id}">Delete Flags</a> • <a href="?delete_group={$group.group_id}">Delete Group</a>
|
||
<div style="margin-bottom:10px"></div>
|
||
<!-- DIsplaying Videos -->
|
||
<form name="video_manage" method="post">
|
||
|
||
|
||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
|
||
<td class="head">Flag Details</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
|
||
|
||
|
||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||
{assign var = bgcolor value = ""}
|
||
{section name=list loop=$flags}
|
||
<tr class="video_opt_td" bgcolor="{$bgcolor}">
|
||
<td width="30" align="left" valign="top" class="video_opt_td">{$smarty.section.list.iteration}</td>
|
||
<td align="left" valign="top" class="video_opt_td">Reported as "{$flags[list].flag_type|flag_type}" by {$flags[list].userid|get_username} {$flags[list].date_added|niceTime}</td>
|
||
<td width="50" valign="top" class="video_opt_td"> </td>
|
||
</tr>
|
||
{if $bgcolor == ""}
|
||
{assign var = bgcolor value = "#EEEEEE"}
|
||
{else}
|
||
{assign var = bgcolor value = ""}
|
||
{/if}
|
||
|
||
{/section}
|
||
</table>
|
||
</form>
|
||
|
||
{/if} |