01.
<html>
02.
<head>
03.
<meta http-equiv=Content-Type content=
"text/html; charset=utf-8"
>
04.
<title>¡àÅÔ¡¡ÒÃÅÒ</title>
05.
<style type=
"text/css"
>
06.
<!--
07.
.style1 {font-family:
"MS Reference Sans Serif"
,
"MS Serif"
}
08.
-->
09.
</style></head>
10.
<center><body>
11.
<?
12.
$con_db
=mysql_connect(
"localhost"
,
"root"
,
"password"
)
or
die
(
"Cannot connect db server"
);
13.
$select_db
=mysql_select_db(
"drug"
);
14.
mysql_query(
"SET NAMES UTF8"
);
15.
$strSQL
=
"SELECT * FROM tbl_event"
;
16.
$objQuery
= mysql_query(
$strSQL
)
or
die
(
"Error Query ["
.
$strSQL
.
"]"
);
17.
?>
18.
<table width=
"800"
border=
"1"
>
19.
<tr>
20.
<th width=
"42"
bgcolor=
"#0000FF"
> <div align=
"center"
class
=
"style2 style3"
>ID</div></th>
21.
<th width=
"185"
bgcolor=
"#0000FF"
> <div align=
"center"
class
=
"style12"
><span
class
=
"style1"
>¼ÙéÅÒ</span></div></th>
22.
<th width=
"139"
bgcolor=
"#0000FF"
> <div align=
"center"
class
=
"style12"
>Çѹ·Õè¢ÍÅÒ</div></th>
23.
<th width=
"123"
bgcolor=
"#0000FF"
> <div align=
"center"
class
=
"style12"
>¶Ö§Çѹ·Õè</div></th>
24.
<th width=
"121"
bgcolor=
"#0000FF"
> <div align=
"center"
class
=
"style12"
>»ÃÐàÀ·¡ÒÃÅÒ </div></th>
25.
<th width=
"90"
bgcolor=
"#0000FF"
> <div align=
"center"
class
=
"style12"
>ËÁÒÂà˵Ø</div></th>
26.
<th width=
"54"
> <div align=
"center"
>CANCEL</div></th>
27.
</tr>
28.
<?
29.
while
(
$objResult
= mysql_fetch_array(
$objQuery
))
30.
{
31.
?>
32.
<tr>
33.
<td bgcolor=
"#FFFFFF"
><div align=
"center"
><?=
$objResult
[
"event_id"
];?></div></td>
34.
<td bgcolor=
"#FFFFFF"
><?=
$objResult
[
"event_title"
];?></td>
35.
<td bgcolor=
"#FFFFFF"
><?=
$objResult
[
"event_start"
];?></td>
36.
<td bgcolor=
"#FFFFFF"
><?=
$objResult
[
"event_end"
];?></td>
37.
<td bgcolor=
"#FFFFFF"
><?=
$objResult
[
"event_url"
];?></td>
38.
<td bgcolor=
"#FFFFFF"
><?=
$objResult
[
"event_allDay"
];?></td>
39.
<!-- <td align=
"center"
><a href=
"delok.php?ID=<?=$objResult["
event_id
"];?>"
>¡àÅÔ¡</a></td> -->
40.
<td align=
"center"
><a href=
"JavaScript:if(confirm('Confirm Delete?')==true){window.location='delok.php?event_id=<?=$objResult["
event_id
"];?>';}"
>
Delete
</a></td>
41.
</tr>
42.
<?
43.
}
44.
?>
45.
</table>
46.
<?
47.
48.
?>
49.
</body></center>
50.
</html>