1234567891011121314151617181920212223242526272829303132 |
- {extend name="layout/content" /}
- {block name="content"}
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="form-horizontal" id="head_modify">
- <div class="row">
- <div class="col-sm-6" style="padding: 0px; height: 200px;">
- <div class="col-sm-8" style="height: 100%;">
- {if condition="!$headPortrait"}
- <img id="head_portrait" alt="" src="/static/img/photoGirl.gif" style="max-height: 200px; max-width:100%; bottom: 1px; position: absolute;">
- {else/}
- <img id="head_portrait" alt="" src="{$headPortrait|getStoragePath}" style="max-height: 200px; max-width:100%; bottom: 1px; position: absolute;">
- {/if}
- </div>
- <div class="col-sm-4" style="height: 100%;">
- <form target="hidden_frame" id="form_head" action="/enterprise/api/changeHeadPortrait" method="post" enctype="multipart/form-data">
- <input type="file" onchange="ech.fileChange()" id="headPortrait" name="headPortrait" style="display: none;"/>
- </form>
- <button onclick="ech.chageHead()" class="btn btn-sm btn-primary" style="bottom: 1px; position: absolute;">修改头像</button>
- </div>
- </div>
- <div class="col-sm-6" style="padding: 0px;"></div>
- </div>
- </div>
- </div>
- </div>
- <iframe style="display: none;" id="hidden_frame" name="hidden_frame"></iframe>
- <!--<script src="${ctxPath}/static/modular/gate/enterprise/enterprise_change_head.js"></script>-->
- <script type="text/javascript">
- document.write('<script src="/static/modular/gate/enterprise/enterprise_change_head.js?v=' + (new Date()).getTime() + '"><\/script>');
- </script>
- {/block}
|