01.
<?php
$bg
=
''
; ?>
02.
<?php
for
(
$i
=0;
$i
<
Count
(
$getPosts
);
$i
++){ ?>
03.
<?php
if
(
$bg
==
"#FFFFFF"
){
04.
$bg
=
"#F0F0F0"
;
05.
}
else
{
06.
$bg
=
"#FFFFFF"
;
07.
}?>
08.
<?php
if
(
$getPosts
[
$i
][
'WebPosts'
][
'groups'
] ==
'กิจกรรมศิลปะวัฒนธรรม'
) {?>
09.
<h1><?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'groups'
] ?></h1>
10.
<tr
class
=
"table-Admins-show-cell<?php echo $i; ?>"
bgcolor=
"<?php echo $bg; ?>"
height=
"47"
>
11.
<td width=
"3%"
align=
"center"
class
=
"table-head-Admins"
>
12.
<input type=
"checkbox"
name=
"checkAll"
id=
"checkAll"
></td>
13.
<td width=
"3%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
14.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'question_id'
]; ?></td>
15.
<td width=
"10%"
align=
"center"
class
=
"table-infor-Admins-shownews"
16.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'name'
]; ?></td>
17.
<td width=
"40%"
align=
"center"
class
=
"table-infor-Admins-shownews"
id=
"topic"
18.
name=
"<?php echo $getPosts[$i]['WebPosts']['question_id']; ?>"
>
19.
<a onclick=
"editTopic(this,<?php echo $i; ?>);"
style=
"cursor:pointer; color:red;"
>
20.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'topic'
]; ?>
21.
</a></td>
22.
<td width=
"5%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
23.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'created'
]; ?></td>
24.
<td width=
"3%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
25.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'view'
]; ?></td>
26.
<td width=
"3%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
27.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'reply'
]; ?></td>
28.
</tr>
29.
<tr
class
=
"slideOpenTopicDetail<?php echo $i; ?>"
style=
"color:black;background-color:green;"
>
30.
</tr>
31.
<?php }
if
(
$getPosts
[
$i
][
'WebPosts'
][
'groups'
] ==
'กิจกรรมทางดนตรี'
) {?>
32.
<h1><?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'groups'
] ?></h1>
33.
<tr
class
=
"table-Admins-show-cell<?php echo $i; ?>"
bgcolor=
"<?php echo $bg; ?>"
height=
"47"
>
34.
<td width=
"3%"
align=
"center"
class
=
"table-head-Admins"
><input
35.
type=
"checkbox"
name=
"checkAll"
id=
"checkAll"
></td>
36.
<td width=
"3%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
37.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'question_id'
]; ?></td>
38.
<td width=
"10%"
align=
"center"
class
=
"table-infor-Admins-shownews"
39.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'name'
]; ?></td>
40.
<td width=
"40%"
align=
"center"
class
=
"table-infor-Admins-shownews"
id=
"topic"
41.
name=
"<?php echo $getPosts[$i]['WebPosts']['question_id']; ?>"
>
42.
<a onclick=
"editTopic(this,<?php echo $i; ?>);"
style=
"cursor:pointer; color:red;"
>
43.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'topic'
]; ?>
44.
</a></td>
45.
<td width=
"5%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
46.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'created'
]; ?></td>
47.
<td width=
"3%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
48.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'view'
]; ?></td>
49.
<td width=
"3%"
align=
"center"
class
=
"table-infor-Admins-shownews"
>
50.
<?php
echo
$getPosts
[
$i
][
'WebPosts'
][
'reply'
]; ?></td>
51.
</tr>
52.
<tr
class
=
"slideOpenTopicDetail<?php echo $i; ?>"
style=
"color:black;background-color:green;"
>
53.
</tr>
54.
<?php } ?>
55.
<?php } ?>