01.
<select
class
=
"form-control"
id =
"department"
name=
"department"
style=
"width:300px"
>
02.
<?
03.
$strSQL
=
"SELECT * FROM department"
;
04.
$query
=
$this
->db->query(
$strSQL
);?>
05.
<option value=
"Error Department"
>------ เลือกกลุ่มผู้ใช้งาน ------</option>
06.
<?
foreach
(
$query
->result()
as
$row
)
07.
{
08.
?>
09.
<option value=
"<?=$row->id_dept;?>"
><?=
$row
->dept_name; ?></option>
10.
<?
11.
}
12.
?>
13.
</select>
14.
<select
class
=
"form-control"
id =
"firstname"
name=
"firstname"
style=
"width:300px"
>