002.
<html>
003.
<head>
004.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
006.
<!-- fancybox -->
007.
<script type=
"text/javascript"
src=
"../fancybox/scripts/jquery-1.4.3.min.js"
></script>
008.
<script type=
"text/javascript"
src=
"../fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js"
></script>
009.
<script type=
"text/javascript"
src=
"../fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"
></script>
010.
<link rel=
"stylesheet"
href=
"../fancybox/style/style.css"
/>
011.
<link rel=
"stylesheet"
type=
"text/css"
href=
"../fancybox/fancybox/jquery.fancybox-1.3.4.css"
media=
"screen"
/>
012.
013.
<title>DataTables example</title>
014.
<!-- นำเข้าสคริปที่เกี่ยวข้อง-->
015.
016.
<style type=
"text/css"
title=
"currentStyle"
>
017.
@import
"media/css/demo_page.css"
;
018.
@import
"media/css/demo_table.css"
;
019.
.databox {
020.
z-index:1;
021.
margin:20px 0px 0px 30px;
022.
-webkit-border-radius:10px 10px 10px 10px;
023.
-moz-border-radius:10px 10px 10px 10px;
024.
border-radius:10px 10px 10px 10px;
025.
padding:1px 5px 30px 5px;
026.
margin:10px 40px 0px 40px;
027.
border: solid 1px #428bca;
028.
background-color:#f5f5f5;
029.
}
030.
.addnew{
031.
text-align:right;
032.
margin:10px 0px 10px 0px;
033.
background: #F8FBFC;
034.
color: #56ADDC;
035.
text-decoration: none;
036.
padding: 2px 4px;
037.
border: 1px solid #1BA0CD;
038.
}
039.
.linkpage a { font:12px Arial, Helvetica, sans-serif;
040.
background: #F8FBFC;
041.
color: #56ADDC;
042.
text-decoration: none;
043.
padding: 10px 4px;
044.
border: 1px solid #1BA0CD;
045.
}
046.
.linkpage a:hover { background-color:#C0F5FA;
047.
border-color: #608BD2;
048.
color:#0076AE
049.
}
050.
.linkpage span { font: 12px Arial, Helvetica, sans-serif;
051.
color:#333333;
052.
padding: 10px 4px;
053.
}
054.
</style>
055.
<script type=
"text/javascript"
language=
"javascript"
src=
"../JS/fansybox_size.js"
></script>
056.
<script type=
"text/javascript"
language=
"javascript"
src=
"media/js/jquery.js"
></script>
057.
<script type=
"text/javascript"
language=
"javascript"
src=
"media/js/jquery.dataTables.edit.js"
></script>
058.
<script type=
"text/javascript"
charset=
"utf-8"
>
059.
$(document).ready(
function
() {
060.
$(
'#example'
).dataTable( {
061.
"bProcessing"
: true,
062.
"bServerSide"
: true,
063.
"sAjaxSource"
:
"scripts/serverEditProcessing.php"
064.
} );
065.
} );
066.
</script>
067.
<script type=
"text/javascript"
>
068.
069.
$(document).ready(
function
() {
070.
$(
'a[id^="ADD"]'
).fancybox({
071.
'width'
:
'80%'
,
072.
'height'
:
'100%'
,
073.
'autoScale'
: false,
074.
'transitionIn'
:
'none'
,
075.
'transitionOut'
:
'none'
,
076.
'type'
:
'iframe'
,
077.
onClosed :
function
() {
078.
window.location=
'Course_manage.php'
;
079.
080.
081.
}
082.
});
083.
084.
$(
'a[id^="EDIT"]'
).fancybox({
085.
'width'
:
'80%'
,
086.
'height'
:
'100%'
,
087.
'autoScale'
: false,
088.
'transitionIn'
:
'none'
,
089.
'transitionOut'
:
'none'
,
090.
'type'
:
'iframe'
,
091.
onClosed :
function
() {
092.
window.location=
'Course_view.php'
;
093.
094.
095.
}
096.
});
097.
098.
$(
'a[id^="DEL"]'
).fancybox({
099.
'width'
:
'50%'
,
100.
'height'
:
'50%'
,
101.
'autoScale'
: false,
102.
'transitionIn'
:
'none'
,
103.
'transitionOut'
:
'none'
,
104.
'type'
:
'iframe'
,
105.
onStart :
function
() {
106.
return
window.confirm(
'ต้องการลบข้อมูลรายการนี้?'
);
107.
},
108.
onClosed :
function
() {
109.
window.location=
'Course_view.php'
;
110.
111.
112.
}
113.
});
114.
});
115.
</script>
116.
</head>
117.
<!-- <body id=
"dt_example"
> -->
118.
<body>
119.
<div
class
=
"databox"
>
120.
<div id=
"h1"
>จัดการรายการกิจกรรม</div>
121.
<div id=
"container"
>
122.
<div
class
=
"linkpage"
style=
"margin:20px 0px 20px 0px; text-align:right"
><a id=
"ADD"
href=
"Course_Register.php"
class
=
"fancybox"
title=
"เพิ่มรายการใหม่"
>เพิ่มรายการใหม่</a></div>
123.
<div id=
"dynamic"
>
124.
<table cellpadding=
"0"
cellspacing=
"0"
border=
"0"
class
=
"display"
id=
"example"
>
125.
<thead>
126.
<tr>
127.
<th width=
"20%"
>ชื่อกิจกรรม (ไทย)</th>
128.
<th width=
"20%"
>ชื่อกิจกรรม (อังกฤษ)</th>
129.
<th width=
"20%"
>ที่ปรึกษากิจกรรม</th>
130.
<th width=
"10%"
>จำนวนที่รับ</th>
131.
<th width=
"10%"
>จัดการ </th>
132.
</tr>
133.
</thead>
134.
<tbody>
135.
<tr>
136.
<td colspan=
"6"
class
=
"dataTables_empty"
>Loading data from server</td>
137.
</tr>
138.
</tbody>
139.
</table>
140.
</div>
141.
</div>
142.
</div>
143.
</body>
144.
</html>