mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-11 03:21:27 +08:00
调整JS结构
This commit is contained in:
@@ -1,133 +0,0 @@
|
||||
; (function ($) {
|
||||
/**
|
||||
* jqGrid Chinese Translation for v3.6
|
||||
* waiting 2010.01.18
|
||||
* http://waiting.javaeye.com/
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* update 2010.05.04
|
||||
* add double u3000 SPACE for search:odata to fix SEARCH box display err when narrow width from only use of eq/ne/cn/in/lt/gt operator under IE6/7
|
||||
**/
|
||||
$.jgrid = {
|
||||
defaults: {
|
||||
recordtext: "检索到 {2} 条记录,显示 第 {0} 条 - 第 {1} 条,查询耗时 {3} 毫秒",
|
||||
emptyrecords: "无数据显示",
|
||||
loadtext: "读取中...",
|
||||
pgtext: " 第 {0} 页 / 共 {1} 页 "
|
||||
|
||||
},
|
||||
search: {
|
||||
caption: "搜索...",
|
||||
Find: "查找",
|
||||
Reset: "重置",
|
||||
odata: ['等于\u3000\u3000', '不等\u3000\u3000', '小于\u3000\u3000', '小于等于', '大于\u3000\u3000', '大于等于',
|
||||
'开始于', '不开始于', '属于\u3000\u3000', '不属于', '结束于', '不结束于', '包含\u3000\u3000', '不包含'],
|
||||
groupOps: [{ op: "AND", text: "所有" }, { op: "OR", text: "任一" }],
|
||||
matchText: " 匹配",
|
||||
rulesText: " 规则"
|
||||
},
|
||||
edit: {
|
||||
addCaption: "添加记录",
|
||||
editCaption: "编辑记录",
|
||||
bSubmit: "提交",
|
||||
bCancel: "取消",
|
||||
bClose: "关闭",
|
||||
saveData: "数据已改变,是否保存?",
|
||||
bYes: "是",
|
||||
bNo: "否",
|
||||
bExit: "取消",
|
||||
msg: {
|
||||
required: "此字段必需",
|
||||
number: "请输入有效数字",
|
||||
minValue: "输值必须大于等于 ",
|
||||
maxValue: "输值必须小于等于 ",
|
||||
email: "这不是有效的e-mail地址",
|
||||
integer: "请输入有效整数",
|
||||
date: "请输入有效时间",
|
||||
url: "无效网址。前缀必须为 ('http://' 或 'https://')",
|
||||
nodefined: " 未定义!",
|
||||
novalue: " 需要返回值!",
|
||||
customarray: "自定义函数需要返回数组!",
|
||||
customfcheck: "Custom function should be present in case of custom checking!"
|
||||
|
||||
}
|
||||
},
|
||||
view: {
|
||||
caption: "查看记录",
|
||||
bClose: "关闭"
|
||||
},
|
||||
del: {
|
||||
caption: "删除",
|
||||
msg: "删除所选记录?",
|
||||
bSubmit: "删除",
|
||||
bCancel: "取消"
|
||||
},
|
||||
nav: {
|
||||
edittext: "",
|
||||
edittitle: "编辑所选记录",
|
||||
addtext: "",
|
||||
addtitle: "添加新记录",
|
||||
deltext: "",
|
||||
deltitle: "删除所选记录",
|
||||
searchtext: "",
|
||||
searchtitle: "查找",
|
||||
refreshtext: "",
|
||||
refreshtitle: "刷新表格",
|
||||
alertcap: "注意",
|
||||
alerttext: "请选择记录",
|
||||
viewtext: "",
|
||||
viewtitle: "查看所选记录"
|
||||
},
|
||||
col: {
|
||||
caption: "选择列",
|
||||
bSubmit: "确定",
|
||||
bCancel: "取消"
|
||||
},
|
||||
errors: {
|
||||
errcap: "错误",
|
||||
nourl: "没有设置url",
|
||||
norecords: "没有要处理的记录",
|
||||
model: "colNames 和 colModel 长度不等!"
|
||||
},
|
||||
formatter: {
|
||||
integer: { thousandsSeparator: " ", defaultValue: '0' },
|
||||
number: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00' },
|
||||
currency: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: '0.00' },
|
||||
date: {
|
||||
dayNames: [
|
||||
"Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
|
||||
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
|
||||
],
|
||||
monthNames: [
|
||||
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
|
||||
"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
|
||||
],
|
||||
AmPm: ["am", "pm", "AM", "PM"],
|
||||
S: function (j) { return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th' },
|
||||
srcformat: 'Y-m-d',
|
||||
newformat: 'm-d-Y',
|
||||
masks: {
|
||||
ISO8601Long: "Y-m-d H:i:s",
|
||||
ISO8601Short: "Y-m-d",
|
||||
ShortDate: "Y/j/n",
|
||||
LongDate: "l, F d, Y",
|
||||
FullDateTime: "l, F d, Y g:i:s A",
|
||||
MonthDay: "F d",
|
||||
ShortTime: "g:i A",
|
||||
LongTime: "g:i:s A",
|
||||
SortableDateTime: "Y-m-d\\TH:i:s",
|
||||
UniversalSortableDateTime: "Y-m-d H:i:sO",
|
||||
YearMonth: "F, Y"
|
||||
},
|
||||
reformatAfterEdit: false
|
||||
},
|
||||
baseLinkUrl: '',
|
||||
showAction: '',
|
||||
target: '',
|
||||
checkbox: { disabled: true },
|
||||
idName: 'id'
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
@@ -1,248 +0,0 @@
|
||||
|
||||
/*Grid*/.ui-jqgrid{position: relative;}
|
||||
.ui-jqgrid .ui-jqgrid-view{position: relative;left:0;top: 0;padding: 0;font-size:11px;}
|
||||
/* caption*/.ui-jqgrid .ui-jqgrid-titlebar{padding: .3em .2em .2em .3em;position: relative;font-size: 12px;border-left: 0 none;border-right: 0 none;border-top: 0 none;}
|
||||
.ui-jqgrid .ui-jqgrid-caption{text-align: left;}
|
||||
.ui-jqgrid .ui-jqgrid-title{}
|
||||
.ui-jqgrid .ui-jqgrid-titlebar-close{position: absolute;top: 50%;width: 19px;margin: -10px 0 0 0;padding: 1px;height:18px;cursor:pointer;}
|
||||
.ui-jqgrid .ui-jqgrid-titlebar-close span{display: block;margin: 1px;}
|
||||
.ui-jqgrid .ui-jqgrid-titlebar-close:hover{padding: 0;}
|
||||
/* header*/.ui-jqgrid .ui-jqgrid-hdiv{position: relative;margin: 0;padding: 0;overflow-x: hidden;border-left: 0 none !important;border-top : 0 none !important;border-right : 0 none !important;}
|
||||
.ui-jqgrid .ui-jqgrid-hbox{float: left;padding-right: 20px;}
|
||||
.ui-jqgrid .ui-jqgrid-htable{table-layout:fixed;margin:0;}
|
||||
.ui-jqgrid .ui-jqgrid-htable th{height:28px;line-height:18px;padding: 0 2px 0 5px;}
|
||||
.ui-jqgrid .ui-jqgrid-htable th div{overflow: hidden;position:relative;}
|
||||
.ui-jqgrid .ui-jqgrid-htable th .cbox{margin-left:-3px;margin-bottom:1px;vertical-align: middle;}
|
||||
.ui-jqgrid .ui-jqgrid-htable th .ui-th-div-ie input{margin-left:-3px;margin-bottom:6px;vertical-align: middle;}
|
||||
.ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column{overflow: hidden;border-top : 0 none;border-bottom : 0 none;}
|
||||
.ui-th-ltr, .ui-jqgrid .ui-jqgrid-htable th.ui-th-ltr{border-left : 0 none;}
|
||||
.ui-th-rtl, .ui-jqgrid .ui-jqgrid-htable th.ui-th-rtl{border-right : 0 none;}
|
||||
.ui-first-th-ltr{border-right: 1px solid;}
|
||||
.ui-first-th-rtl{border-left: 1px solid;}
|
||||
.ui-jqgrid .ui-th-div-ie{white-space: nowrap;zoom :1;height:17px;}
|
||||
.ui-jqgrid .ui-jqgrid-resize{height:20px !important;position: relative;cursor :e-resize;display: inline;overflow: hidden;}
|
||||
.ui-jqgrid .ui-grid-ico-sort{overflow:hidden;position:absolute;display:inline;cursor: pointer !important;}
|
||||
.ui-jqgrid .ui-icon-asc{margin-top:-3px;height:12px;}
|
||||
.ui-jqgrid .ui-icon-desc{margin-top:3px;height:12px;}
|
||||
.ui-jqgrid .ui-i-asc{margin-top:0;height:16px;}
|
||||
.ui-jqgrid .ui-i-desc{margin-top:0;margin-left:13px;height:16px;}
|
||||
.ui-jqgrid .ui-jqgrid-sortable{cursor:pointer;}
|
||||
.ui-jqgrid tr.ui-search-toolbar th{border-top-width: 1px !important;border-top-color: inherit !important;border-top-style: ridge !important}
|
||||
tr.ui-search-toolbar input{margin: 1px 0 0 0}
|
||||
tr.ui-search-toolbar select{margin: 1px 0 0 0}
|
||||
/* body*/.ui-jqgrid .ui-jqgrid-bdiv{position: relative;margin: 0;padding:0;overflow: auto;text-align:left;}
|
||||
.ui-jqgrid .ui-jqgrid-btable{table-layout:fixed;margin:0;outline-style: none;margin-bottom:1px;}
|
||||
.ui-jqgrid tr.jqgrow{outline-style: none;}
|
||||
.ui-jqgrid tr.jqgroup{outline-style: none;}
|
||||
.ui-jqgrid tr.jqgrow td{font-weight: normal;overflow: hidden;white-space: pre;height: 22px;padding: 0 2px 0 2px;border-bottom: 1px solid #ccc;}
|
||||
.ui-jqgrid tr.jqgrow td .cbox{vertical-align: middle;padding-bottom:3px;}
|
||||
.subgrid-data tr.jqgfirstrow td{border:none;}
|
||||
.ui-jqgrid tr.jqgfirstrow td{padding: 0 2px 0 2px;border-right-width: 1px;border-right-style: solid;}
|
||||
.ui-jqgrid tr.jqgroup td{font-weight: normal;overflow: hidden;white-space: pre;height: 22px;padding: 0 2px 0 2px;border-bottom-width: 1px;border-bottom-color: inherit;border-bottom-style: solid;}
|
||||
.ui-jqgrid tr.jqfoot td{font-weight: bold;overflow: hidden;white-space: pre;height: 22px;padding: 0 2px 0 2px;border-bottom-width: 1px;border-bottom-color: inherit;border-bottom-style: solid;}
|
||||
.ui-jqgrid tr.ui-row-ltr td{text-align:left;border-right-width: 0px;border-right-color: #ccc;border-right-style: solid;}
|
||||
.ui-jqgrid tr.ui-row-rtl td{text-align:right;border-left-width: 1px;border-left-color: inherit;border-left-style: solid;}
|
||||
.ui-jqgrid td.jqgrid-rownum{padding: 0 2px 0 2px;margin: 0;border: 0 none;cursor:pointer;}
|
||||
.ui-jqgrid .ui-jqgrid-resize-mark{width:2px;left:0;background-color:#777;cursor: e-resize;cursor: col-resize;position:absolute;top:0;height:100px;overflow:hidden;display:none;border:0 none;z-index: 99999;}
|
||||
/* footer*/.ui-jqgrid .ui-jqgrid-sdiv{position: relative;margin: 0;padding: 0;overflow: hidden;border-left: 0 none !important;border-top : 0 none !important;border-right : 0 none !important;}
|
||||
.ui-jqgrid .ui-jqgrid-ftable{table-layout:fixed;margin-bottom:0;}
|
||||
.ui-jqgrid tr.footrow td{overflow: hidden;white-space:nowrap;height: 24px;line-height: 25px;padding: 0 2px 0 2px;border-top-width: 1px;border-top-color: inherit;border-top-style: solid;}
|
||||
.ui-jqgrid tr.footrow-ltr {
|
||||
border-left:0px !important;
|
||||
border-right:0px !important;
|
||||
border-bottom:0px !important;
|
||||
}
|
||||
.ui-jqgrid tr.footrow-ltr td{text-align:left;border-right-width: 0px;border-right-color: inherit;border-right-style: solid;}
|
||||
.ui-jqgrid tr.footrow-rtl td{text-align:right;border-left-width: 1px;border-left-color: inherit;border-left-style: solid;}
|
||||
/* Pager*/.ui-jqgrid .ui-jqgrid-pager{border-left: 0 none !important;border-right: 0 none !important;border-bottom: 0 none !important;margin: 0 !important;padding: 0 !important;position: relative;height: 25px;white-space: nowrap;overflow: hidden;font-size:11px;}
|
||||
.ui-jqgrid .ui-pager-control{position: relative;-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;}
|
||||
.ui-jqgrid .ui-pg-table{position: relative;padding-bottom:2px;width:auto;margin: 0;}
|
||||
.ui-jqgrid .ui-pg-table td{font-weight:normal;vertical-align:middle;padding:1px;}
|
||||
/*.ui-jqgrid .ui-pg-button{height:19px !important;}*/.ui-jqgrid .ui-pg-button span{display: block;margin: 1px;float:left;}
|
||||
.ui-jqgrid .ui-pg-button:hover{padding: 0;}
|
||||
.ui-jqgrid .ui-state-disabled:hover{padding:1px;}
|
||||
.ui-jqgrid .ui-pg-input{height:20px;font-size:.8em;margin: 0;}
|
||||
.ui-jqgrid .ui-pg-selbox{font-size:.8em;line-height:20px;display:block;height:20px;margin: 0;}
|
||||
.ui-jqgrid .ui-separator{height: 18px;border-left: 1px solid #ccc ;border-right: 1px solid #ccc ;margin: 1px;float: right;}
|
||||
.ui-jqgrid .ui-paging-info{font-weight: normal;height:19px;margin-top:3px;margin-right:4px;}
|
||||
.ui-jqgrid .ui-jqgrid-pager .ui-pg-div{padding:1px 0;float:left;position:relative;}
|
||||
.ui-jqgrid .ui-jqgrid-pager .ui-pg-button{cursor:pointer;}
|
||||
.ui-jqgrid .ui-jqgrid-pager .ui-pg-div span.ui-icon{float:left;margin:0 2px;}
|
||||
.ui-jqgrid td input, .ui-jqgrid td select .ui-jqgrid td textarea{margin: 0;}
|
||||
.ui-jqgrid td textarea{width:auto;height:auto;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager{border-left: 0 none !important;border-right: 0 none !important;border-top: 0 none !important;margin: 0 !important;padding: 0 !important;position: relative;height: 25px !important;white-space: nowrap;overflow: hidden;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div{padding:1px 0;float:left;position:relative;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-button{cursor:pointer;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div span.ui-icon{float:left;margin:0 2px;}
|
||||
/*subgrid*/.ui-jqgrid .ui-jqgrid-btable .ui-sgcollapsed span{display: block;}
|
||||
.ui-jqgrid .ui-subgrid{margin:0;padding:0;width:100%;}
|
||||
.ui-jqgrid .ui-subgrid table{table-layout: fixed;}
|
||||
.ui-jqgrid .ui-subgrid tr.ui-subtblcell td{height:18px;border-right-width: 1px;border-right-color: inherit;border-right-style: solid;border-bottom-width: 1px;border-bottom-color: inherit;border-bottom-style: solid;}
|
||||
.ui-jqgrid .ui-subgrid td.subgrid-data{border-top: 0 none !important;padding:10px;padding-bottom:9px;border: 1px solid #ccc;}
|
||||
.ui-jqgrid .ui-subgrid td.subgrid-data .ui-widget-content{border: 1px solid #ccc;}
|
||||
.ui-jqgrid .ui-subgrid td.subgrid-cell{border-width: 0 1px 1px 0;border-bottom: 1px solid #ccc;border-right:0px;}
|
||||
.ui-jqgrid .ui-th-subgrid{height:20px;}
|
||||
/* loading*/.ui-jqgrid .loading{position: absolute;top: 45%;left: 45%;width: auto;z-index:101;padding: 6px;margin: 5px;text-align: center;font-weight: bold;display: none;border-width: 2px !important;font-size:11px;}
|
||||
.ui-jqgrid .jqgrid-overlay{display:none;z-index:100;}
|
||||
/* IE * html .jqgrid-overlay{width: expression(this.parentNode.offsetWidth+'px');height: expression(this.parentNode.offsetHeight+'px');}*/
|
||||
* .jqgrid-overlay iframe{position:absolute;top:0;left:0;z-index:-1;}
|
||||
/* IE width: expression(this.parentNode.offsetWidth+'px');height: expression(this.parentNode.offsetHeight+'px');}*//* end loading div*//* toolbar*/.ui-jqgrid .ui-userdata{border-left: 0 none;border-right: 0 none;height : 21px;overflow: hidden;}
|
||||
/*Modal Window*/.ui-jqdialog{display: none;width: 300px;position: absolute;padding: .2em;font-size:11px;overflow:visible;}
|
||||
.ui-jqdialog .ui-jqdialog-titlebar{padding: .3em .2em;position: relative;}
|
||||
.ui-jqdialog .ui-jqdialog-title{margin: .1em 0 .2em;}
|
||||
.ui-jqdialog .ui-jqdialog-titlebar-close{position: absolute;top: 50%;width: 19px;margin: -10px 0 0 0;padding: 1px;height: 18px;cursor:pointer;}
|
||||
.ui-jqdialog .ui-jqdialog-titlebar-close span{display: block;margin: 1px;}
|
||||
.ui-jqdialog .ui-jqdialog-titlebar-close:hover, .ui-jqdialog .ui-jqdialog-titlebar-close:focus{padding: 0;}
|
||||
.ui-jqdialog-content, .ui-jqdialog .ui-jqdialog-content{border: 0;padding: .3em .2em;background: none;height:auto;}
|
||||
.ui-jqdialog .ui-jqconfirm{padding: .4em 1em;border-width:3px;position:absolute;bottom:10px;right:10px;overflow:visible;display:none;height:80px;width:220px;text-align:center;}
|
||||
.ui-jqdialog>.ui-resizable-se{bottom: -3px;right: -3px}
|
||||
.ui-jqgrid>.ui-resizable-se{bottom: -3px;right: -3px}
|
||||
/* end Modal window*//* Form edit*/.ui-jqdialog-content .FormGrid{margin: 0;}
|
||||
.ui-jqdialog-content .EditTable{width: 100%;margin-bottom:0;}
|
||||
.ui-jqdialog-content .DelTable{width: 100%;margin-bottom:0;}
|
||||
.EditTable td input, .EditTable td select, .EditTable td textarea{margin: 0;}
|
||||
.EditTable td textarea{width:auto;height:auto;}
|
||||
.ui-jqdialog-content td.EditButton{text-align: right;border-top: 0 none;border-left: 0 none;border-right: 0 none;padding-bottom:5px;padding-top:5px;}
|
||||
.ui-jqdialog-content td.navButton{text-align: center;border-left: 0 none;border-top: 0 none;border-right: 0 none;padding-bottom:5px;padding-top:5px;}
|
||||
.ui-jqdialog-content input.FormElement{padding:.3em}
|
||||
.ui-jqdialog-content select.FormElement{padding:.3em}
|
||||
.ui-jqdialog-content .data-line{padding-top:.1em;border: 0 none;}
|
||||
.ui-jqdialog-content .CaptionTD{vertical-align: middle;border: 0 none;padding: 2px;white-space: nowrap;}
|
||||
.ui-jqdialog-content .DataTD{padding: 2px;border: 0 none;vertical-align: top;}
|
||||
.ui-jqdialog-content .form-view-data{white-space:pre}
|
||||
.fm-button{display: inline-block;margin:0 4px 0 0;padding: .4em .5em;text-decoration:none !important;cursor:pointer;position: relative;text-align: center;zoom: 1;}
|
||||
.fm-button-icon-left{padding-left: 1.9em;}
|
||||
.fm-button-icon-right{padding-right: 1.9em;}
|
||||
.fm-button-icon-left .ui-icon{right: auto;left: .2em;margin-left: 0;position: absolute;top: 50%;margin-top: -8px;}
|
||||
.fm-button-icon-right .ui-icon{left: auto;right: .2em;margin-left: 0;position: absolute;top: 50%;margin-top: -8px;}
|
||||
#nData, #pData{float: left;margin:3px;padding: 0;width: 15px;}
|
||||
/* End Eorm edit*//*.ui-jqgrid .edit-cell{}*/.ui-jqgrid .selected-row, div.ui-jqgrid .selected-row td{font-style : normal;border-left: 0 none;}
|
||||
/* inline edit actions button*/.ui-inline-del.ui-state-hover span, .ui-inline-edit.ui-state-hover span,
|
||||
.ui-inline-save.ui-state-hover span, .ui-inline-cancel.ui-state-hover span{margin: -1px;}
|
||||
/* Tree Grid*/.ui-jqgrid .tree-wrap{float: left;position: relative;height: 18px;white-space: nowrap;overflow: hidden;}
|
||||
.ui-jqgrid .tree-minus{position: absolute;height: 18px;width: 18px;overflow: hidden;}
|
||||
.ui-jqgrid .tree-plus{position: absolute;height: 18px;width: 18px;overflow: hidden;}
|
||||
.ui-jqgrid .tree-leaf{position: absolute;height: 18px;width: 18px;overflow: hidden;}
|
||||
.ui-jqgrid .treeclick{cursor: pointer;margin-top:4px;}
|
||||
/* moda dialog*/
|
||||
* iframe.jqm{position:absolute;top:0;left:0;z-index:-1;}
|
||||
/* width: expression(this.parentNode.offsetWidth+'px');height: expression(this.parentNode.offsetHeight+'px');}*/.ui-jqgrid-dnd tr td{border-right-width: 1px;border-right-color: inherit;border-right-style: solid;height:20px}
|
||||
/* RTL Support*/.ui-jqgrid .ui-jqgrid-caption-rtl{text-align: right;}
|
||||
.ui-jqgrid .ui-jqgrid-hbox-rtl{float: right;padding-left: 20px;}
|
||||
.ui-jqgrid .ui-jqgrid-resize-ltr{float: right;margin: -2px -2px -2px 0;}
|
||||
.ui-jqgrid .ui-jqgrid-resize-rtl{float: left;margin: -2px 0 -1px -3px;}
|
||||
.ui-jqgrid .ui-sort-rtl{left:0;}
|
||||
.ui-jqgrid .tree-wrap-ltr{float: left;}
|
||||
.ui-jqgrid .tree-wrap-rtl{float: right;}
|
||||
.ui-jqgrid .ui-ellipsis{-moz-text-overflow:ellipsis;text-overflow:ellipsis;}
|
||||
/* Toolbar Search Menu*/.ui-search-menu{position: absolute;padding: 2px 5px;}
|
||||
.ui-jqgrid .ui-search-table{padding: 0;border: 0 none;height:20px;width:100%;}
|
||||
.ui-jqgrid .ui-search-table .ui-search-oper{width:20px;}
|
||||
a.g-menu-item, a.soptclass, a.clearsearchclass{cursor: pointer;}
|
||||
.ui-jqgrid .ui-search-table .ui-search-input>input,
|
||||
.ui-jqgrid .ui-search-table .ui-search-input>select{display: block;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}
|
||||
.ui-jqgrid .ui-jqgrid-view input,
|
||||
.ui-jqgrid .ui-jqgrid-view select,
|
||||
.ui-jqgrid .ui-jqgrid-view textarea,
|
||||
.ui-jqgrid .ui-jqgrid-view button{font-size: 11px}
|
||||
.editable{border:none;padding:0px;margin:0px;height:20px;line-height:20px;width:100%;font-family:<EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,Arial,Helvetica,Verdana,sans-serif;font-size:9pt;color:#000000;}
|
||||
.ui-subgrid td:first-child{border-bottom: 1px solid #ccc;}
|
||||
.operating span{display: inline-block;margin: 0 5px;cursor: pointer;}
|
||||
.operating i{color: #676a6c;}
|
||||
.ui-state-highlight .operating i{color: #fff;}
|
||||
.subgrid-data{position: relative;}
|
||||
.subgridtoolbar{position: absolute;top: 11px;left: 12px;z-index: 99;height: 35px;line-height: 35px;}
|
||||
.nav-pills > li > a{position: relative;display: block;padding: 0px 10px;cursor:pointer;}
|
||||
.nav-pills > li > a:hover{color:#337ab7}
|
||||
/* jqGrid*/.ui-jqgrid{-moz-box-sizing: content-box;}
|
||||
.ui-jqgrid-btable{border-collapse: separate;margin-bottom:1px;/*border-right: 1px solid #ccc;*/}
|
||||
.ui-jqgrid-htable{border-collapse: separate;}
|
||||
.ui-jqgrid i{width:14px;}
|
||||
.ui-jqgrid-titlebar{height: 32px;line-height: 32px;color: #676a6c;background-color: #F9F9F9;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);}
|
||||
.ui-jqgrid .ui-jqgrid-title{white-space: nowrap;font-weight: bold;padding-left: 5px;}
|
||||
.ui-jqgrid .ui-jqgrid-titlebar{position: relative;border-left: 0px solid;border-right: 0px solid;border-top: 0px solid;}
|
||||
.ui-widget-header{background: none;background-image: none;background-color: #fff;text-transform: uppercase;border-top-left-radius: 0px;border-top-right-radius: 0px;}
|
||||
.ui-jqgrid tr.ui-row-ltr td{border-right: 1px solid #ccc;border-right:none;background-color: inherit;}
|
||||
.ui-jqgrid tr.ui-row-ltr td:last-child{border-right: 1px solid #ccc;}
|
||||
.ui-jqgrid tr.ui-row-ltr .td-last-child{border-right: 1px solid #ccc;}
|
||||
.ui-jqgrid tr.ui-row-ltr i.fa-toggle-on {
|
||||
color:#449d44;
|
||||
font-size:14pt;vertical-align:middle;margin-top:-1px;
|
||||
}
|
||||
.ui-jqgrid tr.ui-row-ltr i.fa-toggle-off {
|
||||
color:#aaa;font-size:14pt; vertical-align: middle;margin-top:-1px;
|
||||
}
|
||||
.ui-search-toolbar input[type="text"]{font-size: 12px;height: 15px;border: 1px solid #CCCCCC;border-radius: 0px;}
|
||||
.ui-state-default,
|
||||
.ui-widget-content .ui-state-default,
|
||||
.ui-widget-header .ui-state-default{background: #fff;border: 1px solid #ccc;line-height: 15px;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);}
|
||||
.ui-widget-content{box-sizing: content-box;}
|
||||
.ui-icon-triangle-1-n{background-position: 1px -16px;}
|
||||
.ui-jqgrid tr.ui-search-toolbar th{border-top-width: 0px !important;border-top-color: inherit !important;border-top-style: ridge !important;}
|
||||
.ui-state-hover,
|
||||
.ui-widget-content .ui-state-hover,
|
||||
.ui-state-focus,
|
||||
.ui-widget-content .ui-state-focus,
|
||||
.ui-widget-header .ui-state-focus{background: #eee;border-collapse: separate;}
|
||||
.ui-state-highlight,
|
||||
.ui-widget-content .ui-state-highlight,
|
||||
.ui-widget-header .ui-state-highlight{background: #337ab7;color:#fff;}
|
||||
.ui-state-active,
|
||||
.ui-widget-content .ui-state-active,
|
||||
.ui-widget-header .ui-state-active{border: 1px solid #ccc;background: #ffffff;font-weight: normal;color: #212121;}
|
||||
.ui-jqgrid .ui-pg-input{font-size: inherit;width: 50px;border: 1px solid #CCCCCC;height: 15px;}
|
||||
.ui-jqgrid .ui-pg-selbox{display: block;font-size: 1em;height: 25px;line-height: 18px;margin: 0;width: auto;}
|
||||
.ui-jqgrid .ui-pager-control{position: relative;}
|
||||
.ui-pg-table .navtable .ui-corner-all{border-radius: 0px;}
|
||||
.ui-jqgrid .ui-pg-button:hover{padding: 1px;border: 0px;}
|
||||
.ui-jqgrid .loading{position: absolute;top: 45%;left: 45%;width: auto;height: auto;z-index: 101;padding: 6px;margin: 5px;text-align: center;font-weight: bold;display: none;border-width: 2px !important;font-size: 11px;}
|
||||
.ui-jqgrid .form-control{height: 10px;width: auto;display: inline;padding: 10px 12px;}
|
||||
.ui-corner-all,
|
||||
.ui-corner-top,
|
||||
.ui-corner-left,
|
||||
.ui-corner-tl{border-top-left-radius: 0;}
|
||||
.ui-corner-all,
|
||||
.ui-corner-top,
|
||||
.ui-corner-right,ui-jqgrid-hbox
|
||||
.ui-corner-tr{border-top-right-radius: 0;}
|
||||
.ui-corner-all,
|
||||
.ui-corner-bottom,
|
||||
.ui-corner-left,
|
||||
.ui-corner-bl{border-bottom-left-radius: 0;}
|
||||
.ui-corner-all,
|
||||
.ui-corner-bottom,
|
||||
.ui-corner-right,
|
||||
.ui-corner-br{border-bottom-right-radius: 0;}
|
||||
.ui-widget-content{border: 1px solid #ccc;}
|
||||
.ui-jqgrid .ui-jqgrid-titlebar{padding: 0;}
|
||||
.ui-jqgrid .ui-jqgrid-titlebar{border-bottom: 1px solid #ccc;}
|
||||
.ui-jqgrid tr.jqgrow td{font-weight: normal;overflow: hidden;white-space: pre;line-height:25px;height: 25px;padding: 0 5px 0 5px;}
|
||||
.ui-jqdialog .ui-jqdialog-titlebar{padding: 10px 10px;}
|
||||
.ui-jqdialog .ui-jqdialog-title{float: none !important;}
|
||||
.ui-jqdialog > .ui-resizable-se{position: absolute;}
|
||||
.ui-jqgrid td.jqgrid-rownum{padding: 0 3px 0 3px;margin: 0;border: 0 none;cursor:pointer;}
|
||||
/* Pager*/.ui-jqgrid .ui-jqgrid-pager{border-left: 0 none !important;border-right: 0 none !important;border-bottom: 0 none !important;margin: 0px;padding: 0 !important;position: relative;height: 25px;white-space: nowrap;overflow: hidden;}
|
||||
.ui-jqgrid .ui-pager-control{position: relative;}
|
||||
.ui-jqgrid .ui-pg-table{width:auto;margin: 0;margin-left:2px;margin-top:1px;}
|
||||
.ui-jqgrid .ui-pg-table td{text-align:center;overflow:hidden;}
|
||||
.ui-pg-table .ui-state-hover{background: #ffffff;}
|
||||
.ui-jqgrid .ui-pg-button{width:30px;}
|
||||
.ui-jqgrid .ui-pg-button span{display: block;float:left;margin: 0;}
|
||||
.ui-jqgrid .ui-state-disabled:hover{padding:1px;}
|
||||
.ui-jqgrid .ui-pg-input{font-weight: normal;border: 1px solid #ccc;margin: 0 4px;padding-right: 2px;width: 30px;height: 20px;line-height:10px;text-align:center;-moz-border-radius: 5px 5px 5px 5px;-webkit-border-radius: 5px 5px 5px 5px;border-radius: 5px 5px 5px 5px;}
|
||||
.ui-jqgrid .ui-pg-selbox{border: 1px solid #ccc;margin: 0px 6px;width: auto;height: 20px;border-radius: 5px;}
|
||||
.ui-jqgrid .ui-separator{float:left;display:block;height:18px;margin-left:2px;margin-right:2px;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #fff;}
|
||||
.ui-jqgrid .ui-paging-info{font-weight: normal;height:19px;margin-top:4px;margin-right:4px;}
|
||||
.ui-jqgrid .ui-jqgrid-pager{margin: 0;border-width: 1px 0 0 0;border-style: solid;height: 28px;border-color: #ccc;background: #fff;padding-top:1px;}
|
||||
.ui-jqgrid .ui-jqgrid-pager .ui-pg-div{padding:1px 0;float:left;position:relative;}
|
||||
.ui-jqgrid .ui-jqgrid-pager .ui-pg-button{cursor:pointer;}
|
||||
.ui-jqgrid .ui-jqgrid-pager .ui-pg-div span.ui-icon{float:left;margin:0 2px;}
|
||||
.ui-jqgrid td input, .ui-jqgrid td select .ui-jqgrid td textarea{margin: 0;}
|
||||
.ui-jqgrid td textarea{width:auto;height:auto;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager{border-left: 0 none !important;border-right: 0 none !important;border-top: 0 none !important;margin: 0 !important;padding: 0 !important;position: relative;height: 25px !important;white-space: nowrap;overflow: hidden;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div{padding:1px 0;float:left;position:relative;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-button{cursor:pointer;}
|
||||
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div span.ui-icon{float:left;margin:0 2px;}
|
||||
.ui-jqgrid .edit_items{position:absolute;right:0;width:18px;height:28px;padding-left:1px;line-height:20px;cursor:pointer;display:none;}
|
||||
.ui-jqgrid font{color:red;}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,72 +0,0 @@
|
||||
.zsign .panels
|
||||
{
|
||||
position: absolute;
|
||||
top: 22px;
|
||||
right: 8px;
|
||||
}
|
||||
.zsign .btn
|
||||
{
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
.zsign .btn[disabled]
|
||||
{
|
||||
cursor: default;
|
||||
background-image: none;
|
||||
background-color: #E6E6E6;
|
||||
opacity: 0.65;
|
||||
filter: alpha(opacity=65);
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.zsign .cursor
|
||||
{
|
||||
cursor: none;
|
||||
}
|
||||
.zsign .show
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
.zsign .hide
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.zsign .sign
|
||||
{
|
||||
position: absolute;
|
||||
cursor: move;
|
||||
border: 1px dashed #ccc;
|
||||
padding: 8px;
|
||||
display: -webkit-box;
|
||||
-webkit-box-pack: center;
|
||||
-webkit-box-align: center;
|
||||
}
|
||||
.zsign .sign.ok
|
||||
{
|
||||
cursor: default;
|
||||
border-color:transparent;
|
||||
}
|
||||
.zsign .sign img
|
||||
{
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
.zsign .sign .btn
|
||||
{
|
||||
padding: 2px 6px;
|
||||
font-size: 11px;
|
||||
line-height: 14px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.zsign .sign .btn.del
|
||||
{
|
||||
bottom: 4px;
|
||||
right: 4px;
|
||||
}
|
||||
.zsign .sign .btn.ok
|
||||
{
|
||||
bottom: 4px;
|
||||
right: 50px;
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
desc:jQuery模拟盖章
|
||||
author:hyf
|
||||
date:2012-11-08
|
||||
*/
|
||||
|
||||
;$.fn.zSign = function (options) {
|
||||
var _s = $.extend({
|
||||
img: '',
|
||||
width: 150,
|
||||
height: 150,
|
||||
offset: 30, //边界值
|
||||
callBack: null
|
||||
}, options || {});
|
||||
|
||||
var _parent = $(this).addClass('zsign');
|
||||
var range = {
|
||||
minX: _s.offset,
|
||||
minY: _s.offset,
|
||||
maxX: $(window).width(), //扣去2个padding=8px以及2个边框1px
|
||||
maxY: $(window).height()
|
||||
};
|
||||
|
||||
var _btnPanel = $("<div class='panels'><button class='btn btn-default add ' >盖 章</button><button class='btn btn-default cancel'>关 闭</button></div>").appendTo(_parent);
|
||||
var _html = "<div class='sign' style='height:" + _s.height + "px;width:" + _s.width + "px;top:" + _s.offset + "px;left:" + _s.offset + "px'><img src='" + _s.img + "' draggable='false'/><button class='btn btn-default ok' >确定</button><button class='btn btn-default del' >删除</button></div>";
|
||||
|
||||
|
||||
var _add = $('.add', _btnPanel).click(function (e) {
|
||||
_add.attr('disabled', 'disabled');
|
||||
var sign = $(_html).appendTo(_parent);
|
||||
$('.ok', sign).click(function () {
|
||||
//确定盖章
|
||||
sign.addClass('ok').off('mousedown').find('.btn').remove();
|
||||
_add.removeAttr('disabled');
|
||||
if (_s.callBack) {
|
||||
_s.callBack.call(this, { img: _s.img, top: parseInt(sign.css('top')), left: parseInt(sign.css('left')) });
|
||||
}
|
||||
});
|
||||
$('.del', sign).click(function () {
|
||||
//取消盖章
|
||||
sign.remove();
|
||||
_add.removeAttr('disabled');
|
||||
});
|
||||
|
||||
//绑定移动事件
|
||||
sign.on('mousedown', function (e) {
|
||||
sign.data('x', e.clientX);
|
||||
sign.data('y', e.clientY);
|
||||
var position = sign.position();
|
||||
$(document).on('mousemove', function (e1) {
|
||||
var x = e1.clientX - sign.data('x') + position.left;
|
||||
var y = e1.clientY - sign.data('y') + position.top;
|
||||
x = x < range.minX ? range.minX : x;
|
||||
x = x > range.maxX ? range.maxX : x;
|
||||
y = y < range.minY ? range.minY : y;
|
||||
y = y > range.maxY ? range.maxY : y;
|
||||
|
||||
sign.css({ left: x, top: y });
|
||||
}).on('mouseup', function () {
|
||||
$(this).off('mousemove').off('mouseup');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$('.cancel', _btnPanel).click(function () {
|
||||
var r = true;
|
||||
if (_add.attr('disabled') == 'disabled') {
|
||||
if (!confirm("未确定的盖章将被取消,确定要关闭吗?")) {
|
||||
r = false;
|
||||
}
|
||||
}
|
||||
if (r) {
|
||||
//删除未确定位置的盖章
|
||||
$('.sign:not(.ok)', _parent).remove();
|
||||
_btnPanel.remove();
|
||||
}
|
||||
});
|
||||
};
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user