Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\parameter\sys_library.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <%@ page import="zlicense.util.FunModuleEnum"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>????????</title> <%@ include file="../global/linkcss.jsp" %> <link rel="stylesheet" href="${pageContext.request.contextPath}/third-party/cropper-master/css/cropper.css"> <style type="text/css"> .tree-file { background:none !important; } .tree-folder { background:none !important; } .tree-node { height: 26px; white-space: nowrap; cursor: pointer; line-height: 26px; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; margin: 4px 0; vertical-align: middle; overflow: hidden; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: middle; white-space: nowrap; padding: 0 2px; margin-top:-4px; height: 18px; line-height: 18px; } </style> <%String toolid ="6204";%> </head> <body> <!-- ????? ???????????????? --> <%@ include file="com_toolbar.jsp"%> <!--??? ?????? ??????--> <div class="m-top datagrid-div"> <div class="easyui-layout" data-options="fit:true" > <div data-options="region:'center',collapsible:false" title="<%=globalLibName%>???" style="width:70%;"> <table id="datagrid-single" class="easyui-datagrid" data-options="singleSelect:true,fitColumns:true,border:false,striped:true" style="height: 100%;"> <thead> <tr> <th data-options="field:'code',align:'center'" width="80">???</th> <th data-options="field:'name',align:'center'" width="80">???</th> <th data-options="field:'liblevel',align:'center'" width="50">???</th> <th data-options="field:'fglx',align:'center',formatter:fmtLibraryLX" width="50"><%=globalLibName%>???</th> <th data-options="field:'qydj',align:'center',formatter:fmtLibraryDJ" width="50">??????</th> <th data-options="field:'parentcode',align:'center'" width="50">???????<%=globalLibName%></th> <th data-options="field:'sjts',align:'center',formatter:fmtLibraryTS" width="50">??????</th> <th data-options="field:'yszjlt',align:'center',formatter:fmtLibraryLT" width="50">???????????</th> <th data-options="field:'sortfld',align:'center'" width="50">???</th> <th data-options="field:'note',align:'center'" width="50">???</th> </tr> </thead> </table> </div> <div data-options="region:'east',collapsible:false" title="<%=globalLibName%>??????" style="width:30%; margin-top: -1px; "> <ul class="easyui-tree" id="libtree" data-options="animate:true,lines:true"></ul> </div> </div> </div> <!--???????????indow???--> <div id="win" class="easyui-dialog" title="??????????????" style="width:850px;height:500px;padding:10px;" data-options=" modal:true,toolbar:'#dlg-toolbar',closed:true,resizable:false,collapsible:false,minimizable:false,maximizable:false,iconCls:'fa fa-gear', onResize:function(){ $(this).window('center'); }"> <!--???????????--> <%@ include file="com_savebar.jsp" %> <div class="table-content"> <input id="paramjson" item-type="record" hidden="hidden"></input> <div id="tabsGrid" class="easyui-tabs" data-options="border:true" style="margin-top: -1px;"> <div title="?????????" style="margin-top: -1px;"> <table class="table-box table-input" style="width:100%;"> <tr> <td style="min-width:100px;" >???</td> <td ><input id="code" item-type="record" update-readonly="true" required="true" class="easyui-textbox" style="width:200px;height: 28px;" data-options="prompt:'????????'"></td> <td style="min-width:120px;" >???</td> <td > <input id="name" item-type="record" insert-check="repeat" required="true" class="easyui-textbox" style="width:200px;height: 28px;" data-options="prompt:'????????'"> </td> </tr> <tr> <%if(MyJspUtils.checkLicense(FunModuleEnum.YAN_SHI_GONG_NENG)){%> <td>??????</td> <td> <select id="bibliblevel" item-type="paramjson" class="easyui-combobox" style="width:200px;height: 28px;" editable="false" data-options="panelHeight:'auto',"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> </select> </td> <%}%> <td>???<%=globalLibName%></td> <td> <select id="parentcode" item-no-init="true" item-type="record" class="easyui-combobox" editable="false" style="width:200px;height: 28px;" editable="true" data-options=""> <%-- <option value="0"><%=globalLibName%>1</option> <option value="1"><%=globalLibName%>2</option> --%> </select> </td> </tr> <tbody class="initSysLibraryParamEnum"></tbody> <td>?????pac?????</td> <td> <select id="showopac" item-type="record" class="easyui-combobox" style="width:200px;height: 28px;" editable="false" data-options="panelHeight:'auto',"> <option value="0">?????</option> <option value="1">???</option> </select> </td> <tr> <td>??????</td> <td> <input id="sortfld" item-type="record" class="easyui-numberbox" style="width:200px;height: 28px;" data-options="prompt:'???????????????????9999'"></input> </td> <td >???</td> <td ><input id="note" item-type="record" class="easyui-textbox" style="width:200px;height: 28px;" data-options="prompt:'???????????'"></td> </tr> <tr> <td colspan="4"> <div style="width: 280px;text-align: center;font-size: 14px;"> <a id="upLoadPhoto" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-plus'" onclick="upLoadPhoto()">???LOGO</a> <a id="deletePhoto" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-close'" onclick="deletePhoto()">???LOGO</a> </div> <td> </tr> <tr> <td rowspan="4" colspan="4"> <div class="rdr-image"> <img id="photourl" alt="" src="" style=" height: 180px;"> </div> <td> </tr> </table> </div> <%if(MyJspUtils.checkLicense(FunModuleEnum.DU_ZHE_WAI_CAI)){%> <div title="?????????" style="margin-top: -1px;"> <table class="table-box table-input" style="width:800px;"> <tbody class="waicaiLibraryParamEnum"></tbody> </table> <div style="height: 260px;"> <table id="wc_zdxd" title="?????????" item-type="paramjson" class="easyui-datagrid m-top" data-options="singleSelect:false,fit:true,fitColumns:true"> <thead> <tr> <th data-options="field:'ck',checkbox:true" width="4%"></th> <th data-options="field:'code',align:'center'" width="16%">???</th> <th data-options="field:'name',align:'center'" width="80%">???</th> </tr> </table> </div> </div> <%}%> <div title="<%=globalLibName%>??????" style="margin-top: -1px;"> <div style="height: 360px;width:100%;" class="m-top"> <table id="authoritygroup" item-type="paramjson" title="?????<%=globalLibName%>??????" class="easyui-datagrid" data-options="fit:true"> <thead> <tr> <th data-options="field:'ck',checkbox:true"></th> <th data-options="field:'ID',align:'center'" width="80">??????</th> <th data-options="field:'NAME',align:'center'" width="100">??????</th> </tr> </thead> </table> </div> </div> </div> </div> </div> <!-- ?????????? --> <div id="winPhotoBnts" style="padding:2px 0"> <table cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td style="padding-left:2px"> <div style="display: none;"> <label class="btn btn-primary btn-upload" for="inputImage" title="Upload image file"> <input type="file" class="sr-only" id="inputImage" name="file" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff"> <span class="docs-tooltip" data-toggle="tooltip" data-animation="false" title="Import image with Blob URLs"> <span class="fa fa-upload"> ??????</span> </span> </label> </div> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'fa fa-upload'" onclick="repeatNewSelect()">??????</a> <!-- <a id="getCroppedCanvas" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'fa fa-check'" >???</a> --> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'fa fa-check'" onclick="saveOrgImg()">???</a> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'fa fa-close'" onclick="javascript:$('#winPhoto').dialog('close')">???</a> <!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'fa fa-close'" onclick="javascript:$('#winPhoto').dialog('close')">???</a> <a id="repeatNewSelect" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'fa fa-repeat'" onclick="repeatNewSelect()">??????</a> --> </td> </tr> </table> </div> <div id="winPhoto" class="easyui-dialog" title="??????logo" style="width:1000px;height:600px;padding:10px;" data-options=" modal:true,closed:true,resizable:false,closable:true, iconCls: 'fa fa-upload', toolbar: '#winPhotoBnts', onOpen : onOpenWinPhoto, onClose : onCloseWinPhoto "> <!-- Content --> <div class="img-container" style="height:100%;height: 500px;"> <img id="image" src="images/bg.png" alt="Picture" > </div> </div> <input id="controller_id" hidden="hidden" value="library"></input> <%@ include file="../global/easyui-dialog.jsp"%> </body> <%@ include file="../global/linkjs.jsp"%> <script type="text/javascript" src="${pageContext.request.contextPath}/page/global/grid/js/grid.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/page/parameter/js/parameter_public.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/page/parameter/js/sys_library.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/page/global/js/com_images.js?version=<%=MyJspUtils.getVersion() %>"></script> <%-- <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/cropper-master/js/cropper.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/cropper-master/js/main.js"></script> --%> <script type="text/javascript"> $(function () { 'use strict'; var console = window.console || { log: function () {} }; var URL = window.URL || window.webkitURL; var $image = $('#image'); var originalImageURL = $image.attr('src'); var uploadedImageName = 'cropped.jpg'; var uploadedImageType = 'image/jpeg'; var uploadedImageURL; // Import image var $inputImage = $('#inputImage'); $inputImage.change(function () { var files = this.files; var file; if (files && files.length) { file = files[0]; if (/^image\/\w+$/.test(file.type)) { uploadedImageName = file.name; uploadedImageType = file.type; uploadedImageURL = URL.createObjectURL(file); $image.attr('src', uploadedImageURL) } else { window.alert('Please choose an image file.'); } } }); }); function getCroppedCanvasResult(){ $('#winPhoto').dialog('close'); } function saveOrgImg(){ var img = new Image(); img.src=$("#image").attr("src"); var base64 = image2Base64(img); vBase64Image = 1; $("#photourl").attr("src",base64); $('#winPhoto').dialog('close'); } function image2Base64(img) { var canvas = document.createElement("canvas"); canvas.width = img.width; canvas.height = img.height; var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0, img.width, img.height); var dataURL = canvas.toDataURL("image/png"); return dataURL; } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de