Viewing file:      v_prefixTable.php (2.04 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script language="JavaScript"> function ReturnValue(pfId,pfName,pfNameE) {     window.opener.document.myform.elements["stdPfId"].value = pfId;     window.opener.document.myform.elements["pfName"].value = pfName;     window.opener.document.myform.elements["pfNameE"].value = pfNameE;     window.close(); } </script> <table width="100%">     <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">          <td width="12%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></td>         <td width="44%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>คำนำหน้าชื่อไทย</b></font></td>         <td width="44%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>คำนำหน้าชื่ออังกฤษ</b></font></td>     </tr> <?php     if($rs_pf->num_rows()) {         $i = 0;         foreach($rs_pf->result() as $row) {             if(($i%2) == 0)                 echo "<tr>";             else                 echo "<tr bgcolor=\"".$tr_color_even."\">"; ?>     <tr>          <td align="center" onClick="ReturnValue(<?php echo $row->pfId;?>,'<?php echo $row->pfName;?>','<?php echo $row->pfNameE;?>')" onMouseOver="this.style.cursor='pointer'"><font size="2"><?php echo $i+1;?></font></td>         <td onClick="ReturnValue(<?php echo $row->pfId;?>,'<?php echo $row->pfName;?>','<?php echo $row->pfNameE;?>')" onMouseOver="this.style.cursor='pointer'"><font size="2"><?php echo $row->pfName;?></font></td>         <td onClick="ReturnValue(<?php echo $row->pfId;?>,'<?php echo $row->pfName;?>','<?php echo $row->pfNameE;?>')" onMouseOver="this.style.cursor='pointer'"><font size="2"><?php echo $row->pfNameE;?></font></td>     </tr> <?php             $i++;         }     }     else { ?>     <tr>         <td colspan="3" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</font></td>     </tr> <?php     } ?>     <tr bgcolor="silver">         <td colspan="3" align="right"><font size="2">รวม <?php echo $rs_pf->num_rows();?> รายการ</font></td>     </tr> </table>
  |