联系官方销售客服
1835022288
028-61286886
首页 怎么用户组如何提交 用户组
onclick="dr_ajax_submit('{dr_member_url('register/index', ['groupid' => 这个应该怎么写], 'regform', '2000')"
{php $register=$ci->member_cache['register'];} <form action="" method="post" name="regform" id="regform"> {dr_form_hidden()} <div class="row form-body"> <div class="col-md-6"> <div class="input-select"> <select name="groupid" id="groupid"> {cache name=member_group} <option selected="" value="{$t.id}">{$t.name}</option> {/cache} </select> </div> </div> <!--用户名--> {if in_array('username', $register.field)} <div class="col-md-6"> <input type="text" name="data[username]" id="dr_username" placeholder="用户名" > </div> {/if} <!--邮箱--> {if in_array('email', $register.field)} <div class="col-md-6"> <input type="text" name="data[email]" id="dr_email" placeholder="邮箱" > </div> {/if} <!--密码--> <div class="col-md-6"> <input type="password" class="form-control input-large" name="data[password]" id="dr_password" placeholder="密码" > </div> <!--确认密码--> <div class="col-md-6"> <input type="password" class="form-control input-large" name="data[password2]" id="dr_password2" placeholder="确认密码" > </div> {$myfield} <!--验证码--> {if $register.sms || $register.code} <div class="col-md-6" id="dr_row_code"> <div class="row mlr-0"> <div class="col-md-6"> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_code" name="code" placeholder="验证码"> </div> <div class="col-md-6"> {dr_code(120, 35)} </div> </div> </div> {/if} <!--注册按钮--> <div class="col-md-12"> <button type="button" class="btn btn--primary" onclick="dr_ajax_submit('{dr_member_url('register/index', 'regform', '2000')" style="width: 100%">立即注册</button> </div> <div class="col-12"> <div class="input-checkbox"> <input type="checkbox" name="is_protocol" value="1" checked id="input-assigned-0"> <label for="input-assigned-0"></label> </div> <span>我已阅读并同意<a href="javascript:dr_show_protocol();"><span>《用户注册协议》</span> </a></span> </div> </div> </form>