Viewing file: v_showPersonCenterTable.php (4.47 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>ตารางบุคลากร</title>
<script language="JavaScript">
function ReturnValue(personCode, personId, prefixId,prefixName,fName,lName,prefixNameEng,fName2,lName2,email,pic)
{
// mf = window.opener.getElementById("myform");
// mf.getElementById("personCode").value = personId;
window.opener.document.myform.elements["personCode"].value = personCode;
window.opener.document.myform.elements["personId"].value = personId;
window.opener.document.myform.elements["prefixId"].value = prefixId;
window.opener.document.myform.elements["prefixName"].value = prefixName;
window.opener.document.myform.elements["fName"].value = fName;
window.opener.document.myform.elements["lName"].value = lName;
window.opener.document.myform.elements["prefixName2"].value = prefixNameEng;
window.opener.document.myform.elements["fName2"].value = fName2;
window.opener.document.myform.elements["lName2"].value = lName2;
window.opener.document.myform.elements["emailAddr"].value = email;
window.opener.document.myform.elements["pic"].value = pic;
// window.opener.myform.getElementById("personCode").value = personId;
// window.opener.myform.getElementById("prefixId").value = prefixId;
// window.opener.myform.getElementById("prefixName").value = prefixName;
// window.opener.myform.getElementById("fName").value = fName;
// window.opener.myform.getElementById("lName").value = lName;
// window.opener.myform.getElementById("prefixName2").value = prefixNameEng;
// window.opener.myform.getElementById("fName2").value = fName2;
// window.opener.myform.getElementById("lName2").value = lName2;
// window.opener.document.myform1.elements["prsNameRC"].value = person;
// window.opener.document.myform1.elements["prsIdRC"].value = prsId;
//alert(window.opener.document.myform1.elements["prsIdRC"].value);
window.close();
}
</script>
</head>
<body bgcolor="#FFFFFF">
<table width="60%" border="1" cellspacing="2" cellpadding="2" bordercolor="#000000" style="border-collapse:collapse" align="center">
<tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
<td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></td>
<td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>รหัสประจำตัว</b></font></td>
<td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อ - นามสกุลไทย</b></font></td>
<td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อ - นามสกุลอังกฤษ</b></font></td>
<td align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>อีเมล์</b></font></td></tr>
<?php
if($rs_ps && $rs_ps->num_rows()) {
$i = 0;
foreach($rs_ps->result() as $row) {
?>
<tr>
<td align="center"><font size="2"><?php echo $i+1;?></font></td>
<td align="center"><font size="2"><a href="#" onclick="ReturnValue('<?=$row->personCode?>','<?=$row->personId?>','<?=$row->prefixId?>','<?=$row->prefixName?>','<?=$row->fName?>','<?=$row->lName?>','<?=$row->prefixNameEng?>','<?=$row->fName2?>','<?=$row->lName2?>','<?=$row->emailAddr?>','<?=$row->pic?>')" ><?php echo $row->personCode;?></a></font></td>
<td nowrap><font size="2"><a href="#" onclick="ReturnValue('<?=$row->personCode?>','<?=$row->personId?>','<?=$row->prefixId?>','<?=$row->prefixName?>','<?=$row->fName?>','<?=$row->lName?>','<?=$row->prefixNameEng?>','<?=$row->fName2?>','<?=$row->lName2?>','<?=$row->emailAddr?>','<?=$row->pic?>')" ><?php echo $row->prefixName.$row->fName." ".$row->lName;?></a></font></td>
<td nowrap><font size="2"><a href="#" onclick="ReturnValue('<?=$row->personCode?>','<?=$row->personId?>','<?=$row->prefixId?>','<?=$row->prefixName?>','<?=$row->fName?>','<?=$row->lName?>','<?=$row->prefixNameEng?>','<?=$row->fName2?>','<?=$row->lName2?>','<?=$row->emailAddr?>','<?=$row->pic?>')" ><?php echo $row->prefixNameEng.$row->fName2." ".$row->lName2;?></a></font></td>
<td><font size="2"><?php echo $row->emailAddr;?></font></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr><td colspan="5" align="center"><font size="2">** ไม่มีข้อมูล **</font></td></tr>
<?php } ?>
<tr><td colspan="5" align="center"><font size="2"><a href="#" onclick="window.close()">ปิดหน้าต่าง</a></font></td></tr>
</table>
</body>
</html>
|