01.
<p>
02.
<?
03.
if
($_SESSION[
'logged_adv'
]==
"1"
){
04.
}
else
{
05.
?>
06.
</p>
07.
<table width=
"489"
border=
"0"
>
08.
<tr>
09.
<td width=
"408"
><fieldset>
10.
<legend>ภาพกิจกรรม</legend>
11.
<script language=
"javascript"
>
12.
function fncCreateElement(){
13.
var mySpan = document.getElementById(
'mySpan'
);
14.
var myElement1 = document.createElement(
'input'
);
15.
myElement1.setAttribute(
'type'
,
"file"
);
16.
myElement1.setAttribute(
'name'
,
"filUpload[]"
);
17.
mySpan.appendChild(myElement1);
18.
var myElement2 = document.createElement(
'<br>'
);
19.
mySpan.appendChild(myElement2);
20.
}
21.
</script>
22.
<table width=
"460"
border=
"0"
>
23.
<tr>
24.
<td colspan=
"2"
><div align=
"center"
>อัพโหลดภาพกิจกรรม</div></td>
25.
</tr>
26.
<tr>
27.
<td colspan=
"2"
><div align=
"center"
></div></td>
28.
</tr>
29.
<tr>
30.
<td width=
"155"
><div align=
"center"
>หัวเรื่อง</div></td>
31.
<td width=
"295"
><div align=
"center"
>
32.
<form id=
"form2"
name=
"form2"
method=
"post"
action=
""
>
33.
<div align=
"left"
>
34.
<input type=
"pic"
name=
"textfield"
id=
"pic"
/>
35.
</div>
36.
</form>
37.
</div></td>
38.
</tr>
39.
<tr>
40.
<td> </td>
41.
<td><div align=
"left"
></div></td>
42.
</tr>
43.
<tr>
44.
<td><div align=
"center"
>
45.
<div align=
"center"
>ภาพกิจกรรม</div>
46.
</div></td>
47.
<td><div align=
"left"
>
48.
<input type=
"file"
name="filUpload[<?
49.
echo
"$i"
;
50.
$i++;
51.
?>]" />
52.
<input name=
"btnButton"
id=
"btnButton"
type=
"button"
value=
"v"
onclick=
"JavaScript:fncCreateElement();"
/>
53.
<span id=
"mySpan"
></span>
54.
</div></td>
55.
</tr>
56.
</table>
57.
<p> </p>
58.
</fieldset></td>
59.
</tr>
60.
</table>
61.
<p>
62.
<?
63.
}
64.
?>
65.
</p>