1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <form id="import-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-cate_id" data-rule="required" data-source="exam/cate/selectpage" data-params='{"custom[kind]":"QUESTION","isTree":true}' class="form-control selectpage" name="row[cate_id]" type="text" value="">
- </div>
- </div>
- <!--<div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Exam_type_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-exam_type_id" data-rule="required" data-source="exam_type/index" class="form-control selectpage" name="row[exam_type_id]" type="text" value="">
- </div>
- </div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">选择文件:</label>
- <div class="col-xs-12 col-sm-8">
- <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('exam/question/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>
- <input type="hidden" id="file_url">
- <label id="question_count" class="m-l-10"></label>
- <!--<input id="test" type="button" value="test">-->
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">模板文件:</label>
- <div class="col-xs-12 col-sm-8">
- <a href="/assets/addons/exam/template/import_template.xlsx?v=2" target="_blank" class="btn btn-success" title="点击下载模板文件"><i class="fa fa-download"></i> 点击下载模板文件</a>
- </div>
- </div>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- <script>
- var valid_result = true;
- </script>
|