2012-07-25 21:32:48 +00:00
< h2 > {lang code='Manage members'}< / h2 >
Manage your members here, read more about managing members here. {*@todo:Put guide link here*}
< div class = "height10" > < / div >
< div class = "manager-list" >
< div class = "controller scrolltoFixed white-grad" >
< div class = "buttons" >
< div class = "btn-toolbar" >
< div class = "btn-group" >
< label class = "btn check-all" > < input type = "checkbox" > < / label >
< / div >
< div class = "btn-group " >
< a class = "btn" onclick = "return false;" > Activate< / a >
< a class = "btn" onclick = "return false;" > Deactivate< / a >
< a class = "btn dropdown-toggle" data-toggle = "dropdown" > More options < i class = "caret" > < / i > < / a >
< ul class = "dropdown-menu pull-right" >
< li > < a href = "#" > Make Featured< / a > < / li >
< li > < a href = "#" > Un-feature< / a > < / li >
< li > < a href = "#" > Ban< / a > < / li >
< li > < a href = "#" > Remove ban< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Delete< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "right-button" >
< form >
< input class = "input valignTop" name = "title" value = "{'title'|get}" >
< button class = "btn btn-primary" name = "search" value = "do" >
< i class = "icon-search icon-white" > < / i >
Search
< / button >
< a class = "btn" data-toggle = "modal" data-target = "#advance-search-modal" > Advance Search< / a >
< / form >
< / div >
< / div >
< / div >
< form name = "manage-members-form" method = "post" id = "manage-members-form" >
< table id = "manage-members-list" class = "table table-striped list-block {if !$profiles}display-none{/if}" >
< thead >
< tr >
< th width = "50" > < / th >
< th width = "70" > #< / th >
< th width = "70" > Order< / th >
< th > Name< / th >
< th width = "70" > Active< / th >
< th width = "200" > More Options< / th >
< th width = "120" > < / th >
< / tr >
< / thead >
< tbody >
{* Start Loop Here *}
< tr >
< td > < input type = "checkbox" class = "check-item" name = "my-items-list[]" value = "value" > < / td >
< td > ID< / td >
< td > < input type = "text" value = "1" name = "item_order[item_id]"
class="input-order"/>< / td >
< td > Name< / td >
< td > Status etc< / td >
< td > More etc< / td >
< td > Actions or buttons< / td >
< / tr >
{* End Loop Here *}
< / tbody >
< / table >
< / form >
< / div >
2012-04-28 20:11:43 +00:00
< span class = "page_title" > Member Manager< / span >
< img src = "{$imageurl}/dot.gif" class = "sarch_button" onclick = "toggle_search('memsearchdiv')" / >
< div class = "search_box" id = "memsearchdiv" { if $ smarty . cookies . show_memsearchdiv_search ! = ' show ' } style = "display:none" { / if } > < form id = "user_search" name = "user_search" method = "get" action = "members.php" class = "video_search" >
< table width = "400" border = "0" cellpadding = "2" cellspacing = "2" >
< tr >
< td width = "106" align = "right" > Userid< / td >
< td width = "280" > < input name = "userid" type = "text" class = "input" id = "userid" value = "{'userid'|get_form_val:true}" / / > < / td >
< / tr >
< tr >
< td align = "right" > Username< / td >
< td > < input name = "username" type = "text" class = "input" id = "username" value = "{'username'|get_form_val:true}" / / > < / td >
< / tr >
< tr >
< td align = "right" > Email< / td >
< td > < input name = "email" type = "text" class = "input" id = "email" value = "{'email'|get_form_val:true}" / / > < / td >
< / tr >
< tr >
< td align = "right" > Status< / td >
< td > < select name = "status" id = "status" class = "input" >
< option value = "" > < / option >
< option value = "Ok" { if $ smarty . get . status = ='Ok'} selected = "selected" { / if } > OK< / option >
< option value = "ToActivate" { if $ smarty . get . status = ='ToActivate'} selected = "selected" { / if } > Inactive< / option >
< / select > < / td >
< / tr >
< tr >
< td align = "right" > Banned< / td >
< td >
< select name = "ban" id = "ban" class = "input" >
< option value = "" > < / option >
< option value = "yes" { if $ smarty . get . ban = ='yes'} selected = "selected" { / if } > Yes< / option >
< option value = "no" { if $ smarty . get . ban = ='no'} selected = "selected" { / if } > No< / option >
< / select > < / td >
< / tr >
< tr >
< td align = "right" > Featured< / td >
< td > < 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" >
Level
< / td >
< td >
< select name = "level" id = "level" class = "input" >
< option value = "" > ------< / option >
{assign var=levels value=$userquery->get_levels()}
{foreach from=$levels item=level}
< option value = "{$level.user_level_id}" { if $ smarty . get . level = =$level.user_level_id} selected = "selected" { / if } > {$level.user_level_name}< / option >
{/foreach}
< / select >
< / td >
< 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 >
<!-- Displaying Members -->
< form name = "user_manage" method = "post" >
< table width = "100%" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< tr >
< td width = "30" align = "center" valign = "middle" > < img src = "{$imageurl}/arrow_return.png" width = "25" height = "25" > < / td >
< td height = "50" style = "padding-left:15px" >
< input type = "submit" name = "activate_selected" value = "Activate" class = "button" / >
< input type = "submit" name = "deactivate_selected" value = "Deactivate" class = "button" / >
< input type = "submit" name = "make_featured_selected" value = "Make Featured" class = "button" / >
< input type = "submit" name = "ban_selected2" value = "Make Unfeatured" class = "button" id = "ban_selected2" / >
< input type = "submit" name = "ban_selected" value = "Ban Selected" class = "button" id = "ban_selected" / >
< input type = "submit" name = "unban_selected" value = "Unban Selected" class = "button" id = "unban_selected" / >
< input type = "submit" name = "delete_selected" value = "Delete" class = "button" onclick = "return confirm_it('Are you sure you want to delete selected video(s)')" / >
< / td >
< / tr >
< / table >
< table width = "100%" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< 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" > UID< / td >
< td class = "head" > User Details< / td >
< td width = "50" class = "right_head" > < / td >
< / tr >
< / table >
{if $users}
< table width = "100%" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
{foreach from=$users item=u}
< tr class = "video_opt_td" bgcolor = "{$bgcolor}" >
< td width = "40" align = "center" valign = "top" class = "video_opt_td" > < input name = "check_user[]" type = "checkbox" id = "check_user" value = "{$u.userid}" / > < / td >
< td width = "50" align = "left" valign = "top" class = "video_opt_td" > {$u.userid}< / td >
< td valign = "top" class = "video_opt_td"
onmouseover="$('#usr_opt-{$u.userid}').show()"
onmouseout="$('#usr_opt-{$u.userid}').hide()" >
< div style = "float:left; width:35px;" > < img src = "{$userquery->getUserThumb($u,'small')}" class = "mid_user_thumb" / > < / div >
< a href = "{$userquery->profile_link($u)}" target = "_blank" style = "text-indent:10px" >
{$u.username}
< / a > —
< span class = "vdo_sets" > Email:< strong > < span style = "text-transform:none" > {$u.email}< / span > < / strong > •
Status:< strong > {$u.usr_status}< / strong > •
Level:< strong > {$u.level|get_user_level}< / strong > •
Last Active:< strong > {$u.last_active}< / strong >
< / span >
< br / >
< div id = "usr_opt-{$u.userid}" class = "vid_opts" style = "display:none" >
< a href = "view_user.php?uid={$u.userid}" > View< / a > or
< a href = "view_user.php?uid={$u.userid}" > Edit< / a > |
{if $u.usr_status == Ok}
< a href = "?deactivate={$u.userid}" > Deactivate< / a >
{elseif $u.usr_status == ToActivate}
< a href = "?activate={$u.userid}" > Activate< / a >
{/if} |
{if $u.ban_status == yes}
< a href = "?unban={$u.userid}" > Unban Member< / a >
{/if}
{if $u.ban_status == no}
< a href = "?ban={$u.userid}" > Ban Member< / a >
{/if}|
{if $u.featured != Yes}
< a href = "?featured={$u.userid}" > Feature Member< / a >
{/if}
{if $u.featured == Yes}
< a href = "?unfeatured={$u.userid}" > Unfeature Member< / a >
{/if}|
< a href = "login_as_user.php?uid={$u.userid}" > Login as user< / a > | < a href = "?deleteuser={$u.userid}" > Delete< / a >
< / div >
< / 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}
{/foreach}
< / table >
{else}
< div align = "center" > < strong > < em > NO USER FOUND< / em > < / strong > < / div >
{/if}
< table width = "100%" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< tr >
< td width = "30" align = "center" valign = "middle" > < img src = "{$imageurl}/arrow_return_invert.png" width = "25" height = "25" > < / td >
< td height = "50" style = "padding-left:15px" >
< input type = "submit" name = "activate_selected" value = "Activate" class = "button" / >
< input type = "submit" name = "deactivate_selected" value = "Deactivate" class = "button" / >
< input type = "submit" name = "make_featured_selected" value = "Make Featured" class = "button" / >
< input type = "submit" name = "ban_selected2" value = "Make Unfeatured" class = "button" id = "ban_selected2" / >
< input type = "submit" name = "ban_selected" value = "Ban Selected" class = "button" id = "ban_selected" / >
< input type = "submit" name = "unban_selected" value = "Unban Selected" class = "button" id = "unban_selected" / >
< input type = "submit" name = "delete_selected" value = "Delete" class = "button" onclick = "return confirm_it('Are you sure you want to delete selected video(s)')" / >
< / td >
< / tr >
< / table >
< / form >
<!-- DIsplaying Videos Ends -->
{include file="$style_dir/blocks/pagination.html" }