<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_top.tpl"}-->
<body class="bg_body">

  <div class="w1200 ptb30">
    <div class="bg_f br10 pb30">
      <div class="user t_center ptb30">
        <!--{if $login.info.gender == '2'}-->
        <!--{assign var="sex" value="1"}-->
        <!--{else}-->
        <!--{assign var="sex" value="2"}-->
        <!--{/if}-->
          <!--{assign var="elite_user" value=vo_list("mod={listuser} where={v.gender='<!--{$sex}-->' AND v.headflag='1'} num={2}")}-->
        <!--{if !empty($elite_user)}-->
        <!--{foreach $elite_user as $volist}-->
        <!--{if $volist.i == '1'}-->
        <div class="inline_block bsd br oh pr" style="width: 116px;height: 116px;border: 5px solid #eee;left: 20px;">
          <img class="ob_c" src="<!--{$volist.headimg}-->">
        </div>
        <!--{else}-->
        <div class="inline_block bsd br oh pr z100" style="width: 156px;height: 156px;border: 5px solid #eee;top: 20px;">
          <img class="ob_c" src="<!--{$login.info.headimgurl}-->">
        </div>
        <div class="inline_block bsd br oh pr" style="width: 116px;height: 116px;border: 5px solid #eee;left: -20px;">
          <img class="ob_c" src="<!--{$volist.headimg}-->">
        </div>
        <!--{/if}-->
        <!--{/foreach}-->
        <!--{/if}-->
      </div>
      <div class="title t_center pt50 pb30">
        <h3 class="fn fz20">上传个人头像</h3>
        <div class="text color_9 mt10">添加设置头像，开始认识新朋友！</div>
      </div>
      <div class="m0_a p30" style="border:2px dashed #eee;width: 500px;">
        <div class="btn_box t_center pt10">
          <!--{if empty($login.info.headimg)}-->
          <button class="bg_main bo_main color_f plr20 ptb10 fz16 br30 cursor" f="but_upload_avatar" id="avatar" data-url="<!--{$oefile}-->?m=user&c=index&a=upload">点击上传头像</button>
          <!--{else}-->
          <!--{if !empty($forward)}-->
          <a href="<!--{$urlpath}-->index.php?c=passport&a=success&forward=<!--{$forward|urlencode}-->" class="bg_main bo_main color_f plr20 ptb10 fz16 br30 cursor">下一步</a>
          <!--{else}-->
          <a href="<!--{routeurl module='passport' action='success'}-->" class="bg_main bo_main color_f plr20 ptb10 fz16 br30 cursor">下一步</a>
          <!--{/if}-->
          <!--{/if}-->
        </div>
        <div class="text color_9 mt30 t_center">
          支持JPG,PNG,GIF常规照片格式<br>
          照片大小限制为<!--{$config.uploadmaxsize}-->M
        </div>
      </div>
      <!--{if $config.headimg_isneed == "1"}-->
      <!--{else}-->
      <div class="t_center mt15">
        <!--{if !empty($forward)}-->
        <a href="<!--{$urlpath}-->index.php?c=passport&a=success&forward=<!--{$forward|urlencode}-->" class="color_main" style="text-decoration: underline;">以后再上传头像</a>
        <!--{else}-->
        <a href="<!--{routeurl module='passport' action='success'}-->" class="color_main" style="text-decoration: underline;">以后再上传头像</a>
        <!--{/if}-->
      </div>
      <!--{/if}-->
      <div class="text color_9 pt30 t_center pb30">
        只能上传你的个人照片，照片必须能让人容易辨认并且您的面部清晰可见；<br>
        禁止上传没有你在内的照片、以及有孩子在内、或包含色情或不恰当内容的照片。
      </div>
    </div>
  </div>

<div class="oereg_content" style="display: none;">
  <input type="hidden" name="forward" id="forward" value="<!--{$forward}-->" />
  <div class="oe_clip">
    <div class="hd">
      <ul>
        <!--{if $login.info.gender == '2'}-->
        <!--{assign var="sex" value="1"}-->
        <!--{else}-->
        <!--{assign var="sex" value="2"}-->
        <!--{/if}-->
          <!--{assign var="elite_user" value=vo_list("mod={listuser} where={v.gender='<!--{$sex}-->' AND v.headflag='1'} num={2}")}-->
        <!--{if !empty($elite_user)}-->
        <!--{foreach $elite_user as $volist}-->
        <!--{if $volist.i == '1'}-->
            <li class="li_1"><img src="<!--{$volist.headimg}-->" /></li>
        <!--{else}-->
        <li class="li_2"><img id="img_preview" src="<!--{$login.info.headimgurl}-->" /></li>
        <li class="li_3"><img src="<!--{$volist.headimg}-->" /></li>
        <!--{/if}-->
        <!--{/foreach}-->
        <!--{/if}-->
        <div class="clear"></div>
      </ul>
      <div class="clear"></div>
      <h3>上传个人头像</h3>
      <p>添加设置头像，开始认识新朋友！</p>
    </div>
    <!--//hd End -->
    
    <div class="bd">
      <h3>
        <span><i></i>点击从电脑上传照片</span>
        <input type="file" name="img" id="img" f="upload_img" data-url="<!--{$oefile}-->?c=index&a=upload&forbidwater=1" />
        
        <label class="headloading" id="img_loading" style="display:none;">
          <img src="<!--{$skinpath}-->public/images/loading.gif" />
        </label>
      </h3>
      <p class="error" id="img_tips"></p>
      <p>
        支持JPG,PNG,GIF常规照片格式<br>
        照片大小限制为<!--{$config.uploadmaxsize}-->M
      </p>
    </div>
    <!--//bd End -->
    
    <div class="tips">
      只能上传你的个人照片，照片必须能让人容易辨认并且您的面部清晰可见；<br>
      禁止上传没有你在内的照片、以及有孩子在内、或包含色情或不恰当内容的照片。
    </div>
    
    <!--//9.10.22 -->
    <!--{if $config.headimg_isneed == "1"}-->
    <!--{else}-->
    <div class="skip">
      <!--{if !empty($forward)}-->
      <a href="<!--{$urlpath}-->index.php?c=passport&a=success&forward=<!--{$forward|urlencode}-->">以后再上传头像</a>
      <!--{else}-->
      <a href="<!--{routeurl module='passport' action='success'}-->">以后再上传头像</a>
      <!--{/if}-->
    </div>
    <!--{/if}-->
    
  </div>
  <!--//clip End -->

</div>

<!--//9.10.22-->
<input type="hidden" name="from" id="from" value="<!--{$from}-->" />
<!--{include file="<!--{$oetplpath}-->widget/block_footer.tpl"}-->
<script src="<!--{$urlpath}-->tpl/static/pcui/js/oeui.min.js"></script>
<script src="<!--{$urlpath}-->tpl/static/pcui/js/oeui.uploader.min.js"></script>
<script src="<!--{$urlpath}-->tpl/user/js/uploader.avatar.js?v=<!--{$copyright_version}-->"></script>
</body>
</html>