440 lines
16 KiB
Smarty
440 lines
16 KiB
Smarty
{include file='header.tpl'}
|
|
{literal}<style>.photo{max-width: 50px;}
|
|
#clubhiddenbuttons{display:none; margin-top: 10%;}
|
|
</style>{/literal}
|
|
|
|
|
|
{* $Id: user_club_edit_members.tpl 34 2009-01-24 04:17:28Z john $ *}
|
|
|
|
|
|
|
|
|
|
<!-- <link rel="stylesheet" href="interesttags.css"> for future interest tagging system (pick your iterests) -->
|
|
|
|
<link rel="stylesheet" href="/sam/club_admin/style.css?s=15">
|
|
|
|
<link rel="stylesheet" href="/sam/club_admin/results.css">
|
|
<link rel="stylesheet" href="/sam/club_admin/profiles.css">
|
|
{* $Id: user_club_edit_settings.tpl 34 2009-01-24 04:17:28Z john $ *}
|
|
|
|
|
|
<div class="search">
|
|
|
|
<div class="nav-bar">
|
|
<a href=user_club_edit.php?club_id={$club->club_info.club_id}">Club details</a>
|
|
<a href="user_club_edit_members.php?club_id={$club->club_info.club_id}" class="active">Members</a>
|
|
<a href="user_club_edit_settings.php?club_id={$club->club_info.club_id}" >Club settings</a>
|
|
<a href="club_album.php?club_id={$club->club_info.club_id}" >Edit photos</a>
|
|
<a href="editclubvideos.php?club_id={$club->club_info.club_id}" >Edit videos</a>
|
|
<a href="club_event.php?club_id={$club->club_info.club_id}" >Edit events</a>
|
|
</div>
|
|
|
|
<div class="nav-bar-mobile">
|
|
<select class="mb10 form-control form-custom tabdropdown" id="tab_selector" onchange="window.location.href=this.value" fdprocessedid="qkqhxm">
|
|
|
|
<option value="user_club_edit.php?club_id={$club->club_info.club_id}" style="color:white;" 0="" videos="">Club details</option>
|
|
<option value="user_club_edit_members.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" groups="" selected="selected">Members</option>
|
|
<option value="user_club_edit_settings.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" blog="" entries="" >Club settings</option>
|
|
<option value="club_album.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" forum="" posts="">Edit photos</option>
|
|
<option value="editclubvideos.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" polls="">Edit videos</option>
|
|
<option value="club_event.php?club_id={$club->club_info.club_id}" disabled="" style="color:white;" 0="" groups="">Edit events</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="title_card">
|
|
|
|
<div class="title_info">
|
|
<h2>
|
|
Browse Members: {capture assign="linked_clubname"}<a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}'>{$club->club_info.club_title|truncate:30:"...":true}</a>{/capture}{$linked_clubname}</h2>
|
|
<p>
|
|
Use this page to list or search for group members.
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="title_buttons">
|
|
<a href="https://bateworld.com/club.php?club_id=9" class="buttonlink">Back to my club</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<br>
|
|
|
|
<div class="clubs_form">
|
|
|
|
<div class="clubs_form_filters">
|
|
|
|
<div class="club_textboxes">
|
|
<div class="title_info">Search: </div>
|
|
<form action='user_club_edit_members.php' method='post' class="club_search">
|
|
<div class="club_search">
|
|
<input type="text" class="text form-control" size="15" name="field_27" value="" maxlength="100" fdprocessedid="t4zk3d"> <input type='hidden' name='p' value='{$p}'><input type='hidden' name='s' value='{$s}'><input type='hidden' name='v' value='{$v}'> <input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
<button type="submit">Search</button>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
<br>
|
|
<div class="title_info"><a href="user_club_invite.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal">Invite new members</a> </div>
|
|
{if $club->club_info.importused==0}<div class="title_info"><a href="user_club_import.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal">Import group members</a> </div>{/if}
|
|
<div id="clubhiddenbuttons">
|
|
{if $v==3}<button class="reset_button" style="margin-right:5px;" name="task" type="submit" value="Approve Selected" onclick="document.getElementById('taskInput').value='Approve Selected'; document.getElementById('memberform').submit();">Approve Selected</button>{/if}
|
|
{if $v==3}<button class="reset_button" name="task" type="submit" value="Delete Selected" onclick="document.getElementById('taskInput').value='Delete Selected'; document.getElementById('memberform').submit();">Delete Selected</button>{/if}
|
|
{if $v==2}<button class="reset_button" style="margin-right:5px;" name="task" type="submit" value="Cancel Checked" onclick="document.getElementById('taskInput').value='Approve Selected'; document.getElementById('memberform').submit();">Cancel Selected</button>
|
|
{/if}
|
|
|
|
{if $v==0}<button class="reset_button" name="task" type="submit" value="Delete Selected" onclick="document.getElementById('taskInput').value='Remove Checked'; document.getElementById('memberform').submit();">Delete Selected</button>{*<input type="submit" name="task" value="Remove Checked">*}{/if}
|
|
{* <button class="reset_button" style="margin-right:5px;" name="task" type="submit" value="Approve Selected" onclick="document.getElementById('taskInput').value='Approve Selected'; document.getElementById('memberform').submit();">Approve Selected</button>
|
|
<button class="reset_button" name="task" type="submit" value="Delete Selected" onclick="document.getElementById('taskInput').value='Delete Selected'; document.getElementById('memberform').submit();">Delete Selected</button>*}
|
|
</div>
|
|
<div class="club_form_members_filters">
|
|
|
|
<div class="sortby mobile ">
|
|
<div style="font-weight: bold; ">
|
|
|
|
<select name='v' class='form-control' onChange="window.location.href='user_club_edit_members.php?club_id={$club->club_info.club_id}&search={$search}&s={$s}&v='+this.options[this.selectedIndex].value;" style="background-color: red;color: white;border: none;">
|
|
|
|
{if $club->club_info.club_approval}<option value='3'{if $v == 3} selected='selected'{/if}>{lang_print id=2000175}</option>{/if}
|
|
|
|
<option value='2'{if $v == 2} selected='selected'{/if}>{lang_print id=2000103}</option>
|
|
|
|
<option value='0'{if $v == 0} selected='selected'{/if}>{lang_print id=2000169}</option>
|
|
|
|
<option value='1'{if $v == 1} selected='selected'{/if}>{lang_print id=2000170}</option>
|
|
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="sortby mobile ">
|
|
<div style="font-weight: bold; ">
|
|
<select name='s' class=' form-control' onChange="window.location.href='user_club_edit_members.php?club_id={$club->club_info.club_id}&search={$search}&v={$v}&s='+this.options[this.selectedIndex].value;" style="background-color: red;color: white;border: none;">
|
|
|
|
<option value='{$u}'{if $s == "ud"} selected='selected'{/if}>{lang_print id=901}</option>
|
|
|
|
<option value='{$l}'{if $s == "ld"} selected='selected'{/if}>{lang_print id=902}</option>
|
|
|
|
<option value='{$t}'{if $s == "t"} selected='selected'{/if}>{lang_print id=2000172}</option>
|
|
|
|
<option value='{$r}'{if $s == "r"} selected='selected'{/if}>{lang_print id=2000173}</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<br>
|
|
|
|
|
|
<div class="club_form_members">
|
|
|
|
<div class="club_form_members_filters">
|
|
<div class="checkbox_">
|
|
<input type="checkbox" id="checkAll" onclick="changecheck();">
|
|
<div class="checkbox_names">Select All</div>
|
|
</div>
|
|
<div class="sortby desktop ">
|
|
<div style="font-weight: bold; ">
|
|
|
|
<select name='v' class='form-control' onChange="window.location.href='user_club_edit_members.php?club_id={$club->club_info.club_id}&search={$search}&s={$s}&v='+this.options[this.selectedIndex].value;">
|
|
|
|
{if $club->club_info.club_approval}<option value='3'{if $v == 3} selected='selected'{/if}>{lang_print id=2000175}</option>{/if}
|
|
|
|
<option value='2'{if $v == 2} selected='selected'{/if}>{lang_print id=2000103}</option>
|
|
|
|
<option value='0'{if $v == 0} selected='selected'{/if}>{lang_print id=2000169}</option>
|
|
|
|
<option value='1'{if $v == 1} selected='selected'{/if}>{lang_print id=2000170}</option>
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="sortby desktop ">
|
|
<div style="font-weight: bold; ">
|
|
<select name='s' class=' form-control' onChange="window.location.href='user_club_edit_members.php?club_id={$club->club_info.club_id}&search={$search}&v={$v}&s='+this.options[this.selectedIndex].value;">
|
|
|
|
<option value='{$u}'{if $s == "ud"} selected='selected'{/if}>{lang_print id=901}</option>
|
|
|
|
<option value='{$l}'{if $s == "ld"} selected='selected'{/if}>{lang_print id=902}</option>
|
|
|
|
<option value='{$t}'{if $s == "t"} selected='selected'{/if}>{lang_print id=2000172}</option>
|
|
|
|
<option value='{$r}'{if $s == "r"} selected='selected'{/if}>{lang_print id=2000173}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<br>
|
|
<form action="user_club_edit_members.php?club_id={$club->club_info.club_id}&search={$search}&s={$s}&v={$v}" method="post" id="memberform">
|
|
<div class="club_form_members_list">
|
|
<input type="hidden" name="task" id="taskInput" />
|
|
|
|
<div class="groups_grid">
|
|
|
|
|
|
<div class="results_grid">
|
|
|
|
{section name=member_loop loop=$members}
|
|
{capture assign='member_rank'}{if $members[member_loop].clubmember_rank == 2}{lang_print id=2000179}{elseif $members[member_loop].clubmember_rank == 1 && $club->clubowner_level_info.level_club_officers == 1}{lang_print id=2000180}{else}{lang_print id=2000181}{/if}{/capture}
|
|
|
|
<div class="results {if $member_rank=='Owner' || $member_rank=='Staff'}club{/if}">
|
|
<div class="post_picture">
|
|
|
|
<img src="{$imagecdn1}{$url->url_userdir($members[member_loop].member->user_info.user_id)}{$members[member_loop].member->user_info.user_photo}" alt="profilepic" class="member_image" onerror="this.src='{$IMAGECDN}/images/nophoto.png'">
|
|
</div>
|
|
<div class="post_information">
|
|
{if $members[member_loop].member->user_info.user_id != $user->user_info.user_id}
|
|
<div class="checkbox_">
|
|
<input type="checkbox" class="delete" name="selected[]" value="{$members[member_loop].clubmember_id}">
|
|
</div>{/if}
|
|
|
|
<a href='user_club_edit_member.php?club_id={$club->club_info.club_id}&clubmember_id={$members[member_loop].clubmember_id}' data-toggle="modal" data-target="#myModal">
|
|
Edit Details
|
|
</a>
|
|
{if $club->club_info.membershipid==1}
|
|
|
|
Membership ID: {$members[member_loop].membership_id}
|
|
{/if}
|
|
|
|
|
|
<div class="club_member_details">
|
|
<div class="club_member_info"><a href='{$url->url_create('profile', $members[member_loop].member->user_info.user_username)}'>{$members[member_loop].member->user_info.user_username}</a></div>
|
|
|
|
{if $members[member_loop].clubmember_approved == 1 && $members[member_loop].clubmember_status == 1}
|
|
|
|
|
|
|
|
<div class="club_member_info">{if $members[member_loop].clubmember_title != "" && $club->clubowner_level_info.level_club_titles == 1}{lang_sprintf id=2000182 1=$member_rank 2=$members[member_loop].clubmember_title}{else}{lang_sprintf id=2000178 1=$member_rank}{/if}</div>
|
|
|
|
{/if}
|
|
{if $members[member_loop].member->user_info.user_dateupdated != "0"}
|
|
|
|
<div class='club_member_info'>{lang_print id=2000183} {assign var="user_dateupdated" value=$datetime->time_since($members[member_loop].member->user_info.user_dateupdated)}{lang_sprintf id=$user_dateupdated[0] 1=$user_dateupdated[1]}</div>
|
|
|
|
{/if}
|
|
|
|
{if $members[member_loop].member->user_info.user_lastlogindate != "0"}
|
|
|
|
<div class='club_member_info'>{lang_print id=906} {assign var="user_lastlogindate" value=$datetime->time_since($members[member_loop].member->user_info.user_lastlogindate)}{lang_sprintf id=$user_lastlogindate[0] 1=$user_lastlogindate[1]}</div>
|
|
|
|
{/if}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{/section}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<script src="/sam/club_admin/hidecode_copy.js?s=3"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
{literal}
|
|
|
|
function changecheck(){
|
|
|
|
|
|
|
|
if (jQuery('#checkAll').is(':checked')) {
|
|
|
|
jQuery('.delete').prop('checked',true);
|
|
|
|
} else {
|
|
|
|
jQuery('.delete').prop('checked', false);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
{/literal}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $maxpage > 1}
|
|
|
|
<div class='browse_pages'>
|
|
|
|
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?club_id={$club->club_info.club_id}&s={$s}&v={$v}&search={$search}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?club_id={$club->club_info.club_id}&s={$s}&v={$v}&search={$search}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
|
|
| {foreach from=$for item=foo}
|
|
|
|
<a href='{$smarty.server.PHP_SELF}?club_id={$club->club_info.club_id}&s={$s}&v={$v}&search={$search}&p={$foo}'>{$foo}</a>
|
|
|
|
{/foreach} |
|
|
|
|
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?club_id={$club->club_info.club_id}&s={$s}&v={$v}&search={$search}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?club_id={$club->club_info.club_id}&s={$s}&v={$v}&search={$search}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
|
|
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
|
|
|
{lang_sprintf id=184 1=$p_start 2=$total_members}
|
|
|
|
{else}
|
|
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_members}
|
|
|
|
{/if}</span><br />
|
|
|
|
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* JAVASCRIPT FOR CONFIRMING DELETION *}
|
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
var clubmember_id = 0;
|
|
|
|
function confirmDelete(id) {
|
|
|
|
clubmember_id = id;
|
|
|
|
opendivmodal('confirmdelete');
|
|
|
|
}
|
|
|
|
|
|
|
|
function removeUser() {
|
|
|
|
{/literal}window.location = 'user_club_edit_members.php?task=remove&club_id={$club->club_info.club_id}&s={$s}&v={$v}&search={$search}&p={$p}&clubmember_id='+clubmember_id;{literal}
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
{* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
|
|
|
|
<div style='display: none;' id='confirmdelete'>
|
|
|
|
<div style='margin-top: 10px;'>{lang_print id=2000191}</div>
|
|
|
|
<br>
|
|
|
|
<input type='button' class='button' value='{lang_print id=2000185}' onClick='parent.removeUser();closemodal();'>
|
|
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{include file='footer.tpl'} |