01.
function
radio(
$evaGroupId
,
$rdoname
){
02.
$sql_group
=
"SELECT * FROM tb_evaGroup where evaGroupId='$evaGroupId' "
;
03.
$result_group
=mysql_query(
$sql_group
);
04.
$rows_group
=mysql_fetch_array(
$result_group
);
05.
$evaGroupId
=
$rows_group
[
'evaGroupId'
];
06.
$evaGroupName
=
$rows_group
[
'evaGroupName'
];
07.
08.
echo
"<tr bgcolor=\"#FFCCCC\">"
09.
.
"<th align=\"left\" colspan=\"5\">"
.
$evaGroupName
.
"</th>"
10.
.
" </tr>"
;
11.
12.
$sql
=
"SELECT * FROM tb_evaTopic WHERE evaGroupId = '$evaGroupId'"
;
13.
14.
$result
=mysql_query(
$sql
);
15.
$rows
=mysql_fetch_array(
$result
);
16.
$topic
=
$rows
[
'topicName'
];
17.
echo
"<tr bgcolor=\"#EEEEEE\">"
18.
.
"<td height=\"25\">"
.
$topic
.
"</td>"
;
19.
echo
"<td align=\"center\"><input type=\"radio\" value=\"4\" align=\"MIDLE\" name=\"$rdoname\"/ checked=\"checked\" ></td>"
;
20.
echo
"<td align=\"center\"><input type=\"radio\" value=\"3\" align=\"MIDLE\" name=\"$rdoname\"/ checked=\"checked\" ></td>"
;
21.
echo
"<td align=\"center\"><input type=\"radio\" value=\"2\" align=\"MIDLE\" name=\"$rdoname\"/ checked=\"checked\" ></td>"
;
22.
echo
"<td align=\"center\"><input type=\"radio\" value=\"1\" align=\"MIDLE\" name=\"$rdoname\"/ checked=\"checked\" ></td>"
;
23.
echo
"</tr>"
;
24.
25.
}