Files
Testing/templates/user_club_edit_member.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

114 lines
4.2 KiB
Smarty

{include file='header_popup.tpl'}
{literal}<style>
.modal-content{background:black;}
</style>
<script src="/include/js/jquery.form.js"></script>
<script>
jQuery('#form1').ajaxForm({
success: function(){
jQuery('#form_div').hide();
jQuery('#success_div').show();
setTimeout(closemodal, 5000);
}
}); </script>
{/literal}
{* $Id: user_club_edit_member.tpl 10 2009-01-11 06:03:42Z john $ *}
{* SHOW CONFIRMATION OF MEMBER EDITING *}
{if $result != 0}
{* JAVASCRIPT FOR CLOSING BOX *}
{literal}
<script type="text/javascript">
<!--
setTimeout("window.parent.location.reload(true);", "1000");
//-->
</script>
{/literal}
<br><div>{lang_print id=$result}</div>
{* SHOW FORM FOR EDITING MEMBER INFO *}
{else}
<div id="success_div">Member Updated</div>
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
<form action='user_club_edit_member.php' method='post' id="form1">
<table cellpadding='0' cellspacing='0'>
{* SHOW MEMBER TITLE FIELD IF ALLOWED BY ADMIN *}
{if $club->clubowner_level_info.level_club_titles == 1}
<tr>
<td align='right' nowrap='nowrap'>{lang_print id=2000192}&nbsp;</td>
<td><input type='text' name='member_title' class='text form-control' size='40' maxlength='50' value='{$clubmember_info.clubmember_title}'></td>
</tr>
{/if}
<tr>
<td align='right' nowrap='nowrap' style='padding-top: 5px;'>Membership ID:&nbsp;</td>
<td style='padding-top: 5px;'><input type='text' name='membership_id' class='text form-control' size='40' maxlength='50' value='{$clubmember_info.membership_id}'></td>
</tr>
{* SHOW MEMBER RANK FIELD *}
{if $club->user_rank == 2}
<tr>
<td align='right' nowrap='nowrap' style='padding-top: 5px;'>{lang_print id=2000193}&nbsp;</td>
<td style='padding-top: 5px;'>
<select name='member_rank' id='member_rank' onChange="{literal}if($('warning')) { if(this.options[this.selectedIndex].value == 2) { $('warning').style.display = 'block'; } else { $('warning').style.display = 'none'; }}{/literal}" class='club_select text form-control'>
{if $clubmember_info.clubmember_rank == 2}
<option value='2'{if $clubmember_info.clubmember_rank == 2} selected='selected'{/if}>{lang_print id=2000179}</option>
{else}
<option value='0'{if $clubmember_info.clubmember_rank == 0} selected='selected'{/if}>{lang_print id=2000181}</option>
{if $club->clubowner_level_info.level_club_officers == 1}<option value='1'{if $clubmember_info.clubmember_rank == 1} selected='selected'{/if}>{lang_print id=2000180}</option>{/if}
<option value='2'{if $clubmember_info.clubmember_rank == 2} selected='selected'{/if}>{lang_print id=2000179}</option>
{/if}
</select>
</td>
</tr>
{/if}
{* SHOW INSTRUCTIONS IF EDITING OWNER *}
{if $clubmember_info.clubmember_rank == 2}
<tr>
<td>&nbsp;</td>
<td><div class='form_desc' style='padding: 10px 0px 10px 0px;'>
You are currently the club owner. If you want to give your ownership to another member, find them on the <a href="user_club_edit_members.php?club_id={$club->club_info.club_id}" target="_parent">Club Members</a> page and edit their membership. When you make them the club owner, you will be demoted to the rank of club member.
</div></td>
</tr>
{* SHOW WARNING MESSAGE IF USER IS ABOUT TO TRANSFER OWNERSHIP *}
{else}
<tr>
<td>&nbsp;</td>
<td><div id='warning' class='form_desc' style='display: none;'>{lang_print id=2000195}</div></td>
</tr>
{/if}
<tr>
<td>&nbsp;</td>
<td>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<input type='submit' class='button' value='{lang_print id=173}'>&nbsp;
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
<input type='hidden' name='clubmember_id' value='{$clubmember_info.clubmember_id}'>
<input type='hidden' name='task' value='save_do'>
</td>
<td>
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal()'>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</body>
</html>