qq_35181422
qq_35181422
2016-08-18 07:50

请问HTML页面中如何动态获取数据

 <form id="userinfofrm" action="${base}/member/index/douserinfo.htm" method="post" novalidate="novalidate"> 
            <div class="personal-data">
            <h3 class="gr-tit">个人资料</h3>
            <dl>
                <dt>头&nbsp;&nbsp;像:</dt>
              <dd>
                <div class="head-pic"><img id="face" src="{$info['litpic']}" /><span class="upload">编辑头像</span></div>
                <input type="hidden" name="litpic" id="litpic" value="{$info['litpic']}">
              </dd> 
            </dl>
            <dl>
                <dt>昵&nbsp;&nbsp;称:</dt>
              <dd>
            <input type="text" class="msg-text" id="nickname" name="nickname" value="{$info['nickname']}" /><span class="star-ico">*</span>
              </dd> 
            </dl>
            <dl>
                <dt>性&nbsp;&nbsp;别:</dt>
              <dd>
                <span class="sex"><a {if $info['sex']=='男'}class="on"{/if} href="javascript:;">男</a><a href="javascript:;" {if $info['sex']=='女'}class="on"{/if}>女</a></span>
                <input type="hidden" name="sex" id="sex" value="{$info['sex']}">
              </dd> 
            </dl>
            <dl>
                <dt>手机号:</dt>
              <dd>
                  {if !empty($info['mobile'])}
                  <span class="phone-num">{$info['mobile']}</span>
                  <a class="revise" href="{$cmsurl}member/index/modify_phone?change=1">更换手机&gt;</a>
                  {else}
                    <a class="revise" href="{$cmsurl}member/index/modify_phone?change=1">绑定手机&gt;</a>
                  {/if}
              </dd> 
            </dl>
            <dl>
                <dt>E-mail:</dt>
              <dd>
                {if !empty($info['email'])}
                    <span class="mail">{$info['email']}</span>
                    <a class="revise" href="{$cmsurl}member/index/modify_email?change=1">更换邮箱&gt;</a>
                {else}
                    <a class="revise" href="{$cmsurl}member/index/modify_email?change=1">绑定邮箱&gt;</a>
                {/if}

              </dd> 
            </dl>
            <hr />

            <dl>
                <dt>真实姓名:</dt>
              <dd><input type="text" name="truename" id="truename" class="msg-text" value="{$info['truename']}" /><span class="star-ico">*</span></dd>
            </dl>
            <dl>
                <dt>身份证号:</dt>
              <dd><input type="text" name="cardid" id="cardid" class="msg-text" value="{$info['cardid']}" /></dd>
            </dl>
            <dl>
                <dt>常住地址:</dt>
              <dd><input type="text" class="msg-text" name="address" id="address" value="{$info['address']}" /></dd>
            </dl>
            <div class="save-revise">
                    <a href="javascript:;" class="saveinfo">保存修改</a>
            </div>
            <div class="success-out-box" style=" display:none">
                <div class="box-con">
                <h3><img src="{$GLOBALS['cfg_public_url']}images/success-ico.png" />个人资料修改成功!</h3>
                <a href="javascript:;" class="close_success">确 定</a>
              </div>
            </div><!--修改成功弹出框-->
            <input name="backurl" type="hidden" value="${backurl!}" /> 
          </div>
          </form>
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

5条回答

为你推荐

换一换