Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
9bad12b0
Commit
9bad12b0
authored
Feb 15, 2017
by
季圣华
Browse files
升级代码结构,采用Maven来管理jar包(13)
parent
63ca1df4
Changes
730
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 730+
files are displayed.
Plain diff
Email patch
src/main/webapp/js/easyui-1.3.5/demo/datagrid/transform.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Transform DataGrid from Table - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Transform DataGrid from Table
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Transform DataGrid from an existing, unformatted html table.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<table
class=
"easyui-datagrid"
style=
"width:500px;height:auto"
>
<thead>
<tr>
<th
data-options=
"field:'itemid'"
>
Item ID
</th>
<th
data-options=
"field:'productid'"
>
Product
</th>
<th
data-options=
"field:'listprice',align:'right'"
>
List Price
</th>
<th
data-options=
"field:'attr1'"
>
Attribute
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
EST-1
</td><td>
FI-SW-01
</td><td>
36.50
</td><td>
Large
</td>
</tr>
<tr>
<td>
EST-10
</td><td>
K9-DL-01
</td><td>
18.50
</td><td>
Spotted Adult Female
</td>
</tr>
<tr>
<td>
EST-11
</td><td>
RP-SN-01
</td><td>
28.50
</td><td>
Venomless
</td>
</tr>
<tr>
<td>
EST-12
</td><td>
RP-SN-01
</td><td>
26.50
</td><td>
Rattleless
</td>
</tr>
<tr>
<td>
EST-13
</td><td>
RP-LI-02
</td><td>
35.50
</td><td>
Green Adult
</td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datebox/basic.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic DateBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datebox/buttons.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DateBox Buttons - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DateBox Buttons
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
This example shows how to customize the datebox buttons underneath the calendar.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
<input
class=
"easyui-datebox"
data-options=
"buttons:buttons"
></input>
<script>
var
buttons
=
$
.
extend
([],
$
.
fn
.
datebox
.
defaults
.
buttons
);
buttons
.
splice
(
1
,
0
,
{
text
:
'
MyBtn
'
,
handler
:
function
(
target
){
alert
(
'
click MyBtn
'
);
}
});
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datebox/dateformat.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Date Format - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Date Format
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Different date formats are applied to different DateBox components.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
<input
class=
"easyui-datebox"
data-options=
"formatter:myformatter,parser:myparser"
></input>
<script
type=
"text/javascript"
>
function
myformatter
(
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
);
}
function
myparser
(
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
();
}
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datebox/events.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DateBox Events - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DateBox Events
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
data-options=
"onSelect:onSelect"
></input>
<div
style=
"margin:10px 0"
>
<span>
Selected Date:
</span>
<span
id=
"result"
></span>
</div>
<script>
function
onSelect
(
date
){
$
(
'
#result
'
).
text
(
date
)
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datebox/validate.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Validate 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Validate DateBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
When the selected date is greater than specified date. The field validator will raise an error.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
required
data-options=
"validType:'md[\'10/11/2012\']'"
></input>
<script>
$
.
extend
(
$
.
fn
.
validatebox
.
defaults
.
rules
,
{
md
:
{
validator
:
function
(
value
,
param
){
var
d1
=
$
.
fn
.
datebox
.
defaults
.
parser
(
param
[
0
]);
var
d2
=
$
.
fn
.
datebox
.
defaults
.
parser
(
value
);
return
d2
<=
d1
;
},
message
:
'
The date must be less than or equals to {0}.
'
}
})
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datetimebox/basic.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic DateTimeBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datetimebox"
required
style=
"width:150px"
>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datetimebox/initvalue.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Initialize Value for DateTime - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Initialize Value for DateTime
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The value is initialized when DateTimeBox has been created.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datetimebox"
value=
"10/11/2012 2:3:56"
style=
"width:150px"
>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/datetimebox/showseconds.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Display Seconds - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Display Seconds
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The user can decide to display seconds part or not.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<span>
Show Seconds:
</span>
<input
type=
"checkbox"
checked
onchange=
"$('#dt').datetimebox({showSeconds:$(this).is(':checked')})"
>
</div>
<input
id=
"dt"
class=
"easyui-datetimebox"
style=
"width:150px"
>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/demo.css
0 → 100644
View file @
9bad12b0
*
{
font-size
:
12px
;
}
body
{
font-family
:
helvetica
,
tahoma
,
verdana
,
sans-serif
;
padding
:
3px
;
font-size
:
13px
;
margin
:
0
;
}
h2
{
font-size
:
18px
;
font-weight
:
bold
;
margin
:
0
;
margin-bottom
:
15px
;
}
.demo-info
{
background
:
#FFFEE6
;
color
:
#8F5700
;
padding
:
12px
;
}
.demo-tip
{
width
:
16px
;
height
:
16px
;
margin-right
:
8px
;
float
:
left
;
}
src/main/webapp/js/easyui-1.3.5/demo/dialog/basic.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic 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=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('open')"
>
Open
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('close')"
>
Close
</a>
</div>
<div
id=
"dlg"
class=
"easyui-dialog"
title=
"Basic Dialog"
data-options=
"iconCls:'icon-save'"
style=
"width:400px;height:200px;padding:10px"
>
The dialog content.
</div>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/dialog/complextoolbar.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Complex Toolbar on 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Complex Toolbar on Dialog
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
This sample shows how to create complex toolbar on dialog.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('open')"
>
Open
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('close')"
>
Close
</a>
</div>
<div
id=
"dlg"
class=
"easyui-dialog"
title=
"Complex Toolbar on Dialog"
style=
"width:400px;height:200px;padding:10px"
data-options=
"
iconCls: 'icon-save',
toolbar: '#dlg-toolbar',
buttons: '#dlg-buttons'
"
>
The dialog content.
</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=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-edit',plain:true"
>
Edit
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-help',plain:true"
>
Help
</a>
</td>
<td
style=
"text-align:right;padding-right:2px"
>
<input
class=
"easyui-searchbox"
data-options=
"prompt:'Please input somthing'"
style=
"width:150px"
></input>
</td>
</tr>
</table>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"javascript:alert('save')"
>
Save
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"javascript:$('#dlg').dialog('close')"
>
Close
</a>
</div>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/dialog/toolbarbuttons.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Toolbar and Buttons - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Toolbar and Buttons
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The toolbar and buttons can be added to dialog.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('open')"
>
Open
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('close')"
>
Close
</a>
</div>
<div
id=
"dlg"
class=
"easyui-dialog"
title=
"Toolbar and Buttons"
style=
"width:400px;height:200px;padding:10px"
data-options=
"
iconCls: 'icon-save',
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(){
alert('cancel');;
}
}]
"
>
The dialog content.
</div>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/draggable/basic.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic Draggable - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic Draggable
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Move the boxes below by clicking on it with mouse.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
class=
"easyui-draggable"
style=
"width:200px;height:150px;background:#fafafa;border:1px solid #ccc"
></div>
<div
class=
"easyui-draggable"
data-options=
"handle:'#title'"
style=
"width:200px;height:150px;background:#fafafa;border:1px solid #ccc;margin-top:10px"
>
<div
id=
"title"
style=
"padding:5px;background:#ccc;color:#fff"
>
Title
</div>
</div>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/draggable/constain.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Constrain Draggable - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Constrain Draggable
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The draggable object can only be moved within its parent container.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
style=
"position:relative;overflow:hidden;border:1px solid #ccc;width:500px;height:300px"
>
<div
class=
"easyui-draggable"
data-options=
"onDrag:onDrag"
style=
"width:100px;height:100px;background:#fafafa;border:1px solid #ccc;"
>
</div>
</div>
<script>
function
onDrag
(
e
){
var
d
=
e
.
data
;
if
(
d
.
left
<
0
){
d
.
left
=
0
}
if
(
d
.
top
<
0
){
d
.
top
=
0
}
if
(
d
.
left
+
$
(
d
.
target
).
outerWidth
()
>
$
(
d
.
parent
).
width
()){
d
.
left
=
$
(
d
.
parent
).
width
()
-
$
(
d
.
target
).
outerWidth
();
}
if
(
d
.
top
+
$
(
d
.
target
).
outerHeight
()
>
$
(
d
.
parent
).
height
()){
d
.
top
=
$
(
d
.
parent
).
height
()
-
$
(
d
.
target
).
outerHeight
();
}
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/draggable/snap.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Snap Draggable - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Snap Draggable
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
This sample shows how to snap a draggable object to a 20x20 grid.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
style=
"position:relative;overflow:hidden;border:1px solid #ccc;width:500px;height:300px"
>
<div
class=
"easyui-draggable"
data-options=
"onDrag:onDrag"
style=
"width:100px;height:100px;background:#fafafa;border:1px solid #ccc;"
>
</div>
</div>
<script>
function
onDrag
(
e
){
var
d
=
e
.
data
;
d
.
left
=
repair
(
d
.
left
);
d
.
top
=
repair
(
d
.
top
);
function
repair
(
v
){
var
r
=
parseInt
(
v
/
20
)
*
20
;
if
(
Math
.
abs
(
v
%
20
)
>
10
){
r
+=
v
>
0
?
20
:
-
20
;
}
return
r
;
}
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/droppable/accept.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Accept a Drop - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Accept a Drop
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Some draggable object can not be accepted.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<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>
<div
style=
"clear:both"
></div>
<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>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/droppable/basic.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic Droppable - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic Droppable
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Drag the boxed on left to the target area on right.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
style=
"float:left;width:200px;margin-right:20px;"
>
<div
class=
"title"
>
Source
</div>
<div>
<div
class=
"dragitem"
>
Apple
</div>
<div
class=
"dragitem"
>
Peach
</div>
<div
class=
"dragitem"
>
Orange
</div>
</div>
</div>
<div
style=
"float:left;width:200px;"
>
<div
class=
"title"
>
Target
</div>
<div
class=
"easyui-droppable targetarea"
data-options=
"
accept: '.dragitem',
onDragEnter:function(e,source){
$(this).html('enter');
},
onDragLeave: function(e,source){
$(this).html('leave');
},
onDrop: function(e,source){
$(this).html($(source).html() + ' dropped');
}
"
>
</div>
</div>
<div
style=
"clear:both"
></div>
<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
(){
$
(
'
.dragitem
'
).
draggable
({
revert
:
true
,
deltaX
:
10
,
deltaY
:
10
,
proxy
:
function
(
source
){
var
n
=
$
(
'
<div class="proxy"></div>
'
);
n
.
html
(
$
(
source
).
html
()).
appendTo
(
'
body
'
);
return
n
;
}
});
});
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/droppable/sort.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Change Items Order - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Change Items Order
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Drag the list items to change their order.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<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>
<style
type=
"text/css"
>
.drag-item
{
list-style-type
:
none
;
display
:
block
;
padding
:
5px
;
border
:
1px
solid
#ccc
;
margin
:
2px
;
width
:
300px
;
background
:
#fafafa
;
color
:
#444
;
}
.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
'
,
left
:
$
(
this
).
offset
().
left
-
10
,
top
:
$
(
this
).
offset
().
top
+
$
(
this
).
outerHeight
()
-
5
});
},
onDragLeave
:
function
(
e
,
source
){
indicator
.
hide
();
},
onDrop
:
function
(
e
,
source
){
$
(
source
).
insertAfter
(
this
);
indicator
.
hide
();
}
});
});
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/easyui-1.3.5/demo/easyloader/basic.html
0 → 100644
View file @
9bad12b0
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic EasyLoader - 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.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../easyloader.js"
></script>
</head>
<body>
<h2>
Basic EasyLoader
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the buttons below to load components dynamically.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"#"
class=
"easyui-linkbutton"
onclick=
"load1()"
>
Load Calendar
</a>
<a
href=
"#"
class=
"easyui-linkbutton"
onclick=
"load2()"
>
Load Dialog
</a>
<a
href=
"#"
class=
"easyui-linkbutton"
onclick=
"load3()"
>
Load DataGrid
</a>
</div>
<div
id=
"cc"
></div>
<div
id=
"dd"
></div>
<table
id=
"tt"
></table>
<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
'
});
});
}
function
load3
(){
using
(
'
datagrid
'
,
function
(){
$
(
'
#tt
'
).
datagrid
({
title
:
'
DataGrid
'
,
width
:
300
,
height
:
200
,
fitColumns
:
true
,
columns
:[[
{
field
:
'
productid
'
,
title
:
'
Product ID
'
,
width
:
100
},
{
field
:
'
productname
'
,
title
:
'
Product Name
'
,
width
:
200
}
]],
data
:
[
{
"
productid
"
:
"
FI-SW-01
"
,
"
productname
"
:
"
Koi
"
},
{
"
productid
"
:
"
K9-DL-01
"
,
"
productname
"
:
"
Dalmation
"
},
{
"
productid
"
:
"
RP-SN-01
"
,
"
productname
"
:
"
Rattlesnake
"
},
{
"
productid
"
:
"
RP-LI-02
"
,
"
productname
"
:
"
Iguana
"
},
{
"
productid
"
:
"
FL-DSH-01
"
,
"
productname
"
:
"
Manx
"
},
{
"
productid
"
:
"
FL-DLH-02
"
,
"
productname
"
:
"
Persian
"
},
{
"
productid
"
:
"
AV-CB-01
"
,
"
productname
"
:
"
Amazon Parrot
"
}
]
});
});
}
</script>
</body>
</html>
\ No newline at end of file
Prev
1
…
17
18
19
20
21
22
23
24
25
…
37
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment