264 lines
7.5 KiB
Smarty
264 lines
7.5 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_group_manage.tpl 10 2009-01-11 06:03:42Z john $ *}
|
||
|
|
|
||
|
|
{* SHOW CONFIRMATION OF JOINING/LEAVING GROUP *}
|
||
|
|
|
||
|
|
{if $task=="blockevent"}
|
||
|
|
{if $user->blocked_event($event->event_info.event_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 event? 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_event_manage.php' method='POST' id="form3">
|
||
|
|
<input type='submit' class='button' value='Unblock this Event'>
|
||
|
|
<input type='hidden' name='task' value='unblockeventconfirm'>
|
||
|
|
<input type='hidden' name='event_id' value='{$event->event_info.event_id}'>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<form action='user_event_manage.php' method='POST' id="form4">
|
||
|
|
<input type='submit' class='button' value='Cancel'>
|
||
|
|
<input type='hidden' name='task' value=''>
|
||
|
|
<input type='hidden' name='event_id' value='{$event->event_info.event_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 event? 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_event_manage.php' method='POST' id="form3">
|
||
|
|
<input type='submit' class='button' value='Block this Event'>
|
||
|
|
<input type='hidden' name='task' value='blockeventconfirm'>
|
||
|
|
<input type='hidden' name='event_id' value='{$event->event_info.event_id}'>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<form action='user_event_manage.php' method='POST' id="form4">
|
||
|
|
<input type='submit' class='button' value='Cancel'>
|
||
|
|
<input type='hidden' name='task' value=''>
|
||
|
|
<input type='hidden' name='event_id' value='{$event->event_info.event_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_group_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='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}'>
|
||
|
|
<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>{lang_print id=2000207}</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'> </td></tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan='2'>
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<input type='submit' class='button' value='{lang_print id=2000165}'>
|
||
|
|
<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'> </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='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>
|