123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- ·<!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
- <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
- <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
- <script src="${ctx}/assets/js/validate.js" ></script>
-
- <script type="text/javascript">
- function doSubmit(){
- if(doValidate(form1))
- {
- $('#form1').attr('action','${ctx}/myconsole/complaint/transact/saveAddDoData');
- $('#form1').ajaxSubmit(resultHandle);
- }
- }
- function resultHandle(data){
- var res=eval('(' + data + ')');
- if(res.flag){
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
- function(){
- layer.closeAll('dialog');
- window.close();
- });
-
- }else{
- if(res.flag == false)
- {
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- }
- function setCollapseIcon(collapseIcon)
- {
- var curCollapseIconClass=$("#"+collapseIcon).attr("class");
- if(curCollapseIconClass=="glyphicon glyphicon-menu-up")
- {
- $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-down");
- }
- else
- {
- $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-up");
- }
- }
-
- </script>
-
- <title>上传公共文件</title>
- <meta name="keywords" content="">
- <meta name="description" content="">
- </head>
- <body >
-
-
- <div class="panel panel-primary">
- <div class="panel-heading">
- <div style="display:inline;" >公共文件 </div>
- <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseEndFile"><span id="EndFileCollapseIcon" onClick="setCollapseIcon('EndFileCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
- </div>
- <div id="collapseEndFile" class="panel-collapse collapse in">
-
- <div class="panel-body" style="font-size:14px">
-
- <div class="row" style="padding:5px">
- <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
-
- <label class="control-label" for="FileAppealID">选择文件</label></div>
- <div class="col-xs-11 col-sm-11 col-md-11 col-lg-11" >
- <input type="hidden" id="FileAppealID" name="FileAppealID" value="${FileTypeID}"/>
- <input id="file-0a" class="file-loading" type="file" multiple data-min-file-count="1">
-
-
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row" style="padding:5px">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
- <button type="button" class="btn btn-success" id="EndButton" onclick=window.close() ><span class="glyphicon glyphicon-save"></span> 关 闭</button>
-
- </div>
-
- </div>
- </div>
-
- </body>
- </html>
- <script type="text/javascript">
- $(document).on('ready', function() {
- $('#file-0a').fileinput({
- language: 'zh',
- uploadUrl: '${ctx}/myconsole/complaint/uploadfile/upload?FileAppealID=${FileTypeID}&FileType=${FileTypeName}',
- deleteUrl: '${ctx}/myconsole/complaint/uploadfile/delete',
- dropZoneEnabled: false,
- allowedFileExtensions : ['jpg', 'png','gif','doc','docx','pdf','mp3','mp4','xlsx','msg','rar','ppt','cad','zip'],
- }).on("fileuploaded", function(event,data,previewId,index) {
- if(data.response)
- {
- var result = data.response.id;
- }
- });
- });
- </script>
|