114 lines
3.4 KiB
Smarty
114 lines
3.4 KiB
Smarty
{include file="header_modal.tpl"}
|
|
{literal}
|
|
<style>
|
|
.modal-content{background:black;}
|
|
.frmSearch {border: 1px solid #a8d4b1;background-color: #c6f7d0;margin: 2px 0px;padding:40px;border-radius:4px;}
|
|
#country-list{float:left;list-style:none;margin-top:-3px;padding:0;width:190px;position: absolute;}
|
|
#country-list li{padding: 10px; background: #fa3200; border-bottom: #fa3200 1px solid;}
|
|
#country-list li:hover{background:#000000;cursor: pointer;}
|
|
#search-box{padding: 10px;border: #a8d4b1 1px solid;border-radius:4px;}
|
|
</style>
|
|
<script src="/include/js/jquery.form.js"></script>
|
|
<script>jQuery('#form1').ajaxForm({
|
|
success: function(){
|
|
jQuery('#form_div').hide();
|
|
jQuery('#success_div').show();
|
|
window.parent.subscribe_update('{/literal}{$is_subscribed}{literal}');
|
|
setTimeout(closemodal, 5000);
|
|
|
|
}});</script>
|
|
{/literal}
|
|
{* $Id: user_group_subscribe.tpl 10 2009-01-11 06:03:42Z john $ *}
|
|
|
|
{* SHOW CONFIRMATION OF SUBSCRIBING/UNSUBSCRIBING TO GROUP *}
|
|
{if $result != 0}
|
|
|
|
{* JAVASCRIPT FOR CLOSING BOX *}
|
|
{literal}
|
|
<script type="text/javascript">
|
|
<!--
|
|
setTimeout(function(){closemodal();}, "1000");
|
|
if(window.parent.subscribe_update) { setTimeout("window.parent.subscribe_update('{/literal}{$is_subscribed}{literal}');", "800"); }
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
|
|
<br><div>{lang_print id=$result}</div>
|
|
|
|
|
|
{* SHOW UNSUBSCRIBE PAGE *}
|
|
{elseif $is_subscribed}
|
|
<div id='success_div' style='display: none;'><br>You have successfully unsubscribed to this group.</div>
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
{lang_print id=2000236}
|
|
|
|
<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_subscribe.php' method='POST' id="form1">
|
|
<input type='submit' class='button' value='{lang_print id=2000237}'>
|
|
<input type='hidden' name='task' value='unsubscribe_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 SUBSCRIBE PAGE *}
|
|
{elseif !$is_subscribed}
|
|
<div id='success_div' style='display: none;'><br>You have successfully subscribed to this group.</div>
|
|
|
|
<div style='text-align:left; padding-left: 10px; padding-top: 10px;' id="form_div">
|
|
{lang_print id=2000234}
|
|
|
|
<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_subscribe.php' method='POST' id="form1">
|
|
<input type='submit' class='button' value='{lang_print id=2000235}'>
|
|
<input type='hidden' name='task' value='subscribe_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> |