code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
/**
* pagination - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* linkbutton
*
*/
(function($){
function buildToolbar(target){
var opts = $.data(target, 'pagination').options;
var pager = $(target).addClass('pagination').empty();
var t = $('<table cellspacing="0" cellpadding="0" border="0"><tr></tr></table>').appendTo(pager);
var tr = $('tr', t);
if (opts.showPageList){
var ps = $('<select class="pagination-page-list"></select>');
for(var i=0; i<opts.pageList.length; i++) {
$('<option></option>')
.text(opts.pageList[i])
.attr('selected', opts.pageList[i]==opts.pageSize ? 'selected' : '')
.appendTo(ps);
}
$('<td></td>').append(ps).appendTo(tr);
opts.pageSize = parseInt(ps.val());
$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);
}
$('<td><a href="javascript:void(0)" icon="pagination-first"></a></td>').appendTo(tr);
$('<td><a href="javascript:void(0)" icon="pagination-prev"></a></td>').appendTo(tr);
$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);
$('<span style="padding-left:6px;"></span>')
.html(opts.beforePageText)
.wrap('<td></td>')
.parent().appendTo(tr);
$('<td><input class="pagination-num" type="text" value="1" size="2"></td>').appendTo(tr);
$('<span style="padding-right:6px;"></span>')
// .html(opts.afterPageText)
.wrap('<td></td>')
.parent().appendTo(tr);
$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);
$('<td><a href="javascript:void(0)" icon="pagination-next"></a></td>').appendTo(tr);
$('<td><a href="javascript:void(0)" icon="pagination-last"></a></td>').appendTo(tr);
if (opts.showRefresh){
$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);
$('<td><a href="javascript:void(0)" icon="pagination-load"></a></td>').appendTo(tr);
// if (opts.loading) {
// $('<td><a class="pagination-refresh" href="javascript:void(0)" icon="pagination-loading"></a></td>').appendTo(tr);
// } else {
// $('<td><a class="pagination-refresh" href="javascript:void(0)" icon="pagination-load"></a></td>').appendTo(tr);
// }
}
if (opts.buttons){
$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);
for(var i=0; i<opts.buttons.length; i++){
var btn = opts.buttons[i];
if (btn == '-') {
$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);
} else {
var td = $('<td></td>').appendTo(tr);
$('<a href="javascript:void(0)"></a>')
.addClass('l-btn')
.css('float', 'left')
.text(btn.text || '')
.attr('icon', btn.iconCls || '')
.bind('click', eval(btn.handler || function(){}))
.appendTo(td)
.linkbutton({plain:true});
}
}
}
$('<div class="pagination-info"></div>').appendTo(pager);
$('<div style="clear:both;"></div>').appendTo(pager);
$('a[icon^=pagination]', pager).linkbutton({plain:true});
pager.find('a[icon=pagination-first]').unbind('.pagination').bind('click.pagination', function(){
if (opts.pageNumber > 1) selectPage(target, 1);
});
pager.find('a[icon=pagination-prev]').unbind('.pagination').bind('click.pagination', function(){
if (opts.pageNumber > 1) selectPage(target, opts.pageNumber - 1);
});
pager.find('a[icon=pagination-next]').unbind('.pagination').bind('click.pagination', function(){
var pageCount = Math.ceil(opts.total/opts.pageSize);
if (opts.pageNumber < pageCount) selectPage(target, opts.pageNumber + 1);
});
pager.find('a[icon=pagination-last]').unbind('.pagination').bind('click.pagination', function(){
var pageCount = Math.ceil(opts.total/opts.pageSize);
if (opts.pageNumber < pageCount) selectPage(target, pageCount);
});
pager.find('a[icon=pagination-load]').unbind('.pagination').bind('click.pagination', function(){
if (opts.onBeforeRefresh.call(target, opts.pageNumber, opts.pageSize) != false){
selectPage(target, opts.pageNumber);
opts.onRefresh.call(target, opts.pageNumber, opts.pageSize);
}
});
pager.find('input.pagination-num').unbind('.pagination').bind('keydown.pagination', function(e){
if (e.keyCode == 13){
var pageNumber = parseInt($(this).val()) || 1;
selectPage(target, pageNumber);
}
});
pager.find('.pagination-page-list').unbind('.pagination').bind('change.pagination', function(){
opts.pageSize = $(this).val();
opts.onChangePageSize.call(target, opts.pageSize);
var pageCount = Math.ceil(opts.total/opts.pageSize);
selectPage(target, opts.pageNumber);
});
}
function selectPage(target, page){
var opts = $.data(target, 'pagination').options;
var pageCount = Math.ceil(opts.total/opts.pageSize);
var pageNumber = page;
if (page < 1) pageNumber = 1;
if (page > pageCount) pageNumber = pageCount;
opts.onSelectPage.call(target, pageNumber, opts.pageSize);
opts.pageNumber = pageNumber;
showInfo(target);
}
function showInfo(target){
var opts = $.data(target, 'pagination').options;
var pageCount = Math.ceil(opts.total/opts.pageSize);
var num = $(target).find('input.pagination-num');
num.val(opts.pageNumber);
num.parent().next().find('span').html(opts.afterPageText.replace(/{pages}/, pageCount));
var pinfo = opts.displayMsg;
pinfo = pinfo.replace(/{from}/, opts.pageSize*(opts.pageNumber-1)+1);
pinfo = pinfo.replace(/{to}/, Math.min(opts.pageSize*(opts.pageNumber), opts.total));
pinfo = pinfo.replace(/{total}/, opts.total);
$(target).find('.pagination-info').html(pinfo);
$('a[icon=pagination-first],a[icon=pagination-prev]', target).linkbutton({
disabled: (opts.pageNumber == 1)
});
$('a[icon=pagination-next],a[icon=pagination-last]', target).linkbutton({
disabled: (opts.pageNumber == pageCount)
});
if (opts.loading){
$(target).find('a[icon=pagination-load]').find('.pagination-load').addClass('pagination-loading');
} else {
$(target).find('a[icon=pagination-load]').find('.pagination-load').removeClass('pagination-loading');
}
}
function setLoadStatus(target, loading){
var opts = $.data(target, 'pagination').options;
opts.loading = loading;
if (opts.loading){
$(target).find('a[icon=pagination-load]').find('.pagination-load').addClass('pagination-loading');
} else {
$(target).find('a[icon=pagination-load]').find('.pagination-load').removeClass('pagination-loading');
}
}
$.fn.pagination = function(options) {
if (typeof options == 'string'){
switch(options){
case 'options':
return $.data(this[0], 'pagination').options;
case 'loading':
return this.each(function(){
setLoadStatus(this, true);
});
case 'loaded':
return this.each(function(){
setLoadStatus(this, false);
});
}
}
options = options || {};
return this.each(function(){
var opts;
var state = $.data(this, 'pagination');
if (state) {
opts = $.extend(state.options, options);
} else {
opts = $.extend({}, $.fn.pagination.defaults, options);
$.data(this, 'pagination', {
options: opts
});
}
buildToolbar(this);
showInfo(this);
});
};
$.fn.pagination.defaults = {
total: 1,
pageSize: 10,
pageNumber: 1,
pageList: [10,20,30,50],
loading: false,
buttons: null,
showPageList: true,
showRefresh: true,
onSelectPage: function(pageNumber, pageSize){},
onBeforeRefresh: function(pageNumber, pageSize){},
onRefresh: function(pageNumber, pageSize){},
onChangePageSize: function(pageSize){},
beforePageText: 'Page',
afterPageText: 'of {pages}',
displayMsg: 'Displaying {from} to {to} of {total} items'
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.pagination.js | JavaScript | asf20 | 8,043 |
/**
* timespinner - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* spinner
*
*/
(function($){
function create(target){
var opts = $.data(target, 'timespinner').options;
$(target).spinner(opts);
$(target).unbind('.timespinner');
$(target).bind('click.timespinner', function(){
var start = 0;
if (this.selectionStart != null){
start = this.selectionStart;
} else if (this.createTextRange){
var range = target.createTextRange();
var s = document.selection.createRange();
s.setEndPoint("StartToStart", range);
start = s.text.length;
}
if (start >= 0 && start <= 2){
opts.highlight = 0;
} else if (start >= 3 && start <= 5){
opts.highlight = 1;
} else if (start >= 6 && start <= 8){
opts.highlight = 2;
}
highlight(target);
}).bind('blur.timespinner', function(){
fixValue(target);
});
}
/**
* highlight the hours or minutes or seconds.
*/
function highlight(target){
var opts = $.data(target, 'timespinner').options;
var start = 0, end = 0;
if (opts.highlight == 0){
start = 0;
end = 2;
} else if (opts.highlight == 1){
start = 3;
end = 5;
} else if (opts.highlight == 2){
start = 6;
end = 8;
}
if (target.selectionStart != null){
target.setSelectionRange(start, end);
} else if (target.createTextRange){
var range = target.createTextRange();
range.collapse();
range.moveEnd('character', end);
range.moveStart('character', start);
range.select();
}
$(target).focus();
}
/**
* parse the time and return it or return null if the format is invalid
*/
function parseTime(target, value){
var opts = $.data(target, 'timespinner').options;
if (!value) return null;
var vv = value.split(opts.separator);
for(var i=0; i<vv.length; i++){
if (isNaN(vv[i])) return null;
}
while(vv.length < 3){
vv.push(0);
}
return new Date(1900, 0, 0, vv[0], vv[1], vv[2]);
}
function fixValue(target){
var opts = $.data(target, 'timespinner').options;
var value = $(target).val();
var time = parseTime(target, value);
if (!time){
time = parseTime(target, opts.value);
}
if (!time){
opts.value = '';
$(target).val('');
return;
}
var minTime = parseTime(target, opts.min);
var maxTime = parseTime(target, opts.max);
if (minTime && minTime > time) time = minTime;
if (maxTime && maxTime < time) time = maxTime;
var tt = [formatNumber(time.getHours()), formatNumber(time.getMinutes())];
if (opts.showSeconds){
tt.push(formatNumber(time.getSeconds()));
}
var val = tt.join(opts.separator);
opts.value = val;
$(target).val(val);
// highlight(target);
function formatNumber(value){
return (value < 10 ? '0' : '') + value;
}
}
function doSpin(target, down){
var opts = $.data(target, 'timespinner').options;
var val = $(target).val();
if (val == ''){
val = [0,0,0].join(opts.separator);
}
var vv = val.split(opts.separator);
for(var i=0; i<vv.length; i++){
vv[i] = parseInt(vv[i], 10);
}
if (down == true){
vv[opts.highlight] -= opts.increment;
} else {
vv[opts.highlight] += opts.increment;
}
$(target).val(vv.join(opts.separator));
fixValue(target);
highlight(target);
}
$.fn.timespinner = function(options, param){
if (typeof options == 'string'){
var method = $.fn.timespinner.methods[options];
if (method){
return method(this, param);
} else {
return this.spinner(options, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'timespinner');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'timespinner', {
options: $.extend({}, $.fn.timespinner.defaults, $.fn.timespinner.parseOptions(this), options)
});
create(this);
}
});
};
$.fn.timespinner.methods = {
options: function(jq){
var opts = $.data(jq[0], 'timespinner').options;
return $.extend(opts, {
value: jq.val()
});
},
setValue: function(jq, value){
return jq.each(function(){
$(this).val(value);
fixValue(this);
});
}
};
$.fn.timespinner.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.fn.spinner.parseOptions(target), {
separator: t.attr('separator'),
showSeconds: (t.attr('showSeconds') ? t.attr('showSeconds') == 'true' : undefined),
highlight: (parseInt(t.attr('highlight')) || undefined)
});
};
$.fn.timespinner.defaults = $.extend({}, $.fn.spinner.defaults, {
separator: ':',
showSeconds: false,
highlight: 0, // The field to highlight initially, 0 = hours, 1 = minutes, ...
spin: function(down){doSpin(this, down);}
});
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.timespinner.js | JavaScript | asf20 | 4,996 |
/**
* shadow - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2009 stworthy [ stworthy@gmail.com ]
*
* options:
* hidden: boolean false to show the shadow and true to hide the shadow
* fit: boolean true to fit the parent container and false not
* width: integer width The width in pixels of the shadow. Default: 8
*
*/
(function($){
$.fn.shadow = function(options){
return this.each(function(){
// wrap the element and return the jQuery object
function wrapElem(target) {
var wraps = [
'<div class="shadow">',
'<div class="shadow-one">',
'<div class="shadow-corner-a"></div>',
'<div class="shadow-corner-b"></div>',
'<div class="shadow-two">',
' <div class="shadow-three">',
' <div class="shadow-four">',
' </div>',
' </div>',
'</div>',
'</div>',
'</div>'
];
var shadow = $(wraps.join('')).insertAfter($(target));
$(target).appendTo($('.shadow-four', shadow));
return shadow;
}
if ($.data(this, 'shadow')) {
$.extend($.data(this, 'shadow').options, options || {});
} else {
$.data(this, 'shadow', {
options: $.extend({}, $.fn.shadow.defaults, options || {}),
shadow: wrapElem(this),
oldWidth: $(this).width(), // the element old width and height
oldHeight: $(this).height()
});
}
if (!$.data(this, 'shadow').shadow) {
$.data(this, 'shadow').shadow = wrapElem(this);
}
var opts = $.data(this, 'shadow').options;
var shadow = $.data(this, 'shadow').shadow;
if (opts.hidden == true) {
$(this).insertAfter(shadow);
shadow.remove();
$.data(this, 'shadow').shadow = null;
return;
}
$('.shadow-one', shadow).css({
paddingLeft: opts.width * 2,
paddingTop: opts.width * 2
});
$('.shadow-corner-a', shadow).css({
width: opts.width * 2,
height: opts.width * 2
});
$('.shadow-corner-b', shadow).css({
width: opts.width * 2,
height: opts.width * 2
});
$('.shadow-three', shadow).css({
left: opts.width * -2,
top: opts.width * -2
});
$('.shadow-four', shadow).css({
left: opts.width,
top: opts.width
});
if (opts.fit == true) {
// make element and shadow fit the parent container
var parent = $(shadow).parent(); // the parent container
if ($.boxModel == true) {
var delta = $(this).outerWidth(true) - $(this).width();
$(this).css({
width: parent.width() - 2*opts.width - delta,
height: parent.height() - 2*opts.width - delta
});
$(shadow).css({
width: parent.width(),
height: parent.height()
});
$('.shadow-one', shadow).css({
width: parent.width() - 2*opts.width,
height: parent.height() - 2*opts.width
});
} else {
$(this).css({
width:'100%',
height:'100%'
});
$(shadow).css({
width: parent.width(),
height: parent.height()
});
$('.shadow-one', shadow).css({
width: parent.width(),
height: parent.height()
});
}
} else {
// restore the element's width and height
$(this).width($.data(this, 'shadow').oldWidth)
.height($.data(this, 'shadow').oldHeight);
$('.shadow-one', shadow).css({
width:'100%',
height:'100%'
});
if ($.boxModel == true) {
$(shadow).css({
width: $(this).outerWidth(),
height: $(this).outerHeight()
});
} else {
$(shadow).css({
width: $.data(this, 'shadow').oldWidth + 2*opts.width,
height: $.data(this, 'shadow').oldHeight + 2*opts.width
});
}
}
});
};
$.fn.shadow.defaults = {
hidden: false,
fit: false,
width: 8
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.shadow.js | JavaScript | asf20 | 4,093 |
/**
* treegrid - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* datagrid
*
*/
(function($){
function buildGrid(target){
var opts = $.data(target, 'treegrid').options;
$(target).datagrid($.extend({}, opts, {
url: null,
onResizeColumn: function(field, width){
setRowHeight(target);
}
}));
}
function getColumnFields(columns){
if (columns.length == 0) return [];
function getFields(ridx,cidx,count){
var fields = [];
while(fields.length < count){
var col = columns[ridx][cidx];
if (col.colspan && parseInt(col.colspan)>1){
var ff = getFields(ridx+1, getSubColIndex(ridx,cidx), parseInt(col.colspan));
fields = fields.concat(ff);
} else if (col.field){
fields.push(col.field);
}
cidx++;
}
return fields;
}
function getSubColIndex(ridx, cidx){
var index = 0;
for(var i=0; i<cidx; i++){
var colspan = parseInt(columns[ridx][i].colspan || '1');
if (colspan > 1){
index += colspan;
}
}
return index;
}
var fields = [];
for(var i=0; i<columns[0].length; i++){
var col = columns[0][i];
if (col.colspan && parseInt(col.colspan)>1){
var ff = getFields(1, getSubColIndex(0,i), parseInt(col.colspan));
fields = fields.concat(ff);
} else if (col.field){
fields.push(col.field);
}
}
return fields;
}
function getColumnOption(target, field){
var opts = $.data(target, 'datagrid').options;
if (opts.columns){
for(var i=0; i<opts.columns.length; i++){
var cols = opts.columns[i];
for(var j=0; j<cols.length; j++){
var col = cols[j];
if (col.field == field){
return col;
}
}
}
}
if (opts.frozenColumns){
for(var i=0; i<opts.frozenColumns.length; i++){
var cols = opts.frozenColumns[i];
for(var j=0; j<cols.length; j++){
var col = cols[j];
if (col.field == field){
return col;
}
}
}
}
return null;
}
function setRowHeight(target, idValue){
var opts = $.data(target, 'datagrid').options;
var panel = $.data(target, 'datagrid').panel;
var view = panel.find('>div.datagrid-view');
var view1 = view.find('>div.datagrid-view1');
var view2 = view.find('>div.datagrid-view2');
if (opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length>0)){
if (idValue){
view2.find('tr[node-id=' + idValue + ']').next('tr.treegrid-tr-tree').find('tr[node-id]').each(function(){
setHeight($(this).attr('node-id'));
});
} else {
view2.find('tr[node-id]').each(function(){
setHeight($(this).attr('node-id'));
});
}
}
if (opts.height == 'auto'){
var height = view2.find('div.datagrid-body table').height() + 18;
view1.find('div.datagrid-body').height(height);
view2.find('div.datagrid-body').height(height);
view.height(view2.height());
}
console.log('ss')
function setHeight(idValue){
var tr1 = view1.find('tr[node-id='+idValue+']');
var tr2 = view2.find('tr[node-id='+idValue+']');
tr1.css('height', null);
tr2.css('height', null);
var height = Math.max(tr1.height(), tr2.height());
tr1.css('height', height);
tr2.css('height', height);
}
}
function bindEvents(target){
var body = $(target).datagrid('getPanel').find('div.datagrid-body');
body.find('span.tree-hit').unbind('.treegrid').bind('click.treegrid', function(){
var tr = $(this).parent().parent().parent();
var id = tr.attr('node-id');
toggle(target, id);
return false;
}).bind('mouseenter.treegrid', function(){
if ($(this).hasClass('tree-expanded')){
$(this).addClass('tree-expanded-hover');
} else {
$(this).addClass('tree-collapsed-hover');
}
}).bind('mouseleave.treegrid', function(){
if ($(this).hasClass('tree-expanded')){
$(this).removeClass('tree-expanded-hover');
} else {
$(this).removeClass('tree-collapsed-hover');
}
});;
body.find('tr').unbind('.treegrid').bind('click.treegrid', function(){
select(target, $(this).attr('node-id'));
return false;
});
}
function loadData(target, parentId, data, append){
var opts = $.data(target, 'datagrid').options;
var wrap = $.data(target, 'datagrid').panel;
var view = wrap.find('>div.datagrid-view');
var view1 = view.find('>div.datagrid-view1');
var view2 = view.find('>div.datagrid-view2');
var frozenFields = getColumnFields(opts.frozenColumns);
var fields = getColumnFields(opts.columns);
if (parentId){
var subtree1 = createSubTree(parentId, view1, frozenFields);
var subtree2 = createSubTree(parentId, view2, fields);
var body1 = subtree1.body;
var body2 = subtree2.body;
var level = subtree1.level + subtree2.level;
} else {
var body1 = view1.find('>div.datagrid-body>div.datagrid-body-inner');
var body2 = view2.find('>div.datagrid-body');
var level = 0;
}
if (!append){
body1.empty();
body2.empty();
}
if (opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length > 0)){
var table1 = $('<table cellspacing="0" cellpadding="0" border="0"></table>').appendTo(body1);
appendRows(table1, data, level, frozenFields);
}
var table2 = $('<table cellspacing="0" cellpadding="0" border="0"></table>').appendTo(body2);
appendRows(table2, data, level, fields);
setRowHeight(target);
bindEvents(target);
function createSubTree(idValue, view, fields){
var r = {};
var tr = view.find('>div.datagrid-body tr[node-id=' + idValue + ']');
var subtr = tr.next('tr.treegrid-tr-tree');
if (subtr.length){
r.body = subtr.find('>td');
} else {
var subtr = $('<tr class="treegrid-tr-tree"></tr>').insertAfter(tr);
var body = $('<td style="border:0"></td>').attr('colspan', fields.length).appendTo(subtr);
r.body = body;
}
var td = tr.find('td[field=' + opts.treeField + ']');
r.level = td.find('span.tree-indent,span.tree-hit').length;
return r;
}
function appendRows(ptable, children, depth, fields){
for(var i=0; i<children.length; i++){
var row = children[i];
if (row.state != 'open' && row.state != 'closed'){
row.state = 'open';
}
var tr = $('<tr></tr>').attr('node-id', row[opts.idField]).appendTo(ptable);
$.data(tr[0], 'treegrid-node', row);
var table = [];
for(var j=0; j<fields.length; j++){
var field = fields[j];
var col = getColumnOption(target, field);
if (col){
var style = 'width:' + (col.width) + 'px;';
style += 'text-align:' + (col.align || 'left') + ';';
style += opts.nowrap == false ? 'white-space:normal;' : '';
table.push('<td field="' + field + '">');
table.push('<div style="' + style + '" ');
if (col.checkbox){
table.push('class="datagrid-cell-check ');
} else {
table.push('class="datagrid-cell ');
}
table.push('">');
if (col.checkbox){
if (selected){
table.push('<input type="checkbox" checked="checked"/>');
} else {
table.push('<input type="checkbox"/>');
}
} else if (col.formatter){
table.push(col.formatter(row[field], row, i));
} else {
table.push(row[field] || ' ');
}
table.push('</div>');
table.push('</td>');
}
}
tr.html(table.join(''));
var cell = tr.find('td[field='+opts.treeField+'] div.datagrid-cell');
cell.wrapInner('<span class="tree-title"></span>');
if (row.children && row.children.length){
var subtr = $('<tr class="treegrid-tr-tree"></tr>').insertAfter(tr);
var td = $('<td style="border:0"></td>').attr('colspan', fields.length).appendTo(subtr);
var table = $('<table cellspacing="0" cellpadding="0" border="0"></table>').appendTo(td);
if (row.state == 'open'){
$('<span class="tree-icon tree-folder tree-folder-open"></span>').addClass(row.iconCls).prependTo(cell);
$('<span class="tree-hit tree-expanded"></span>').prependTo(cell);
} else {
$('<span class="tree-icon tree-folder"></span>').addClass(row.iconCls).prependTo(cell);
$('<span class="tree-hit tree-collapsed"></span>').prependTo(cell);
subtr.css('display','none');
}
appendRows(table, row.children, depth+1, fields);
} else {
if (row.state == 'closed'){
$('<span class="tree-folder"></span>').addClass(row.iconCls).prependTo(cell);
$('<span class="tree-hit tree-collapsed"></span>').prependTo(cell);
} else {
$('<span class="tree-icon tree-file"></span>').addClass(row.iconCls).prependTo(cell);
$('<span class="tree-indent"></span>').prependTo(cell);
}
}
for(var j=0; j<depth; j++){
$('<span class="tree-indent"></span>').prependTo(cell);
}
}
}
}
function request(target, parentId, param, callback){
var opts = $.data(target, 'treegrid').options;
var body = $(target).datagrid('getPanel').find('div.datagrid-body');
param = param || {};
var row = null;
var tr = body.find('tr[node-id=' + parentId + ']');
if (tr.length){
row = $.data(tr[0], 'treegrid-node');
}
if (opts.onBeforeLoad.call(target, row, param) == false) return;
if (!opts.url) return;
var folder = tr.find('span.tree-folder');
folder.addClass('tree-loading');
$.ajax({
type: opts.method,
url: opts.url,
data: param,
dataType: 'json',
success: function(data){
folder.removeClass('tree-loading');
loadData(target, parentId, data);
if (callback) {
callback();
}
},
error: function(){
folder.removeClass('tree-loading');
opts.onLoadError.apply(target, arguments);
if (callback){
callback();
}
}
});
}
function select(target, idValue){
var body = $(target).datagrid('getPanel').find('div.datagrid-body');
body.find('tr.tree-node-selected').removeClass('tree-node-selected');
body.find('tr[node-id=' + idValue + ']').addClass('tree-node-selected');
}
function collapse(target, idValue){
var opts = $.data(target, 'treegrid').options;
var body = $(target).datagrid('getPanel').find('div.datagrid-body');
var tr = body.find('tr[node-id=' + idValue + ']');
var row = $.data(tr[0], 'treegrid-node');
var hit = tr.find('span.tree-hit');
if (hit.length == 0) return; // is leaf
if (hit.hasClass('tree-collapsed')) return; // has collapsed
if (opts.onBeforeCollapse.call(target, row) == false) return;
hit.removeClass('tree-expanded tree-expanded-hover').addClass('tree-collapsed');
hit.next().removeClass('tree-folder-open');
tr.next('tr.treegrid-tr-tree').hide();
opts.onCollapse.call(target, row);
}
function expand(target, idValue){
var opts = $.data(target, 'treegrid').options;
var body = $(target).datagrid('getPanel').find('div.datagrid-body');
var tr = body.find('tr[node-id=' + idValue + ']');
var row = $.data(tr[0], 'treegrid-node');
var hit = tr.find('span.tree-hit');
if (hit.length == 0) return; // is leaf
if (hit.hasClass('tree-expanded')) return; // has expanded
if (opts.onBeforeExpand.call(target, row) == false) return;
hit.removeClass('tree-collapsed tree-collapsed-hover').addClass('tree-expanded');
hit.next().addClass('tree-folder-open');
var subtree = tr.next('tr.treegrid-tr-tree');
if (subtree.length){
subtree.show();
$(target).datagrid('fixColumnSize');
setRowHeight(target, idValue);
opts.onExpand.call(target, row);
} else {
request(target, row[opts.idField], {id:row[opts.idField]}, function(){
opts.onExpand.call(target, row);
});
}
}
function toggle(target, idValue){
var body = $(target).datagrid('getPanel').find('div.datagrid-body');
var tr = body.find('tr[node-id=' + idValue + ']');
var hit = tr.find('span.tree-hit');
if (hit.hasClass('tree-expanded')){
collapse(target, idValue);
} else {
expand(target, idValue);
}
}
$.fn.treegrid = function(options, param){
if (typeof options == 'string'){
switch(options){
case 'select':
return this.each(function(){
select(this, param); // param: the row id value
});
case 'collapse':
return this.each(function(){
collapse(this, param); // param: the row id value
});
case 'expand':
return this.each(function(){
expand(this, param); // param: the row id value
});
case 'toggle':
return this.each(function(){
toggle(this, param); // param: the row id value
});
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'treegrid');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'treegrid', {
options: $.extend({}, $.fn.treegrid.defaults, options)
});
}
buildGrid(this);
request(this);
});
};
$.fn.treegrid.defaults = {
treeField:null,
onBeforeLoad: function(row, param){},
onLoadSuccess: function(row){},
onLoadError: function(){},
onBeforeCollapse: function(row){},
onCollapse: function(row){},
onBeforeExpand: function(row){},
onExpand: function(row){}
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.treegrid.js | JavaScript | asf20 | 13,559 |
/**
* combogrid - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* combo
* datagrid
*
*/
(function($){
/**
* create this component.
*/
function create(target){
var opts = $.data(target, 'combogrid').options;
var grid = $.data(target, 'combogrid').grid;
$(target).combo(opts);
var panel = $(target).combo('panel');
if (!grid){
grid = $('<table></table>').appendTo(panel);
$.data(target, 'combogrid').grid = grid;
}
grid.datagrid($.extend({}, opts, {
border: false,
fit: true,
singleSelect: (!opts.multiple),
onSelect: function(){retrieveValues(target);},
onUnselect: function(){retrieveValues(target);},
onSelectAll: function(){retrieveValues(target);},
onUnselectAll: function(){retrieveValues(target);}
}));
}
/**
* retrieve values from datagrid panel.
*/
function retrieveValues(target){
var opts = $.data(target, 'combogrid').options;
var grid = $.data(target, 'combogrid').grid;
var rows = grid.datagrid('getSelections');
var vv = [],ss = [];
for(var i=0; i<rows.length; i++){
vv.push(rows[i][opts.idField]);
ss.push(rows[i][opts.textField]);
}
$(target).combo('setValues', vv).combo('setText', ss.join(opts.separator));
}
/**
* select the specified row via step value,
* if the step is not assigned, the current row is selected as the combogrid value.
*/
function selectRow(target, step){
var opts = $.data(target, 'combogrid').options;
var grid = $.data(target, 'combogrid').grid;
if (opts.multiple) return;
if (!step){
var selected = grid.datagrid('getSelected');
if (selected){
setValues(target, [selected[opts.idField]]); // set values
$(target).combo('hidePanel'); // hide the drop down panel
}
return;
}
var selected = grid.datagrid('getSelected');
if (selected){
var index = grid.datagrid('getRowIndex', selected[opts.idField]);
grid.datagrid('unselectRow', index);
index += step;
if (index < 0) index = 0;
if (index >= grid.datagrid('getRows').length) index = grid.datagrid('getRows').length - 1;
grid.datagrid('selectRow', index);
} else {
grid.datagrid('selectRow', 0);
}
}
/**
* set combogrid values
*/
function setValues(target, values){
var opts = $.data(target, 'combogrid').options;
var grid = $.data(target, 'combogrid').grid;
var rows = grid.datagrid('getRows');
grid.datagrid('clearSelections');
for(var i=0; i<values.length; i++){
var index = grid.datagrid('getRowIndex', values[i]);
grid.datagrid('selectRow', index);
}
retrieveValues(target);
if ($(target).combogrid('getValues').length == 0){
$(target).combo('setValues', values).combo('setText', values.join(opts.separator));
}
}
$.fn.combogrid = function(options, param){
if (typeof options == 'string'){
var method = $.fn.combogrid.methods[options];
if (method){
return method(this, param);
} else {
return $.fn.combo.methods[options](this, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'combogrid');
if (state){
$.extend(state.options, options);
} else {
var t = $(this);
state = $.data(this, 'combogrid', {
options: $.extend({}, $.fn.combo.defaults, $.fn.combogrid.defaults, {
width: (parseInt(this.style.width) || undefined),
idField: (t.attr('idField') || undefined),
textField: (t.attr('textField') || undefined),
separator: (t.attr('separator') || undefined),
multiple: (t.attr('multiple') ? (t.attr('multiple') == 'true' || t.attr('multiple') == true) : undefined),
editable: (t.attr('editable') ? t.attr('editable') == 'true' : undefined),
disabled: (t.attr('disabled') ? true : undefined),
required: (t.attr('required') ? (t.attr('required') == 'true' || t.attr('required') == true) : undefined),
missingMessage: (t.attr('missingMessage') || undefined)
}, options)
});
}
create(this);
});
};
$.fn.combogrid.methods = {
options: function(jq){
return $.data(jq[0], 'combogrid').options;
},
// get the datagrid object.
grid: function(jq){
return $.data(jq[0], 'combogrid').grid;
},
setValues: function(jq, values){
return jq.each(function(){
setValues(this, values);
});
}
};
$.fn.combogrid.defaults = {
idField: null,
textField: null, // the text field to display.
selectPrev: function(){selectRow(this, -1);},
selectNext: function(){selectRow(this, 1);},
select: function(){selectRow(this);}
};
})(jQuery);
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.combogrid.js | JavaScript | asf20 | 4,803 |
/**
* tree - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Node is a javascript object which contains following properties:
* 1 id: An identity value bind to the node.
* 2 text: Text to be showed.
* 3 checked: Indicate whether the node is checked selected.
* 3 attributes: Custom attributes bind to the node.
* 4 target: Target DOM object.
*/
(function($){
/**
* wrap the <ul> tag as a tree and then return it.
*/
function wrapTree(target){
var tree = $(target);
tree.addClass('tree');
wrapNode(tree, 0);
function wrapNode(ul, depth){
$('>li', ul).each(function(){
var node = $('<div class="tree-node"></div>').prependTo($(this));
var text = $('>span', this).addClass('tree-title').appendTo(node).text();
$.data(node[0], 'tree-node', {
text: text
});
var subTree = $('>ul', this);
if (subTree.length){
$('<span class="tree-folder tree-folder-open"></span>').prependTo(node);
$('<span class="tree-hit tree-expanded"></span>').prependTo(node);
wrapNode(subTree, depth+1);
} else {
$('<span class="tree-file"></span>').prependTo(node);
$('<span class="tree-indent"></span>').prependTo(node);
}
for(var i=0; i<depth; i++){
$('<span class="tree-indent"></span>').prependTo(node);
}
});
}
return tree;
}
function expandNode(target, node){
var opts = $.data(target, 'tree').options;
var hit = $('>span.tree-hit', node);
if (hit.length == 0) return; // is a leaf node
if (hit.hasClass('tree-collapsed')){
hit.removeClass('tree-collapsed tree-collapsed-hover').addClass('tree-expanded');
hit.next().addClass('tree-folder-open');
var ul = $(node).next();
if (ul.length){
if (opts.animate){
ul.slideDown();
} else {
ul.css('display','block');
}
} else {
var id = $.data($(node)[0], 'tree-node').id;
var subul = $('<ul></ul>').insertAfter(node);
request(target, subul, {id:id}); // request children nodes data
}
}
}
function collapseNode(target, node){
var opts = $.data(target, 'tree').options;
var hit = $('>span.tree-hit', node);
if (hit.length == 0) return; // is a leaf node
if (hit.hasClass('tree-expanded')){
hit.removeClass('tree-expanded tree-expanded-hover').addClass('tree-collapsed');
hit.next().removeClass('tree-folder-open');
if (opts.animate){
$(node).next().slideUp();
} else {
$(node).next().css('display','none');
}
}
}
function toggleNode(target, node){
var hit = $('>span.tree-hit', node);
if (hit.length == 0) return; // is a leaf node
if (hit.hasClass('tree-expanded')){
collapseNode(target, node);
} else {
expandNode(target, node);
}
}
function bindTreeEvents(target){
var opts = $.data(target, 'tree').options;
var tree = $.data(target, 'tree').tree;
$('.tree-node', tree).unbind('.tree').bind('dblclick.tree', function(){
$('.tree-node-selected', tree).removeClass('tree-node-selected');
$(this).addClass('tree-node-selected');
if (opts.onDblClick){
var target = this; // the target HTML DIV element
var data = $.data(this, 'tree-node');
opts.onDblClick.call(this, {
id: data.id,
text: data.text,
attributes: data.attributes,
target: target
});
}
}).bind('click.tree', function(){
$('.tree-node-selected', tree).removeClass('tree-node-selected');
$(this).addClass('tree-node-selected');
if (opts.onClick){
var target = this; // the target HTML DIV element
var data = $.data(this, 'tree-node');
opts.onClick.call(this, {
id: data.id,
text: data.text,
attributes: data.attributes,
target: target
});
}
// return false;
}).bind('mouseenter.tree', function(){
$(this).addClass('tree-node-hover');
return false;
}).bind('mouseleave.tree', function(){
$(this).removeClass('tree-node-hover');
return false;
});
$('.tree-hit', tree).unbind('.tree').bind('click.tree', function(){
var node = $(this).parent();
toggleNode(target, node);
return false;
}).bind('mouseenter.tree', function(){
if ($(this).hasClass('tree-expanded')){
$(this).addClass('tree-expanded-hover');
} else {
$(this).addClass('tree-collapsed-hover');
}
}).bind('mouseleave.tree', function(){
if ($(this).hasClass('tree-expanded')){
$(this).removeClass('tree-expanded-hover');
} else {
$(this).removeClass('tree-collapsed-hover');
}
});
$('.tree-checkbox', tree).unbind('.tree').bind('click.tree', function(){
if ($(this).hasClass('tree-checkbox0')){
$(this).removeClass('tree-checkbox0').addClass('tree-checkbox1');
} else if ($(this).hasClass('tree-checkbox1')){
$(this).removeClass('tree-checkbox1').addClass('tree-checkbox0');
} else if ($(this).hasClass('tree-checkbox2')){
$(this).removeClass('tree-checkbox2').addClass('tree-checkbox1');
}
setParentCheckbox($(this).parent());
setChildCheckbox($(this).parent());
return false;
});
function setChildCheckbox(node){
var childck = node.next().find('.tree-checkbox');
childck.removeClass('tree-checkbox0 tree-checkbox1 tree-checkbox2')
if (node.find('.tree-checkbox').hasClass('tree-checkbox1')){
childck.addClass('tree-checkbox1');
} else {
childck.addClass('tree-checkbox0');
}
}
function setParentCheckbox(node){
var pnode = getParentNode(target, node[0]);
if (pnode){
var ck = $(pnode.target).find('.tree-checkbox');
ck.removeClass('tree-checkbox0 tree-checkbox1 tree-checkbox2');
if (isAllSelected(node)){
ck.addClass('tree-checkbox1');
} else if (isAllNull(node)){
ck.addClass('tree-checkbox0');
} else {
ck.addClass('tree-checkbox2');
}
setParentCheckbox($(pnode.target));
}
function isAllSelected(n){
var ck = n.find('.tree-checkbox');
if (ck.hasClass('tree-checkbox0') || ck.hasClass('tree-checkbox2')) return false;
var b = true;
n.parent().siblings().each(function(){
if (!$(this).find('.tree-checkbox').hasClass('tree-checkbox1')){
b = false;
}
});
return b;
}
function isAllNull(n){
var ck = n.find('.tree-checkbox');
if (ck.hasClass('tree-checkbox1') || ck.hasClass('tree-checkbox2')) return false;
var b = true;
n.parent().siblings().each(function(){
if (!$(this).find('.tree-checkbox').hasClass('tree-checkbox0')){
b = false;
}
});
return b;
}
}
}
function loadData(target, ul, data){
// clear the tree when loading to the root
if (target == ul) {
$(target).empty();
}
var opts = $.data(target, 'tree').options;
function appendNodes(ul, children, depth){
for(var i=0; i<children.length; i++){
var li = $('<li></li>').appendTo(ul);
var item = children[i];
// the node state has only 'open' or 'closed' attribute
if (item.state != 'open' && item.state != 'closed'){
item.state = 'open';
}
var node = $('<div class="tree-node"></div>').appendTo(li);
node.attr('node-id', item.id);
// store node attributes
$.data(node[0], 'tree-node', {
id: item.id,
text: item.text,
attributes: item.attributes
});
$('<span class="tree-title"></span>').html(item.text).appendTo(node);
if (opts.checkbox){
if (item.checked){
$('<span class="tree-checkbox tree-checkbox1"></span>').prependTo(node);
} else {
$('<span class="tree-checkbox tree-checkbox0"></span>').prependTo(node);
}
}
if (item.children){
var subul = $('<ul></ul>').appendTo(li);
if (item.state == 'open'){
$('<span class="tree-folder tree-folder-open"></span>').addClass(item.iconCls).prependTo(node);
$('<span class="tree-hit tree-expanded"></span>').prependTo(node);
} else {
$('<span class="tree-folder"></span>').addClass(item.iconCls).prependTo(node);
$('<span class="tree-hit tree-collapsed"></span>').prependTo(node);
subul.css('display','none');
}
appendNodes(subul, item.children, depth+1);
} else {
if (item.state == 'closed'){
$('<span class="tree-folder"></span>').addClass(item.iconCls).prependTo(node);
$('<span class="tree-hit tree-collapsed"></span>').prependTo(node);
} else {
// $('<input type="checkbox" style="vertical-align:bottom;margin:0;height:18px;">').prependTo(node);
$('<span class="tree-file"></span>').addClass(item.iconCls).prependTo(node);
$('<span class="tree-indent"></span>').prependTo(node);
}
}
for(var j=0; j<depth; j++){
$('<span class="tree-indent"></span>').prependTo(node);
}
}
}
var depth = $(ul).prev().find('>span.tree-indent,>span.tree-hit').length;
appendNodes(ul, data, depth);
}
/**
* request remote data and then load nodes in the <ul> tag.
*/
function request(target, ul, param){
var opts = $.data(target, 'tree').options;
if (!opts.url) return;
param = param || {};
var folder = $(ul).prev().find('>span.tree-folder');
folder.addClass('tree-loading');
$.ajax({
type: 'post',
url: opts.url,
data: param,
dataType: 'json',
success: function(data){
folder.removeClass('tree-loading');
loadData(target, ul, data);
bindTreeEvents(target);
if (opts.onLoadSuccess){
opts.onLoadSuccess.apply(this, arguments);
}
},
error: function(){
folder.removeClass('tree-loading');
if (opts.onLoadError){
opts.onLoadError.apply(this, arguments);
}
}
});
}
/**
* get the parent node
* param: DOM object, from which to search it's parent node
*/
function getParentNode(target, param){
var node = $(param).parent().parent().prev();
if (node.length){
return $.extend({}, $.data(node[0], 'tree-node'), {
target: node[0],
checked: node.find('.tree-checkbox').hasClass('tree-checkbox1')
});
} else {
return null;
}
}
function getCheckedNode(target){
var nodes = [];
$(target).find('.tree-checkbox1').each(function(){
var node = $(this).parent();
nodes.push($.extend({}, $.data(node[0], 'tree-node'), {
target: node[0],
checked: node.find('.tree-checkbox').hasClass('tree-checkbox1')
}));
});
return nodes;
}
/**
* Get the selected node data which contains following properties: id,text,attributes,target
*/
function getSelectedNode(target){
var node = $(target).find('div.tree-node-selected');
if (node.length){
return $.extend({}, $.data(node[0], 'tree-node'), {
target: node[0],
checked: node.find('.tree-checkbox').hasClass('tree-checkbox1')
});
} else {
return null;
}
}
/**
* Append nodes to tree.
* The param parameter has two properties:
* 1 parent: DOM object, the parent node to append to.
* 2 data: array, the nodes data.
*/
function appendNodes(target, param){
var node = $(param.parent);
var ul = node.next();
if (ul.length == 0){
ul = $('<ul></ul>').insertAfter(node);
}
// ensure the node is a folder node
if (param.data && param.data.length){
var nodeIcon = node.find('span.tree-file');
if (nodeIcon.length){
nodeIcon.removeClass('tree-file').addClass('tree-folder');
var hit = $('<span class="tree-hit tree-expanded"></span>').insertBefore(nodeIcon);
if (hit.prev().length){
hit.prev().remove();
}
}
}
loadData(target, ul, param.data);
bindTreeEvents(target);
}
/**
* Remove node from tree.
* param: DOM object, indicate the node to be removed.
*/
function removeNode(target, param){
var node = $(param);
var li = node.parent();
var ul = li.parent();
li.remove();
if (ul.find('li').length == 0){
var node = ul.prev();
node.find('.tree-folder').removeClass('tree-folder').addClass('tree-file');
node.find('.tree-hit').remove();
$('<span class="tree-indent"></span>').prependTo(node);
if (ul[0] != target){
ul.remove();
}
}
}
/**
* select the specified node.
* param: DOM object, indicate the node to be selected.
*/
function selectNode(target, param){
$('div.tree-node-selected', target).removeClass('tree-node-selected');
$(param).addClass('tree-node-selected');
}
/**
* Check if the specified node is leaf.
* param: DOM object, indicate the node to be checked.
*/
function isLeaf(target, param){
var node = $(param);
var hit = $('>span.tree-hit', node);
return hit.length == 0;
}
$.fn.tree = function(options, param){
if (typeof options == 'string'){
switch(options){
case 'options':
return $.data(this[0], 'tree').options;
case 'reload':
return this.each(function(){
$(this).empty();
request(this, this);
});
case 'getParent':
return getParentNode(this[0], param);
case 'getChecked':
return getCheckedNode(this[0]);
case 'getSelected':
return getSelectedNode(this[0]);
case 'isLeaf':
return isLeaf(this[0], param); // param is the node object
case 'select':
return this.each(function(){
selectNode(this, param);
});
case 'collapse':
return this.each(function(){
collapseNode(this, $(param)); // param is the node object
});
case 'expand':
return this.each(function(){
expandNode(this, $(param)); // param is the node object
});
case 'append':
return this.each(function(){
appendNodes(this, param);
});
case 'toggle':
return this.each(function(){
toggleNode(this, $(param));
});
case 'remove':
return this.each(function(){
removeNode(this, param);
});
}
}
var options = options || {};
return this.each(function(){
var state = $.data(this, 'tree');
var opts;
if (state){
opts = $.extend(state.options, options);
state.options = opts;
} else {
opts = $.extend({}, $.fn.tree.defaults, {
url:$(this).attr('url'),
animate:($(this).attr('animate') ? $(this).attr('animate') == 'true' : undefined)
}, options);
$.data(this, 'tree', {
options: opts,
tree: wrapTree(this)
});
// request(this, this);
}
if (opts.url){
request(this, this);
}
bindTreeEvents(this);
});
};
$.fn.tree.defaults = {
url: null,
animate: false,
checkbox: false,
onLoadSuccess: function(){},
onLoadError: function(){},
onClick: function(node){}, // node: id,text,attributes,target
onDblClick: function(node){} // node: id,text,attributes,target
};
})(jQuery);
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.tree.js | JavaScript | asf20 | 15,084 |
/**
* combotree - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* tree
*
*/
(function($){
function setSize(target){
var opts = $.data(target, 'combotree').options;
var combo = $.data(target, 'combotree').combotree;
var content = $.data(target, 'combotree').content;
if (!isNaN(opts.width)){
var arrowWidth = combo.find('.combotree-arrow').outerWidth();
var width = opts.width - arrowWidth - (combo.outerWidth() - combo.width());
combo.find('input.combotree-text').width(width);
}
if (opts.treeWidth){
content.width(opts.treeWidth);
} else {
content.width($.boxModel==true ? combo.outerWidth()-(content.outerWidth()-content.width()) : combo.outerWidth());
}
if (opts.treeHeight){
content.height(opts.treeHeight);
}
content.find('>ul').tree({
url:opts.url,
onClick:function(node){
var oldValue = combo.find('input.combotree-value').val();
combo.find('input.combotree-value').val(node.id);
combo.find('input.combotree-text').val(node.text);
content.hide();
opts.onSelect.call(target, node);
if (oldValue != node.id){
opts.onChange.call(target, node.id, oldValue);
}
}
});
}
function init(target){
$(target).hide();
var span = $('<span class="combotree"></span>').insertAfter(target);
$('<input type="hidden" class="combotree-value"></input>').appendTo(span);
$('<input class="combotree-text" readonly="true"></input>').appendTo(span);
var arrow = $('<span><span class="combotree-arrow"></span></span>').appendTo(span);
var content = $('<div class="combotree-content"><ul></ul></div>').insertAfter(span);
var name = $(target).attr('name');
if (name){
span.attr('name', name);
$(target).removeAttr('name');
}
/**
* show tree panel
*/
function show(){
content.css({
display:'block',
left:span.offset().left,
top:span.offset().top+span.outerHeight()
});
$(document).unbind('.combotree').bind('click.combotree', function(){
content.hide();
return false;
});
}
span.click(function(){
show();
return false;
});
arrow.find('.combotree-arrow').hover(
function(){$(this).addClass('combotree-arrow-hover');},
function(){$(this).removeClass('combotree-arrow-hover');}
);
return {
combotree: span,
content: content
}
}
/**
* set the value.
* node: object, must at lease contains two properties: id and text.
*/
function setValue(target, node){
var opts = $.data(target, 'combotree').options;
var combo = $.data(target, 'combotree').combotree;
var content = $.data(target, 'combotree').content;
var oldValue = combo.find('input.combotree-value').val();
combo.find('input.combotree-value').val(node.id);
combo.find('input.combotree-text').val(node.text);
var root = content.find('>ul');
var node1 = $('div.tree-node[node-id='+node.id+']', root);
root.tree('select', node1[0]);
if (oldValue != node.id){
opts.onChange.call(target, node.id, oldValue);
}
}
/**
* reload the tree panel
*/
function reload(target, url){
var opts = $.data(target, 'combotree').options;
var content = $.data(target, 'combotree').content;
if (url){
opts.url = url;
}
content.find('>ul').tree({url:opts.url}).tree('reload');
}
$.fn.combotree = function(options, param){
if (typeof options == 'string'){
switch(options){
case 'setValue':
return this.each(function(){
setValue(this, param);
});
case 'reload':
return this.each(function(){
reload(this, param);
});
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'combotree');
if (state){
$.extend(state.options, options);
} else {
var r = init(this);
state = $.data(this, 'combotree', {
options: $.extend({}, $.fn.combotree.defaults, {
width: (parseInt($(this).css('width')) || 'auto'),
treeWidth: $(this).attr('treeWidth'),
treeHeight: ($(this).attr('treeHeight') || 200),
url: $(this).attr('url')
}, options),
combotree: r.combotree,
content: r.content
});
}
setSize(this);
});
};
$.fn.combotree.defaults = {
width:'auto',
treeWidth:null,
treeHeight:200,
url:null,
onSelect:function(node){},
onChange:function(newValue,oldValue){}
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.combotree.js | JavaScript | asf20 | 4,612 |
/**
* datagrid - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* resizable
* linkbutton
* pagination
*
*/
(function($){
function setSize(target) {
var grid = $.data(target, 'datagrid').grid;
var opts = $.data(target, 'datagrid').options;
if (opts.fit == true){
var p = grid.parent();
opts.width = p.width();
opts.height = p.height();
}
if (opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length>0)){
$('.datagrid-body .datagrid-cell,.datagrid-body .datagrid-cell-rownumber',grid).addClass('datagrid-cell-height');
}
var gridWidth = opts.width;
if (gridWidth == 'auto') {
if ($.boxModel == true) {
gridWidth = grid.width();
} else {
gridWidth = grid.outerWidth();
}
} else {
if ($.boxModel == true){
gridWidth -= grid.outerWidth() - grid.width();
}
}
grid.width(gridWidth);
var innerWidth = gridWidth;
if ($.boxModel == false) {
innerWidth = gridWidth - grid.outerWidth() + grid.width();
}
$('.datagrid-wrap', grid).width(innerWidth);
$('.datagrid-view', grid).width(innerWidth);
$('.datagrid-view1',grid).width($('.datagrid-view1 table',grid).width());
$('.datagrid-view2',grid).width(innerWidth - $('.datagrid-view1',grid).outerWidth());
$('.datagrid-view1 .datagrid-header',grid).width($('.datagrid-view1',grid).width());
$('.datagrid-view1 .datagrid-body',grid).width($('.datagrid-view1',grid).width());
$('.datagrid-view2 .datagrid-header',grid).width($('.datagrid-view2',grid).width());
$('.datagrid-view2 .datagrid-body',grid).width($('.datagrid-view2',grid).width());
var hh;
var header1 = $('.datagrid-view1 .datagrid-header',grid);
var header2 = $('.datagrid-view2 .datagrid-header',grid);
header1.css('height', null);
header2.css('height', null);
if ($.boxModel == true){
hh = Math.max(header1.height(), header2.height());
} else {
hh = Math.max(header1.outerHeight(), header2.outerHeight());
}
$('.datagrid-view1 .datagrid-header table',grid).height(hh);
$('.datagrid-view2 .datagrid-header table',grid).height(hh);
header1.height(hh);
header2.height(hh);
if (opts.height == 'auto') {
$('.datagrid-body', grid).height($('.datagrid-view2 .datagrid-body table', grid).height());
} else {
$('.datagrid-body', grid).height(
opts.height
- (grid.outerHeight() - grid.height())
- $('.datagrid-header', grid).outerHeight(true)
- $('.datagrid-title', grid).outerHeight(true)
- $('.datagrid-toolbar', grid).outerHeight(true)
- $('.datagrid-pager', grid).outerHeight(true)
);
}
$('.datagrid-view',grid).height($('.datagrid-view2',grid).height());
$('.datagrid-view1',grid).height($('.datagrid-view2',grid).height());
$('.datagrid-view2',grid).css('left', $('.datagrid-view1',grid).outerWidth());
}
/**
* wrap and return the grid object, fields and columns
*/
function wrapGrid(target, rownumbers) {
var grid = $(target).wrap('<div class="datagrid"></div>').parent();
grid.append(
'<div class="datagrid-wrap">' +
'<div class="datagrid-view">' +
'<div class="datagrid-view1">' +
'<div class="datagrid-header">' +
'<div class="datagrid-header-inner"></div>' +
'</div>' +
'<div class="datagrid-body">' +
'<div class="datagrid-body-inner">' +
'<table border="0" cellspacing="0" cellpadding="0"></table>' +
'</div>' +
'</div>' +
'</div>' +
'<div class="datagrid-view2">' +
'<div class="datagrid-header">' +
'<div class="datagrid-header-inner"></div>' +
'</div>' +
'<div class="datagrid-body"></div>' +
'</div>' +
'<div class="datagrid-resize-proxy"></div>' +
'</div>' +
'</div>'
);
var frozenColumns = getColumns($('thead[frozen=true]', target));
$('thead[frozen=true]', target).remove();
var columns = getColumns($('thead', target));
$('thead', target).remove();
$(target).attr({
cellspacing: 0,
cellpadding: 0,
border: 0
}).removeAttr('width').removeAttr('height').appendTo($('.datagrid-view2 .datagrid-body', grid));
function getColumns(thead){
var columns = [];
$('tr', thead).each(function(){
var cols = [];
$('th', this).each(function(){
var th = $(this);
var col = {
title: th.html(),
align: th.attr('align') || 'left',
sortable: th.attr('sortable')=='true' || false,
checkbox: th.attr('checkbox')=='true' || false
};
if (th.attr('field')) {
col.field = th.attr('field');
}
if (th.attr('formatter')){
col.formatter = eval(th.attr('formatter'));
}
if (th.attr('rowspan')) col.rowspan = parseInt(th.attr('rowspan'));
if (th.attr('colspan')) col.colspan = parseInt(th.attr('colspan'));
if (th.attr('width')) col.width = parseInt(th.attr('width'));
cols.push(col);
});
columns.push(cols);
});
return columns;
}
var fields = getColumnFields(columns);
$('.datagrid-view2 .datagrid-body tr', grid).each(function(){
for(var i=0; i<fields.length; i++){
$('td:eq('+i+')', this)
.addClass('datagrid-column-'+fields[i])
.wrapInner('<div class="datagrid-cell"></div>');
}
});
grid.bind('_resize', function(){
var opts = $.data(target, 'datagrid').options;
if (opts.fit == true){
setSize(target);
fixColumnSize(target);
}
return false;
});
return {
grid: grid,
frozenColumns: frozenColumns,
columns: columns
};
}
function createColumnHeader(columns){
var t = $('<table border="0" cellspacing="0" cellpadding="0"><thead></thead></table>');
for(var i=0; i<columns.length; i++) {
var tr = $('<tr></tr>').appendTo($('thead', t));
var cols = columns[i];
for(var j=0; j<cols.length; j++){
var col = cols[j];
var attr = '';
if (col.rowspan) attr += 'rowspan="' + col.rowspan + '" ';
if (col.colspan) attr += 'colspan="' + col.colspan + '" ';
var th = $('<th ' + attr + '></th>').appendTo(tr);
if (col.checkbox){
th.attr('field', col.field);
$('<div class="datagrid-header-check"></div>')
.html('<input type="checkbox"/>')
.appendTo(th);
} else if (col.field){
th.append('<div class="datagrid-cell"><span></span><span class="datagrid-sort-icon"></span></div>');
th.attr('field', col.field);
$('.datagrid-cell', th).width(col.width);
$('span', th).html(col.title);
$('span.datagrid-sort-icon', th).html(' ');
} else {
th.append('<div class="datagrid-cell-group"></div>');
$('.datagrid-cell-group', th).html(col.title);
}
}
}
return t;
}
/**
* set the common properties
*/
function setProperties(target) {
var grid = $.data(target, 'datagrid').grid;
var opts = $.data(target, 'datagrid').options;
var data = $.data(target, 'datagrid').data;
if (opts.striped) {
$('.datagrid-view1 .datagrid-body tr:odd', grid).addClass('datagrid-row-alt');
$('.datagrid-view2 .datagrid-body tr:odd', grid).addClass('datagrid-row-alt');
}
if (opts.nowrap == false) {
$('.datagrid-body .datagrid-cell', grid).css('white-space', 'normal');
}
$('.datagrid-header th:has(.datagrid-cell)', grid).hover(
function(){$(this).addClass('datagrid-header-over');},
function(){$(this).removeClass('datagrid-header-over');}
);
$('.datagrid-body tr', grid).mouseover(function(){
var index = $(this).attr('datagrid-row-index');
$('.datagrid-body tr[datagrid-row-index='+index+']',grid).addClass('datagrid-row-over');
}).mouseout(function(){
var index = $(this).attr('datagrid-row-index');
$('.datagrid-body tr[datagrid-row-index='+index+']',grid).removeClass('datagrid-row-over');
}).click(function(){
var index = $(this).attr('datagrid-row-index');
if ($(this).hasClass('datagrid-row-selected')){
unselectRow(target, index);
} else {
selectRow(target, index);
}
if (opts.onClickRow){
opts.onClickRow.call(this, index, data.rows[index]);
}
}).dblclick(function(){
var index = $(this).attr('datagrid-row-index');
if (opts.onDblClickRow){
opts.onDblClickRow.call(this, index, data.rows[index]);
}
});
function onHeaderCellClick(){
var field = $(this).parent().attr('field');
var opt = getColumnOption(target, field);
if (!opt.sortable) return;
opts.sortName = field;
opts.sortOrder = 'asc';
var c = 'datagrid-sort-asc';
if ($(this).hasClass('datagrid-sort-asc')){
c = 'datagrid-sort-desc';
opts.sortOrder = 'desc';
}
$('.datagrid-header .datagrid-cell', grid).removeClass('datagrid-sort-asc');
$('.datagrid-header .datagrid-cell', grid).removeClass('datagrid-sort-desc');
$(this).addClass(c);
if (opts.onSortColumn){
opts.onSortColumn.call(this, opts.sortName, opts.sortOrder);
}
request(target);
}
function onHeaderCheckboxClick(){
if ($(this).attr('checked')){
$('.datagrid-view2 .datagrid-body tr', grid).each(function(){
if (!$(this).hasClass('datagrid-row-selected')){
$(this).trigger('click');
}
});
} else {
$('.datagrid-view2 .datagrid-body tr', grid).each(function(){
if ($(this).hasClass('datagrid-row-selected')){
$(this).trigger('click');
}
});
}
}
$('.datagrid-header .datagrid-cell', grid).unbind('.datagrid');
$('.datagrid-header .datagrid-cell', grid).bind('click.datagrid', onHeaderCellClick);
$('.datagrid-header .datagrid-header-check input[type=checkbox]', grid).unbind('.datagrid');
$('.datagrid-header .datagrid-header-check input[type=checkbox]', grid).bind('click.datagrid', onHeaderCheckboxClick);
$('.datagrid-header .datagrid-cell', grid).resizable({
handles:'e',
minWidth:50,
onStartResize: function(e){
$('.datagrid-resize-proxy', grid).css({
left:e.pageX - $(grid).offset().left - 1
});
$('.datagrid-resize-proxy', grid).css('display', 'block');
},
onResize: function(e){
$('.datagrid-resize-proxy', grid).css({
left:e.pageX - $(grid).offset().left - 1
});
return false;
},
onStopResize: function(e){
fixColumnSize(target, this);
$('.datagrid-view2 .datagrid-header', grid).scrollLeft($('.datagrid-view2 .datagrid-body', grid).scrollLeft());
$('.datagrid-resize-proxy', grid).css('display', 'none');
}
});
$('.datagrid-view1 .datagrid-header .datagrid-cell', grid).resizable({
onStopResize: function(e){
fixColumnSize(target, this);
$('.datagrid-view2 .datagrid-header', grid).scrollLeft($('.datagrid-view2 .datagrid-body', grid).scrollLeft());
$('.datagrid-resize-proxy', grid).css('display', 'none');
setSize(target);
}
});
var body1 = $('.datagrid-view1 .datagrid-body', grid);
var body2 = $('.datagrid-view2 .datagrid-body', grid);
var header2 = $('.datagrid-view2 .datagrid-header', grid);
body2.scroll(function(){
header2.scrollLeft(body2.scrollLeft());
body1.scrollTop(body2.scrollTop());
});
}
/**
* fix column size with the special cell element
*/
function fixColumnSize(target, cell) {
var grid = $.data(target, 'datagrid').grid;
var opts = $.data(target, 'datagrid').options;
if (cell) {
fix(cell);
} else {
$('.datagrid-header .datagrid-cell', grid).each(function(){
fix(this);
});
}
function fix(cell) {
var headerCell = $(cell);
if (headerCell.width() == 0) return;
var fieldName = headerCell.parent().attr('field');
$('.datagrid-body td.datagrid-column-' + fieldName + ' .datagrid-cell', grid).each(function(){
var bodyCell = $(this);
if ($.boxModel == true) {
bodyCell.width(headerCell.outerWidth() - bodyCell.outerWidth() + bodyCell.width());
} else {
bodyCell.width(headerCell.outerWidth());
}
});
var col = getColumnOption(target, fieldName);
col.width = $.boxModel==true ? headerCell.width() : headerCell.outerWidth();
}
}
function getColumnOption(target, field){
var opts = $.data(target, 'datagrid').options;
if (opts.columns){
for(var i=0; i<opts.columns.length; i++){
var cols = opts.columns[i];
for(var j=0; j<cols.length; j++){
var col = cols[j];
if (col.field == field){
return col;
}
}
}
}
if (opts.frozenColumns){
for(var i=0; i<opts.frozenColumns.length; i++){
var cols = opts.frozenColumns[i];
for(var j=0; j<cols.length; j++){
var col = cols[j];
if (col.field == field){
return col;
}
}
}
}
return null;
}
/**
* get column fields which will be show in row
*/
function getColumnFields(columns){
if (columns.length == 0) return [];
function getFields(ridx,cidx,count){
var fields = [];
while(fields.length < count){
var col = columns[ridx][cidx];
if (col.colspan && parseInt(col.colspan)>1){
var ff = getFields(ridx+1, getSubColIndex(ridx,cidx), parseInt(col.colspan));
fields = fields.concat(ff);
} else if (col.field){
fields.push(col.field);
}
cidx++;
}
return fields;
}
function getSubColIndex(ridx, cidx){
var index = 0;
for(var i=0; i<cidx; i++){
var colspan = parseInt(columns[ridx][i].colspan || '1');
if (colspan > 1){
index += colspan;
}
}
return index;
}
var fields = [];
for(var i=0; i<columns[0].length; i++){
var col = columns[0][i];
if (col.colspan && parseInt(col.colspan)>1){
var ff = getFields(1, getSubColIndex(0,i), parseInt(col.colspan));
fields = fields.concat(ff);
} else if (col.field){
fields.push(col.field);
}
}
return fields;
}
/**
* load data to the grid
*/
function loadData(target, data){
var grid = $.data(target, 'datagrid').grid;
var opts = $.data(target, 'datagrid').options;
var selectedRows = $.data(target, 'datagrid').selectedRows;
var rows = data.rows;
var getWidthDelta = function(){
if ($.boxModel == false) return 0;
var headerCell = $('.datagrid-header .datagrid-cell:first');
var headerDelta = headerCell.outerWidth() - headerCell.width();
var t = $('.datagrid-body table', grid);
t.append($('<tr><td><div class="datagrid-cell"></div></td></tr>'));
var bodyCell = $('.datagrid-cell', t);
var bodyDelta = bodyCell.outerWidth() - bodyCell.width();
return headerDelta - bodyDelta;
};
var widthDelta = getWidthDelta();
var frozen = opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length > 0);
function getTBody(fields, rownumbers){
function isSelected(row){
if (!opts.idField) return false;
for(var i=0; i<selectedRows.length; i++){
if (selectedRows[i][opts.idField] == row[opts.idField]) return true;
}
return false;
}
var tbody = ['<tbody>'];
for(var i=0; i<rows.length; i++) {
var row = rows[i];
var selected = isSelected(row);
if (i % 2 && opts.striped){
tbody.push('<tr datagrid-row-index="' + i + '" class="datagrid-row-alt');
} else {
tbody.push('<tr datagrid-row-index="' + i + '" class="');
}
if (selected == true){
tbody.push(' datagrid-row-selected');
}
tbody.push('">');
if (rownumbers){
var rownumber = i+1;
if (opts.pagination){
rownumber += (opts.pageNumber-1)*opts.pageSize;
}
if (frozen){
tbody.push('<td><div class="datagrid-cell-rownumber datagrid-cell-height">'+rownumber+'</div></td>');
} else {
tbody.push('<td><div class="datagrid-cell-rownumber">'+rownumber+'</div></td>');
}
}
for(var j=0; j<fields.length; j++){
var field = fields[j];
var col = getColumnOption(target, field);
if (col){
var style = 'width:' + (col.width + widthDelta) + 'px;';
style += 'text-align:' + (col.align || 'left');
tbody.push('<td class="datagrid-column-' + field + '">');
tbody.push('<div style="' + style + '" ');
if (col.checkbox){
tbody.push('class="datagrid-cell-check ');
} else {
tbody.push('class="datagrid-cell ');
}
if (frozen){
tbody.push('datagrid-cell-height ');
}
tbody.push('">');
if (col.checkbox){
if (selected){
tbody.push('<input type="checkbox" checked="checked"/>');
} else {
tbody.push('<input type="checkbox"/>');
}
} else if (col.formatter){
tbody.push(col.formatter(row[field], row));
} else {
tbody.push(row[field]);
}
tbody.push('</div>');
tbody.push('</td>');
}
}
tbody.push('</tr>');
}
tbody.push('</tbody>');
return tbody.join('');
}
$('.datagrid-body, .datagrid-header', grid).scrollLeft(0).scrollTop(0);
var fields = getColumnFields(opts.columns);
$('.datagrid-view2 .datagrid-body table', grid).html(getTBody(fields));
if (opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length > 0)){
var frozenFields = getColumnFields(opts.frozenColumns);
$('.datagrid-view1 .datagrid-body table', grid).html(getTBody(frozenFields, opts.rownumbers));
}
$.data(target, 'datagrid').data = data;
$('.datagrid-pager', grid).pagination({total: data.total});
setSize(target);
setProperties(target);
}
function getSelectedRows(target){
var opts = $.data(target, 'datagrid').options;
var grid = $.data(target, 'datagrid').grid;
var data = $.data(target, 'datagrid').data;
if (opts.idField){
return $.data(target, 'datagrid').selectedRows;
}
var rows = [];
$('.datagrid-view2 .datagrid-body tr.datagrid-row-selected', grid).each(function(){
var index = parseInt($(this).attr('datagrid-row-index'));
if (data.rows[index]){
rows.push(data.rows[index]);
}
});
return rows;
}
/**
* clear all the selection records
*/
function clearSelections(target){
var grid = $.data(target, 'datagrid').grid;
$('.datagrid-body tr.datagrid-row-selected', grid).removeClass('datagrid-row-selected');
$('.datagrid-body .datagrid-cell-check input[type=checkbox]', grid).attr('checked', false);
var selectedRows = $.data(target, 'datagrid').selectedRows;
while(selectedRows.length > 0){
selectedRows.pop();
}
}
/**
* select a row with specified row index which start with 0.
*/
function selectRow(target, index){
var grid = $.data(target, 'datagrid').grid;
var opts = $.data(target, 'datagrid').options;
var data = $.data(target, 'datagrid').data;
var selectedRows = $.data(target, 'datagrid').selectedRows;
var tr = $('.datagrid-body tr[datagrid-row-index='+index+']',grid);
var ck = $('.datagrid-body tr[datagrid-row-index='+index+'] .datagrid-cell-check input[type=checkbox]',grid);
if (opts.singleSelect == true){
clearSelections(target);
}
tr.addClass('datagrid-row-selected');
ck.attr('checked', true);
if (opts.idField){
var row = data.rows[index];
for(var i=0; i<selectedRows.length; i++){
if (selectedRows[i][opts.idField] == row[opts.idField]){
return;
}
}
selectedRows.push(row);
}
opts.onSelect.call(target, index, data.rows[index]);
}
/**
* select record by idField.
*/
function selectRecord(target, idValue){
var opts = $.data(target, 'datagrid').options;
var data = $.data(target, 'datagrid').data;
if (opts.idField){
var index = -1;
for(var i=0; i<data.rows.length; i++){
if (data.rows[i][opts.idField] == idValue){
index = i;
break;
}
}
if (index >= 0){
selectRow(target, index);
}
}
}
/**
* unselect a row.
*/
function unselectRow(target, index){
var opts = $.data(target, 'datagrid').options;
var grid = $.data(target, 'datagrid').grid;
var selectedRows = $.data(target, 'datagrid').selectedRows;
var tr = $('.datagrid-body tr[datagrid-row-index='+index+']',grid);
var ck = $('.datagrid-body tr[datagrid-row-index='+index+'] .datagrid-cell-check input[type=checkbox]',grid);
tr.removeClass('datagrid-row-selected');
ck.attr('checked', false);
var row = $.data(target, 'datagrid').data.rows[index];
if (opts.idField){
for(var i=0; i<selectedRows.length; i++){
var row1 = selectedRows[i];
if (row1[opts.idField] == row[opts.idField]){
for(var j=i+1; j<selectedRows.length; j++){
selectedRows[j-1] = selectedRows[j];
}
selectedRows.pop();
break;
}
}
}
opts.onUnselect.call(target, index, row);
}
/**
* request remote data
*/
function request(target){
var grid = $.data(target, 'datagrid').grid;
var opts = $.data(target, 'datagrid').options;
if (!opts.url) return;
var param = $.extend({}, opts.queryParams);
if (opts.pagination){
$.extend(param, {
page: opts.pageNumber,
rows: opts.pageSize
});
}
if (opts.sortName){
$.extend(param, {
sort: opts.sortName,
order: opts.sortOrder
});
}
$('.datagrid-pager', grid).pagination({loading:true});
var wrap = $('.datagrid-wrap', grid);
$('<div class="datagrid-mask"></div>').css({
display:'block',
width: wrap.width(),
height: wrap.height()
}).appendTo(wrap);
$('<div class="datagrid-mask-msg"></div>')
.html(opts.loadMsg)
.appendTo(wrap)
.css({
display:'block',
left:(wrap.width()-$('.datagrid-mask-msg',grid).outerWidth())/2,
top:(wrap.height()-$('.datagrid-mask-msg',grid).outerHeight())/2
});
$.ajax({
type: opts.method,
url: opts.url,
data: param,
dataType: 'json',
success: function(data){
$('.datagrid-pager', grid).pagination({loading:false});
$('.datagrid-mask', grid).remove();
$('.datagrid-mask-msg', grid).remove();
loadData(target, data);
if (opts.onLoadSuccess){
opts.onLoadSuccess.apply(this, arguments);
}
},
error: function(){
$('.datagrid-pager', grid).pagination({loading:false});
$('.datagrid-mask', grid).remove();
$('.datagrid-mask-msg', grid).remove();
if (opts.onLoadError){
opts.onLoadError.apply(this, arguments);
}
}
});
}
$.fn.datagrid = function(options, param){
if (typeof options == 'string') {
switch(options){
case 'options':
return $.data(this[0], 'datagrid').options;
case 'resize':
return this.each(function(){
setSize(this);
});
case 'reload':
return this.each(function(){
request(this);
});
case 'fixColumnSize':
return this.each(function(){
fixColumnSize(this);
});
case 'loadData':
return this.each(function(){
loadData(this, param);
});
case 'getSelected':
var rows = getSelectedRows(this[0]);
return rows.length>0 ? rows[0] : null;
case 'getSelections':
return getSelectedRows(this[0]);
case 'clearSelections':
return this.each(function(){
clearSelections(this);
});
case 'selectRow':
return this.each(function(){
selectRow(this, param);
});
case 'selectRecord':
return this.each(function(){
selectRecord(this, param);
});
case 'unselectRow':
return this.each(function(){
unselectRow(this, param);
});
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'datagrid');
var opts;
if (state) {
opts = $.extend(state.options, options);
state.options = opts;
} else {
opts = $.extend({}, $.fn.datagrid.defaults, {
width: (parseInt($(this).css('width')) || 'auto'),
height: (parseInt($(this).css('height')) || 'auto'),
fit: $(this).attr('fit') == 'true'
}, options);
$(this).css('width', null).css('height', null);
var wrapResult = wrapGrid(this, opts.rownumbers);
if (!opts.columns) opts.columns = wrapResult.columns;
if (!opts.frozenColumns) opts.frozenColumns = wrapResult.frozenColumns;
$.data(this, 'datagrid', {
options: opts,
grid: wrapResult.grid,
selectedRows: []
});
}
var target = this;
var grid = $.data(this, 'datagrid').grid;
if (opts.border == true){
grid.removeClass('datagrid-noborder');
} else {
grid.addClass('datagrid-noborder');
}
if (opts.frozenColumns){
var t = createColumnHeader(opts.frozenColumns);
if (opts.rownumbers){
var th = $('<th rowspan="'+opts.frozenColumns.length+'"><div class="datagrid-header-rownumber"></div></th>');
if ($('tr',t).length == 0){
th.wrap('<tr></tr>').parent().appendTo($('thead',t));
} else {
th.prependTo($('tr:first', t));
}
}
$('.datagrid-view1 .datagrid-header-inner', grid).html(t);
}
if (opts.columns){
var t = createColumnHeader(opts.columns);
$('.datagrid-view2 .datagrid-header-inner', grid).html(t);
}
$('.datagrid-title', grid).remove();
if (opts.title) {
var title = $('<div class="datagrid-title"><span class="datagrid-title-text"></span></div>');
$('.datagrid-title-text', title).html(opts.title);
title.prependTo(grid);
if (opts.iconCls) {
$('.datagrid-title-text', title).addClass('datagrid-title-with-icon');
$('<div class="datagrid-title-icon"></div>').addClass(opts.iconCls).appendTo(title);
}
}
$('.datagrid-toolbar', grid).remove();
if (opts.toolbar) {
var tb = $('<div class="datagrid-toolbar"></div>').prependTo($('.datagrid-wrap', grid));
for(var i=0; i<opts.toolbar.length; i++) {
var btn = opts.toolbar[i];
if (btn == '-') {
$('<div class="datagrid-btn-separator"></div>').appendTo(tb);
} else {
var tool = $('<a href="javascript:void(0)"></a>');
tool[0].onclick = eval(btn.handler || function(){});
tool.css('float', 'left')
.text(btn.text)
.attr('icon', btn.iconCls || '')
.appendTo(tb)
.linkbutton({
plain:true,
disabled:(btn.disabled || false)
});
}
}
}
$('.datagrid-pager', grid).remove();
if (opts.pagination) {
var pager = $('<div class="datagrid-pager"></div>').appendTo($('.datagrid-wrap', grid));
pager.pagination({
pageNumber:opts.pageNumber,
pageSize:opts.pageSize,
pageList:opts.pageList,
onSelectPage: function(pageNum, pageSize){
// save the page state
opts.pageNumber = pageNum;
opts.pageSize = pageSize;
request(target); // request new page data
}
});
opts.pageSize = pager.pagination('options').pageSize; // repare the pageSize value
}
if (!state) {
fixColumnSize(target);
}
setSize(target);
if (opts.url) {
request(target);
}
setProperties(target);
});
};
$.fn.datagrid.defaults = {
title: null,
iconCls: null,
border: true,
width: 'auto',
height: 'auto',
frozenColumns: null,
columns: null,
striped: false,
method: 'post',
nowrap: true,
idField: null,
url: null,
loadMsg: 'Processing, please wait ...',
pagination: false,
rownumbers: false,
singleSelect: false,
fit: false,
pageNumber: 1,
pageSize: 10,
pageList: [10,20,30,40,50],
queryParams: {},
sortName: null,
sortOrder: 'asc',
onLoadSuccess: function(){},
onLoadError: function(){},
onClickRow: function(rowIndex, rowData){},
onDblClickRow: function(rowIndex, rowData){},
onSortColumn: function(sort, order){},
onSelect: function(rowIndex, rowData){},
onUnselect: function(rowIndex, rowData){}
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.datagrid.js | JavaScript | asf20 | 28,510 |
/**
* menu - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*/
(function($){
/**
* initialize the target menu, the function can be invoked only once
*/
function init(target){
$(target).appendTo('body');
$(target).addClass('menu-top'); // the top menu
var menus = [];
adjust($(target));
for(var i=0; i<menus.length; i++){
var menu = menus[i];
wrapMenu(menu);
menu.find('>div.menu-item').each(function(){
bindMenuItemEvent($(this));
});
menu.find('div.menu-item').click(function(){
// only the sub menu clicked can hide all menus
if (!this.submenu){
hideAll(target);
}
return false;
});
}
function adjust(menu){
menus.push(menu);
menu.find('>div').each(function(){
var item = $(this);
var submenu = item.find('>div');
if (submenu.length){
submenu.insertAfter(target);
item[0].submenu = submenu;
adjust(submenu);
}
});
}
/**
* bind menu item event
*/
function bindMenuItemEvent(item){
item.hover(
function(){
// hide other menu
item.siblings().each(function(){
if (this.submenu){
hideMenu(this.submenu);
}
$(this).removeClass('menu-active');
});
// show this menu
item.addClass('menu-active');
var submenu = item[0].submenu;
if (submenu){
var left = item.offset().left + item.outerWidth() - 2;
if (left + submenu.outerWidth() > $(window).width()){
left = item.offset().left - submenu.outerWidth() + 2;
}
showMenu(submenu, {
left: left,
top:item.offset().top - 3
});
}
},
function(e){
item.removeClass('menu-active');
var submenu = item[0].submenu;
if (submenu){
if (e.pageX>=parseInt(submenu.css('left'))){
item.addClass('menu-active');
} else {
hideMenu(submenu);
}
} else {
item.removeClass('menu-active');
}
}
);
}
/**
* wrap a menu and set it's status to hidden
* the menu not include sub menus
*/
function wrapMenu(menu){
menu.addClass('menu').find('>div').each(function(){
var item = $(this);
if (item.hasClass('menu-sep')){
item.html(' ');
} else {
var text = item.addClass('menu-item').html();
item.empty().append($('<div class="menu-text"></div>').html(text));
var icon = item.attr('icon');
if (icon){
$('<div class="menu-icon"></div>').addClass(icon).appendTo(item);
}
if (item[0].submenu){
$('<div class="menu-rightarrow"></div>').appendTo(item); // has sub menu
}
if ($.boxModel == true){
var height = item.height();
item.height(height - (item.outerHeight() - item.height()));
}
}
});
menu.hide();
}
}
function onDocClick(e){
var target = e.data;
hideAll(target);
return false;
}
/**
* hide top menu and it's all sub menus
*/
function hideAll(target){
var opts = $.data(target, 'menu').options;
hideMenu($(target));
$(document).unbind('.menu');
opts.onHide.call(target);
// var state = $.data(target, 'menu');
// if (state){
// hideMenu($(target));
// $(document).unbind('.menu');
// state.options.onHide.call(target);
// }
return false;
}
/**
* show the top menu
*/
function showTopMenu(target, pos){
var opts = $.data(target, 'menu').options;
if (pos){
opts.left = pos.left;
opts.top = pos.top;
}
showMenu($(target), {left:opts.left,top:opts.top}, function(){
$(document).bind('click.menu', target, onDocClick);
opts.onShow.call(target);
});
}
function showMenu(menu, pos, callback){
if (!menu) return;
if (pos){
menu.css(pos);
}
menu.show(1, function(){
if (!menu[0].shadow){
menu[0].shadow = $('<div class="menu-shadow"></div>').insertAfter(menu);
}
menu[0].shadow.css({
display:'block',
zIndex:$.fn.menu.defaults.zIndex++,
left:menu.css('left'),
top:menu.css('top'),
width:menu.outerWidth(),
height:menu.outerHeight()
});
menu.css('z-index', $.fn.menu.defaults.zIndex++);
if (callback){
callback();
}
});
}
function hideMenu(menu){
if (!menu) return;
hideit(menu);
menu.find('div.menu-item').each(function(){
if (this.submenu){
hideMenu(this.submenu);
}
$(this).removeClass('menu-active');
});
function hideit(m){
if (m[0].shadow){
m[0].shadow.hide();
}
m.hide();
}
}
$.fn.menu = function(options, param){
if (typeof options == 'string'){
switch(options){
case 'show':
return this.each(function(){
showTopMenu(this, param);
});
case 'hide':
return this.each(function(){
hideAll(this);
});
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'menu');
if (state){
$.extend(state.options, options);
} else {
state = $.data(this, 'menu', {
options: $.extend({}, $.fn.menu.defaults, options)
});
init(this);
}
$(this).css({
left: state.options.left,
top: state.options.top
});
});
};
$.fn.menu.defaults = {
zIndex:110000,
left: 0,
top: 0,
onShow: function(){},
onHide: function(){}
};
})(jQuery);
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.menu.js | JavaScript | asf20 | 5,601 |
/**
* splitbutton - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* linkbutton
* menu
*/
(function($){
function init(target){
var opts = $.data(target, 'splitbutton').options;
if (opts.menu){
$(opts.menu).menu({
onShow: function(){
btn.addClass((opts.plain==true) ? 's-btn-plain-active' : 's-btn-active');
},
onHide: function(){
btn.removeClass((opts.plain==true) ? 's-btn-plain-active' : 's-btn-active');
}
});
}
var btn = $(target);
btn.removeClass('s-btn-active s-btn-plain-active');
btn.linkbutton(opts);
var menubtn = btn.find('.s-btn-downarrow');
menubtn.unbind('.splitbutton');
if (opts.disabled == false && opts.menu){
menubtn.bind('click.splitbutton', function(){
showMenu();
return false;
});
var timeout = null;
menubtn.bind('mouseenter.splitbutton', function(){
timeout = setTimeout(function(){
showMenu();
}, opts.duration);
return false;
}).bind('mouseleave.splitbutton', function(){
if (timeout){
clearTimeout(timeout);
}
});
}
function showMenu(){
var left = btn.offset().left;
if (left + $(opts.menu).outerWidth() + 5 > $(window).width()){
left = $(window).width() - $(opts.menu).outerWidth() - 5;
}
$('.menu-top').menu('hide');
$(opts.menu).menu('show', {
left: left,
top: btn.offset().top + btn.outerHeight()
});
btn.blur();
}
}
$.fn.splitbutton = function(options){
options = options || {};
return this.each(function(){
var state = $.data(this, 'splitbutton');
if (state){
$.extend(state.options, options);
} else {
var t = $(this);
$.data(this, 'splitbutton', {
options: $.extend({}, $.fn.splitbutton.defaults, {
disabled: (t.attr('disabled') ? t.attr('disabled') == 'true' : undefined),
plain: (t.attr('plain') ? t.attr('plain') == 'true' : undefined),
menu: t.attr('menu'),
duration: t.attr('duration')
}, options)
});
$(this).removeAttr('disabled');
$(this).append('<span class="s-btn-downarrow"> </span>');
}
init(this);
});
};
$.fn.splitbutton.defaults = {
disabled: false,
menu: null,
plain: true,
duration: 100
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.splitbutton.js | JavaScript | asf20 | 2,437 |
/**
* datetimebox - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* datebox
* timespinner
*
*/
(function($){
function createBox(target){
var state = $.data(target, 'datetimebox');
var opts = state.options;
$(target).datebox($.extend({}, opts, {
onShowPanel:function(){
var value = $(target).datetimebox('getValue');
setValue(target, value, true);
opts.onShowPanel.call(target);
}
}));
// override the calendar onSelect event, don't close panel when selected
$(target).datebox('calendar').calendar({
onSelect:function(date){
opts.onSelect.call(target, date);
}
});
var panel = $(target).datebox('panel');
if (!state.spinner){
var p = $('<div style="padding:2px"><input style="width:80px"></div>').insertAfter(panel.children('div.datebox-calendar-inner'));
state.spinner = p.children('input');
state.spinner.timespinner({
showSeconds: true
}).bind('mousedown',function(e){
e.stopPropagation();
});
setValue(target, opts.value);
var button = panel.children('div.datebox-button');
var ok = $('<a href="javascript:void(0)" class="datebox-ok"></a>').html(opts.okText).appendTo(button);
ok.hover(
function(){$(this).addClass('datebox-button-hover');},
function(){$(this).removeClass('datebox-button-hover');}
).click(function(){
doEnter(target);
});
}
}
/**
* get current date, including time
*/
function getCurrentDate(target){
var c = $(target).datetimebox('calendar');
var t = $(target).datetimebox('spinner');
var date = c.calendar('options').current;
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), t.timespinner('getHours'), t.timespinner('getMinutes'), t.timespinner('getSeconds'));
}
/**
* called when user inputs some value in text box
*/
function doQuery(target, q){
setValue(target, q, true);
}
/**
* called when user press enter key
*/
function doEnter(target){
var opts = $.data(target, 'datetimebox').options;
var date = getCurrentDate(target);
setValue(target, opts.formatter(date));
$(target).combo('hidePanel');
}
/**
* set value, if remainText is assigned, don't change the text value
*/
function setValue(target, value, remainText){
var opts = $.data(target, 'datetimebox').options;
$(target).combo('setValue', value);
if (!remainText){
if (value){
var date = opts.parser(value);
$(target).combo('setValue', opts.formatter(date));
$(target).combo('setText', opts.formatter(date));
} else {
$(target).combo('setText', value);
}
}
var date = opts.parser(value);
$(target).datetimebox('calendar').calendar('moveTo', opts.parser(value));
$(target).datetimebox('spinner').timespinner('setValue', getTimeS(date));
/**
* get the time formatted string such as '03:48:02'
*/
function getTimeS(date){
function formatNumber(value){
return (value < 10 ? '0' : '') + value;
}
var tt = [formatNumber(date.getHours()), formatNumber(date.getMinutes())];
if (opts.showSeconds){
tt.push(formatNumber(date.getSeconds()));
}
return tt.join($(target).datetimebox('spinner').timespinner('options').separator);
}
}
$.fn.datetimebox = function(options, param){
if (typeof options == 'string'){
var method = $.fn.datetimebox.methods[options];
if (method){
return method(this, param);
} else {
return this.datebox(options, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'datetimebox');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'datetimebox', {
options: $.extend({}, $.fn.datetimebox.defaults, $.fn.datetimebox.parseOptions(this), options)
});
}
createBox(this);
});
}
$.fn.datetimebox.methods = {
options: function(jq){
return $.data(jq[0], 'datetimebox').options;
},
spinner: function(jq){
return $.data(jq[0], 'datetimebox').spinner;
},
setValue: function(jq, value){
return jq.each(function(){
setValue(this, value);
});
}
};
$.fn.datetimebox.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.fn.datebox.parseOptions(target), {
});
};
$.fn.datetimebox.defaults = $.extend({}, $.fn.datebox.defaults, {
showSeconds:true,
keyHandler: {
up:function(){},
down:function(){},
enter:function(){doEnter(this);},
query:function(q){doQuery(this, q);}
},
formatter:function(date){
var h = date.getHours();
var M = date.getMinutes();
var s = date.getSeconds();
function formatNumber(value){
return (value < 10 ? '0' : '') + value;
}
return $.fn.datebox.defaults.formatter(date) + ' ' + formatNumber(h)+':'+formatNumber(M)+':'+formatNumber(s);
},
parser:function(s){
if ($.trim(s) == ''){
return new Date();
}
var dt = s.split(' ');
var d = $.fn.datebox.defaults.parser(dt[0]);
var tt = dt[1].split(':');
var hour = parseInt(tt[0], 10);
var minute = parseInt(tt[1], 10);
var second = parseInt(tt[2], 10);
return new Date(d.getFullYear(), d.getMonth(), d.getDate(), hour, minute, second);
}
});
})(jQuery);
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.datetimebox.js | JavaScript | asf20 | 5,477 |
/**
* spinner - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* validatebox
*
*/
(function($){
/**
* initialize the spinner.
*/
function init(target){
var spinner = $(
'<span class="spinner">' +
'<span class="spinner-arrow">' +
'<span class="spinner-arrow-up"></span>' +
'<span class="spinner-arrow-down"></span>' +
'</span>' +
'</span>'
).insertAfter(target);
$(target).addClass('spinner-text').prependTo(spinner);
return spinner;
}
function setSize(target, width){
var opts = $.data(target, 'spinner').options;
var spinner = $.data(target, 'spinner').spinner;
if (width) opts.width = width;
if (isNaN(opts.width)){
opts.width = $(target).outerWidth();
}
var arrowWidth = spinner.find('.spinner-arrow').outerWidth();
var width = opts.width - arrowWidth;
if ($.boxModel == true){
width -= spinner.outerWidth() - spinner.width();
}
$(target).width(width);
}
function bindEvents(target){
var opts = $.data(target, 'spinner').options;
var spinner = $.data(target, 'spinner').spinner;
spinner.find('.spinner-arrow-up,.spinner-arrow-down').unbind('.spinner');
if (!opts.disabled){
spinner.find('.spinner-arrow-up').bind('mouseenter.spinner', function(){
$(this).addClass('spinner-arrow-hover');
}).bind('mouseleave.spinner', function(){
$(this).removeClass('spinner-arrow-hover');
}).bind('click.spinner', function(){
opts.spin.call(target, false);
opts.onSpinUp.call(target);
$(target).validatebox('validate');
});
spinner.find('.spinner-arrow-down').bind('mouseenter.spinner', function(){
$(this).addClass('spinner-arrow-hover');
}).bind('mouseleave.spinner', function(){
$(this).removeClass('spinner-arrow-hover');
}).bind('click.spinner', function(){
opts.spin.call(target, true);
opts.onSpinDown.call(target);
$(target).validatebox('validate');
});
}
}
/**
* enable or disable the spinner.
*/
function setDisabled(target, disabled){
var opts = $.data(target, 'spinner').options;
if (disabled){
opts.disabled = true;
$(target).attr('disabled', true);
} else {
opts.disabled = false;
$(target).removeAttr('disabled');
}
}
$.fn.spinner = function(options, param){
if (typeof options == 'string'){
var method = $.fn.spinner.methods[options];
if (method){
return method(this, param);
} else {
return this.validatebox(options, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'spinner');
if (state){
$.extend(state.options, options);
} else {
state = $.data(this, 'spinner', {
options: $.extend({}, $.fn.spinner.defaults, $.fn.spinner.parseOptions(this), options),
spinner: init(this)
});
$(this).removeAttr('disabled');
}
$(this).val(state.options.value);
$(this).attr('readonly', !state.options.editable);
setDisabled(this, state.options.disabled);
setSize(this);
$(this).validatebox(state.options);
bindEvents(this);
});
};
$.fn.spinner.methods = {
options: function(jq){
var opts = $.data(jq[0], 'spinner').options;
return $.extend(opts, {
value: jq.val()
});
},
destroy: function(jq){
return jq.each(function(){
var spinner = $.data(this, 'spinner').spinner;
$(this).validatebox('destroy');
spinner.remove();
});
},
resize: function(jq, width){
return jq.each(function(){
setSize(this, width);
});
},
enable: function(jq){
return jq.each(function(){
setDisabled(this, false);
bindEvents(this);
});
},
disable: function(jq){
return jq.each(function(){
setDisabled(this, true);
bindEvents(this);
});
},
getValue: function(jq){
return jq.val();
},
setValue: function(jq, value){
return jq.each(function(){
var opts = $.data(this, 'spinner').options;
opts.value = value;
$(this).val(value);
});
},
clear: function(jq){
return jq.each(function(){
var opts = $.data(this, 'spinner').options;
opts.value = '';
$(this).val('');
});
}
};
$.fn.spinner.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.fn.validatebox.parseOptions(target), {
width: (parseInt(target.style.width) || undefined),
value: (t.val() || undefined),
min: t.attr('min'),
max: t.attr('max'),
increment: (parseFloat(t.attr('increment')) || undefined),
editable: (t.attr('editable') ? t.attr('editable') == 'true' : undefined),
disabled: (t.attr('disabled') ? true : undefined)
});
};
$.fn.spinner.defaults = $.extend({}, $.fn.validatebox.defaults, {
width: 'auto',
value: '',
min: null,
max: null,
increment: 1,
editable: true,
disabled: false,
spin: function(down){}, // the function to implement the spin button click
onSpinUp: function(){},
onSpinDown: function(){}
});
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.spinner.js | JavaScript | asf20 | 5,209 |
/**
* datebox - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* calendar
* combo
*
*/
(function($){
/**
* create date box
*/
function createBox(target){
var state = $.data(target, 'datebox');
var opts = state.options;
$(target).combo($.extend({}, opts, {
onShowPanel:function(){
state.calendar.calendar('resize');
opts.onShowPanel.call(target);
}
}));
$(target).combo('textbox').parent().addClass('datebox');
/**
* if the calendar isn't created, create it.
*/
if (!state.calendar){
createCalendar();
}
function createCalendar(){
var panel = $(target).combo('panel');
state.calendar = $('<div></div>').appendTo(panel).wrap('<div class="datebox-calendar-inner"></div>');
state.calendar.calendar({
fit:true,
border:false,
onSelect:function(date){
var value = opts.formatter(date);
setValue(target, value);
$(target).combo('hidePanel');
opts.onSelect.call(target, date);
}
});
setValue(target, opts.value);
var button = $('<div class="datebox-button"></div>').appendTo(panel);
$('<a href="javascript:void(0)" class="datebox-current"></a>').html(opts.currentText).appendTo(button);
$('<a href="javascript:void(0)" class="datebox-close"></a>').html(opts.closeText).appendTo(button);
button.find('.datebox-current,.datebox-close').hover(
function(){$(this).addClass('datebox-button-hover');},
function(){$(this).removeClass('datebox-button-hover');}
);
button.find('.datebox-current').click(function(){
state.calendar.calendar({
year:new Date().getFullYear(),
month:new Date().getMonth()+1,
current:new Date()
});
});
button.find('.datebox-close').click(function(){
$(target).combo('hidePanel');
});
}
}
/**
* called when user inputs some value in text box
*/
function doQuery(target, q){
setValue(target, q);
}
/**
* called when user press enter key
*/
function doEnter(target){
var opts = $.data(target, 'datebox').options;
var c = $.data(target, 'datebox').calendar;
var value = opts.formatter(c.calendar('options').current);
setValue(target, value);
$(target).combo('hidePanel');
}
function setValue(target, value){
var state = $.data(target, 'datebox');
var opts = state.options;
$(target).combo('setValue', value).combo('setText', value);
state.calendar.calendar('moveTo', opts.parser(value));
}
$.fn.datebox = function(options, param){
if (typeof options == 'string'){
var method = $.fn.datebox.methods[options];
if (method){
return method(this, param);
} else {
return this.combo(options, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'datebox');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'datebox', {
options: $.extend({}, $.fn.datebox.defaults, $.fn.datebox.parseOptions(this), options)
});
}
createBox(this);
});
};
$.fn.datebox.methods = {
options: function(jq){
return $.data(jq[0], 'datebox').options;
},
calendar: function(jq){ // get the calendar object
return $.data(jq[0], 'datebox').calendar;
},
setValue: function(jq, value){
return jq.each(function(){
setValue(this, value);
});
}
};
$.fn.datebox.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.fn.combo.parseOptions(target), {
});
};
$.fn.datebox.defaults = $.extend({}, $.fn.combo.defaults, {
panelWidth:180,
panelHeight:'auto',
keyHandler: {
up:function(){},
down:function(){},
enter:function(){doEnter(this);},
query:function(q){doQuery(this, q);}
},
currentText:'Today',
closeText:'Close',
okText:'Ok',
formatter:function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return m+'/'+d+'/'+y;
},
parser:function(s){
var t = Date.parse(s);
if (!isNaN(t)){
return new Date(t);
} else {
return new Date();
}
},
onSelect:function(date){}
});
})(jQuery);
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.datebox.js | JavaScript | asf20 | 4,366 |
(function($){
$.parser = {
auto: true,
plugins:['linkbutton','menu','menubutton','splitbutton','layout',
'tree','window','dialog','datagrid',
'combobox','combotree','numberbox','validatebox',
'calendar','datebox','panel','tabs','accordion'
],
parse: function(context){
if ($.parser.auto){
for(var i=0; i<$.parser.plugins.length; i++){
(function(){
var name = $.parser.plugins[i];
var r = $('.easyui-' + name, context);
if (r.length){
if (r[name]){
r[name]();
} else if (window.easyloader){
easyloader.load(name, function(){
r[name]();
})
}
}
})();
}
}
}
};
$(function(){
$.parser.parse();
});
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.parser.js | JavaScript | asf20 | 768 |
/**
* form - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*/
(function($){
/**
* submit the form
*/
function ajaxSubmit(target, options){
options = options || {};
if (options.onSubmit){
if (options.onSubmit.call(target) == false) {
return;
}
}
var form = $(target);
if (options.url){
form.attr('action', options.url);
}
var frameId = 'easyui_frame_' + (new Date().getTime());
var frame = $('<iframe id='+frameId+' name='+frameId+'></iframe>')
.attr('src', window.ActiveXObject ? 'javascript:false' : 'about:blank')
.css({
position:'absolute',
top:-1000,
left:-1000
});
var t = form.attr('target'), a = form.attr('action');
form.attr('target', frameId);
try {
frame.appendTo('body');
frame.bind('load', cb);
form[0].submit();
} finally {
form.attr('action', a);
t ? form.attr('target', t) : form.removeAttr('target');
}
var checkCount = 10;
function cb(){
frame.unbind();
var body = $('#'+frameId).contents().find('body');
var data = body.html();
if (data == ''){
if (--checkCount){
setTimeout(cb, 100);
return;
}
return;
}
var ta = body.find('>textarea');
if (ta.length){
data = ta.value();
} else {
var pre = body.find('>pre');
if (pre.length){
data = pre.html();
}
}
if (options.success){
options.success(data);
}
// try{
// eval('data='+data);
// if (options.success){
// options.success(data);
// }
// } catch(e) {
// if (options.failure){
// options.failure(data);
// }
// }
setTimeout(function(){
frame.unbind();
frame.remove();
}, 100);
}
}
/**
* load form data
* if data is a URL string type load from remote site,
* otherwise load from local data object.
*/
function load(target, data){
if (typeof data == 'string'){
$.ajax({
url: data,
dataType: 'json',
success: function(data){
_load(data);
}
});
} else {
_load(data);
}
function _load(data){
var form = $(target);
for(var name in data){
var val = data[name];
$('input[name='+name+']', form).val(val);
$('textarea[name='+name+']', form).val(val);
$('select[name='+name+']', form).val(val);
}
}
}
/**
* clear the form fields
*/
function clear(target){
$('input,select,textarea', target).each(function(){
var t = this.type, tag = this.tagName.toLowerCase();
if (t == 'text' || t == 'password' || tag == 'textarea')
this.value = '';
else if (t == 'checkbox' || t == 'radio')
this.checked = false;
else if (tag == 'select')
this.selectedIndex = -1;
});
}
/**
* set the form to make it can submit with ajax.
*/
function setForm(target){
var options = $.data(target, 'form').options;
var form = $(target);
form.unbind('.form').bind('submit.form', function(){
ajaxSubmit(target, options);
return false;
});
}
$.fn.form = function(options, param){
if (typeof options == 'string'){
switch(options){
//zzy+
case 'ajax':
return this.each(function(){
alert(param.onSubmit.call(this));
if (param.onSubmit){
if (param.onSubmit.call(this) == false) {
return;
}
}
$.ajax($.extend({data:$(this).serialize()},param||{}));
});
case 'submit':
return this.each(function(){
ajaxSubmit(this, $.extend({}, $.fn.form.defaults, param||{}));
});
case 'load':
return this.each(function(){
load(this, param);
});
case 'clear':
return this.each(function(){
clear(this);
});
}
}
options = options || {};
return this.each(function(){
if (!$.data(this, 'form')){
$.data(this, 'form', {
options: $.extend({}, $.fn.form.defaults, options)
});
}
setForm(this);
});
};
$.fn.form.defaults = {
url: null,
onSubmit: function(){},
success: function(data){}
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.form.js | JavaScript | asf20 | 4,211 |
/**
* resizable - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*/
(function($){
$.fn.resizable = function(options){
function resize(e){
var resizeData = e.data;
var options = $.data(resizeData.target, 'resizable').options;
if (resizeData.dir.indexOf('e') != -1) {
var width = resizeData.startWidth + e.pageX - resizeData.startX;
width = Math.min(
Math.max(width, options.minWidth),
options.maxWidth
);
resizeData.width = width;
}
if (resizeData.dir.indexOf('s') != -1) {
var height = resizeData.startHeight + e.pageY - resizeData.startY;
height = Math.min(
Math.max(height, options.minHeight),
options.maxHeight
);
resizeData.height = height;
}
if (resizeData.dir.indexOf('w') != -1) {
resizeData.width = resizeData.startWidth - e.pageX + resizeData.startX;
if (resizeData.width >= options.minWidth && resizeData.width <= options.maxWidth) {
resizeData.left = resizeData.startLeft + e.pageX - resizeData.startX;
}
}
if (resizeData.dir.indexOf('n') != -1) {
resizeData.height = resizeData.startHeight - e.pageY + resizeData.startY;
if (resizeData.height >= options.minHeight && resizeData.height <= options.maxHeight) {
resizeData.top = resizeData.startTop + e.pageY - resizeData.startY;
}
}
}
function applySize(e){
var resizeData = e.data;
var target = resizeData.target;
if ($.boxModel == true){
$(target).css({
width: resizeData.width - resizeData.deltaWidth,
height: resizeData.height - resizeData.deltaHeight,
left: resizeData.left,
top: resizeData.top
});
} else {
$(target).css({
width: resizeData.width,
height: resizeData.height,
left: resizeData.left,
top: resizeData.top
});
}
}
function doDown(e){
$.data(e.data.target, 'resizable').options.onStartResize.call(e.data.target, e);
return false;
}
function doMove(e){
resize(e);
if ($.data(e.data.target, 'resizable').options.onResize.call(e.data.target, e) != false){
applySize(e)
}
return false;
}
function doUp(e){
resize(e, true);
applySize(e);
$(document).unbind('.resizable');
$.data(e.data.target, 'resizable').options.onStopResize.call(e.data.target, e);
return false;
}
return this.each(function(){
var opts = null;
var state = $.data(this, 'resizable');
if (state) {
$(this).unbind('.resizable');
opts = $.extend(state.options, options || {});
} else {
opts = $.extend({}, $.fn.resizable.defaults, options || {});
}
if (opts.disabled == true) {
return;
}
$.data(this, 'resizable', {
options: opts
});
var target = this;
// bind mouse event using namespace resizable
$(this).bind('mousemove.resizable', onMouseMove)
.bind('mousedown.resizable', onMouseDown);
function onMouseMove(e) {
var dir = getDirection(e);
if (dir == '') {
$(target).css('cursor', 'default');
} else {
$(target).css('cursor', dir + '-resize');
}
}
function onMouseDown(e) {
var dir = getDirection(e);
if (dir == '') return;
var data = {
target: this,
dir: dir,
startLeft: getCssValue('left'),
startTop: getCssValue('top'),
left: getCssValue('left'),
top: getCssValue('top'),
startX: e.pageX,
startY: e.pageY,
startWidth: $(target).outerWidth(),
startHeight: $(target).outerHeight(),
width: $(target).outerWidth(),
height: $(target).outerHeight(),
deltaWidth: $(target).outerWidth() - $(target).width(),
deltaHeight: $(target).outerHeight() - $(target).height()
};
$(document).bind('mousedown.resizable', data, doDown);
$(document).bind('mousemove.resizable', data, doMove);
$(document).bind('mouseup.resizable', data, doUp);
}
// get the resize direction
function getDirection(e) {
var dir = '';
var offset = $(target).offset();
var width = $(target).outerWidth();
var height = $(target).outerHeight();
var edge = opts.edge;
if (e.pageY > offset.top && e.pageY < offset.top + edge) {
dir += 'n';
} else if (e.pageY < offset.top + height && e.pageY > offset.top + height - edge) {
dir += 's';
}
if (e.pageX > offset.left && e.pageX < offset.left + edge) {
dir += 'w';
} else if (e.pageX < offset.left + width && e.pageX > offset.left + width - edge) {
dir += 'e';
}
var handles = opts.handles.split(',');
for(var i=0; i<handles.length; i++) {
var handle = handles[i].replace(/(^\s*)|(\s*$)/g, '');
if (handle == 'all' || handle == dir) {
return dir;
}
}
return '';
}
function getCssValue(css) {
var val = parseInt($(target).css(css));
if (isNaN(val)) {
return 0;
} else {
return val;
}
}
});
};
$.fn.resizable.defaults = {
disabled:false,
handles:'n, e, s, w, ne, se, sw, nw, all',
minWidth: 10,
minHeight: 10,
maxWidth: 10000,//$(document).width(),
maxHeight: 10000,//$(document).height(),
edge:5,
onStartResize: function(e){},
onResize: function(e){},
onStopResize: function(e){}
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.resizable.js | JavaScript | asf20 | 5,523 |
/**
* accordion - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ]
*
* Dependencies:
* panel
*
*/
(function($){
function setSize(container){
var opts = $.data(container, 'accordion').options;
var panels = $.data(container, 'accordion').panels;
var cc = $(container);
if (opts.fit == true){
var p = cc.parent();
opts.width = p.width();
opts.height = p.height();
}
if (opts.width > 0){
cc.width($.boxModel==true ? (opts.width-(cc.outerWidth()-cc.width())) : opts.width);
}
var panelHeight = 'auto';
if (opts.height > 0){
cc.height($.boxModel==true ? (opts.height-(cc.outerHeight()-cc.height())) : opts.height);
// get the first panel's header height as all the header height
var headerHeight = panels[0].panel('header').css('height', null).outerHeight();
var panelHeight = cc.height() - (panels.length-1)*headerHeight;
}
for(var i=0; i<panels.length; i++){
var panel = panels[i];
var header = panel.panel('header');
header.height($.boxModel==true ? (headerHeight-(header.outerHeight()-header.height())) : headerHeight);
panel.panel('resize', {
width: cc.width(),
height: panelHeight
});
}
}
/**
* get the current panel DOM element
*/
function getCurrent(container){
var panels = $.data(container, 'accordion').panels;
for(var i=0; i<panels.length; i++){
var panel = panels[i];
if (panel.panel('options').collapsed == false){
return panel;
}
}
return null;
}
function wrapAccordion(container){
var cc = $(container);
cc.addClass('accordion');
if (cc.attr('border') == 'false'){
cc.addClass('accordion-noborder');
} else {
cc.removeClass('accordion-noborder');
}
// the original panel DOM elements
var panels = [];
// if no panel selected set the first one active
if (cc.find('>div[selected=true]').length == 0){
cc.find('>div:first').attr('selected', 'true');
}
cc.find('>div').each(function(){
var pp = $(this);
panels.push(pp);
pp.panel({
collapsible: true,
minimizable: false,
maximizable: false,
closable: false,
doSize: false,
collapsed: pp.attr('selected') != 'true',
onBeforeExpand: function(){
var curr = getCurrent(container);
if (curr){
var header = $(curr).panel('header');
header.removeClass('accordion-header-selected');
header.find('.panel-tool-collapse').triggerHandler('click');
}
pp.panel('header').addClass('accordion-header-selected');
},
onExpand: function(){
pp.panel('body').find('>div').triggerHandler('_resize');
},
onBeforeCollapse: function(){
pp.panel('header').removeClass('accordion-header-selected');
}
});
pp.panel('body').addClass('accordion-body');
pp.panel('header').addClass('accordion-header').click(function(){
$(this).find('.panel-tool-collapse').triggerHandler('click');
return false;
});
});
cc.bind('_resize', function(){
var opts = $.data(container, 'accordion').options;
if (opts.fit == true){
setSize(container);
}
return false;
});
return {
accordion: cc,
panels: panels
}
}
/**
* select and set the special panel active
*/
function select(container, title){
var panels = $.data(container, 'accordion').panels;
var curr = getCurrent(container);
if (curr && getTitle(curr) == title){
return;
}
for(var i=0; i<panels.length; i++){
var panel = panels[i];
if (getTitle(panel) == title){
$(panel).panel('header').triggerHandler('click');
return;
}
}
curr = getCurrent(container);
curr.panel('header').addClass('accordion-header-selected');
function getTitle(panel){
return $(panel).panel('options').title;
}
}
$.fn.accordion = function(options, param){
if (typeof options == 'string'){
switch(options){
case 'select':
return this.each(function(){
select(this, param);
});
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'accordion');
var opts;
if (state){
opts = $.extend(state.options, options);
state.opts = opts;
} else {
var t = $(this);
opts = $.extend({}, $.fn.accordion.defaults, {
width: (parseInt(t.css('width')) || undefined),
height: (parseInt(t.css('height')) || undefined),
fit: (t.attr('fit') ? t.attr('fit') == 'true' : undefined),
border: (t.attr('border') ? t.attr('border') == 'true' : undefined)
}, options);
var r = wrapAccordion(this);
$.data(this, 'accordion', {
options: opts,
accordion: r.accordion,
panels: r.panels
});
}
setSize(this);
select(this);
});
};
$.fn.accordion.defaults = {
width: 'auto',
height: 'auto',
fit: false,
border: true
};
})(jQuery); | zzyapps | trunk/JqFw/WebRoot/resource/easyui/src/jquery.accordion.js | JavaScript | asf20 | 5,083 |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}页';
$.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '确定';
$.messager.defaults.cancel = '取消';
}
if ($.fn.validatebox){
$.fn.validatebox.defaults.missingMessage = '该输入项为必输项';
$.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址';
$.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址';
$.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间';
$.fn.validatebox.defaults.rules.remote.message = '请修正该字段';
}
if ($.fn.numberbox){
$.fn.numberbox.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.combobox){
$.fn.combobox.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.combotree){
$.fn.combotree.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.combogrid){
$.fn.combogrid.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今天';
$.fn.datebox.defaults.closeText = '关闭';
$.fn.datebox.defaults.okText = '确定';
$.fn.datebox.defaults.missingMessage = '该输入项为必输项';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('-');
var y = parseInt(ss[0],10);
var m = parseInt(ss[1],10);
var d = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText,
missingMessage: $.fn.datebox.defaults.missingMessage
});
}
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/locale/easyui-lang-zh_CN.js | JavaScript | asf20 | 2,624 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Complex Layout - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#tt2').datagrid({
title:'My Title',
iconCls:'icon-save',
width:600,
height:350,
nowrap: false,
striped: true,
fit: true,
url:'/JqFw/resource/easyui/demo/datagrid_data.json',
sortName: 'code',
sortOrder: 'desc',
idField:'code',
frozenColumns:[[
{field:'ck',checkbox:true},
{title:'code',field:'code',width:80,sortable:true}
]],
columns:[[
{title:'Base Information',colspan:3},
{field:'opt',title:'Operation',width:100,align:'center', rowspan:2,
formatter:function(value,rec){
return '<span style="color:red">Edit Delete</span>';
}
}
],[
{field:'name',title:'Name',width:120},
{field:'addr',title:'Address',width:120,rowspan:2,sortable:true},
{field:'col4',title:'Col41',width:150,rowspan:2}
]],
pagination:true,
rownumbers:true
});
});
function addmenu(){
var header = $('.layout-expand .layout-button-down').parent().parent();
var menu = $('<div style="position:absolute;left:0;top:0;background:#fafafa;"></div>').appendTo(header);
var btn = $('<a href="#">test</a>').appendTo(menu);
btn.menubutton({
menu:'#mymenu'
});
}
</script>
</head>
<body class="easyui-layout">
<div id="mymenu" style="width:150px;">
<div>item1</div>
<div>item2</div>
</div>
<div region="north" title="North Title" split="true" style="height:100px;padding:10px;">
<p>n1</p>
<p>n2</p>
<p>n3</p>
<p>n4</p>
<p>n5</p>
</div>
<div region="south" title="South Title" split="true" style="height:100px;padding:10px;background:#efefef;">
<div class="easyui-layout" fit="true" style="background:#ccc;">
<div region="center">sub center</div>
<div region="east" split="true" style="width:200px;">sub center</div>
</div>
</div>
<div region="east" iconCls="icon-reload" title="Tree Menu" split="true" style="width:180px;">
<ul class="easyui-tree" url="tree_data.json"></ul>
</div>
<div region="west" split="true" title="West Menu" style="width:280px;padding1:1px;overflow:hidden;">
<div class="easyui-accordion" fit="true" border="false">
<div title="Title1" style="overflow:auto;">
<p>content1</p>
<p>content1</p>
<p>content1</p>
<p>content1</p>
<p>content1</p>
<p>content1</p>
<p>content1</p>
<p>content12</p>
</div>
<div title="Title2" selected="true" style="padding:10px;">
content2
<a href="#" onclick="addmenu()">addmenu</a>
</div>
<div title="Title3">
content3
</div>
</div>
</div>
<div region="center" title="Main Title" style="overflow:hidden;">
<div class="easyui-tabs" fit="true" border="false">
<div title="Tab1" style="padding:20px;overflow:hidden;">
<div style="margin-top:20px;">
<h3>jQuery EasyUI framework help you build your web page easily.</h3>
<li>easyui is a collection of user-interface plugin based on jQuery.</li>
<li>using easyui you don't write many javascript code, instead you defines user-interface by writing some HTML markup.</li>
<li>easyui is very easy but powerful.</li>
</div>
</div>
<div title="Tab2" closable="true" style="padding:20px;">This is Tab2 width close button.</div>
<div title="Tab3" iconCls="icon-reload" closable="true" style="overflow:hidden;padding:5px;">
<table id="tt2"></table>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/layout1.html | HTML | asf20 | 4,104 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Menu - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
$('#aa1').click(function(){
$('#mm').menu('show',{
left:100,
top:200
});
});
$('#aa2').click(function(){
$('#mm').menu('hide');
});
$(document).bind('contextmenu',function(e){
$('#mm').menu('show', {
left: e.pageX,
top: e.pageY
});
return false;
});
});
</script>
</head>
<body>
<h1>Menu</h1>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>
Menu can include many MenuItem, and the MenuItem can display submenu.
You also can right click to show the context menu.
</div>
</div>
<div style="margin:10px 0">
<a href="#" class="easyui-linkbutton" id="aa1">ShowMenu</a>
<a href="#" class="easyui-linkbutton" id="aa2">HideMenu</a>
</div>
<div id="mm" class="easyui-menu" style="width:120px;">
<div onclick="javascript:alert('new')">New</div>
<div>
<span>Open</span>
<div style="width:150px;">
<div><b>Word</b></div>
<div>Excel</div>
<div>PowerPoint</div>
<div>
<span>M1</span>
<div style="width:120px;">
<div>sub1</div>
<div>sub2</div>
<div>
<span>Sub</span>
<div style="width:80px;">
<div onclick="javascript:alert('sub21')">sub21</div>
<div>sub22</div>
<div>sub23</div>
</div>
</div>
<div>sub3</div>
</div>
</div>
<div>
<span>Window Demos</span>
<div style="width:120px;">
<div href="window.html">Window</div>
<div href="dialog.html">Dialog</div>
<div><a href="http://www.jeasyui.com" target="_blank">EasyUI</a></div>
</div>
</div>
</div>
</div>
<div iconCls="icon-save">Save</div>
<div class="menu-sep"></div>
<div>Exit</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/menu.html | HTML | asf20 | 2,329 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TreeGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#test').treegrid({
title:'TreeGrid',
iconCls:'icon-save',
width:700,
height:350,
nowrap: false,
rownumbers: true,
animate:true,
collapsible:true,
url:'/JqFw/resource/easyui/demo/treegrid_data.json',
idField:'code',
treeField:'code',
frozenColumns:[[
{title:'Code',field:'code',width:200,
formatter:function(value){
return '<span style="color:red">'+value+'</span>';
}
}
]],
columns:[[
{field:'name',title:'Name',width:150},
{field:'addr',title:'Address',width:220,rowspan:2},
{field:'col4',title:'Col41',width:150,rowspan:2}
]],
onBeforeLoad:function(row,param){
if (row){
$(this).treegrid('options').url = 'treegrid_subdata.json';
} else {
$(this).treegrid('options').url = 'treegrid_data.json';
}
},
onContextMenu: function(e,row){
e.preventDefault();
$(this).treegrid('unselectAll');
$(this).treegrid('select', row.code);
$('#mm').menu('show', {
left: e.pageX,
top: e.pageY
});
}
});
});
function reload(){
var node = $('#test').treegrid('getSelected');
if (node){
$('#test').treegrid('reload', node.code);
} else {
$('#test').treegrid('reload');
}
}
function getChildren(){
var node = $('#test').treegrid('getSelected');
if (node){
var nodes = $('#test').treegrid('getChildren', node.code);
} else {
var nodes = $('#test').treegrid('getChildren');
}
var s = '';
for(var i=0; i<nodes.length; i++){
s += nodes[i].code + ',';
}
alert(s);
}
function getSelected(){
var node = $('#test').treegrid('getSelected');
if (node){
alert(node.code+":"+node.name);
}
}
function collapse(){
var node = $('#test').treegrid('getSelected');
if (node){
$('#test').treegrid('collapse', node.code);
}
}
function expand(){
var node = $('#test').treegrid('getSelected');
if (node){
$('#test').treegrid('expand', node.code);
}
}
function collapseAll(){
var node = $('#test').treegrid('getSelected');
if (node){
$('#test').treegrid('collapseAll', node.code);
} else {
$('#test').treegrid('collapseAll');
}
}
function expandAll(){
var node = $('#test').treegrid('getSelected');
if (node){
$('#test').treegrid('expandAll', node.code);
} else {
$('#test').treegrid('expandAll');
}
}
function expandTo(){
$('#test').treegrid('expandTo', '02013');
$('#test').treegrid('select', '02013');
}
var codeIndex = 1000;
function append(){
codeIndex++;
var data = [{
code: 'code'+codeIndex,
name: 'name'+codeIndex,
addr: 'address'+codeIndex,
col4: 'col4 data'
}];
var node = $('#test').treegrid('getSelected');
$('#test').treegrid('append', {
parent: (node?node.code:null),
data: data
});
}
function remove(){
var node = $('#test').treegrid('getSelected');
if (node){
$('#test').treegrid('remove', node.code);
}
}
</script>
</head>
<body>
<h2>TreeGrid</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Combines treeview and datagrid to represent hierarchical data.</div>
</div>
<div style="margin:10px 0;">
<a href="#" onclick="reload()">Reload</a>
<a href="#" onclick="getChildren()">GetChildren</a>
<a href="#" onclick="getSelected()">GetSelected</a>
<a href="#" onclick="collapse()">Collapse</a>
<a href="#" onclick="expand()">Expand</a>
<a href="#" onclick="collapseAll()">CollapseAll</a>
<a href="#" onclick="expandAll()">ExpandAll</a>
<a href="#" onclick="expandTo()">ExpandTo</a>
<a href="#" onclick="append()">Append</a>
</div>
<table id="test"></table>
<div id="mm" class="easyui-menu" style="width:120px;">
<div onclick="append()">Append</div>
<div onclick="remove()">Remove</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/treegrid.html | HTML | asf20 | 4,704 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery EasyUI</title>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<style type="text/css">
.drag{
width:100px;
height:50px;
padding:10px;
margin:5px;
border:1px solid #ccc;
background:#AACCFF;
}
.dp{
opacity:0.5;
filter:alpha(opacity=50);
}
.over{
background:#FBEC88;
}
</style>
<script>
$(function(){
$('.drag').draggable({
proxy:'clone',
revert:true,
cursor:'auto',
onStartDrag:function(){
$(this).draggable('options').cursor='not-allowed';
$(this).draggable('proxy').addClass('dp');
},
onStopDrag:function(){
$(this).draggable('options').cursor='auto';
}
});
$('#target').droppable({
accept:'#d1,#d3',
onDragEnter:function(e,source){
$(source).draggable('options').cursor='auto';
$(source).draggable('proxy').css('border','1px solid red');
$(this).addClass('over');
},
onDragLeave:function(e,source){
$(source).draggable('options').cursor='not-allowed';
$(source).draggable('proxy').css('border','1px solid #ccc');
$(this).removeClass('over');
},
onDrop:function(e,source){
$(this).append(source)
$(this).removeClass('over');
}
});
});
</script>
</head>
<body>
<h1>DragDrop</h1>
<div id="source" style="border:1px solid #ccc;width:300px;height:400px;float:left;margin:5px;">
drag me!
<div id="d1" class="drag">Drag 1</div>
<div id="d2" class="drag">Drag 2</div>
<div id="d3" class="drag">Drag 3</div>
</div>
<div id="target" style="border:1px solid #ccc;width:300px;height:400px;float:left;margin:5px;">
drop here!
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/droppable1.html | HTML | asf20 | 1,983 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ComboBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function loadData(){
$('#cc').combobox({
url:'/JqFw/resource/easyui/demo/combobox_data.json',
valueField:'id',
textField:'text'
});
}
function setValue(){
$('#cc').combobox('setValue','bitem3');
}
function getValue(){
var val = $('#cc').combobox('getValue');
alert(val);
}
function disable(){
$('#cc').combobox('disable');
}
function enable(){
$('#cc').combobox('enable');
}
</script>
</head>
<body>
<h2>ComboBox</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Type in combobox to try auto complete.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="loadData()">LoadData</a>
<a href="#" class="easyui-linkbutton" onclick="setValue()">SetValue</a>
<a href="#" class="easyui-linkbutton" onclick="getValue()">GetValue</a>
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
</div>
<p>Simple ComboBox: </p>
<select id="cc" class="easyui-combobox" name="state" style="width:200px;" required="true">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH" selected>Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
<p>Multiple ComboBox: </p>
<input class="easyui-combobox"
name="language"
url="combobox_data.json"
valueField="id"
textField="text"
multiple="true"
panelHeight="auto">
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/combobox.html | HTML | asf20 | 3,919 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Editable TreeGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function editNode(){
var node = $('#tt').treegrid('getSelected');
if (node){
$('#tt').treegrid('beginEdit',node.id);
}
}
function saveNode(){
var node = $('#tt').treegrid('getSelected');
if (node){
$('#tt').treegrid('endEdit',node.id);
}
}
function cancelNode(){
var node = $('#tt').treegrid('getSelected');
if (node){
$('#tt').treegrid('cancelEdit',node.id);
}
}
</script>
</head>
<body>
<h2>Editable TreeGrid - Pagination</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Select node and Click edit button to perform editing.</div>
</div>
<div style="margin:10px 0">
<a href="javascript:editNode()" class="easyui-linkbutton">Edit</a>
<a href="javascript:saveNode()" class="easyui-linkbutton">Save</a>
<a href="javascript:cancelNode()" class="easyui-linkbutton">Cancel</a>
</div>
<table id="tt" title="TreeGrid" class="easyui-treegrid" style="width:700px;height:300px"
url="treegrid_data3.json" idField="id" treeField="code"
pagination="true" fitColumns="true">
<thead>
<tr>
<th field="code" rowspan="2" width="150" editor="text">Code</th>
<th colspan="2">Group Fields</th>
</tr>
<tr>
<th field="name" width="200" editor="text">Name</th>
<th field="addr" width="200" editor="text">Addr</th>
</tr>
</thead>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/treegrid3.html | HTML | asf20 | 2,025 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tree - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
$('#tt2').tree({
checkbox: true,
url: 'tree_data.json',
onClick:function(node){
$(this).tree('toggle', node.target);
//alert('you click '+node.text);
},
onContextMenu: function(e, node){
e.preventDefault();
$('#tt2').tree('select', node.target);
$('#mm').menu('show', {
left: e.pageX,
top: e.pageY
});
}
});
});
function reload(){
var node = $('#tt2').tree('getSelected');
if (node){
$('#tt2').tree('reload', node.target);
} else {
$('#tt2').tree('reload');
}
}
function getChildren(){
var node = $('#tt2').tree('getSelected');
if (node){
var children = $('#tt2').tree('getChildren', node.target);
} else {
var children = $('#tt2').tree('getChildren');
}
var s = '';
for(var i=0; i<children.length; i++){
s += children[i].text + ',';
}
alert(s);
}
function getChecked(){
var nodes = $('#tt2').tree('getChecked');
var s = '';
for(var i=0; i<nodes.length; i++){
if (s != '') s += ',';
s += nodes[i].text;
}
alert(s);
}
function getSelected(){
var node = $('#tt2').tree('getSelected');
alert(node.text);
}
function collapse(){
var node = $('#tt2').tree('getSelected');
$('#tt2').tree('collapse',node.target);
}
function expand(){
var node = $('#tt2').tree('getSelected');
$('#tt2').tree('expand',node.target);
}
function collapseAll(){
var node = $('#tt2').tree('getSelected');
if (node){
$('#tt2').tree('collapseAll', node.target);
} else {
$('#tt2').tree('collapseAll');
}
}
function expandAll(){
var node = $('#tt2').tree('getSelected');
if (node){
$('#tt2').tree('expandAll', node.target);
} else {
$('#tt2').tree('expandAll');
}
}
function append(){
var node = $('#tt2').tree('getSelected');
$('#tt2').tree('append',{
parent: (node?node.target:null),
data:[{
text:'new1',
checked:true
},{
text:'new2',
state:'closed',
children:[{
text:'subnew1'
},{
text:'subnew2'
}]
}]
});
}
function remove(){
var node = $('#tt2').tree('getSelected');
$('#tt2').tree('remove', node.target);
}
function update(){
var node = $('#tt2').tree('getSelected');
if (node){
node.text = '<span style="font-weight:bold">new text</span>';
node.iconCls = 'icon-save';
$('#tt2').tree('update', node);
}
}
function isLeaf(){
var node = $('#tt2').tree('getSelected');
var b = $('#tt2').tree('isLeaf', node.target);
alert(b)
}
</script>
</head>
<body>
<h2>Tree</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click the node and drag it to other position.</div>
</div>
<p>Create from HTML markup</p>
<ul id="tt1" class="easyui-tree" animate="true" dnd="true">
<li>
<span>Folder</span>
<ul>
<li state="closed">
<span>Sub Folder 1</span>
<ul>
<li>
<span><a href="#">File 11</a></span>
</li>
<li>
<span>File 12</span>
</li>
<li>
<span>File 13</span>
</li>
</ul>
</li>
<li>
<span>File 2</span>
</li>
<li>
<span>File 3</span>
</li>
<li>File 4</li>
<li>File 5</li>
</ul>
</li>
<li>
<span>File21</span>
</li>
</ul>
<hr></hr>
<p>Create from JSON data</p>
<div style="margin:10px;">
<a href="#" onclick="reload()">reload</a>
<a href="#" onclick="getChildren()">getChildren</a>
<a href="#" onclick="getChecked()">getChecked</a>
<a href="#" onclick="getSelected()">getSelected</a>
<a href="#" onclick="collapse()">collapse</a>
<a href="#" onclick="expand()">expand</a>
<a href="#" onclick="collapseAll()">collapseAll</a>
<a href="#" onclick="expandAll()">expandAll</a>
<a href="#" onclick="append()">append</a>
<a href="#" onclick="remove()">remove</a>
<a href="#" onclick="update()">update</a>
<a href="#" onclick="isLeaf()">isLeaf</a>
</div>
<ul id="tt2"></ul>
<div id="mm" class="easyui-menu" style="width:120px;">
<div onclick="append()" iconCls="icon-add">Append</div>
<div onclick="remove()" iconCls="icon-remove">Remove</div>
<div class="menu-sep"></div>
<div onclick="expand()">Expand</div>
<div onclick="collapse()">Collapse</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/tree.html | HTML | asf20 | 5,143 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ValidateBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<style type="text/css">
input,textarea{
width:200px;
border:1px solid #ccc;
padding:2px;
}
</style>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
</head>
<body>
<h2>ValidateBox</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>It's easy to add validate logic to a input box.</div>
</div>
<div>
<table>
<tr>
<td>Name:</td>
<td><input class="easyui-validatebox" required="true" validType="length[1,3]"></td>
</tr>
<tr>
<td>Email:</td>
<td><input class="easyui-validatebox" validType="email"></td>
</tr>
<tr>
<td>URL:</td>
<td><input class="easyui-validatebox" required="true" validType="url"></td>
</tr>
<tr>
<td>Note:</td>
<td><textarea class="easyui-validatebox" required="true" style="height:100px;"></textarea></td>
</tr>
</table>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/validatebox.html | HTML | asf20 | 1,349 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="width:100%;height:100%;overflow:hidden">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Window - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.cs../s">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function resize(){
$('#w').window({
title: 'New Title',
width: 600,
modal: true,
shadow: false,
closed: false,
height: 300
});
}
function open1(){
$('#w').window('open');
}
function close1(){
$('#w').window('close');
}
function test(){
$('#test').window('open');
}
</script>
</head>
<body style="height:100%;width:100%;overflow:hidden;border:none;" >
<h2>Window</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Window can be dragged freely on screen.</div>
</div>
<div style="margin:10px 0">
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="resize()">Resize</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="open1()">Open</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="close1()">Close</a>
</div>
<div style="position:relative;width:400px;height:300px;border:1px solid #ccc;overflow:auto;">
<div class="easyui-window" title="Inline Window" inline="true" style="width:250px;height:150px;padding:10px">
This window stay inside its parent
</div>
</div>
<div id="w" class="easyui-window" title="My Window" iconCls="icon-save" style="width:500px;height:200px;padding:5px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
jQuery EasyUI framework help you build your web page easily.
<br/><br/>
click <a href="#" onclick="test()">here</a> to popup another window.
</div>
<div region="south" border="false" style="text-align:right;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="resize()">Ok</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="resize()">Cancel</a>
</div>
</div>
</div>
<div id="test" class="easyui-window" closed="true" modal="true" title="Test Window" style="width:300px;height:100px;"></div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/window.html | HTML | asf20 | 2,708 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Editable DataGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
var products = [
{productid:'FI-SW-01',name:'Koi'},
{productid:'K9-DL-01',name:'Dalmation'},
{productid:'RP-SN-01',name:'Rattlesnake'},
{productid:'RP-LI-02',name:'Iguana'},
{productid:'FL-DSH-01',name:'Manx'},
{productid:'FL-DLH-02',name:'Persian'},
{productid:'AV-CB-01',name:'Amazon Parrot'}
];
function productFormatter(value){
for(var i=0; i<products.length; i++){
if (products[i].productid == value) return products[i].name;
}
return value;
}
$(function(){
var lastIndex;
$('#tt').datagrid({
toolbar:[{
text:'append',
iconCls:'icon-add',
handler:function(){
$('#tt').datagrid('endEdit', lastIndex);
$('#tt').datagrid('appendRow',{
itemid:'',
productid:'',
listprice:'',
unitprice:'',
attr1:'',
status:'P'
});
var lastIndex = $('#tt').datagrid('getRows').length-1;
$('#tt').datagrid('selectRow', lastIndex);
$('#tt').datagrid('beginEdit', lastIndex);
}
},'-',{
text:'delete',
iconCls:'icon-remove',
handler:function(){
var row = $('#tt').datagrid('getSelected');
if (row){
var index = $('#tt').datagrid('getRowIndex', row);
$('#tt').datagrid('deleteRow', index);
}
}
},'-',{
text:'accept',
iconCls:'icon-save',
handler:function(){
$('#tt').datagrid('acceptChanges');
}
},'-',{
text:'reject',
iconCls:'icon-undo',
handler:function(){
$('#tt').datagrid('rejectChanges');
}
},'-',{
text:'GetChanges',
iconCls:'icon-search',
handler:function(){
var rows = $('#tt').datagrid('getChanges');
alert('changed rows: ' + rows.length + ' lines');
}
}],
onBeforeLoad:function(){
$(this).datagrid('rejectChanges');
},
onClickRow:function(rowIndex){
if (lastIndex != rowIndex){
$('#tt').datagrid('endEdit', lastIndex);
$('#tt').datagrid('beginEdit', rowIndex);
}
lastIndex = rowIndex;
}
});
});
</script>
</head>
<body>
<h2>Editable DataGrid</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click the row to start editing.</div>
</div>
<table id="tt" style="width:700px;height:auto"
title="Editable DataGrid" iconCls="icon-edit" singleSelect="true"
idField="itemid" url="datagrid_data2.json">
<thead>
<tr>
<th field="itemid" width="80">Item ID</th>
<th field="productid" width="100" formatter="productFormatter" editor="{type:'combobox',options:{valueField:'productid',textField:'name',data:products,required:true}}">Product</th>
<th field="listprice" width="80" align="right" editor="{type:'numberbox',options:{precision:1}}">List Price</th>
<th field="unitcost" width="80" align="right" editor="numberbox">Unit Cost</th>
<th field="attr1" width="250" editor="text">Attribute</th>
<th field="status" width="60" align="center" editor="{type:'checkbox',options:{on:'P',off:''}}">Status</th>
</tr>
</thead>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datagrid2.html | HTML | asf20 | 3,816 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Dialog - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#dd').dialog({
toolbar:[{
text:'Add',
iconCls:'icon-add',
handler:function(){
alert('add')
}
},'-',{
text:'Save',
iconCls:'icon-save',
handler:function(){
alert('save')
}
}],
buttons:[{
text:'Ok',
iconCls:'icon-ok',
handler:function(){
alert('ok');
}
},{
text:'Cancel',
handler:function(){
$('#dd').dialog('close');
}
}]
});
});
function open1(){
$('#dd').dialog('open');
}
function close1(){
$('#dd').dialog('close');
}
</script>
</head>
<body>
<h2>Dialog</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click below button to open or close dialog.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="open1()">Open</a>
<a href="#" class="easyui-linkbutton" onclick="close1()">Close</a>
</div>
<div id="dd" icon="icon-save" style="padding:5px;width:400px;height:200px;">
<p>dialog content.</p>
<p>dialog content.</p>
<p>dialog content.</p>
<p>dialog content.</p>
<p>dialog content.</p>
<p>dialog content.</p>
<p>dialog content.</p>
<p>dialog content.</p>
</div>
<div id="d2" class="easyui-dialog" title="Another Dialog" style="width:400px;height:200px;left:100px;top:150px;padding:10px"
toolbar="#dlg-toolbar" buttons="#dlg-buttons" resizable="true">
Dialog toolbar and buttons are created from existing HTML nodes.
</div>
<div id="dlg-toolbar" style="padding:2px 0">
<table cellpadding="0" cellspacing="0" style="width:100%">
<tr>
<td style="padding-left:2px">
<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-help" plain="true">Help</a>
</td>
<td style="text-align:right;padding-right:2px">
<input class="easyui-searchbox"></input>
</td>
</tr>
</table>
</div>
<div id="dlg-buttons">
<a href="#" class="easyui-linkbutton" onclick="javascript:alert('save')">Save</a>
<a href="#" class="easyui-linkbutton" onclick="javascript:$('#d2').dialog('close')">Close</a>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/dialog.html | HTML | asf20 | 2,753 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DateTimeBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
</head>
<body>
<h2>DateTimeBox</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Allow you to select date and time in your form.</div>
</div>
<input class="easyui-datetimebox" name="birthday" required="true" value="3/4/2010 2:3:56" style="width:150px">
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datetimebox.html | HTML | asf20 | 928 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Border Layout - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
var p = $('body').layout('panel','west').panel({
onCollapse:function(){
alert('collapse');
}
});
setTimeout(function(){
$('body').layout('collapse','east');
},0);
});
</script>
</head>
<body class="easyui-layout">
<div region="north" border="false" style="height:60px;background:#B3DFDA;">north region</div>
<div region="west" split="true" title="West" style="width:150px;padding:10px;">west content</div>
<div region="east" split="true" title="East" style="width:100px;padding:10px;">east region</div>
<div region="south" border="false" style="height:50px;background:#A9FACD;padding:10px;">south region</div>
<div region="center" title="Main Title">
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/layout.html | HTML | asf20 | 1,118 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DataGrid ContextMenu - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#tt').datagrid({
url: 'datagrid_data2.json',
title: 'DataGrid - ContextMenu',
width: 700,
height: 'auto',
fitColumns: true,
columns:[[
{field:'itemid',title:'Item ID',width:80},
{field:'productid',title:'Product ID',width:120},
{field:'listprice',title:'List Price',width:80,align:'right'},
{field:'unitcost',title:'Unit Cost',width:80,align:'right'},
{field:'attr1',title:'Attribute',width:250},
{field:'status',title:'Status',width:60,align:'center'}
]],
onHeaderContextMenu: function(e, field){
e.preventDefault();
if (!$('#tmenu').length){
createColumnMenu();
}
$('#tmenu').menu('show', {
left:e.pageX,
top:e.pageY
});
}
});
});
function createColumnMenu(){
var tmenu = $('<div id="tmenu" style="width:100px;"></div>').appendTo('body');
var fields = $('#tt').datagrid('getColumnFields');
for(var i=0; i<fields.length; i++){
$('<div iconCls="icon-ok"/>').html(fields[i]).appendTo(tmenu);
}
tmenu.menu({
onClick: function(item){
if (item.iconCls=='icon-ok'){
$('#tt').datagrid('hideColumn', item.text);
tmenu.menu('setIcon', {
target: item.target,
iconCls: 'icon-empty'
});
} else {
$('#tt').datagrid('showColumn', item.text);
tmenu.menu('setIcon', {
target: item.target,
iconCls: 'icon-ok'
});
}
}
});
}
</script>
</head>
<body>
<h2>DataGrid - ContextMenu</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Right click the header of datagrid to show context menu.</div>
</div>
<table id="tt"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datagrid3.html | HTML | asf20 | 2,409 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>NumberSpinner - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function enable(){
$('#ss').numberspinner('enable');
}
function disable(){
$('#ss').numberspinner('disable');
}
</script>
</head>
<body>
<h2>NumberSpinner</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click spinner button to change value.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
</div>
<span>Age: </span>
<input id="ss" class="easyui-numberspinner" min="10" max="100" required="true" style="width:80px;"></input>
<span>Salary: </span>
<input class="easyui-numberspinner" value="1000" increment="100" style="width:120px;"></input>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/numberspinner.html | HTML | asf20 | 1,269 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Border Layout on Panel - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Border Layout on Panel</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>The layout can be applied on panel.</div>
</div>
<div class="easyui-layout" style="width:700px;height:400px;">
<div region="north" style="overflow:hidden;height:60px;padding:10px">
<h2>Layout in Panel</h2>
</div>
<div region="south" split="true" style="height:50px;background:#fafafa;">
</div>
<div region="east" icon="icon-reload" title="East" split="true" style="width:180px;">
</div>
<div region="west" split="true" title="West" style="width:100px;">
</div>
<div region="center" title="Main Title" style="background:#fafafa;overflow:hidden">
<table class="easyui-datagrid"
url="datagrid_data2.json" border="false"
fit="true" fitColumns="true">
<thead>
<tr>
<th field="itemid" width="80">Item ID</th>
<th field="productid" width="100">Product ID</th>
<th field="listprice" width="80" align="right">List Price</th>
<th field="unitcost" width="80" align="right">Unit Cost</th>
<th field="attr1" width="150">Attribute</th>
<th field="status" width="50" align="center">Status</th>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/layout2.html | HTML | asf20 | 1,811 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SplitButton - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#dd1').click(function(){
$('#sb1,#sb2').splitbutton({plain:false});
$('#mb3').menubutton({plain:false});
});
$('#dd2').click(function(){
$('#sb1,#sb2').splitbutton({plain:true});
$('#mb3').menubutton({plain:true});
});
});
</script>
</head>
<body>
<h2>SplitButton</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Similar to MenuButton, SplitButton include linkbutton and menu but can act as a single button.</div>
</div>
<div style="margin:10px 0;">
<a href="javascript:void(0)" class="easyui-linkbutton" id="dd1">3D</a>
<a href="javascript:void(0)" class="easyui-linkbutton" id="dd2">Plain</a>
</div>
<div style="background:#C9EDCC;padding:5px;width:600px;">
<a href="javascript:void(0)" id="sb1" class="easyui-splitbutton" menu="#mm1" iconCls="icon-edit" onclick="javascript:alert('edit')">Edit</a>
<a href="javascript:void(0)" id="sb2" class="easyui-splitbutton" menu="#mm2" iconCls="icon-ok" onclick="javascript:alert('ok')">Ok</a>
<a href="javascript:void(0)" id="mb3" class="easyui-menubutton" menu="#mm3" iconCls="icon-help">Help</a>
</div>
<div id="mm1" style="width:150px;">
<div iconCls="icon-undo">Undo</div>
<div iconCls="icon-redo">Redo</div>
<div class="menu-sep"></div>
<div>Cut</div>
<div>Copy</div>
<div>Paste</div>
<div class="menu-sep"></div>
<div>
<span>Toolbar</span>
<div style="width:150px;">
<div>Address</div>
<div>Link</div>
<div>Navigation Toolbar</div>
<div>Bookmark Toolbar</div>
<div class="menu-sep"></div>
<div>New Toolbar...</div>
</div>
</div>
<div iconCls="icon-remove">Delete</div>
<div>Select All</div>
</div>
<div id="mm2" style="width:100px;">
<div iconCls="icon-ok">Ok</div>
<div iconCls="icon-cancel">Cancel</div>
</div>
<div id="mm3" style="width:150px;">
<div>Help3</div>
<div class="menu-sep"></div>
<div>About3</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/splitbutton.html | HTML | asf20 | 2,613 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery EasyUI</title>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<style type="text/css">
.drag-item{
list-style-type:none;
display:block;
padding:5px;
border:1px solid #ccc;
margin:2px;
width:300px;
background:#fafafa;
}
.indicator{
position:absolute;
font-size:9px;
width:10px;
height:10px;
display:none;
color:red;
}
</style>
<script>
$(function(){
var indicator = $('<div class="indicator">>></div>').appendTo('body');
$('.drag-item').draggable({
revert:true,
deltaX:0,
deltaY:0
}).droppable({
onDragOver:function(e,source){
indicator.css({
display:'block',
top:$(this).offset().top+$(this).outerHeight()-5
});
},
onDragLeave:function(e,source){
indicator.hide();
},
onDrop:function(e,source){
$(source).insertAfter(this);
indicator.hide();
}
});
});
</script>
</head>
<body>
<h1>DragDrop</h1>
<ul style="margin:0;padding:0;margin-left:10px;">
<li class="drag-item">Drag 1</li>
<li class="drag-item">Drag 2</li>
<li class="drag-item">Drag 3</li>
<li class="drag-item">Drag 4</li>
<li class="drag-item">Drag 5</li>
<li class="drag-item">Drag 6</li>
</ul>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/droppable2.html | HTML | asf20 | 1,579 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Custom DataGrid Row Style - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#tt').datagrid({
url: 'datagrid_data2.json',
title: 'DataGrid',
width: 700,
height: 300,
fitColumns: true,
nowrap:false,
columns:[[
{field:'itemid',title:'Item ID',width:80},
{field:'productid',title:'Product ID',width:120},
{field:'listprice',title:'List Price',width:80,align:'right',
styler:function(value,row,index){
if (value < 20){
return 'background-color:#ffee00;color:red;';
}
}
},
{field:'unitcost',title:'Unit Cost',width:80,align:'right'},
{field:'attr1',title:'Attribute',width:250},
{field:'status',title:'Status',width:60,align:'center'}
]],
rowStyler:function(index,row,css){
if (row.listprice>80){
return 'background-color:#6293BB;color:#fff;font-weight:bold;';
}
}
});
});
</script>
</head>
<body>
<h2>DataGrid - Custom Row Style</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>You can change the row style in some condition.</div>
</div>
<table id="tt"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datagrid4.html | HTML | asf20 | 1,768 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LinkButton - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<style>
.toolbar{
height:30px;
padding:5px;
}
</style>
<script>
function enable(){
$('a.easyui-linkbutton').linkbutton('enable');
}
function disable(){
$('a.easyui-linkbutton').linkbutton('disable');
}
function changetext(){
$('#add').linkbutton({text:'new add'});
}
</script>
</head>
<body>
<h2>LinkButton</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Buttons can be created from <a/> link.</div>
</div>
<div style="padding:5px;">
<a href="#" onclick="enable()">enable</a> |
<a href="#" onclick="disable()">disable</a> |
<a href="#" onclick="changetext()">change add text</a> |
<a href="#" onclick="javascript:$('#add').linkbutton({disabled:true})">disable add button</a> |
<a href="#" onclick="javascript:$('#add').linkbutton({disabled:false})">enable add button</a> |
<a href="#" onclick="javascript:$('a.easyui-linkbutton').linkbutton({plain:true})">make to plain</a> |
<a href="#" onclick="javascript:$('a.easyui-linkbutton').linkbutton({plain:false})">restore</a>
</div>
<p>3D</p>
<div class="toolbar">
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">Add</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-remove">Remove</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-save">Save</a>
<a href="#" disabled="true" class="easyui-linkbutton" iconCls="icon-cut">Cut</a>
<a href="#" class="easyui-linkbutton" onclick="javascript:alert('ttt')">Text Button</a>
</div>
<div class="toolbar">
<a href="#" class="easyui-linkbutton" iconCls="icon-ok">Ok</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-no">No</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel">Cancel</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-reload">Reload</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-search">Search</a>
</div>
<div class="toolbar">
<a href="#" class="easyui-linkbutton" iconCls="icon-print">Print</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-help">Help</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-undo">Undo</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-redo">Redo</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-back">Back</a>
</div>
<p>Plain</p>
<div style="padding:5px;background:#fafafa;width:500px;">
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel">Cancel</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload">Reload</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-search">Search</a>
<a href="#" class="easyui-linkbutton" plain="true">Text Button</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print">Print</a>
</div>
<p>DEMO1</p>
<div style="padding:5px;background:#fafafa;width:500px;">
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel">Cancel</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-reload">Refresh</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-search">Query</a>
<a href="#" class="easyui-linkbutton">text button</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-print">Print</a>
</div>
<p>DEMO2</p>
<div style="padding:5px;background:#fafafa;width:500px;">
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel">Cancel</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload">Refresh</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-search">Search</a>
<a href="#" class="easyui-linkbutton" plain="true">text button</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print">Print</a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-help"> </a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save"></a>
<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-back"></a>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/linkbutton.html | HTML | asf20 | 4,639 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MenuButton - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#dd1').click(function(){
$('#mb1,#mb2').menubutton({
disabled:true
});
});
$('#dd2').click(function(){
$('#mb1,#mb2').menubutton({
disabled:false
});
});
$('#dd3').click(function(){
$('#mb1,#mb2').menubutton({
plain:false
});
});
$('#dd4').click(function(){
$('#mb1,#mb2').menubutton({
plain:true
});
});
});
</script>
</head>
<body>
<h1>MenuButton</h1>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>
MenuButton include linkbutton and menu.
When create a MenuButton you should assign a menu attribute to the linkbutton.
</div>
</div>
<div style="margin:10px 0;">
<a href="javascript:void(0)" id="dd1">Disable</a>
<a href="javascript:void(0)" id="dd2">Enable</a>
<a href="javascript:void(0)" id="dd3">3D</a>
<a href="javascript:void(0)" id="dd4">Plain</a>
</div>
<div style="background:#C9EDCC;padding:5px;width:600px;">
<a href="javascript:void(0)" id="mb1" class="easyui-menubutton" menu="#mm1" iconCls="icon-edit">Edit</a>
<a href="javascript:void(0)" id="mb2" class="easyui-menubutton" menu="#mm2" iconCls="icon-help">Help</a>
</div>
<div id="mm1" style="width:150px;">
<div iconCls="icon-undo">Undo</div>
<div iconCls="icon-redo">Redo</div>
<div class="menu-sep"></div>
<div>Cut</div>
<div>Copy</div>
<div>Paste</div>
<div class="menu-sep"></div>
<div>
<span>Toolbar</span>
<div style="width:150px;">
<div>Address</div>
<div>Link</div>
<div>Navigation Toolbar</div>
<div>Bookmark Toolbar</div>
<div class="menu-sep"></div>
<div>New Toolbar...</div>
</div>
</div>
<div iconCls="icon-remove">Delete</div>
<div>Select All</div>
</div>
<div id="mm2" style="width:100px;">
<div>Help</div>
<div>Update</div>
<div>About</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/menubutton.html | HTML | asf20 | 2,535 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<table class="easyui-datagrid">
<thead>
<tr>
<th field="code" width="60">Code</th>
<th field="name" width="100" style="width:100px;">Name</th>
<th field="country" width="80">Country</th>
<th field="count" width="60" align="right">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>001</td>
<td>television</td>
<td>USA</td>
<td>2</td>
</tr>
<tr>
<td>002</td>
<td>computer</td>
<td>USA</td>
<td>3</td>
</tr>
<tr>
<td>003</td>
<td>washing machine</td>
<td>USA</td>
<td>3</td>
</tr>
<tr>
<td>004</td>
<td>washing machine</td>
<td>USA</td>
<td>2</td>
</tr>
<tr>
<td>005</td>
<td>electric fan</td>
<td>USA</td>
<td>2</td>
</tr>
</tbody>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/tabs_href_test.html | HTML | asf20 | 937 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Editable Tree - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
$('#tt').tree({
onClick:function(node){
$('#tt').tree('beginEdit', node.target);
}
});
});
</script>
</head>
<body>
<h2>Editable Tree</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click the node to begin edit, press enter key to stop edit or esc key to cancel edit.</div>
</div>
<ul id="tt" url="tree_data.json" animate="true"></ul>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/tree2.html | HTML | asf20 | 1,094 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DataGrid Footer Row - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#tt').datagrid({
url: 'datagrid_data3.json',
title: 'DataGrid',
width: 700,
height: 220,
fitColumns: true,
nowrap:false,
rownumbers:true,
showFooter:true,
columns:[[
{field:'itemid',title:'Item ID',width:80},
{field:'productid',title:'Product ID',width:120},
{field:'listprice',title:'List Price',width:80,align:'right'},
{field:'unitcost',title:'Unit Cost',width:80,align:'right'},
{field:'attr1',title:'Attribute',width:250},
{field:'status',title:'Status',width:60,align:'center'}
]]
});
});
</script>
</head>
<body>
<h2>DataGrid - Footer Row</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Display summary information in footer rows.</div>
</div>
<table id="tt"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datagrid5.html | HTML | asf20 | 1,492 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Panel - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function open1(){
$('#p').panel('open');
}
function close1(){
$('#p').panel('close');
}
function load1(){
$('#p').panel('refresh','tabs_href_test.html');
}
</script>
</head>
<body>
<h2>Panel</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click the right top buttons to perform actions with panel.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="open1()">Open</a>
<a href="#" class="easyui-linkbutton" onclick="close1()">Close</a>
<a href="#" class="easyui-linkbutton" onclick="load1()">Load</a>
</div>
<div style="height:300px;background:#fafafa;padding:5px;">
<div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px;"
title="My Panel" iconCls="icon-save"
collapsible="true" minimizable="true"
maximizable=true closable="true">
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
<p>panel</p>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/panel.html | HTML | asf20 | 1,735 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ComboGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#cc').combogrid({
panelWidth:450,
value:'006',
idField:'code',
textField:'name',
url:'/JqFw/resource/easyui/demo/datagrid_data.json',
columns:[[
{field:'code',title:'Code',width:60},
{field:'name',title:'Name',width:100},
{field:'addr',title:'Address',width:120},
{field:'col4',title:'Col41',width:100}
]]
});
});
function reload(){
$('#cc').combogrid('grid').datagrid('reload');
}
function setValue(){
$('#cc').combogrid('setValue', '002');
}
function getValue(){
var val = $('#cc').combogrid('getValue');
alert(val);
}
function disable(){
$('#cc').combogrid('disable');
}
function enable(){
$('#cc').combogrid('enable');
}
</script>
</head>
<body>
<h2>ComboGrid</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click the right arrow button to show the datagrid.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="reload()">Reload</a>
<a href="#" class="easyui-linkbutton" onclick="setValue()">SetValue</a>
<a href="#" class="easyui-linkbutton" onclick="getValue()">GetValue</a>
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
</div>
<select id="cc" name="dept" style="width:250px;"></select>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/combogrid.html | HTML | asf20 | 2,047 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('.mc').draggable().draggable();
$('#dd1').draggable({
onStartDrag:function(){
$('#info').html('start drag:'+$(this).css('left'));
}
});
$('#dd2').draggable({axis:null,handle:'#title'});
$('#mydd').draggable();
});
function start(){
$('#dd1').draggable({disabled:false,edge:5});
}
function stop(){
$('#dd1').draggable({disabled:true});
}
</script>
</head>
<body>
<div id="info" style="top:300px;height:20px;border:1px solid #ccc;">info</div>
<div style="position:relative;overflow:auto;width:400px;height:200px;border:1px solid #ccc;">
<div style="width:500px;height:20px;border:1px solid blue;"></div>
<div id="dd1" class="mc" style="margin:0px;width:100px;height:100px;background:#ccc;border:1px solid red;">
<a href="#" onclick="start()">start drag1</a><br/>
<a href="#" onclick="stop()">stop drag</a>
</div>
</div>
<div id="dd2" class="mc" style="margin:10px;width:100px;height:100px;background:#fafafa;border:1px solid red;">
<div id="title" style="background:#ccc;">title</div>
</div>
<div style="height:200px;width:1500px;border:1px solid red;"></div>
<div id="mydd" style="width:100px;height:100px;background:red;"></div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/draggable.html | HTML | asf20 | 1,661 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#rr').resizable();
$('#dd').draggable({handle:'#mytitle'});
$('#rd').draggable({edge:5}).resizable({
minWidth:50,
maxWidth:150,
minHeight: 100,
maxHeight: 200,
onStartResize: function(e){
$('#info').html('start'+$(this).css('width'));
},
onResize: function(e){
$('#info').html($(this).css('width'));
},
onStopResize: function(e){
$('#info').html('stop:'+$(this).css('width'));
}
});
$('div.mcc').draggable({edge:5}).resizable();
});
function stop(){
$('div.mcc').draggable({disabled:true});
}
</script>
</head>
<body>
<div id="info" style="top:300px;height:20px;border:1px solid #ccc;">info</div>
<div id="rr" style="width:100px;height:100px;background:#bbb;">Resize</div>
<div id="dd" style="left:100px;top:100px;width:100px;height:100px;background:#ccc;">
<div id="mytitle" style="background:red;">title</div>
Drag
</div>
<div id="rd" style="margin:10px;padding:10px;width:100px;height:100px;background:#ddd;border:1px solid red;">Resize/Drag</div>
<div class="mcc" style="-moz-border-radius:5px;left:300px;top:100px;width:100px;height:100px;background:#eee;border:2px solid red;">
<a href="#" onclick="stop()">stopdrag</a>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/resizable.html | HTML | asf20 | 1,681 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../easyloader.js"></script>
<script>
function load1(){
using('calendar', function(){
$('#cc').calendar({
width:180,
height:180
});
});
}
function load2(){
using(['dialog','messager'], function(){
$('#dd').dialog({
title:'Dialog',
width:300,
height:200
});
$.messager.show({
title:'info',
msg:'dialog created'
});
});
}
</script>
</head>
<body>
<h1>EasyLoader</h1>
<a href="#" class="easyui-linkbutton" onclick="load1()">Load Calendar</a>
<a href="#" class="easyui-linkbutton" onclick="load2()">Load Dialog</a>
<div id="cc"></div>
<div id="dd"></div>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/easyloader.html | HTML | asf20 | 1,004 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Pagination - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#pp').pagination({
total:114,
buttons:[{
iconCls:'icon-add',
handler:function(){
alert('add');
}
},{
iconCls:'icon-cut',
handler:function(){
alert('cut');
}
},{
iconCls:'icon-save',
handler:function(){
alert('save');
}
}],
onSelectPage:function(pageNumber, pageSize){
$(this).pagination('loading');
alert('pageNumber:'+pageNumber+',pageSize:'+pageSize);
$(this).pagination('loaded');
}
});
});
</script>
</head>
<body>
<h2>Pagination</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>You can change page number and page size on pager bar.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="javascript:$('#pp').pagination({loading:false})">Loaded</a>
<a href="#" class="easyui-linkbutton" onclick="javascript:$('#pp').pagination({loading:true})">Loading</a>
</div>
<div id="pp" style="background:#efefef;border:1px solid #ccc;"></div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/pagination.html | HTML | asf20 | 1,600 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Form - jQuery EasyUI Demo</title>
<style type="text/css">
label{
width:120px;
display:block;
}
</style>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
function loaddata1(){
$('#ff').form('load','form_data.json');
}
function loaddata2(){
$('#ff').form('load',{
name:'name2',
email:'mymail@gmail.com',
subject:'subject2',
message:'message2',
language:5
});
}
function cleardata(){
$('#ff').form('clear');
}
</script>
</head>
<body>
<h2>Form Demo</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click below button to load or clear the form data.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="loaddata1()">Load1</a>
<a href="#" class="easyui-linkbutton" onclick="loaddata2()">Load2</a>
<a href="#" class="easyui-linkbutton" onclick="cleardata()">Clear</a>
</div>
<div style="background:#fafafa;padding:10px;width:300px;height:300px;">
<form id="ff" method="post">
<div>
<label for="name">Name:</label>
<input class="easyui-validatebox" type="text" name="name" required="true"></input>
</div>
<div>
<label for="email">Email:</label>
<input class="easyui-validatebox" type="text" name="email" validType="email"></input>
</div>
<div>
<label for="subject">Subject:</label>
<input class="easyui-validatebox" type="text" name="subject"></input>
</div>
<div>
<label for="message">Message:</label>
<textarea name="message" style="height:60px;"></textarea>
</div>
<div>
<label for="language">Language:</label>
<input class="easyui-combobox"
name="language"
url="combobox_data.json"
valueField="id"
textField="text"
panelHeight="auto">
</div>
<div>
<input type="submit" value="Submit">
</div>
</form>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/form.html | HTML | asf20 | 2,649 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TreeGrid with Footer - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#test').treegrid({
title:'TreeGrid',
iconCls:'icon-ok',
width:700,
height:250,
rownumbers: true,
animate:true,
collapsible:true,
fitColumns:true,
url:'treegrid_data2.json',
idField:'id',
treeField:'name',
showFooter:true,
rowStyler:function(row){
if (row.persons > 1){
return 'background:#AAD684;color:#fff';
}
},
columns:[[
{title:'Task Name',field:'name',width:180},
{field:'persons',title:'Persons',width:60,align:'right'},
{field:'begin',title:'Begin Date',width:80},
{field:'end',title:'End Date',width:80,rowspan:2},
{field:'progress',title:'Progress',width:120,rowspan:2,
formatter:function(value){
if (value){
var s = '<div style="width:100%;background:#fff;border:1px solid #ccc">' +
'<div style="width:' + value + '%;background:red">' + value + '%' + '</div>'
'</div>';
return s;
} else {
return '';
}
}
}
]]
});
});
</script>
</head>
<body>
<h2>TreeGrid</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Show summary information on treegrid footer.</div>
</div>
<table id="test"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/treegrid2.html | HTML | asf20 | 1,996 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Calendar - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Calendar</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click to select date.</div>
</div>
<div class="easyui-calendar" style="width:180px;height:180px;"></div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/calendar.html | HTML | asf20 | 855 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tabs - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
$('#tt').tabs({
tools:[{
iconCls:'icon-add',
handler: function(){
alert('add');
}
},{
iconCls:'icon-save',
handler: function(){
alert('save');
}
}]
});
});
var index = 0;
function addTab(){
index++;
$('#tt').tabs('add',{
title:'New Tab ' + index,
content:'Tab Body ' + index,
iconCls:'icon-save',
closable:true
});
}
function getSelected(){
var tab = $('#tt').tabs('getSelected');
alert('Selected: '+tab.panel('options').title);
}
function update(){
index++;
var tab = $('#tt').tabs('getSelected');
$('#tt').tabs('update', {
tab: tab,
options:{
title:'new title'+index,
iconCls:'icon-save'
}
});
}
</script>
</head>
<body>
<h2>Tabs</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Tabs are automatically made scrollable when the sum of their width exceeds their container width size.</div>
</div>
<div style="margin:10px 0">
<a class="easyui-linkbutton" icon="icon-add" href="javascript:void(0)" onclick="addTab()">add tab</a>
<a class="easyui-linkbutton" href="javascript:void(0)" onclick="getSelected()">getSelected</a>
<a class="easyui-linkbutton" href="javascript:void(0)" onclick="update()">Update</a>
</div>
<div id="tt" style="width:700px;height:250px;">
<div title="Tab1" style="padding:20px;">
</div>
<div title="Tab2" closable="true" style="padding:20px;" cache="false" href="tabs_href_test.html">
This is Tab2 with close button.
</div>
<div title="Tab3" iconCls="icon-reload" closable="true" style="padding:20px;">
<table id="test" class="easyui-datagrid" fit="true">
<thead>
<tr>
<th field="f1" width="60">field1</th>
<th field="f2" width="60">field2</th>
<th field="f3" width="60">field3</th>
</tr>
</thead>
<tbody>
<tr>
<td>d1</td>
<td>d2</td>
<td>d3</td>
</tr>
<tr>
<td>d11</td>
<td>d21</td>
<td>d31</td>
</tr>
</tbody>
</table>
</div>
<div title="Tab4 with iframe" closable="true">
<iframe scrolling="yes" frameborder="0" src="http://www.google.com" style="width:100%;height:100%;"></iframe>
</div>
<div title="Tab5 with sub tabs" closable="true" iconCls="icon-cut" style="padding:10px;">
<div class="easyui-tabs" fit="true" plain="true" style="height:100px;width:300px;">
<div title="Title1" style="padding:10px;">Content 1</div>
<div title="Title2" style="padding:10px;">Content 2</div>
<div title="Title3" style="padding:10px;">Content 3</div>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/tabs.html | HTML | asf20 | 3,266 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Messager - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function show1(){
$.messager.show({
title:'My Title',
msg:'Message will be closed after 4 seconds.',
showType:'show'
});
}
function show2(){
$.messager.show({
title:'My Title',
msg:'Message will be closed after 5 seconds.',
timeout:5000,
showType:'slide'
});
}
function show3(){
$.messager.show({
title:'My Title',
msg:'Message never be closed.',
timeout:0,
showType:'fade'
});
}
function show4(){
var win = $.messager.progress({
title:'Please waiting',
msg:'Loading data...'
});
setTimeout(function(){
$.messager.progress('close');
},5000)
}
function alert1(){
$.messager.alert('My Title','Here is a message!');
}
function alert2(){
$.messager.alert('My Title','Here is a error message!','error');
}
function alert3(){
$.messager.alert('My Title','Here is a info message!','info');
}
function alert4(){
$.messager.alert('My Title','Here is a question message!','question');
}
function alert5(){
$.messager.alert('My Title','Here is a warning message!','warning');
}
function confirm1(){
$.messager.confirm('My Title', 'Are you confirm this?', function(r){
if (r){
alert('confirmed:'+r);
location.href = 'http://www.google.com';
}
});
}
function prompt1(){
$.messager.prompt('My Title', 'Please type something', function(r){
if (r){
alert('you type:'+r);
}
});
}
</script>
</head>
<body>
<h2>Messager</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click on each button to see a distinct message box.</div>
</div>
<p>Message Window</p>
<div>
<a href="#" class="easyui-linkbutton" onclick="show1()">Show</a>
<a href="#" class="easyui-linkbutton" onclick="show2()">Slide</a>
<a href="#" class="easyui-linkbutton" onclick="show3()">Fade</a>
<a href="#" class="easyui-linkbutton" onclick="show4()">Progress</a>
</div>
<p>Message Dialog</p>
<div>
<a href="#" class="easyui-linkbutton" onclick="alert1()">Alert</a>
<a href="#" class="easyui-linkbutton" onclick="alert2()">Error</a>
<a href="#" class="easyui-linkbutton" onclick="alert3()">Info</a>
<a href="#" class="easyui-linkbutton" onclick="alert4()">Question</a>
<a href="#" class="easyui-linkbutton" onclick="alert5()">Warning</a>
</div>
<p>Interactive Dialog</p>
<div>
<a href="#" class="easyui-linkbutton" onclick="confirm1();">Confirm</a>
<a href="#" class="easyui-linkbutton" onclick="prompt1()">Prompt</a>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/messager.html | HTML | asf20 | 3,233 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Complex DataGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#test').datagrid({
title:'My DataGrid',
iconCls:'icon-save',
width:700,
height:350,
nowrap: false,
striped: true,
collapsible:true,
url:'/JqFw/resource/easyui/demo/datagrid_data.json',
sortName: 'code',
sortOrder: 'desc',
remoteSort: false,
idField:'code',
frozenColumns:[[
{field:'ck',checkbox:true},
{title:'code',field:'code',width:80,sortable:true}
]],
columns:[[
{title:'Base Information',colspan:3},
{field:'opt',title:'Operation',width:100,align:'center', rowspan:2,
formatter:function(value,rec){
return '<span style="color:red">Edit Delete</span>';
}
}
],[
{field:'name',title:'Name',width:120},
{field:'addr',title:'Address',width:220,rowspan:2,sortable:true,
sorter:function(a,b){
return (a>b?1:-1);
}
},
{field:'col4',title:'Col41',width:150,rowspan:2}
]],
pagination:true,
rownumbers:true,
toolbar:[{
id:'btnadd',
text:'Add',
iconCls:'icon-add',
handler:function(){
$('#btnsave').linkbutton('enable');
alert('add')
}
},{
id:'btncut',
text:'Cut',
iconCls:'icon-cut',
handler:function(){
$('#btnsave').linkbutton('enable');
alert('cut')
}
},'-',{
id:'btnsave',
text:'Save',
disabled:true,
iconCls:'icon-save',
handler:function(){
$('#btnsave').linkbutton('disable');
alert('save')
}
}]
});
var p = $('#test').datagrid('getPager');
$(p).pagination({
onBeforeRefresh:function(){
alert('before refresh');
}
});
});
function resize(){
$('#test').datagrid('resize', {
width:700,
height:400
});
}
function getSelected(){
var selected = $('#test').datagrid('getSelected');
if (selected){
alert(selected.code+":"+selected.name+":"+selected.addr+":"+selected.col4);
}
}
function getSelections(){
var ids = [];
var rows = $('#test').datagrid('getSelections');
for(var i=0;i<rows.length;i++){
ids.push(rows[i].code);
}
alert(ids.join(':'));
}
function clearSelections(){
$('#test').datagrid('clearSelections');
}
function selectRow(){
$('#test').datagrid('selectRow',2);
}
function selectRecord(){
$('#test').datagrid('selectRecord','002');
}
function unselectRow(){
$('#test').datagrid('unselectRow',2);
}
function mergeCells(){
$('#test').datagrid('mergeCells',{
index:2,
field:'addr',
rowspan:2,
colspan:2
});
}
</script>
</head>
<body>
<h2>Complex DataGrid</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click the button to do actions with datagrid.</div>
</div>
<div style="margin:10px 0;">
<a href="#" onclick="getSelected()">GetSelected</a>
<a href="#" onclick="getSelections()">GetSelections</a>
<a href="#" onclick="selectRow()">SelectRow</a>
<a href="#" onclick="selectRecord()">SelectRecord</a>
<a href="#" onclick="unselectRow()">UnselectRow</a>
<a href="#" onclick="clearSelections()">ClearSelections</a>
<a href="#" onclick="resize()">Resize</a>
<a href="#" onclick="mergeCells()">MergeCells</a>
</div>
<table id="test"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datagrid.html | HTML | asf20 | 4,040 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>NumberBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function disable(){
$('#nn').numberbox('disable');
}
function enable(){
$('#nn').numberbox('enable');
}
</script>
</head>
<body>
<h2>NumberBox</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>The Box can only input number.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
</div>
<input id="nn" class="easyui-numberbox" min="5.5" max="20" precision="2" required="true"/>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/numberbox.html | HTML | asf20 | 1,087 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Accordion - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
function select(){
$('#aa').accordion('select','Title1');
}
var idx = 1;
function add(){
$('#aa').accordion('add',{
title:'New Title'+idx,
content:'New Content'+idx
});
idx++;
}
function remove(){
var pp = $('#aa').accordion('getSelected');
if (pp){
var title = pp.panel('options').title;
$('#aa').accordion('remove',title);
}
}
</script>
</head>
<body>
<h2>Accordion</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click on panel header to show its content.</div>
</div>
<div style="margin: 10px 0;">
<a href="#" class="easyui-linkbutton" onclick="select()">Select</a>
<a href="#" class="easyui-linkbutton" onclick="add()">Add</a>
<a href="#" class="easyui-linkbutton" onclick="remove()">Remove</a>
</div>
<div id="aa" class="easyui-accordion" style="width:700px;height:300px;">
<div title="Title1" iconCls="icon-ok" style="overflow:auto;padding:10px;">
<h3 style="color:#0099FF;">Accordion for jQuery</h3>
<p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
</div>
<div title="Title2" iconCls="icon-reload" selected="true">
<table class="easyui-datagrid"
url="datagrid_data2.json" border="false"
fit="true" fitColumns="true">
<thead>
<tr>
<th field="itemid" width="80">Item ID</th>
<th field="productid" width="100">Product ID</th>
<th field="listprice" width="80" align="right">List Price</th>
<th field="unitcost" width="80" align="right">Unit Cost</th>
<th field="attr1" width="150">Attribute</th>
<th field="status" width="50" align="center">Status</th>
</tr>
</thead>
</table>
</div>
<div title="Title3" style="padding:10px;">
content3
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/accordion.html | HTML | asf20 | 2,414 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PropertyGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
$('#tt').propertygrid({
width:300,
height:'auto',
url:'/JqFw/resource/easyui/demo/propertygrid_data.json',
showGroup:true,
scrollbarSize:0
});
});
function showGroup(){
$('#tt').propertygrid({
showGroup:true
});
}
function hideGroup(){
$('#tt').propertygrid({
showGroup:false
});
}
function hideHeader(){
$('#tt').propertygrid({
showHeader:false
});
}
function getChanges(){
var s = '';
var rows = $('#tt').propertygrid('getChanges');
for(var i=0; i<rows.length; i++){
s += rows[i].name + ':' + rows[i].value + ',';
}
alert(s)
}
</script>
</head>
<body>
<h2>PropertyGrid</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click on row to change each property value.</div>
</div>
<div style="margin:10px 0">
<a href="#" class="easyui-linkbutton" onclick="showGroup()">ShowGroup</a>
<a href="#" class="easyui-linkbutton" onclick="hideGroup()">HideGroup</a>
<a href="#" class="easyui-linkbutton" onclick="hideHeader()">HideHeader</a>
<a href="#" class="easyui-linkbutton" onclick="getChanges()">GetChanges</a>
</div>
<table id="tt"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/propertygrid.html | HTML | asf20 | 1,884 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Combo - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
$(function(){
$('#cc').combo({
required:true,
editable:false
});
$('#sp').appendTo($('#cc').combo('panel'));
$('#sp input').click(function(){
var v = $(this).val();
var s = $(this).next('span').text();
$('#cc').combo('setValue', v).combo('setText', s).combo('hidePanel');
});
});
</script>
</head>
<body>
<h2>Custom Combo</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click the right arrow button to show drop down panel that can be filled with any content.</div>
</div>
<select id="cc"></select>
<div id="sp">
<div style="color:#99BBE8;background:#fafafa;padding:5px;">Select a language</div>
<input type="radio" name="lang" value="01"><span>Java</span><br/>
<input type="radio" name="lang" value="02"><span>C#</span><br/>
<input type="radio" name="lang" value="03"><span>Ruby</span><br/>
<input type="radio" name="lang" value="04"><span>Basic</span><br/>
<input type="radio" name="lang" value="05"><span>Fortran</span>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/combo.html | HTML | asf20 | 1,583 |
*{
font-size:12px;
}
body {
font-family:helvetica,tahoma,verdana,sans-serif;
padding:20px;
font-size:13px;
margin:0;
}
h2 {
font-size:18px;
color:#333;
font-weight:bold;
margin:0;
margin-bottom:15px;
}
.demo-info{
background:#FFFEE6;
color:#8F5700;
padding:12px;
}
.demo-tip{
width:24px;
height:16px;
float:left;
}
| zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/demo.css | CSS | asf20 | 384 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SearchBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function qq(value,name){
alert(value+":"+name)
}
</script>
</head>
<body>
<h2>SearchBox</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click search button or press enter key in input box to do searching.</div>
</div>
<input id="ss" class="easyui-searchbox"
searcher="qq"
prompt="Please Input Value" menu="#mm" style="width:300px"></input>
<div id="mm" style="width:120px">
<div name="all" iconCls="icon-ok">All News</div>
<div name="sports">Sports News</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/searchbox.html | HTML | asf20 | 1,101 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ProgressBar - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function test(){
var value = $('#p').progressbar('getValue');
if (value < 100){
value += Math.floor(Math.random() * 10);
$('#p').progressbar('setValue', value);
setTimeout(arguments.callee, 200);
}
}
</script>
</head>
<body>
<h2>ProgressBar</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click below button to show progress information.</div>
</div>
<div style="margin: 10px 0">
<a href="#" class="easyui-linkbutton" onclick="test()">Test</a>
</div>
<div id="p" class="easyui-progressbar" style="width:400px;"></div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/progressbar.html | HTML | asf20 | 1,226 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery EasyUI</title>
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<style type="text/css">
.title{
margin-bottom:10px;
}
.dragitem{
border:1px solid #ccc;
width:50px;
height:50px;
margin-bottom:10px;
}
.targetarea{
border:1px solid red;
height:150px;
}
.proxy{
border:1px solid #ccc;
width:80px;
background:#fafafa;
}
</style>
<script>
$(function(){
$('#d1,#d2,#d3').draggable({
revert:true,
deltaX:10,
deltaY:10,
proxy:function(source){
var n = $('<div class="proxy"></div>');
n.html($(source).html()).appendTo('body');
return n;
}
});
$('#dd').droppable({
onDragEnter:function(e,source){
$(this).html('enter')
},
onDragLeave:function(e,source){
$(this).html('leave')
},
onDrop:function(e,source){
$(this).html($(source).html()+' dropped');
}
});
});
</script>
</head>
<body>
<h1>DragDrop</h1>
<div style="float:left;width:200px;margin-right:20px;">
<div class="title">Source</div>
<div>
<div id="d1" class="dragitem">Apple</div>
<div id="d1" class="dragitem">Peach</div>
<div id="d1" class="dragitem">Orange</div>
</div>
</div>
<div style="float:left;width:200px;">
<div class="title">Target</div>
<div id="dd" class="targetarea"></div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/droppable.html | HTML | asf20 | 1,681 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TimeSpinner - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function enable(){
$('#ss').timespinner('enable');
}
function disable(){
$('#ss').timespinner('disable');
}
</script>
</head>
<body>
<h1>TimeSpinner</h1>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Click spin button to adjust time.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
</div>
<span>Begin Time: </span>
<input id="ss" class="easyui-timespinner" min="08:30" showSeconds="true" style="width:120px;"></input>
<span>End Time: </span>
<input class="easyui-timespinner" required="true" style="width:80px;"></input>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/timespinner.html | HTML | asf20 | 1,272 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ComboTree - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function reload(){
$('#cc').combotree('reload');
}
function setValue(){
$('#cc').combotree('setValue', 2);
}
function getValue(){
var val = $('#cc').combotree('getValue');
alert(val);
}
function disable(){
$('#cc').combotree('disable');
}
function enable(){
$('#cc').combotree('enable');
}
</script>
</head>
<body>
<h2>ComboTree</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click the right arrow button to show the tree.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="reload()">Reload</a>
<a href="#" class="easyui-linkbutton" onclick="setValue()">SetValue</a>
<a href="#" class="easyui-linkbutton" onclick="getValue()">GetValue</a>
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
</div>
<p>Single Select</p>
<input id="cc" class="easyui-combotree" url="tree_data.json" value="2" required="true" style="width:200px;">
<p>Multiple Select</p>
<select class="easyui-combotree" name="language" url="tree_data.json" multiple="true" cascadeCheck="false" style="width:200px;"></select>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/combotree.html | HTML | asf20 | 1,750 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DateBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.6.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function disable(){
$('#dd').datebox('disable');
}
function enable(){
$('#dd').datebox('enable');
}
</script>
</head>
<body>
<h2>DateBox</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Allow you to select date in your form.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
</div>
<input id="dd" class="easyui-datebox" required="true"></input>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/resource/easyui/demo/datebox.html | HTML | asf20 | 1,163 |
.icon-blank{
background:url('icons/blank.gif') no-repeat;
}
.icon-add{
background:url('icons/edit_add.png') no-repeat;
}
.icon-edit, .icon-update{
background:url('icons/pencil.png') no-repeat;
}
.icon-remove,.icon-delete{
background:url('icons/edit_remove.png') no-repeat;
}
.icon-save{
background:url('icons/filesave.png') no-repeat;
}
.icon-cut{
background:url('icons/cut.png') no-repeat;
}
.icon-ok{
background:url('icons/ok.png') no-repeat;
}
.icon-no{
background:url('icons/no.png') no-repeat;
}
.icon-cancel{
background:url('icons/cancel.png') no-repeat;
}
.icon-reload{
background:url('icons/reload.png') no-repeat;
}
.icon-search{
background:url('icons/search.png') no-repeat;
}
.icon-print{
background:url('icons/print.png') no-repeat;
}
.icon-help{
background:url('icons/help.png') no-repeat;
}
.icon-undo{
background:url('icons/undo.png') no-repeat;
}
.icon-redo{
background:url('icons/redo.png') no-repeat;
}
.icon-back{
background:url('icons/back.png') no-repeat;
}
.icon-sum{
background:url('icons/sum.png') no-repeat;
}
/**自定义**/
.icon-home{
background:url('icons/home.png') no-repeat;
}
.icon-skin{
background:url('icons/skin.gif') no-repeat;
}
.icon-pwd{
background:url('icons/pwd.gif') no-repeat;
}
.icon-login{
background:url('icons/login.gif') no-repeat;
}
.icon-add{
background:url('custom/16x16/table_(add)_16x16.gif') no-repeat;
}
.icon-delete{
background:url('custom/16x16/table_(delete)_16x16.gif') no-repeat;
}
.icon-update{
background:url('custom/16x16/table_(edit)_16x16.gif') no-repeat;
}
/**loading图标**/
.icon-loading1{
background:url('custom/loading/01.gif') no-repeat;
}
.icon-loading2{
background:url('custom/loading/02.gif') no-repeat;
}
.icon-loading3{
background:url('custom/loading/03.gif') no-repeat;
}
.icon-loading4{
background:url('custom/loading/04.gif') no-repeat;
}
.icon-loading5{
background:url('custom/loading/05.gif') no-repeat;
}
.icon-loading6{
background:url('custom/loading/06.gif') no-repeat;
}
.icon-loading21{
background:url('custom/loading/21.gif') no-repeat;
}
.icon-loading30{
background:url('custom/loading/30.gif') no-repeat;
}
/**树样式**/
.icon-tree-folder{
background:url('custom/16x16/folder.gif') no-repeat;
}
.icon-tree-action{
background:url('custom/16x16/action.gif') no-repeat;
}
.icon-tree-leaf{
background:url('custom/16x16/action.gif') no-repeat;
}
/**系统功能样式*/
.icon-fun-edit{
background:url('custom/fun-edit.gif') no-repeat;
}
.icon-fun-search{
background:url('custom/fun-search.png') no-repeat;
}
.icon-fun-subsys{
background:url('custom/fun-subsys.gif') no-repeat;
}
/**主界面logo*/
*{
font-size:12px;
}
body {
font-family:helvetica,tahoma,verdana,sans-serif;
padding:20px;
font-size:13px;
margin:0;
}
/*下拉框样式*/
.validatebox-text{
FONT-SIZE: 12px;
COLOR: #000000;
HEIGHT: 20px;
BACKGROUND-COLOR: #ffffff;
border: 1px solid #6E8CC0;
background-image: url(custom/input_bg1.jpg);
background-repeat: no-repeat;
background-position: left top;
}
/**form内容区边框样式*/
.form-content{
padding:10px;
background:#fff;
border:1px solid #ccc;
width:100%;
}
h2 {
font-size:18px;
color:#333;
font-weight:bold;
margin:0;
margin-bottom:15px;
}
.demo-info{
background:#FFFEE6;
color:#8F5700;
padding:12px;
}
.demo-tip{
width:24px;
height:16px;
float:left;
}
/**红色**/
.red {color: red;}
/**蓝色**/
.blue {color: #4E4EF9;}
/**
* 登录界面样式
*/
/**
* layout top ==============================================
*/
#layout-top .ad {
background-repeat: no-repeat;
background-position: right;
position: absolute;
width: 50%;
right: 0px;
top: 0px;
}
/**
.main-top-logo{
background:url('custom/logo.jpg') no-repeat;
}*/
/**主界面左菜单头*/
.main-left-header{
line-height:25px;
font-size:22px;
text-align:center;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/icon.css | CSS | asf20 | 4,078 |
.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#D2E0F2;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#E1F0F2;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #D2E0F2;
}
.layout-split-south{
border-top:5px solid #D2E0F2;
}
.layout-split-east{
border-left:5px solid #D2E0F2;
}
.layout-split-west{
border-right:5px solid #D2E0F2;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/layout.css | CSS | asf20 | 1,718 |
.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #6593CF;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.png') repeat-x;
border-bottom:1px solid #8DB2E3;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#15428b;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
cursor:default;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#EEEEFF;
}
.datagrid-row-over{
background:#D0E5F5;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable table{
width:100%;
height:100%;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #A4BED4;
padding:3px 2px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/datagrid.css | CSS | asf20 | 4,793 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#E0ECFF;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/accordion.css | CSS | asf20 | 591 |
.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #8DB2E3;
background:#E0ECFF;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #8DB2E3;
font-size:1px;
display:none;
cursor:pointer;
background:#E0ECFF url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #8DB2E3;
font-size:1px;
display:none;
cursor:pointer;
background:#E0ECFF url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #8DB2E3;
padding:1px;
background:#E0ECFF;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#ECF9F9;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #8DB2E3;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #8DB2E3;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#416AA3;
background:url('images/tabs_enabled.png') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:url('images/tabs_active.png') repeat-x left bottom;
}
.tabs li.tabs-selected{
border:1px solid #8DB2E3;
border-bottom:1px solid #fff;
border-top1:2px solid #8DB2E3;
}
.tabs li.tabs-selected a{
color:#416AA3;
font-weight:bold;
background:#fff;
background:#7eabcd url('images/tabs_active.png') repeat-x left bottom;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#8DB2E3;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #8DB2E3;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/tabs.css | CSS | asf20 | 3,602 |
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/menubutton.css | CSS | asf20 | 464 |
.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#E0ECF9;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/searchbox.css | CSS | asf20 | 1,113 |
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #7eabcd;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/linkbutton.css | CSS | asf20 | 1,449 |
.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:transparent url('images/panel_title.png');
background1:#878787;
padding:5px;
border:1px solid #99BBE8;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #99BBE8;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #15428b;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/window.css | CSS | asf20 | 1,457 |
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/dialog.css | CSS | asf20 | 422 |
.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/spinner.css | CSS | asf20 | 732 |
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/validatebox.css | CSS | asf20 | 634 |
.calendar{
background:#fff;
border:1px solid #A4BED4;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#E0ECFF;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
line-height:12px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/calendar.css | CSS | asf20 | 3,047 |
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#15428b;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.png') repeat-x;
position:relative;
border:1px solid #99BBE8;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #99BBE8;
}
.panel-body{
overflow:auto;
border:1px solid #99BBE8;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/panel.css | CSS | asf20 | 1,665 |
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#E0ECFF;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#E0ECFF;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#E0ECFF;
}
.propertygrid .datagrid-group span{
color:#416AA3;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/propertygrid.css | CSS | asf20 | 583 |
.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#A4BED4;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/datebox.css | CSS | asf20 | 527 |
.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/pagination.css | CSS | asf20 | 948 |
.progressbar{
border:1px solid #99BBE8;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#15428b;
position:absolute;
}
.progressbar-value{
background-color:#FF8D40;
border-radius:5px;
width:0;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/progressbar.css | CSS | asf20 | 252 |
.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/splitbutton.css | CSS | asf20 | 799 |
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/combobox.css | CSS | asf20 | 186 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#E0ECFF;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
.calendar{
background:#fff;
border:1px solid #A4BED4;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#E0ECFF;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
line-height:12px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
}.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #6593CF;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.png') repeat-x;
border-bottom:1px solid #8DB2E3;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#15428b;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
cursor:default;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#EEEEFF;
}
.datagrid-row-over{
background:#D0E5F5;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable table{
width:100%;
height:100%;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #A4BED4;
padding:3px 2px;
}
.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#A4BED4;
}
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
}.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#D2E0F2;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#E1F0F2;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #D2E0F2;
}
.layout-split-south{
border-top:5px solid #D2E0F2;
}
.layout-split-east{
border-left:5px solid #D2E0F2;
}
.layout-split-west{
border-right:5px solid #D2E0F2;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #7eabcd;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #7eabcd;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
}.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#15428b;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.png') repeat-x;
position:relative;
border:1px solid #99BBE8;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #99BBE8;
}
.panel-body{
overflow:auto;
border:1px solid #99BBE8;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
.progressbar{
border:1px solid #99BBE8;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#15428b;
position:absolute;
}
.progressbar-value{
background-color:#FF8D40;
border-radius:5px;
width:0;
}
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#E0ECFF;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#E0ECFF;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#E0ECFF;
}
.propertygrid .datagrid-group span{
color:#416AA3;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
}.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#E0ECF9;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
}.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
}.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #8DB2E3;
background:#E0ECFF;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #8DB2E3;
font-size:1px;
display:none;
cursor:pointer;
background:#E0ECFF url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #8DB2E3;
font-size:1px;
display:none;
cursor:pointer;
background:#E0ECFF url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #8DB2E3;
padding:1px;
background:#E0ECFF;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#ECF9F9;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #8DB2E3;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #8DB2E3;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#416AA3;
background:url('images/tabs_enabled.png') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:url('images/tabs_active.png') repeat-x left bottom;
}
.tabs li.tabs-selected{
border:1px solid #8DB2E3;
border-bottom:1px solid #fff;
border-top1:2px solid #8DB2E3;
}
.tabs li.tabs-selected a{
color:#416AA3;
font-weight:bold;
background:#fff;
background:#7eabcd url('images/tabs_active.png') repeat-x left bottom;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#8DB2E3;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #8DB2E3;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
}.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:transparent url('images/panel_title.png');
background1:#878787;
padding:5px;
border:1px solid #99BBE8;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #99BBE8;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #15428b;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
/**zzy+*/
.easyui-tbar{
background-color: #D8E7FF;
background-image: url(images/tbarBg-blue.gif);
background-repeat: repeat-x;
background-position: top;
border: 1px solid #99BBE8;
width: 100%;
height: 35px;
}
.top{
background: transparent;
background-image: url(images/top_bg.jpg);
background-repeat: repeat-x;
background-position: left top;
width: 100%;
}
.logo {
font: bold 32px Tahoma, Verdana, Arial, Helvetica, sans-serif;
background-repeat: no-repeat;
position: absolute;
width: 337px;
height: 68px;
left: 0px;
top: 0px;
background:url('images/logo.jpg') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/easyui.css | CSS | asf20 | 30,866 |
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #7eabcd;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/menu.css | CSS | asf20 | 1,383 |
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/combo.css | CSS | asf20 | 686 |
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/default/tree.css | CSS | asf20 | 2,490 |
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/default/messager.css | CSS | asf20 | 692 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#ffedec;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
.calendar{
background:#fff;
border:1px solid #A4BED4;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#E0ECFF;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
line-height:12px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
}.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
border-right1:1px solid #ccc;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
cursor1:wait;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #6593CF;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.png') repeat-x;
border-bottom:1px solid #eca1a4;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#bb000b;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#EEEEFF;
}
.datagrid-row-over{
background:#fbe5e5;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable table{
width:100%;
height:100%;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #A4BED4;
padding:3px 2px;
}
.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#A4BED4;
}
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
}.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#ffedec;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#E1F0F2;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #ffedec;
}
.layout-split-south{
border-top:5px solid #ffedec;
}
.layout-split-east{
border-left:5px solid #ffedec;
}
.layout-split-west{
border-right:5px solid #ffedec;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #7eabcd;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #7eabcd;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
}.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#bb000b;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.png') repeat-x;
position:relative;
border:1px solid #eca1a4;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #eca1a4;
}
.panel-body{
overflow:auto;
border:1px solid #eca1a4;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
.progressbar{
border:1px solid #eca1a4;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#bb000b;
position:absolute;
}
.progressbar-value{
background-color:#FF8D40;
border-radius:5px;
width:0;
}
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#E0ECFF;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#E0ECFF;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#E0ECFF;
}
.propertygrid .datagrid-group span{
color:#bb000b;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
}.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#E0ECF9;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
}.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #A4BED4;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
}.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #eca1a4;
background:#ffedec;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #eca1a4;
font-size:1px;
display:none;
cursor:pointer;
background:#E0ECFF url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #eca1a4;
font-size:1px;
display:none;
cursor:pointer;
background:#E0ECFF url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #eca1a4;
padding:1px;
background:#E0ECFF;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#ECF9F9;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #eca1a4;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #eca1a4;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#bb000b;
background:url('images/tabs_enabled.png') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:url('images/tabs_active.png') repeat-x left bottom;
}
.tabs li.tabs-selected{
border:1px solid #eca1a4;
border-bottom:1px solid #fff;
border-top1:2px solid #eca1a4;
}
.tabs li.tabs-selected a{
color:#bb000b;
font-weight:bold;
background:#fff;
background:#7eabcd url('images/tabs_active.png') repeat-x left bottom;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#eca1a4;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #eca1a4;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
}.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:transparent url('images/panel_title.png');
background1:#878787;
padding:5px;
border:1px solid #eca1a4;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #eca1a4;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #bb000b;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
<!-- change style button-->
.bs{ }
.bs a{ width:10px; height:9px; margin-right:10px; float:left; }
.bs .a1{ background:url(images/hua.gif) no-repeat;float:left;margin-left:55px;display:inline; margin-top:8px;}
.bs .a2{ background:url(images/lv.gif) no-repeat;margin-top:8px;}
.bs .a3{ background:url(images/lan.gif) no-repeat;margin-top:8px;}
.bs .a4{ background:url(images/hui.gif) no-repeat;margin-top:8px;}
.bs .a5{ background:url(images/fen2.gif) no-repeat;margin-top:8px;}
#top{
background:url(images/top_bg.jpg) no-repeat;
height:65px;
margin:0 auto;
padding:0;
font-size:12px;}
#toppiz{
float:right;
width:400px;
height:65px;}
.huanying{
margin-top:8px;
margin-right:15px;
color:#FFFFFF;
float:right;
display:inline;
height:30px;}
.anniu{
padding-top:13px;
padding-right:12px;
}
.bb{ float:right;}
.bb a{display:block; width:80px; height:25px; float:right; display:inline;}
.bb .xiugai{background:url(images/xiugai.jpg) no-repeat; }
.bb .tuichu{background:url(images/tuichu.jpg) no-repeat;}
/**zzy+*/
.easyui-tbar{
background-color: #FAD5D3;
background-image: url(images/tbarBg-pink.gif);
background-repeat: repeat-x;
background-position: top;
border: 1px solid #ECA1A4;
width: 100%;
height: 35px;
}
.top{
background: transparent;
background-image: url(images/top_bg.jpg);
background-repeat: repeat-x;
background-position: left top;
width: 100%;
}
.logo {
font: bold 32px Tahoma, Verdana, Arial, Helvetica, sans-serif;
background-repeat: no-repeat;
position: absolute;
width: 337px;
height: 68px;
left: 0px;
top: 0px;
background:url('images/logo.jpg') no-repeat;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/pink/easyui.css | CSS | asf20 | 31,998 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#fdf0ea;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
.calendar{
background:#fff;
border:1px solid #d3d3d3;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#efefef;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
}.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
border-right1:1px solid #ccc;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
cursor1:wait;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #ccc;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.gif') repeat-x;
border-bottom:1px solid #D3D3D3;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#3F3F3F;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#fafafa;
}
.datagrid-row-over{
background:#FDF0EA;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #ccc;
padding:3px 2px;
}.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#A4BED4;
}
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
}.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#efefef;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#fafafa;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #efefef;
}
.layout-split-south{
border-top:5px solid #efefef;
}
.layout-split-east{
border-left:5px solid #efefef;
}
.layout-split-west{
border-right:5px solid #efefef;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #d3d3d3;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #d3d3d3;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #d3d3d3;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
}.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#3F3F3F;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.gif') repeat-x;
position:relative;
border:1px solid #D3D3D3;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #D3D3D3;
}
.panel-body{
overflow:auto;
border:1px solid #D3D3D3;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
.progressbar{
border:1px solid #D3D3D3;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#3F3F3F;
position:absolute;
}
.progressbar-value{
background-color:#eee;
border-radius:5px;
width:0;
}
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#fafafa;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#fafafa;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#fafafa;
}
.propertygrid .datagrid-group span{
color:#3F3F3F;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
}.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#efefef;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
}.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
}.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #d3d3d3;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #D3D3D3;
background:#fdf0ea;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #D3D3D3;
font-size:1px;
display:none;
cursor:pointer;
background:#efefef url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #D3D3D3;
font-size:1px;
display:none;
cursor:pointer;
background:#efefef url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #D3D3D3;
padding:1px;
background:#efefef;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#fafafa;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #D3D3D3;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #D3D3D3;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#3F3F3F;
background:url('images/tabs_enabled.gif') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:#fff;
}
.tabs li.tabs-selected{
border:1px solid #D3D3D3;
border-bottom:1px solid #fff;
border-top1:2px solid #D3D3D3;
}
.tabs li.tabs-selected a{
color:#3F3F3F;
font-weight:bold;
background:#fff;
background:#fff;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#D3D3D3;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #D3D3D3;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
}.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:#eee url('images/panel_title.gif') repeat-x;
padding:5px;
border:1px solid #D3D3D3;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #D3D3D3;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #3F3F3F;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
<!-- change style button-->
.bs{ }
.bs a{ width:10px; height:9px; margin-right:10px; float:left; }
.bs .a1{ background:url(images/hua2.gif) no-repeat;float:left;margin-left:55px;display:inline; margin-top:8px;}
.bs .a2{ background:url(images/lv.gif) no-repeat;margin-top:8px;}
.bs .a3{ background:url(images/lan.gif) no-repeat;margin-top:8px;}
.bs .a4{ background:url(images/hui.gif) no-repeat;margin-top:8px;}
.bs .a5{ background:url(images/fen.gif) no-repeat;margin-top:8px;}
#top{
background:url(images/top_bg.jpg) no-repeat;
height:65px;
margin:0 auto;
padding:0;
font-size:12px;}
#toppiz{
float:right;
width:400px;
height:65px;}
.huanying{
margin-top:8px;
margin-right:15px;
color:#FFFFFF;
float:right;
display:inline;
height:30px;}
.anniu{
padding-top:13px;
padding-right:12px;
}
.bb{ float:right;}
.bb a{display:block; width:80px; height:25px; float:right; display:inline;}
.bb .xiugai{background:url(images/xiugai.jpg) no-repeat; }
.bb .tuichu{background:url(images/tuichu.jpg) no-repeat;}
/**zzy+*/
.easyui-tbar{
background-color: #FFDBCA;
background-image: url(images/tbarBg-orange.gif);
background-repeat: repeat-x;
background-position: top;
border: 1px solid #F8B293;
width: 100%;
height: 35px;
}
.top{
background: transparent;
background-image: url(images/top_bg.jpg);
background-repeat: repeat-x;
background-position: left top;
width: 100%;
}
.logo {
font: bold 32px Tahoma, Verdana, Arial, Helvetica, sans-serif;
background-repeat: no-repeat;
position: absolute;
width: 337px;
height: 68px;
left: 0px;
top: 0px;
background:url('images/logo.jpg') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/orange/easyui.css | CSS | asf20 | 31,774 |
.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#efefef;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#fafafa;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #efefef;
}
.layout-split-south{
border-top:5px solid #efefef;
}
.layout-split-east{
border-left:5px solid #efefef;
}
.layout-split-west{
border-right:5px solid #efefef;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/layout.css | CSS | asf20 | 1,718 |
.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #ccc;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.gif') repeat-x;
border-bottom:1px solid #D3D3D3;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#3F3F3F;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
cursor:default;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#fafafa;
}
.datagrid-row-over{
background:#efefef;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #ccc;
padding:3px 2px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/datagrid.css | CSS | asf20 | 4,711 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#efefef;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/accordion.css | CSS | asf20 | 591 |
.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #D3D3D3;
background:#efefef;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #D3D3D3;
font-size:1px;
display:none;
cursor:pointer;
background:#efefef url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #D3D3D3;
font-size:1px;
display:none;
cursor:pointer;
background:#efefef url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #D3D3D3;
padding:1px;
background:#efefef;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#fafafa;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #D3D3D3;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #D3D3D3;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#3F3F3F;
background:url('images/tabs_enabled.gif') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:#fff;
}
.tabs li.tabs-selected{
border:1px solid #D3D3D3;
border-bottom:1px solid #fff;
border-top1:2px solid #D3D3D3;
}
.tabs li.tabs-selected a{
color:#3F3F3F;
font-weight:bold;
background:#fff;
background:#fff;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#D3D3D3;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #D3D3D3;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/tabs.css | CSS | asf20 | 3,502 |
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #d3d3d3;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/menubutton.css | CSS | asf20 | 464 |
.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#efefef;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/searchbox.css | CSS | asf20 | 1,113 |
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #d3d3d3;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/linkbutton.css | CSS | asf20 | 1,449 |
.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:#eee url('images/panel_title.gif') repeat-x;
padding:5px;
border:1px solid #D3D3D3;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #D3D3D3;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #3F3F3F;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/window.css | CSS | asf20 | 1,436 |