85 lines
3.5 KiB
HTML
Executable File
85 lines
3.5 KiB
HTML
Executable File
<!--{template common/header}-->
|
|
<div id="wp" class="wp">
|
|
<div id="ct" class="wp cl">
|
|
<div class="mn">
|
|
<div class="bm">
|
|
<!--{if $order && $codes}-->
|
|
<div class="bm_h bbs">
|
|
<h3 class="xs2">{lang invitecode_succeed_title}</h3>
|
|
</div>
|
|
<div class="bm_c">
|
|
<div class="rfm bw0">
|
|
<p><textarea id="invitecode" class="pt" cols="40" rows="3">$codetext</textarea></p>
|
|
<p class="mtn"><a href="javascript:;" onclick="copyinvitecode();" class="xi2">{lang copycode}</a></p>
|
|
<p class="mtn">{lang invitecode_email}</p>
|
|
<p class="mtm cl"><a href="member.php?mod={$_G[setting][regname]}&invitecode=$codes[0]" class="pn pnc z"><strong>{lang reg_continue}</strong></a></p>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function copyinvitecode(obj) {
|
|
setCopy($('invitecode').innerHTML, '{lang copycode_invite_succeed}');
|
|
return false;
|
|
}
|
|
</script>
|
|
</div>
|
|
<!--{else}-->
|
|
<div class="bm_h bbs">
|
|
<h3 class="xs2">{lang invitecode_buycode}<span><!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('buyinvitecode')" title="{lang close}"></a><!--{/if}--></span></h3>
|
|
</div>
|
|
<div class="bm_c">
|
|
<form id="confirmform" class="postbox" method="post" autocomplete="off" action="misc.php?mod=buyinvitecode" onsubmit="ajaxpost(this.id, 'return_addfundsform');return false;">
|
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
|
<input type="hidden" name="buysubmit" value="true" />
|
|
<input type="hidden" name="handlekey" value="buyinvite" />
|
|
<!--{if $_G['setting']['inviteconfig']['invitecodeprompt']}-->
|
|
<div class="rfm ptw pbm">$_G['setting'][inviteconfig][invitecodeprompt]</div>
|
|
<!--{/if}-->
|
|
<!--{if $_G['setting']['inviteconfig']['buyinvitecode'] && $_G['setting']['inviteconfig']['invitecodeprice'] && payment::enable()}-->
|
|
<div class="rfm">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th>{lang buy_nums}</th>
|
|
<td><input type="text" name="amount" id="amount" class="px p_fre vm" value="1" onkeyup="addamount()" /> {lang need_money} <strong id="desamount" class="xi1">$_G['setting']['inviteconfig']['invitecodeprice']</strong> {lang money_unit}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="rfm">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th>{lang active_email}</th>
|
|
<td><input type="text" name="email" class="px p_fre vm" value="" /> {lang active_email_comment}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="rfm">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th>{lang invitecode_expiration}</th>
|
|
<td>$maxinviteday</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="rfm bw0">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th> </th>
|
|
<td><button type="submit" name="buysubmit" class="pn pnc" value="true"><strong>{lang confirms}</strong></button></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function addamount() {
|
|
var amount = $('amount').value.replace(/^0/, '');
|
|
amount = parseInt(amount);
|
|
$('desamount').innerHTML = !isNaN(amount) ? amount * $_G['setting']['inviteconfig']['invitecodeprice'] : 0;
|
|
}
|
|
</script>
|
|
<!--{/if}-->
|
|
</form>
|
|
<span style="display: none" id="return_addfundsform"></span>
|
|
</div>
|
|
<!--{/if}-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--{template common/footer}--> |