联系官方销售客服
1835022288
028-61286886
请问注册页面register.html模板内容标签放在其它页面无效请问怎么处理?
将这这些if 标签放在文章页面无效,因为像做一个弹出的注册,需要将这些注册代码放在各个页面中去。
{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}