001.
<html>
002.
<head>
003.
<title>Untitled Document</title>
004.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=windows-874"
>
005.
</head>
006.
<body>
007.
<form name=
"form1"
method=
"post"
action=
"test_time.php"
>
008.
<table width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
009.
<tr>
010.
<td><table cellspacing=
"1"
cellpadding=
"1"
>
011.
<tr>
012.
<td width=
"73"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
> </font></td>
013.
<td width=
"58"
><div align=
"center"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>วันที่</font></div></td>
014.
<td width=
"58"
><div align=
"center"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>เดือน</font></div></td>
015.
<td width=
"58"
><div align=
"center"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>ปี
016.
( พ.ศ. )</font></div></td>
017.
<td width=
"47"
><div align=
"center"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>ชั่วโมง</font></div></td>
018.
<td width=
"41"
><div align=
"center"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>นาที</font></div></td>
019.
</tr>
020.
<tr>
021.
<td height=
"26"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>เวลาเริ่มกิจกรรม</font></td>
022.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
023.
<select name=
"start_d"
id=
"start_d"
>
024.
<option value=
"0"
>เลือก</option>
025.
<?
026.
for
(
$d
=1;
$d
<=31;
$d
++)
027.
{
028.
?>
029.
<option value=
"<? echo $d; ?>"
><?
echo
$d
; ?></option>
030.
<?
031.
}
032.
?>
033.
</select>
034.
</font></strong></td>
035.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
036.
<select name=
"start_m"
id=
"start_m"
>
037.
<option value=
"0"
>เลือก</option>
038.
<?
039.
for
(
$d
=1;
$d
<=12;
$d
++)
040.
{
041.
?>
042.
<option value=
"<? echo $d; ?>"
><?
echo
$d
; ?></option>
043.
<?
044.
}
045.
?>
046.
</select>
047.
</font></strong></td>
048.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
049.
<select name=
"start_y"
id=
"select2"
>
050.
<option value=
"0"
>เลือก</option>
051.
<?
052.
$Tyear
=
date
(
"Y"
)+543;
053.
for
(
$d
=2550;
$d
<=
$Tyear
;
$d
++)
054.
{
055.
?>
056.
<option value=
"<? echo $d-543; ?>"
><?
echo
"พ.ศ. "
.
$d
; ?></option>
057.
<?
058.
}
059.
?>
060.
</select>
061.
</font></strong></td>
062.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
063.
<select name=
"start_h"
id=
"start_h"
>
064.
<option value=
"0"
>0</option>
065.
<?
066.
for
(
$d
=1;
$d
<=24;
$d
++)
067.
{
068.
?>
069.
<option value=
"<? echo $d; ?>"
><?
echo
$d
; ?></option>
070.
<?
071.
}
072.
?>
073.
</select>
074.
: </font></strong></td>
075.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
076.
<select name=
"start_M"
id=
"select"
>
077.
<option value=
"0"
>00</option>
078.
<?
079.
for
(
$i
=1;
$i
<=59;
$i
++)
080.
{
081.
?>
082.
<option value=
"<? echo $i; ?>"
><?
echo
$i
; ?></option>
083.
<?
084.
}
085.
?>
086.
</select>
087.
</font></strong></td>
088.
</tr>
089.
<tr>
090.
<td height=
"26"
><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>เวลาจบกิจกรรม</font></td>
091.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
092.
<select name=
"end_d"
id=
"end_d"
>
093.
<option value=
"0"
>เลือก</option>
094.
<?
095.
for
(
$d
=1;
$d
<=31;
$d
++)
096.
{
097.
?>
098.
<option value=
"<? echo $d; ?>"
><?
echo
$d
; ?></option>
099.
<?
100.
}
101.
?>
102.
</select>
103.
</font></strong></td>
104.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
105.
<select name=
"end_m"
id=
"end_m"
>
106.
<option value=
"0"
>เลือก</option>
107.
<?
108.
for
(
$d
=1;
$d
<=12;
$d
++)
109.
{
110.
?>
111.
<option value=
"<? echo $d; ?>"
><?
echo
$d
; ?></option>
112.
<?
113.
}
114.
?>
115.
</select>
116.
</font></strong></td>
117.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
118.
<select name=
"end_y"
id=
"end_y"
>
119.
<option value=
"0"
>เลือก</option>
120.
<?
121.
for
(
$d
=2550;
$d
<=
$Tyear
;
$d
++)
122.
{
123.
?>
124.
<option value=
"<? echo $d-543; ?>"
><?
echo
"พ.ศ. "
.
$d
; ?></option>
125.
<?
126.
}
127.
?>
128.
</select>
129.
</font></strong></td>
130.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
131.
<select name=
"end_h"
id=
"end_h"
>
132.
<option value=
"0"
>0</option>
133.
<?
134.
for
(
$d
=1;
$d
<=24;
$d
++)
135.
{
136.
?>
137.
<option value=
"<? echo $d; ?>"
><?
echo
$d
; ?></option>
138.
<?
139.
}
140.
?>
141.
</select>
142.
: </font></strong></td>
143.
<td><strong><font size=
"2"
face=
"Microsoft Sans Serif, MS Sans Serif, sans-serif"
>
144.
<select name=
"end_M"
id=
"select"
>
145.
<option value=
"0"
>00</option>
146.
<?
147.
for
(
$i
=1;
$i
<=59;
$i
++)
148.
{
149.
?>
150.
<option value=
"<? echo $i; ?>"
><?
echo
$i
; ?></option>
151.
<?
152.
}
153.
?>
154.
</select>
155.
</font></strong></td>
156.
</tr>
157.
<tr>
158.
<td height=
"26"
colspan=
"6"
><div align=
"center"
>
159.
<input type=
"submit"
name=
"Submit"
value=
"Submit"
>
160.
</div></td>
161.
</tr>
162.
</table></td>
163.
</tr>
164.
</table>
165.
</form>
166.
</body>
167.
</html>