<!--{include file="<!--{$tplpath}-->block_header.tpl"}-->
<!-------------------------------------- 头部结束 -------------------------------------->
    <link rel="stylesheet" href="<!--{$skinpath}-->assets/css/main.css">
<!-------------------------------------- 主体开始 -------------------------------------->

<link rel="stylesheet" href="<!--{$skinpath}-->assets/css/layer.css">

<div class="page-main user-main">
  <div class="container">
        <!--{if !empty($check)}-->
    <div class="row">
      <div class="span4">
          <div class="uc-box uc-sub-box">
              <div class="uc-nav-box">
                  <div class="box-hd">
                      <h3 class="title">个人中心</h3>
                  </div>
                  <div class="box-bd">
                      <ul class="uc-nav-list J_navList">
                          <li><a class="J_noRandom" href="index.php?c=user">我的个人中心</a></li>
                          <li><a class="J_noRandom" href="./index.php?c=user&a=user_info">个人信息</a></li>
                          <li><a class="J_noRandom" href="./index.php?c=user&a=profit">我的收益</a></li>
                          <li><a class="J_noRandom" href="index.php?c=user&a=share">我的推广</a></li>
                          <li  class="active"><a class="J_noRandom" href="./index.php?c=user&a=user_address">收货地址</a></li>
                          <li><a class="J_noRandom" href="./index.php?c=user&a=user_edit">修改密码</a></li>
                      </ul>
                  </div>
              </div>
              <div class="uc-nav-box">
                  <div class="box-hd">
                      <h3 class="title">订单中心</h3>
                  </div>
                  <div class="box-bd">
                      <ul class="uc-nav-list J_navList">
                          <li><a class="J_noRandom" href="./index.php?c=user&a=order_list">我的订单</a></li>
                      </ul>
                  </div>
              </div>
          </div>
      </div>
      <div class="span16">
        <div class="uc-box uc-main-box">
          <div class="uc-content-box order-list-box">
            <div class="box-hd">
              <h1 class="title">地址管理</h1>
            </div>
            <div class="box-bd">
                <div class="user-address-list J_addressList clearfix">
                    <div class="address-item address-item-new" id="J_newAddress">
                        <i class="iconfont" name='cha'></i>
                        添加新地址
                    </div>
                    <!--{foreach $list as $volist}-->
                    <div class="address-item J_addressItem" data-address_id="11000000061349397" data-consignee="王瑞峰" data-tel="158****7910" data-province_id="2" data-province_name="北京" data-city_id="36" data-city_name="北京市" data-district_id="384" data-district_name="海淀区" data-area="384007" data-area_name="花园路街道" data-zipcode="100089" data-address="牡丹园(地铁站)" data-tag_name="">
                        <dl>
                            <dt>
                                <em class="uname"><!--{$volist.name}--></em>
                            </dt>
                            <dd class="utel"><!--{$volist.phone}--></dd>
                            <dd class="uaddress"> <!--{$volist.province}--><!--{$volist.city}--><!--{$volist.county}--><!--{$volist.address}-->                                 </dd>
                        </dl>
                        <div class="actions">
                            <a class="modify J_addressModify"  href="javascript:void(0);" data-id="<!--{$volist.id}-->" name="edit">修改</a>
                            <a class="modify J_addressDel" href="javascript:void(0);" data-id="<!--{$volist.id}-->"  name="del">删除</a>
                        </div>
                    </div>
                    <!--{/foreach}-->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
        <!--{else}-->
        <a class="btn btn-primary" href="./index.php?c=user&a=login">去登录</a>
        <!--{/if}-->
  </div>
</div>

            
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">添加地址</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal" id="companyinfoedit">
          <input type="hidden" name='id' value=''/>
          <div class="form-group">
            <label for="name" class="col-sm-2 control-label">姓名：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="name" placeholder="姓名" name="name">
            </div>
          </div>
          <div class="form-group">
            <label for="phone" class="col-sm-2 control-label">电话：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="phone" placeholder="电话" name="phone">
            </div>
          </div>
          <div class="form-group">
            <label   class="col-sm-2 control-label">地址：</label>
            <div class="col-sm-10">
              
                <select onchange="get_city(this);" id="province" name="provinceid"  class="form-control" style="width:33.3%; float: left;">
                 <option value="">选择省份</option>
                <!--{foreach $province as $volist}-->                
                     <option value="<!--{$volist.id}-->"  <!--{if $volist.name == <!--{$data.province}-->}-->selected<!--{/if}--> ><!--{$volist.name}--></option>                                                                     
                 <!--{/foreach}-->                                                                      
               </select>
                <select onchange="get_area(this)" id="city" name="cityid" class="form-control" style="width:33.3%; float: left;">
                 <option value="">请选择市</option>
                <!--{foreach $city as $volist}-->                
                     <option value="<!--{$volist.id}-->" <!--{if $volist.name == <!--{$data.city}-->}-->selected<!--{/if}--> ><!--{$volist.name}--></option>                                                                     
                 <!--{/foreach}-->   
               </select>
                 <select id="district" name="countyid" title="请选择所在区县" class="form-control"  style="width:33.3%; float: left;">
                 <option value="">请选择县/区</option>
                  <!--{foreach $area as $volist}-->                
                     <option value="<!--{$volist.id}-->" <!--{if $volist.name == <!--{$data.county}-->}-->selected<!--{/if}--> ><!--{$volist.name}--></option>                                                                     
                 <!--{/foreach}-->   
               </select>

            </div>
          </div>
          <div class="form-group">
            <label for="address" class="col-sm-2 control-label">地址详情：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="address" placeholder="地址详情" name="address" value="<!--{$data.address}-->">
            </div>
          </div>
          <div class="form-group">
            <label for="zcode" class="col-sm-2 control-label">邮编：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="zcode" placeholder="邮编" name="zcode">
            </div>
          </div>
          <div class="form-group">
            <label for="is_mo" class="col-sm-2 control-label">是否默认：</label>
            <div class="col-sm-10">
              <input type="checkbox" class="form-control" id="is_mo" name="is_mo" <!--{if $data.is_mo =='1'}-->checked<!--{/if}--> >
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <a type="button" class="btn btn-primary" onclick="update();">保存</a>
      </div>
    </div>
  </div>
</div>


<!--{include file="<!--{$tplpath}-->botton.tpl"}-->
