联系官方销售客服
1835022288
028-61286886
注册页面在其他页面调用时应该怎么写?
想做一个弹出层注册页面
新页面中
{if @in_array('username', $regfield)}
这段无效,应该怎么写?
{if @in_array('username', $regfield)}
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">会员名称</label>
<input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="会员名称" name="data[username]" />
</div>
{/if}
{if @in_array('phone', $regfield)}
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">手机号码</label>
<input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="手机号码" name="data[phone]" />
</div>
{/if}
{if @in_array('email', $regfield)}
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">安全邮箱</label>
<input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="安全邮箱" name="data[email]" />
</div>
{/if}
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">登录密码</label>
<input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]" />
</div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">确认密码</label>
<input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="确认密码" name="data[password2]" />
</div>
{if $code}
<div class="form-group">
{if strlen(SYS_GEE_CAPTCHA_ID) > 10}
{dr_geetest()}
{else}
<div class="col-sm-6" style="padding-left:0;padding-right:0">
<input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code" />
</div>
<div class="col-sm-6">
<img align="absmiddle" id="dr_code_img" style="cursor:pointer;" onclick="this.src='{dr_member_url('api/captcha', array('width' => 120, 'height' => 40))}&'+Math.random();" src="{dr_member_url('api/captcha', array('width' => 120, 'height' => 40))}" />
</div>
{/if}
</div>
{/if}