267 lines
7.6 KiB
Smarty
267 lines
7.6 KiB
Smarty
{include file='header_modal.tpl'}
|
|
{literal}
|
|
<script src="/include/js/jquery.form.js"></script>
|
|
|
|
<style>.modal-content{background:black;}</style>
|
|
<script>
|
|
jQuery('#form1').ajaxForm({
|
|
success: function(){
|
|
jQuery('#form_div').hide();
|
|
jQuery('#success_div').show();
|
|
setTimeout(closemodal, 5000);
|
|
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
jQuery('#form3').ajaxForm({
|
|
success: function(){
|
|
jQuery('#form_div').hide();
|
|
jQuery('#success_div').show();
|
|
setTimeout(closemodal, 2000);
|
|
location.reload();
|
|
|
|
}
|
|
});
|
|
jQuery('#form2').ajaxForm({
|
|
success: function(){
|
|
jQuery('#form_div').hide();
|
|
jQuery('#reject_div').show();
|
|
setTimeout(closemodal, 2000);
|
|
location.reload();
|
|
|
|
}
|
|
});
|
|
|
|
jQuery('#form4').ajaxForm({
|
|
success: function(){
|
|
closemodal();
|
|
|
|
}
|
|
});
|
|
</script>
|
|
{/literal}
|
|
{* $Id: user_club_manage.tpl 10 2009-01-11 06:03:42Z john $ *}
|
|
|
|
{* SHOW CONFIRMATION OF JOINING/LEAVING club *}
|
|
{if $task=="blockclub"}
|
|
{if $user->blocked_club($club->club_info.club_id)}
|
|
<div id='success_div' style='display: none;'><br>Successfully Unblocked</div>
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
Are you sure you want to unblock this club? This will allow them to send you invites.
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td colspan='2'> </td></tr>
|
|
<tr>
|
|
<td colspan='2'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<form action='user_club_manage.php' method='POST' id="form3">
|
|
<input type='submit' class='button' value='Unblock this club'>
|
|
<input type='hidden' name='task' value='unblockclubconfirm'>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
<form action='user_club_manage.php' method='POST' id="form4">
|
|
<input type='submit' class='button' value='Cancel'>
|
|
<input type='hidden' name='task' value=''>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{else}
|
|
<div id='success_div' style='display: none;'><br>Successfully Blocked</div>
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
Are you sure you want to block this club? This will prevent them from sending you invites.
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td colspan='2'> </td></tr>
|
|
<tr>
|
|
<td colspan='2'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<form action='user_club_manage.php' method='POST' id="form3">
|
|
<input type='submit' class='button' value='Block this club'>
|
|
<input type='hidden' name='task' value='blockclubconfirm'>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
<form action='user_club_manage.php' method='POST' id="form4">
|
|
<input type='submit' class='button' value='Cancel'>
|
|
<input type='hidden' name='task' value=''>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
{elseif $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 WAITING FOR CONFIRMATION PAGE *}
|
|
{elseif $subpage == "waiting"}
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;'>
|
|
{lang_print id=2000207}
|
|
|
|
<br>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td colspan='2'> </td></tr>
|
|
<tr>
|
|
<td colspan='2'>
|
|
<input type='button' class='button' value='{lang_print id=641}' onClick='closemodal();'>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
{* SHOW ACCEPT/REJECT INVITE PAGE *}
|
|
{elseif $subpage == "confirm"}
|
|
|
|
<div id='success_div1' style='display: none;'><br>Successfully Confirmed</div>
|
|
<div id='reject_div' style='display: none;'><br>Successfully Rejected</div>
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
{lang_print id=2000204}
|
|
|
|
<br>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td colspan='2'> </td></tr>
|
|
<tr>
|
|
<td colspan='2'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<form action='user_club_manage.php' method='POST' id="form3">
|
|
<input type='submit' class='button' value='{lang_print id=2000205}'>
|
|
<input type='hidden' name='task' value='accept_do'>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
<form action='user_club_manage.php' method='POST' id="form2">
|
|
<input type='submit' class='button' value='{lang_print id=2000206}'>
|
|
<input type='hidden' name='task' value='reject_do'>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
{* SHOW JOIN club PAGE *}
|
|
{elseif $subpage == "join"}
|
|
|
|
<div id='success_div' style='display: none;'><br>{if $club->club_info.club_approval==1}{lang_print id=2000207}{else}You are now a member of this club.{/if}</div>
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
Are you sure you want to join this club?
|
|
|
|
<br>
|
|
|
|
<form action='user_club_manage.php' method='POST' id="form1">
|
|
{if $club->club_info.membershipid == 1}
|
|
<br>
|
|
|
|
<input type='text' name='membership_id' class="form-control" value='' placeholder="Membership ID">
|
|
{/if}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td colspan='2'> </td></tr>
|
|
<tr>
|
|
<td colspan='2'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<input type='submit' class='button' value='Join this Club'>
|
|
<input type='hidden' name='task' value='join_do'>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
{* SHOW LEAVE club PAGE *}
|
|
{elseif $subpage == "leave"}
|
|
<div id='success_div' style='display: none;'><br>You have successfully left this club.</div>
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
{lang_print id=2000166}
|
|
{if $club->user_rank == 2}<br><br>{lang_sprintf id=2000167 1=$club->club_info.club_id}{/if}
|
|
|
|
<br>
|
|
|
|
<form action='user_club_manage.php' method='POST' id="form1">
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td colspan='2'> </td></tr>
|
|
<tr>
|
|
<td colspan='2'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<input type='submit' class='button' value='{lang_print id=2000160}'>
|
|
<input type='hidden' name='task' value='leave_do'>
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}'>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html> |