enterprise_change_head.html 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. {extend name="layout/content" /}
  2. {block name="content"}
  3. <div class="ibox float-e-margins">
  4. <div class="ibox-content">
  5. <div class="form-horizontal" id="head_modify">
  6. <div class="row">
  7. <div class="col-sm-6" style="padding: 0px; height: 200px;">
  8. <div class="col-sm-8" style="height: 100%;">
  9. {if condition="!$headPortrait"}
  10. <img id="head_portrait" alt="" src="/static/img/photoGirl.gif" style="max-height: 200px; max-width:100%; bottom: 1px; position: absolute;">
  11. {else/}
  12. <img id="head_portrait" alt="" src="{$headPortrait|getStoragePath}" style="max-height: 200px; max-width:100%; bottom: 1px; position: absolute;">
  13. {/if}
  14. </div>
  15. <div class="col-sm-4" style="height: 100%;">
  16. <form target="hidden_frame" id="form_head" action="/enterprise/api/changeHeadPortrait" method="post" enctype="multipart/form-data">
  17. <input type="file" onchange="ech.fileChange()" id="headPortrait" name="headPortrait" style="display: none;"/>
  18. </form>
  19. &nbsp;&nbsp;&nbsp;&nbsp;<button onclick="ech.chageHead()" class="btn btn-sm btn-primary" style="bottom: 1px; position: absolute;">修改头像</button>
  20. </div>
  21. </div>
  22. <div class="col-sm-6" style="padding: 0px;"></div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <iframe style="display: none;" id="hidden_frame" name="hidden_frame"></iframe>
  28. <!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_head.js"></script>-->
  29. <script type="text/javascript">
  30. document.write('<script src="/static/modular/gate/enterprise/enterprise_change_head.js?v=' + (new Date()).getTime() + '"><\/script>');
  31. </script>
  32. {/block}