01.
<select id=
"pagelist"
>
02.
<option value=
""
>Choose option</option>
03.
<option value=
"pstats"
>PSTATS</option>
04.
<option value=
"jdk"
>JDK</option>>
05.
</select>
06.
<br><br>
07.
<div id=
"pstats"
style=
"display:none"
>
08.
<input type=
"radio"
name=
"choice"
id=
"count_1"
value=
"1. pstats - Jun 30 2010 16:55:07"
>pstats - Jun 30 2010 16:55:07<br>
09.
<input type=
"radio"
name=
"choice"
id=
"count_2"
value=
"2. pstats - Jan 26 2012 12:43:26"
>pstats - Jan 26 2012 12:43:26<br>
10.
<input type=
"radio"
name=
"choice"
id=
"count_3"
value=
"3. pstats - Oct 15 2013 15:04:37"
>pstats - Oct 15 2013 15:04:37<br>
11.
<input type=
"radio"
name=
"choice"
id=
"count_4"
value=
"4. pstats - Dec 3 2014 13:30:33"
>pstats - Dec 3 2014 13:30:33<br>
12.
</div>
13.
14.
<div id=
"jdk"
style=
"display:none"
>
15.
<?php
16.
$dir
=
"./JDK/"
;
17.
if
(
is_dir
(
$dir
)) {
18.
if
(
$dh
= opendir(
$dir
)) {
19.
while
((
$file
= readdir (
$dh
)) !== false) {
20.
if
(
$file
!=
"."
&&
$file
!=
".."
&&
$file
!=
".DS_Store"
) {
21.
$MyJdk
=
str_replace
(
'.tar.gz'
,
''
,
$file
);
22.
echo
'<input type ="checkbox" name="cksChk[]" id="cksChk[]" value="'
.
$MyJdk
.
'">'
;
23.
echo
$MyJdk
;
24.
echo
'<br>'
;
25.
}
26.
}
27.
closedir
(
$dh
);
28.
}
29.
}
30.
?>
31.
</div>