Files
web-discuz/template/bygsjw_sj/touch/common/buyinvitecode.php
2025-06-27 21:04:18 +08:00

97 lines
4.3 KiB
PHP

<?php echo 'Discuz!应用中心开发者-简约设计';exit;?>
<!--{template common/header}-->
<!--{if $order && $codes}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang invitecode_succeed_title}</h2>
<div class="my"><a href="<!--{if $_G['setting']['mobile']['mobilehotthread']}--><!--{if !empty($_G['setting']['grid']['showgrid'])}-->forum.php<!--{else}-->forum.php?mod=guide&view=newthread<!--{/if}--><!--{else}-->forum.php?forumlist=1<!--{/if}-->"><i class="dm-house"></i></a></div>
</div>
<form name="confirmform" method="get" autocomplete="off" action="member.php">
<input type="hidden" name="mod" value="{$_G[setting][regname]}" />
<input type="hidden" name="invitecode" value="{$codes[0]}" />
<div class="post_box">
<ul>
<li class="mtext">
<textarea class="pt" readonly>{$codetext}</textarea>
</li>
<li class="text-muted">{lang invitecode_email}</li>
</ul>
</div>
<div class="post_btn">
<button class="pn btn_pn mgrey">
{lang reg_continue}
</button>
</div>
</form>
<!--{else}-->
<!-- header start -->
<header class="header_xin">
<div class="hdc_xin cl" id="byg_header">
<div class="header_z cl">
<a href="javascript:;" class="shouye">
<img src="<!--{avatar($_G['uid'], 'middle', true)}-->" alt="头像"/>
<!--{if $_G[member][newpm] || $post_notice_new}-->
<img src="{$_G['style']['styleimgdir']}/new_pm.png" alt="提醒" class="new_pm"/>
<!--{/if}-->
</a>
<em>&rsaquo;</em>
<span>{lang invitecode_buycode}</span>
</div>
<a href="javascript:history.back();" title="返回上一页" class="header_y">
<img src="{$_G['style']['styleimgdir']}/houtui.png" alt="返回"/></a>
</div>
</header>
<!--{hook/global_header_mobile}-->
<!-- header end -->
<form id="confirmform" name="confirmform" method="post" autocomplete="off" action="misc.php?mod=buyinvitecode">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="buysubmit" value="true" />
<input type="hidden" name="handlekey" value="buyinvite" />
<style type="text/css">
.byg_post_box{ padding: .1rem; background: #fff;}
.byg_post_box li{ line-height: .25rem; padding: .05rem 0;}
.byg_post_box li .px{ width: 3.35rem; padding: .05rem .08rem; line-height: .2rem; font-size: .15rem; border: 1px solid #eee;}
.byg_post_box li p{ margin: 0.05rem 0.08rem 0; color: #ff9800; font-size: .13rem; line-height: .2rem;}
.byg_post_btn{ padding: .1rem;}
.byg_post_btn .btn_pn{ width: 100%; height: 0.4rem; line-height: .4rem; font-size: .16rem; font-weight: 400;}
</style>
<div class="byg_post_box">
<ul>
<!--{if $_G['setting']['inviteconfig']['invitecodeprompt']}-->
<li>
{$_G['setting'][inviteconfig][invitecodeprompt]}
</li>
<!--{/if}-->
<li>
<input type="number" value="" tabindex="1" class="px" autocomplete="off" id="amount" name="amount" placeholder="{lang buy_nums}">
</li>
<li>
<input type="email" value="" tabindex="1" class="px" autocomplete="off" name="email" placeholder="{lang active_email}">
<p>{lang active_email_comment}</p>
<p>{lang invitecode_expiration}&nbsp;&nbsp;{$maxinviteday}</p>
</li>
</ul>
</div>
<div class="byg_post_btn">
<button id="buysubmit_btn" class="pn btn_pn mgrey">
{lang need_money} <strong id="desamount" class="xi1">0.00</strong> {lang money_unit}
</button>
</div>
</form>
<script type="text/javascript">
(function() {
$('#amount').on('input',function() {
var amount = $('#amount').val().replace(/^0/, '');
amount = parseInt(amount);
$('#desamount').html(!isNaN(amount) ? amount * $_G['setting']['inviteconfig']['invitecodeprice'] : 0);
});
})();
</script>
<!--{/if}-->
<!--{template common/footer}-->