Edited..
This commit is contained in:
parent
ad2d603773
commit
d0e24eff2f
4 changed files with 259 additions and 408 deletions
|
@ -1,66 +1,57 @@
|
||||||
<table width="98%" border="0" cellpadding="0" cellspacing="0">
|
<h2>Add New Group</h2>
|
||||||
<tr>
|
|
||||||
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Add New Group</td>
|
|
||||||
<td class="head"> </td>
|
|
||||||
<td width="100" class="right_head"> </td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form name="add_group" action="" method="post" enctype="multipart/form-data">
|
<form name="add_group" action="" method="post" enctype="multipart/form-data">
|
||||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="block">
|
<p class="alert alert-info">* are required fields</p>
|
||||||
<tr>
|
<div class="form-group">
|
||||||
<td class="td_body"> </td>
|
<label for="users">Select User *</label>
|
||||||
<td align="right" class="td_body">* are required fields</td>
|
<select class="form-control" name="users" tabindex="1">
|
||||||
</tr>
|
<option>Select User</option>
|
||||||
<tr>
|
{section name=u_list loop=$users}
|
||||||
<td valign="top" class="td_body">Select User *</td>
|
<option value="{$users[u_list].userid}">{$users[u_list].username}</option>
|
||||||
<td class="td_body"><select name="users" tabindex="1" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">
|
{/section}
|
||||||
<option>Select User</option>
|
</select>
|
||||||
{section name=u_list loop=$users}
|
</div>
|
||||||
<option value="{$users[u_list].userid}">{$users[u_list].username}</option>
|
<div class="form-group">
|
||||||
{/section}
|
<label for="title">Group Title *</label>
|
||||||
</select></td>
|
<input class="form-control" name="title" id="titile" tabindex="2">
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
|
||||||
<td valign="top" class="td_body">Group Title *</td>
|
<div class="form-group">
|
||||||
<td class="td_body"><input name="title" id="title" tabindex="2" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /></td>
|
<label for="description">Group Description *</label>
|
||||||
</tr>
|
<textarea class="form-control" name="descriptio" id="description" rows="5" tabindex="3"></textarea>
|
||||||
<tr>
|
</div>
|
||||||
<td valign="top" class="td_body">Group Description *</td>
|
|
||||||
<td class="td_body"><p>
|
<div class="form-group">
|
||||||
<textarea name="description" id="description" rows="5" tabindex="3" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;"></textarea>
|
<label for="tags">Group Tags *</label>
|
||||||
<br />
|
<input class="form-control" name="tags" id="tag" tabindex="4">
|
||||||
</p></td>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
<div class="form-group">
|
||||||
<td class="td_body">Group Tags *</td>
|
<label for="gp_url">Group Url *</label>
|
||||||
<td align="left" class="td_body"><input name="tags" id="tags" tabindex="4" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /></td>
|
<input class="form-control" name="gp_url" id="gp_url" tabindex="5">
|
||||||
</tr>
|
<small>Only these characters are allowed. a-z, 0-9, Hypen (-), Underscore(_), Period(.)</small>
|
||||||
<tr>
|
</div>
|
||||||
<td class="td_body">Group Url *</td>
|
|
||||||
<td align="left" class="td_body"><input name="gp_url" id="gp_url" tabindex="5" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;" /> <small>Only these characters are allowed. a-z, 0-9, hypen(-), underscore(_), period(.)</small></td>
|
<div class="form-group">
|
||||||
</tr>
|
<label for="gptype">Group Type </label>
|
||||||
<tr>
|
<input name="gptype" type="radio" tabindex="7" value="1">Private
|
||||||
<td class="td_body">Group Type</td>
|
<input name="gptype" type="radio" tabindex="8" value="2">Only Invited Members
|
||||||
<td align="left" class="td_body"><input name="gptype" type="radio" value="0" tabindex="6" checked="checked">Public<BR/> <input name="gptype" type="radio" tabindex="7" value="1">Private<BR/> <input name="gptype" type="radio" tabindex="8" value="2">Only Invited Members</td>
|
<input name="gptype" type="radio" tabindex="7" value="1">Private
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
|
||||||
<td class="td_body">Group Category *</td>
|
<div class="form-group">
|
||||||
<td align="left" class="td_body">
|
<label for="category">Group Category *</label>
|
||||||
<select name="category" tabindex="9" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;">
|
<select class="form-control" name="category" tabindex="9">
|
||||||
<option>Choose A Category</option>
|
<option>Choose A Category</option>
|
||||||
{section name=cat_list loop=$category}
|
{section name=cat_list loop=$category}
|
||||||
<option value="{$category[cat_list].category_id}">{$category[cat_list].category_name}</option>
|
<option value="{$category[cat_list].category_id}">{$category[cat_list].category_name}</option>
|
||||||
{/section}
|
{/section}
|
||||||
</select></td>
|
</select>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="form-group">
|
||||||
<td class="td_body">Group Thumb</td>
|
<label for="gpthumb">Group Thumb</label>
|
||||||
<td align="left" class="td_body">
|
<input class="form-control" type="file" name="gpThumb" id="gpThumb" tabindex="10">
|
||||||
<input type="file" name="gpThumb" id="gpThumb" tabindex="10" style="padding:4px; border:1px solid #CCC; width:350px; font-size:12px;"/></td>
|
</div>
|
||||||
</tr>
|
<div class="form-group">
|
||||||
<tr>
|
<input type="submit" tabindex="11" name="create_group" id="create_group" value="Add Group" class="btn btn-primary"/>
|
||||||
<td class="td_body"> </td>
|
</div>
|
||||||
<td align="right" class="td_body"><input type="submit" tabindex="11" name="create_group" id="create_group" value="Add Group" class="button"/></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -2,149 +2,91 @@
|
||||||
<h2>Flagged Groups Manager</h2>
|
<h2>Flagged Groups Manager</h2>
|
||||||
<!-- DIsplaying Videos -->
|
<!-- DIsplaying Videos -->
|
||||||
<form name="flagged_video" method="post" id="flagged_video">
|
<form name="flagged_video" method="post" id="flagged_video">
|
||||||
|
<div class="btn-group">
|
||||||
<table>
|
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" />
|
||||||
<tr>
|
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" />
|
||||||
<td>
|
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Groups" onclick="return confirm_it('Are you sure you want to delete these group(s)')"/>
|
||||||
<div class= "usersMenuButtons">
|
<input class="btn btn-primary btn-xs" type="submit" name="delete_flags" value="Delete Flags" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
|
||||||
<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>
|
||||||
<div style="position:relative; min-height: 30px">
|
<table class="table table-bordered table-striped">
|
||||||
<div class="videoTitle row">
|
<tr>
|
||||||
<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>
|
<td width="30">
|
||||||
<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>
|
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||||
<span class="label label-danger"><span>Members:</span><strong>{$groups[gp_list].total_members|number_format}</strong></span>
|
<td width="60">GP-ID</td>
|
||||||
<span class="label label-info"><span>Flags:</span><strong>{$groups[gp_list].total_flags}</strong></span>
|
<td class="head">Details</td>
|
||||||
</span>
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
{section name=gp_list loop=$groups}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input name="check_group[]" type="checkbox" id="check_group" value="{$groups[gp_list].group_id}"/>
|
||||||
|
</td>
|
||||||
|
<td>{$groups[gp_list].group_id}</td>
|
||||||
|
<td>
|
||||||
|
<div class="videoTitle row">
|
||||||
|
<div class="col-md-10">
|
||||||
|
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" width="50" height="50"/>
|
||||||
|
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank"> {$groups[gp_list].group_name}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<td>
|
<div class="col-md-2">
|
||||||
<div id="vid_opt-{$groups[gp_list].group_id}" class="dropdown">
|
Owner <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong>
|
||||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions<i class="caret"></i></button>
|
</div>
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
</div>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="{group_link details=$groups[gp_list]}" target="_blank">View</a> </li>
|
</div>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_group.php?group_id={$groups[gp_list].group_id}">Edit</a></li>
|
<div class="labels">
|
||||||
{if $groups[gp_list].active == yes}
|
<span class="label">{if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</span>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?deactivate={$groups[gp_list].group_id}">Deactivate</a> {else}</li>
|
<span class="label"><span></span>{if $groups[gp_list].active=="yes"} Active{else}Inactive{/if}</span>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?activate={$groups[gp_list].group_id}">Activate</a> {/if} </li>
|
<span class="label {if $u.usr_status == Ok}label- {else}label-success{/if}"><span>Members</span>{$groups[gp_list].total_members|number_format}</span>
|
||||||
<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>
|
<span class="label label-info"><span>Flags</span> {$groups[gp_list].total_flags}</span>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_group={$groups[gp_list].group_id}">Delete</a></li>
|
</div>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?mode=view_flags&gid={$groups[gp_list].group_id}">View Flags</a></li>
|
</td>
|
||||||
<li class="divider"></li>
|
<td>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_flags={$groups[gp_list].group_id}">Delete Flags</a></li>
|
<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">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].featured == yes}
|
||||||
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?unfeature={$groups[gp_list].group_id}">Make
|
||||||
|
Unfeatured</a> {/if}
|
||||||
|
</li>
|
||||||
|
{if $groups[gp_list].featured == no}
|
||||||
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?feature={$groups[gp_list].group_id}">Make
|
||||||
|
Featured</a> {/if}
|
||||||
|
</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="?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</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{/section}
|
||||||
|
</table>
|
||||||
|
<div class="btn-group">
|
||||||
|
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" />
|
||||||
|
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" />
|
||||||
|
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete Groups" 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" onclick="return confirm_it('Are you sure you want to delete flags of selected group(s)')"/>
|
||||||
</div>
|
</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>
|
</form>
|
||||||
|
|
||||||
<!-- DIsplaying Videos Ends-->
|
<!-- DIsplaying Videos Ends-->
|
||||||
{include file="$style_dir/blocks/pagination.html" }
|
{include file="$style_dir/blocks/pagination.html" }
|
||||||
|
|
||||||
{/if}
|
{/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}
|
|
|
@ -1,25 +1,20 @@
|
||||||
<h2>Group Categories</h2>
|
<h2>Group Categories</h2>
|
||||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Manage Group Categories</td>
|
<td width="200">Manage Group Categories</td>
|
||||||
<td class="head"> </td>
|
|
||||||
<td width="100" class="right_head"> </td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_body"> </td>
|
<p class="alert alert-info">* are required fields</p>
|
||||||
<td align="right" class="td_body">* are required fields</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
|
||||||
{if $edit_category != "show"}
|
{if $edit_category != "show"}
|
||||||
|
|
||||||
<form action="group_category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
|
<form action="group_category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
|
||||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="block">
|
|
||||||
<tr>
|
|
||||||
<div class="form-group">
|
|
||||||
<tr>
|
<tr>
|
||||||
|
<div class="form-group">
|
||||||
<label>Category Name*</label>
|
<label>Category Name*</label>
|
||||||
<input type="text" id="name" name="name" class="form-control" value="{'name'|post_form_val}">
|
<input type="text" id="name" name="name" class="form-control" value="{'name'|post_form_val}">
|
||||||
</div>
|
</div>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Category Description*</label>
|
<label>Category Description*</label>
|
||||||
|
@ -29,12 +24,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Make Default Category</label>
|
<label>Make Default Category</label>
|
||||||
<br>
|
|
||||||
<input type="radio" name="default" id="default_0" value="yes" checked="checked">Yes
|
<input type="radio" name="default" id="default_0" value="yes" checked="checked">Yes
|
||||||
<input type="radio" name="default" id="default_1" value="no" >No
|
<input type="radio" name="default" id="default_1" value="no" >No
|
||||||
</div>
|
</div>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Category Thumb</label>
|
<label>Category Thumb</label>
|
||||||
|
@ -42,65 +35,62 @@
|
||||||
</div>
|
</div>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="btn btn-primary btn-sm btn-block"/></div></td>
|
<input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="btn btn-primary btn-sm btn-block"/></div>
|
||||||
</tr>
|
</tr>
|
||||||
|
</form>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
|
||||||
{/if}
|
{/if}
|
||||||
{if $edit_category == "show"}
|
{if $edit_category == "show"}
|
||||||
<form action="" method="post" enctype="multipart/form-data" name="edit_category" id="Edit Category">
|
<form action="" method="post" enctype="multipart/form-data" name="edit_category" id="Edit Category">
|
||||||
<input name="cid" value="{$cat_details.category_id}" type="hidden" />
|
<input name="cid" value="{$cat_details.category_id}" type="hidden" />
|
||||||
<input name="cur_name" value="{$cat_details.category_name}" type="hidden" />
|
<input name="cur_name" value="{$cat_details.category_name}" type="hidden" />
|
||||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
<table>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" class="td_body">Category Name*</td>
|
<td>Category Name*</td>
|
||||||
<td class="td_body"><label>
|
<td>
|
||||||
<input name="name" type="text" id="name" value="{$cat_details.category_name}" size="45" />
|
<label><input name="name" type="text" id="name" value="{$cat_details.category_name}" size="45" />
|
||||||
</label></td>
|
</label>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" class="td_body">Category Description*</td>
|
<td>Category Description*</td>
|
||||||
<td class="td_body"><textarea name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea></td>
|
<td><textarea name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" class="td_body">Make Default Category</td>
|
<td>Make Default Category</td>
|
||||||
<td class="td_body"><p>
|
<td>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="default" value="yes" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} />
|
<input type="radio" name="default" value="yes" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} />
|
||||||
Yes</label>
|
Yes</label>
|
||||||
<label>
|
<label>
|
||||||
<input name="default" type="radio" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if} />
|
<input name="default" type="radio" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if} />
|
||||||
No</label>
|
No</label>
|
||||||
<br />
|
</td>
|
||||||
</p></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_body">Category Thumb</td>
|
<td>Category Thumb</td>
|
||||||
<td class="td_body"><label>
|
<td>
|
||||||
<input type="file" name="cat_thumb" id="cat_thumb" />
|
<label> <input type="file" name="cat_thumb" id="cat_thumb" />
|
||||||
</label></td>
|
</label>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="right" class="tr_head"><label>
|
<td>
|
||||||
<input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
|
<label><input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
|
||||||
</label></td>
|
</label>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
|
<div>
|
||||||
|
|
||||||
<div style="margin:10px 0px 10px 0px">
|
|
||||||
<span class="page_title">Category List</span>
|
<span class="page_title">Category List</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{if $total != 0}
|
{if $total != 0}
|
||||||
<form name="category" action="?update_order" method="post">
|
<form name="category" action="?update_order" method="post">
|
||||||
<table table class="table table-bordered" width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
|
<table table class="table table-bordered" >
|
||||||
<tr>
|
<tr>
|
||||||
<td width="250" class="left_head" style="text-indent:10px">Category Name</td>
|
<td width="250" class="left_head" style="text-indent:10px">Category Name</td>
|
||||||
<td width="50" align="left" class="head">Order</td>
|
<td width="50" align="left" class="head">Order</td>
|
||||||
|
@ -109,7 +99,6 @@
|
||||||
<td width="150" class="head">Action</td>
|
<td width="150" class="head">Action</td>
|
||||||
<td width="20" align="left" class="right_head"> </td>
|
<td width="20" align="left" class="right_head"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
{assign var = bgcolor value = ""}
|
|
||||||
{section name=list loop=$category}
|
{section name=list loop=$category}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
cat_div = "#thumbs_{$category[list].category_id}";
|
cat_div = "#thumbs_{$category[list].category_id}";
|
||||||
|
@ -119,39 +108,32 @@ cat_div = "#thumbs_{$category[list].category_id}";
|
||||||
});
|
});
|
||||||
{/literal}
|
{/literal}
|
||||||
</script>
|
</script>
|
||||||
<tr bgcolor="{$bgcolor}" class="item_listing">
|
<tr>
|
||||||
<td style="text-indent:10px">{$category[list].category_name} - <a id="thumbs_{$category[list].category_id}" title="<img src='{$cbgroup->get_category_thumb($category[list])}' />" href="javascript:void(0)">View Thumb</a></td>
|
<td style="text-indent:10px">{$category[list].category_name} - <a id="thumbs_{$category[list].category_id}" title="<img src='{$cbgroup->get_category_thumb($category[list])}' />" href="javascript:void(0)">View Thumb</a>
|
||||||
<td >
|
</td>
|
||||||
<input name="category_order_{$category[list].category_id}" type="text" id="order" style="border:1px solid #999; padding:2px; width:30px" value="{$category[list].category_order}" size="5" maxlength="5" /></td>
|
<td>
|
||||||
|
<input name="category_order_{$category[list].category_id}" type="text" id="order" style="border:1px solid #999; padding:2px; width:30px" value="{$category[list].category_order}" size="5" maxlength="5" />
|
||||||
|
</td>
|
||||||
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
|
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
|
||||||
<td>{$category[list].isdefault}</td>
|
<td>{$category[list].isdefault}</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="lead dropdown">
|
<div class="lead dropdown">
|
||||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Options<i class="caret"></i></button>
|
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Options <i class="caret"></i></button>
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?category={$category[list].category_id}">Edit</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?category={$category[list].category_id}">Edit</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:Confirm_Delete('?delete_category={$category[list].category_id}')">Delete</a></li>
|
||||||
{if $category[list].isdefault!="yes"}<li role="presentation"><a role="menuitem" tabindex="-1" href="?make_default={$category[list].category_id}">Make Default</a></li>{/if}
|
{if $category[list].isdefault!="yes"}<li role="presentation"><a role="menuitem" tabindex="-1" href="?make_default={$category[list].category_id}">Make Default</a></li>{/if}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{if $bgcolor == ""}
|
|
||||||
{assign var = bgcolor value = "#EEEEEE"}
|
|
||||||
{else}
|
|
||||||
{assign var = bgcolor value = ""}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{/section}
|
{/section}
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<div><input type="submit" value="Update" name="update_order" class="btn btn-primary btn-sm" style="margin-top:10px" /></div>
|
<div><input type="submit" value="Update" name="update_order" class="btn btn-primary btn-sm" style="margin-top:10px" /></div>
|
||||||
</form>
|
</form>
|
||||||
{else}
|
{else}
|
||||||
No Category Has Been Created Yet
|
No Category Has Been Created Yet
|
||||||
{/if}
|
{/if}
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,153 +1,89 @@
|
||||||
<h2>Groups Manager</h2>
|
<h2>Groups Manager</h2>
|
||||||
|
{include file="$layout_dir/blocks/advanced_group_search.html" }
|
||||||
<img src="{$imageurl}/dot.gif" class="sarch_button" onclick="toggle_search('groupsearchdiv')" />
|
|
||||||
<div class="search_box" id="groupsearchdiv" {if $smarty.cookies.show_groupsearchdiv_search!='show'} style="display:none"{/if}> <form id="group_search" name="group_search" method="get" action="groups_manager.php" class="video_search">
|
|
||||||
<table width="400" border="0" cellpadding="2" cellspacing="2">
|
|
||||||
<tr>
|
|
||||||
<td width="106" align="right"><label for="title">Group title</label></td>
|
|
||||||
<td width="280"><input name="title" type="text" class="input" id="title" value="{'title'|get_form_val:true}" //></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><label for="groupid">Group id</label></td>
|
|
||||||
<td><input name="group_id" type="text" class="input" id="groupid" value="{'group_id'|get_form_val:true}" //></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><label for="tags">Group tags</label></td>
|
|
||||||
<td><input name="tags" type="text" class="input" id="tags" value="{'tags'|get_form_val:true}" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right">Featured</td>
|
|
||||||
<td><label for="featured"></label>
|
|
||||||
<select name="featured" id="featured" class="input">
|
|
||||||
<option value="" ></option>
|
|
||||||
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
|
|
||||||
<option value="no" {if $smarty.get.featured=='no'} selected="selected"{/if}>No</option>
|
|
||||||
</select></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right">Active</td>
|
|
||||||
<td><select name="active" id="active" class="input">
|
|
||||||
<option value="" ></option>
|
|
||||||
<option value="yes" {if $smarty.get.active=='yes'} selected="selected"{/if}>Yes</option>
|
|
||||||
<option value="no" {if $smarty.get.active=='no'} selected="selected"{/if}>No</option>
|
|
||||||
</select></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="right">Userid</td>
|
|
||||||
<td><input name="userid" type="text" class="input" id="userid" value="{'userid'|get_form_val:true}" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right" valign="top">Category</td>
|
|
||||||
<td>
|
|
||||||
{$formObj->createField($cat_array)}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<input type="submit" name="search" id="search" value="Search Form" class="button"/>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<form name="group_manage" method="post">
|
<form name="group_manage" method="post">
|
||||||
<table>
|
<div class="btn-group">
|
||||||
<tr>
|
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
|
||||||
<td>
|
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button"/>
|
||||||
<div class= "usersMenuButtons">
|
<input class="btn btn-primary btn-xs" type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
|
||||||
<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="make_unfeatured_selected" value="Make Unfeatured" 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" class="button"
|
||||||
<input class="btn btn-primary btn-xs" type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
|
onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
|
||||||
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
|
|
||||||
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
<table class="table table-bordered table-striped">
|
||||||
</tr>
|
<tr>
|
||||||
</table>
|
<td width="30">
|
||||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||||
<table class="table table-bordered">
|
<td width="50">GP-ID</td>
|
||||||
<tr>
|
<td class="head">Details</td>
|
||||||
<td width="30" align="center" valign="middle" class="left_head">
|
<td> </td>
|
||||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
</tr>
|
||||||
<td width="50" align="left" class="head">GP-ID</td>
|
{section name=gp_list loop=$groups}
|
||||||
<td class="head">Details</td>
|
<tr>
|
||||||
|
<td width="30" >
|
||||||
|
<input name="check_group[]" type="checkbox" id="check_group" value="{$groups[gp_list].group_id}"/>
|
||||||
|
</td>
|
||||||
|
<td width="50" >{$groups[gp_list].group_id}</td>
|
||||||
|
<td>
|
||||||
|
<div class="videoTitle row">
|
||||||
|
<div class="col-md-10">
|
||||||
|
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" width="50" height="50"/>
|
||||||
|
<a href="{$baseurl}/view_group.php?url={$groups[gp_list].group_url}" target="_blank"> {$groups[gp_list].group_name}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
Owner <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="labels">
|
||||||
|
<span class="label"><span>Members:</span>{$groups[gp_list].total_members|number_format}</span>
|
||||||
|
<span class="label {if $u.usr_status == Ok}label- {else}label-success{/if}"><span></span>{if
|
||||||
|
$groups[gp_list].active=="yes"} Active{else}Inactive{/if}</span>
|
||||||
|
<span class="label label-info"> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div id="vid_opt-{$groups[gp_list].group_id}" class="dropdown">
|
||||||
|
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle pull-right"
|
||||||
|
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].featured == yes}
|
||||||
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?unfeature={$groups[gp_list].group_id}">Make
|
||||||
|
Unfeatured</a> {/if}
|
||||||
|
</li>
|
||||||
|
{if $groups[gp_list].featured == no}
|
||||||
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?feature={$groups[gp_list].group_id}">Make
|
||||||
|
Featured</a> {/if}
|
||||||
|
</li>
|
||||||
|
|
||||||
</tr>
|
{if $groups[gp_list].active == yes}
|
||||||
</table>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?deactivate={$groups[gp_list].group_id}">Deactivate</a>
|
||||||
|
{else}
|
||||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
</li>
|
||||||
<table class="table table-bordered">
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?activate={$groups[gp_list].group_id}">Activate</a>
|
||||||
{assign var = bgcolor value = ""}
|
{/if}
|
||||||
{section name=gp_list loop=$groups}
|
</li>
|
||||||
<tr class="video_opt_td">
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="{$baseurl}/manage_groups.php?mode=manage_videos&gid={$groups[gp_list].group_id}">Manage</a>
|
||||||
<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>
|
</li>
|
||||||
<td width="50" align="left" valign="top" class="video_opt_td">{$groups[gp_list].group_id}</td>
|
<li class="divider"></li>
|
||||||
<td valign="top" class="video_opt_td" >
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_group={$groups[gp_list].group_id}">Delete</a>
|
||||||
|
</li>
|
||||||
<div style="float:left; width:60px; height:40px;" >
|
</ul>
|
||||||
<img src="{$cbgroup->get_group_thumb($groups[gp_list])}" border="1" class="mid_user_thumb" width="50" height="50" />
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/section}
|
||||||
|
</table>
|
||||||
|
<div class="btn-group">
|
||||||
|
<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="make_featured_selected" value="Make Featured" class="button"/>
|
||||||
|
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
|
||||||
|
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
|
||||||
</div>
|
</div>
|
||||||
<div style="position:relative; min-height: 25px">
|
|
||||||
<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>
|
|
||||||
<div class="col-md-2" style="float:right; width:60px; height:40px;" >
|
|
||||||
Owner <a href="view_user.php?uid={$groups[gp_list].userid}">{$groups[gp_list].userid|get_username}</a></strong>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="position:relative; min-height: 25px">
|
|
||||||
<div class="videoTitle row">
|
|
||||||
<span class="label"><span>Members:</span><strong>{$groups[gp_list].total_members|number_format}</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> </li></span>
|
|
||||||
<span class="label label-info"><strong> {if $groups[gp_list].group_privacy =="0"}Public{elseif $groups[gp_list].group_privacy =="1"}Private{else}Invited{/if}</strong> </li></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].featured == yes}
|
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?unfeature={$groups[gp_list].group_id}">Make Unfeatured</a> {/if} </li>
|
|
||||||
{if $groups[gp_list].featured == no}
|
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?feature={$groups[gp_list].group_id}">Make Featured</a> {/if}</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 class="divider"></li>
|
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?delete_group={$groups[gp_list].group_id}">Delete</a></li>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
{if $bgcolor == ""}
|
|
||||||
{assign var = bgcolor value = "#EEEEEE"}
|
|
||||||
{else}
|
|
||||||
{assign var = bgcolor value = ""}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{/section}
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
<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="make_featured_selected" value="Make Featured" class="button"/>
|
|
||||||
<input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
|
|
||||||
<input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected Groups(s)')"/>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{include file="$style_dir/blocks/pagination.html" }
|
{include file="$style_dir/blocks/pagination.html" }
|
Loading…
Add table
Reference in a new issue