113 lines
2.8 KiB
Smarty
113 lines
2.8 KiB
Smarty
|
|
{* INCLUDE HEADER CODE *}
|
||
|
|
{include file="header_modal.tpl"}
|
||
|
|
{literal}
|
||
|
|
<style>
|
||
|
|
.modal-content{background:black;}
|
||
|
|
</style>
|
||
|
|
<script src="/include/js/jquery.form.js"></script>
|
||
|
|
<script>jQuery(document).ready(function() {
|
||
|
|
|
||
|
|
jQuery('#form1').ajaxForm({
|
||
|
|
success: function(){
|
||
|
|
jQuery('#form_div').hide();
|
||
|
|
jQuery('#success_div').html(successtext);
|
||
|
|
if(unblock==1){
|
||
|
|
jQuery('#unblock').hide();
|
||
|
|
jQuery('#block').show();
|
||
|
|
|
||
|
|
}
|
||
|
|
else if(unblock==2)
|
||
|
|
{
|
||
|
|
jQuery('#block').hide();
|
||
|
|
jQuery('#unblock').show();
|
||
|
|
}
|
||
|
|
jQuery('#success_div').show();
|
||
|
|
setTimeout(closemodal, 5000);
|
||
|
|
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});</script>
|
||
|
|
{/literal}
|
||
|
|
|
||
|
|
<div id="success_div" style='display: none;'></div>
|
||
|
|
<div id="form_div">
|
||
|
|
{* $Id: user_friends_block.tpl 8 2009-01-11 06:02:53Z john $ *}
|
||
|
|
|
||
|
|
{* UNBLOCK USER *}
|
||
|
|
{if $task == "unblock"}
|
||
|
|
|
||
|
|
{* SHOW CONFIRMATION OF UNBLOCK *}
|
||
|
|
{if $submitted == 1}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{* DISPLAY CONFIRMATION QUESTION *}
|
||
|
|
{else}
|
||
|
|
<div style='text-align:left; padding-left: 10px;'>
|
||
|
|
{lang_sprintf id=870 1=$owner->user_displayname}
|
||
|
|
</div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
successtext="You have successfully unblocked {$owner->user_displayname}."
|
||
|
|
unblock=1
|
||
|
|
</script>
|
||
|
|
<br><br>
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<form action='user_friends_block.php' method='POST' id="form1">
|
||
|
|
<input type='submit' class='button' value='{lang_print id=871}'>
|
||
|
|
<input type='hidden' name='task' value='unblock_do'>
|
||
|
|
<input type='hidden' name='user' value='{$owner->user_info.user_username}'>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{* BLOCK USER *}
|
||
|
|
{else}
|
||
|
|
|
||
|
|
{* SHOW CONFIRMATION OF BLOCK *}
|
||
|
|
{if $submitted == 1}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{* DISPLAY CONFIRMATION QUESTION *}
|
||
|
|
{else}
|
||
|
|
<div style='text-align:left; padding-left: 10px;'>
|
||
|
|
{lang_sprintf id=873 1=$owner->user_displayname}
|
||
|
|
</div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
successtext="You have successfully blocked {$owner->user_displayname}.";
|
||
|
|
unblock=2;
|
||
|
|
</script>
|
||
|
|
<br><br>
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<form action='user_friends_block.php' method='POST' id="form1">
|
||
|
|
<input type='submit' class='button' value='{lang_print id=874}'>
|
||
|
|
<input type='hidden' name='task' value='block_do'>
|
||
|
|
<input type='hidden' name='user' value='{$owner->user_info.user_username}'>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|