名称: update_member_info
功能: 会员信息更新接口,通过HTTP-POST方式提交
模板示例:
<form class="form-horizontal" role="form" method="post" action="" onsubmit="ecms.ajaxForm(this, ecms.callback_ajax, false);return false;"> <input type="hidden" name="act" value="update_member_info" /> <fieldset> <legend>帐号信息</legend> <div class="form-group"> <label for="email" class="col-lg-4 control-label">Email <span class="require">*</span></label> <div class="col-lg-8"> <input type="text" class="form-control" id="email" name="email" value="{$member_info['email']}" readonly="readonly"> </div> </div> <div class="form-group"> <label for="username" class="col-lg-4 control-label">用户名</label> <div class="col-lg-8"> <input type="text" class="form-control" id="username" name="username" value="{$member_info['username']}"> </div> </div> <div class="form-group"> <label for="phone" class="col-lg-4 control-label">联系电话</label> <div class="col-lg-8"> <input type="text" class="form-control" id="phone" name="phone" value="{$member_info['phone']}"> </div> </div> <div class="form-group"> <label for="captcha" class="col-lg-4 control-label">邮件验证码 <span class="require">*</span></label> <div class="col-lg-8"> <div class="input-group"> <input type="text" class="form-control" name="captcha" id="captcha"> <span class="input-group-btn"> <button class="btn blue" type="button" style="margin-right: 0;" onclick="apps['get-mail-captcha'](jQuery('#email').val());">获取验证码</button> </span> </div> </div> </div> </fieldset> <div class="row"> <div class="col-lg-8 col-md-offset-4 padding-left-0 padding-top-20"> <button type="submit" class="btn btn-primary">保存</button> <button type="reset" class="btn btn-default">重置</button> </div> </div> </form>