123456789101112131415161718192021222324252627282930313233343536 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('importexcel')}" enctype="multipart/form-data" class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-2 control-label">选择文件(支持:xls,xlsx)<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="file" accept=".xls,.xlsx" class="form-control" name="file" >
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary" type="submit">确定导入</button>
- <button onclick="downTemplate()" class="btn btn-danger" type="button">下载模板</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- function downTemplate() {
- window.location.href='{:url("downloadtem")}';
- }
- </script>
- {/block}
|