diff --git a/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/json2form.js b/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/json2form.js
deleted file mode 100644
index 07ef69da110baafae6a29ba5a1903d49c19d3224..0000000000000000000000000000000000000000
--- a/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/json2form.js
+++ /dev/null
@@ -1,147 +0,0 @@
-/* jQuery json2form Plugin
- * version: 1.0 (2011-03-01)
- *
- * Copyright (c) 2011, Crystal, shimingxy@163.com
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- * Date: 2011-03-01 rev 1
- */
- ;(function ($) {
-$.json2form = $.json2form||{};
-$.fn.json2form = function(config ) {
- var config=$.extend({
- url :null,
- elem :this.attr("id"),
- type :'POST'
- }, config || {});
-
- if(config.url){
- $.ajax({type: config.type,url: config.url,data:$.extend({json2form:config.elem},config.data||{}),dataType: "json",async: false,
- success: function(data){
- config.data=data;
- }
- });
- }
-
- if(!$("#"+config.elem).attr("loadedInit")){//init checkbox radio and select element ,label
- if(config.data.init){
- for (var elem in config.data.init){
- var arrayData=config.data.init[elem];
- if($("#"+config.elem+" input[name='"+elem+"']")){
- var elemType=$("#"+config.elem+" input[name='"+elem+"']").attr("type");
- var elemName=$("#"+config.elem+" input[name='"+elem+"']").attr("name");
- var initElem=$("#"+config.elem+" input[name='"+elem+"']");
- switch(elemType){
- case "checkbox":
- case "radio":
- for (var initelem in arrayData){
- initElem.after(''+arrayData[initelem].display);
- }
- initElem.remove();
- break;
- }
- }
- if($("#"+config.elem+" select[name='"+elem+"']")){
- for (var initelem in arrayData){
- $("#"+config.elem+" select[name='"+elem+"']").append("");
- }
- }
- }
- }
- if(config.data.label){//label
- $("#"+config.elem+" label").each(function(){
- var labelFor=$(this).attr("for");
- if(config.data.label[labelFor]){
- $(this).html(config.data.label[labelFor]);
- }
- });
- }
- }
-
- if(config.data){//input text password hidden button reset submit checkbox radio select textarea
- $("#"+config.elem+" input,select,textarea").each(function(){
- var elemType=$(this).attr("type")==undefined?this.type:$(this).attr("type");
- var elemName=$(this).attr("name");
- var elemData=config.data[elemName];
- if(!$("#"+config.elem).attr("loadedInit")&&$(this).attr("loadurl")){
- switch(elemType){
- case "checkbox":
- case "radio":
- case "select":
- case "select-one":
- case "select-multiple":{
- var _this =this;
- $.ajax({type: config.type,url: $(this).attr("loadurl"),dataType: "json",async: false,success: function(data){
- if(elemType=="select"||elemType=="select-one"||elemType=="select-multiple"){
- $(_this).empty();
- }
- for (var elem in data){
- if(elemType=="select"||elemType=="select-one"||elemType=="select-multiple"){
- $(_this).append("");
- }else{
- $(_this).after(''+data[elem].display);
- }
- }
- if(elemType=="checkbox"||elemType=="radio")$(_this).remove();
- }
- });
- break;
- }
- }
- }
-
- if(elemData){
- switch(elemType){
- case undefined:
- case "text":
- case "password":
- case "hidden":
- case "button":
- case "reset":
- case "textarea":
- case "submit":{
- if(typeof(elemData)=="string"){
- $(this).val(elemData.toUpperCase()=="NULL"?"":elemData);
- }else{
- $(this).val(elemData+"");
- }
- break;
- }
- case "checkbox":
- case "radio":{
- $(this).attr("checked",false);
- if(elemData.constructor==Array){//checkbox multiple value is Array
- for (var elem in elemData){
- if(elemData[elem]==$(this).val()){
- $(this).attr("checked",true);
- }
- }
- }else{//radio or checkbox is a string single value
- if(elemData==$(this).val()){
- $(this).attr("checked",true);
- }
- }
- break;
- }
- case "select":
- case "select-one":
- case "select-multiple":{
- $(this).find("option:selected").attr("selected",false);
- if(elemData.constructor==Array){
- for (var elem in elemData){
- $(this).find("option[value='"+elemData[elem]+"']").attr("selected",true);
- }
- }else{
- $(this).find("option[value='"+elemData+"']").attr("selected",true);
- }
- break;
- }
- }
- }
- });
- }
-
- $("#"+config.elem).attr("loadedInit","true");//loadedInit is true,next invoke not need init checkbox radio and select element ,label
-};
-})(jQuery);
\ No newline at end of file
diff --git a/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/json2formDemo.htm b/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/json2formDemo.htm
deleted file mode 100644
index 0668e0247d1be29ac34831bc0271b93cdf52b0d1..0000000000000000000000000000000000000000
--- a/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/json2formDemo.htm
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
- Json2form Demo
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/new 4.txt b/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/new 4.txt
deleted file mode 100644
index 028b35fe18090c9d5f84233b2eda60f9a5b2d496..0000000000000000000000000000000000000000
--- a/maxkey-web-maxkey/src/main/resources/static/jquery/json2form/new 4.txt
+++ /dev/null
@@ -1,168 +0,0 @@
-/* jQuery json2form Plugin
- * version: 1.0 (2011-3-01)
- *
- * Copyright (c) 2011, Crystal, shimingxy@163.com
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- * Date: 2011-3-01 rev 1
- */
- ;(function ($) {
-$.json2form = $.json2form||{};
-$.fn.json2form = function(config ) {
-
- var config=$.extend({
- url : null,//remote url for ajax data
- elem : this.attr("id"),//id
- type : "POST",//remote data method type ,GET or POST default is POST
- }, config || {});
- if(config.url){
- $.ajax({type: config.type,url: config.url,dataType: "json",async: false,
- success: function(data){
- config.data=data;
- }
- });
- }
- alert();
- if(config.init){
- //init
- for (var elem in config.init){
- if(typeof(elem) != 'function'){
- var arrayObject=config.init[elem];
- if($("#"+config.elem+" input[name='"+elem+"']")){
- var elemtype=$("#"+config.elem+" input[name='"+elem+"']").attr("type");
- var elemName=$("#"+config.elem+" input[name='"+elem+"']").attr("name");
- var initElem=$("#"+config.elem+" input[name='"+elem+"']");
- switch(elemtype){
- case "checkbox":
- for (var initelem in arrayObject){
- initElem.after(''+arrayObject[initelem].display);
- }
- initElem.remove();
- break;
- case "radio":
- for (var initelem in arrayObject){
- initElem.after(''+arrayObject[initelem].display);
- }
- initElem.remove();
- break;
- }
- }
- if($("#"+config.elem+" select[name='"+elem+"']")){
- for (var initelem in arrayObject){
- $("#"+config.elem+" select[name='"+elem+"']").append("");
- }
- }
- }
- }
- }
-
- if(config.data){
- //input text password hidden button reset submit checkbox radio
- $("#"+config.elem+" input").each(function(){
-
- var elemtype=$(this).attr("type");
-
- if($(this).attr("action")){
- var elemName=$(this).attr("name");
- switch(elemtype){
- case "checkbox":
- var checkbox =this;
- $.ajax({type: "POST",url: $(this).attr("action"),dataType: "json",async: false,success: function(data){
- for (var elem in data){
- $(checkbox).after(''+data[elem].display);
- }
- $(checkbox).remove();
- }
- });
- break;
- case "radio":
- var radio =this;
- $.ajax({type: "POST",url: $(this).attr("action"),dataType: "json",async: false,success: function(data){
- for (var elem in data){
- $(radio).after(''+data[elem].display);
- }
- $(radio).remove();
- }
- });
- break;
- }
- }
-
- switch(elemtype){
- case "text":
- case "password":
- case "hidden":
- case "button":
- case "reset":
- case "submit":{
- for (var elem in config.data){
- if(typeof(elem) != 'function'){
- if(($(this).attr("name"))==elem){
- $(this).val(config.data[elem]);
- }
- }
- }
- break;
- }
- case "checkbox":
- case "radio":{
- for (var elem in config.data){
- if(typeof(elem) != 'function'){
- if(($(this).attr("name"))==elem&&($(this).val())==$(this).val()){
- $(this).attr("checked",true);
- }
- }
- }
- break;
- }
- }
- });
- //select
- $("#"+config.elem+" select").each(function(){
- var select =this;
- if($(this).attr("action")){
- $.ajax({type: "POST",url: $(this).attr("action"),dataType: "json",async: false,success: function(data){
- for (var elem in data){
- $(select).append("");
- }
- }
- });
- }
-
- for (var elem in config.data){
- if(typeof(elem) != 'function'){
- if(($(this).attr("name"))==elem){
- $(this).val(config.data[elem]);
- }
- }
- }
-
- });
-
- //textarea
- $("#"+config.elem+" textarea").each(function(){
- for (var elem in config.data){
- if(typeof(elem) != 'function'){
- if(($(this).attr("name"))==elem){
- $(this).val(config.data[elem]);
- }
- }
- }
- });
- }
-
- if(config.label){
- //label
- $("#"+config.elem+" label").each(function(){
- for (var elem in config.label){
- if(typeof(elem) != 'function'){
- if(($(this).attr("for"))==elem){
- $(this).html(config.label[elem]);
- }
- }
- }
- });
- }
-};
-})(jQuery);
\ No newline at end of file
diff --git a/maxkey-web-maxkey/src/main/resources/templates/views/layout/common.cssjs.ftl b/maxkey-web-maxkey/src/main/resources/templates/views/layout/common.cssjs.ftl
index 13f2eef02971d147ad800dde564183bc3e0c9970..4d9dbeee31919cfaf2937ef58b8c98b1427a1337 100644
--- a/maxkey-web-maxkey/src/main/resources/templates/views/layout/common.cssjs.ftl
+++ b/maxkey-web-maxkey/src/main/resources/templates/views/layout/common.cssjs.ftl
@@ -28,7 +28,6 @@
<#-- form -->
-
<#-- blockUI -->
<#-- serializeObject -->