Files
Testing/templates/user_group_manage.tpl

263 lines
7.5 KiB
Smarty
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
{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_group_manage.tpl 10 2009-01-11 06:03:42Z john $ *}
{* SHOW CONFIRMATION OF JOINING/LEAVING GROUP *}
{if $task=="blockgroup"}
{if $user->blocked_group($group->group_info.group_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 group? This will allow them to send you invites.
<table cellpadding='0' cellspacing='0'>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr>
<td colspan='2'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<form action='user_group_manage.php' method='POST' id="form3">
<input type='submit' class='button' value='Unblock this Group'>&nbsp;
<input type='hidden' name='task' value='unblockgroupconfirm'>
<input type='hidden' name='group_id' value='{$group->group_info.group_id}'>
</form>
</td>
<td>
<form action='user_group_manage.php' method='POST' id="form4">
<input type='submit' class='button' value='Cancel'>&nbsp;
<input type='hidden' name='task' value=''>
<input type='hidden' name='group_id' value='{$group->group_info.group_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 group? This will prevent them from sending you invites.
<table cellpadding='0' cellspacing='0'>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr>
<td colspan='2'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<form action='user_group_manage.php' method='POST' id="form3">
<input type='submit' class='button' value='Block this Group'>&nbsp;
<input type='hidden' name='task' value='blockgroupconfirm'>
<input type='hidden' name='group_id' value='{$group->group_info.group_id}'>
</form>
</td>
<td>
<form action='user_group_manage.php' method='POST' id="form4">
<input type='submit' class='button' value='Cancel'>&nbsp;
<input type='hidden' name='task' value=''>
<input type='hidden' name='group_id' value='{$group->group_info.group_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'>&nbsp;</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'>&nbsp;</td></tr>
<tr>
<td colspan='2'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<form action='user_group_manage.php' method='POST' id="form3">
<input type='submit' class='button' value='{lang_print id=2000205}'>&nbsp;
<input type='hidden' name='task' value='accept_do'>
<input type='hidden' name='group_id' value='{$group->group_info.group_id}'>
</form>
</td>
<td>
<form action='user_group_manage.php' method='POST' id="form2">
<input type='submit' class='button' value='{lang_print id=2000206}'>&nbsp;
<input type='hidden' name='task' value='reject_do'>
<input type='hidden' name='group_id' value='{$group->group_info.group_id}'>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
{* SHOW JOIN GROUP PAGE *}
{elseif $subpage == "join"}
<div id='success_div' style='display: none;'><br>{if $group->group_info.group_approval==1}{lang_print id=2000207}{else}You are now a member of this group.{/if}</div>
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
{lang_print id=2000168}
<br>
<form action='user_group_manage.php' method='POST' id="form1">
<table cellpadding='0' cellspacing='0'>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr>
<td colspan='2'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<input type='submit' class='button' value='{lang_print id=2000165}'>&nbsp;
<input type='hidden' name='task' value='join_do'>
<input type='hidden' name='group_id' value='{$group->group_info.group_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 GROUP PAGE *}
{elseif $subpage == "leave"}
<div id='success_div' style='display: none;'><br>You have successfully left this group.</div>
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
{lang_print id=2000166}
{if $group->user_rank == 2}<br><br>{lang_sprintf id=2000167 1=$group->group_info.group_id}{/if}
<br>
<form action='user_group_manage.php' method='POST' id="form1">
<table cellpadding='0' cellspacing='0'>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr>
<td colspan='2'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<input type='submit' class='button' value='{lang_print id=2000160}'>&nbsp;
<input type='hidden' name='task' value='leave_do'>
<input type='hidden' name='group_id' value='{$group->group_info.group_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>