Viewing file: v_showPerson.php (4.2 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_cfg = isset($qu_cfg) ? $qu_cfg->row() : NULL; ?> <table width="100%" align="center"> <tr> <td><div align="center"> <table width="100%"> <tr> <td align="center"><span class="h" style="color:<?php echo $font_color_err;?>">เพิ่มบุคลากรใหม่</span></td> </tr> <tr> <td><br /></td> </tr> <tr> <td> <table class="headCol"> <?php echo form_open($this->config->item("rg_folder")."officer/prs_insert_update", array('id' => 'myform', 'name' => 'myform'));?> <tr> <th colspan="5"><span>รายชื่อบุคลากร</span></th> </tr> <tr> <th class="stdCodeCol"><span>รหัสบุคลากร</span></th> <th><span>ชื่อ-นามสกุล</span></th> <th class="groupCol"><span>สถานะ</span></th> <th class="editCol"><span>แก้ไข</span></th> <th class="deleteCol"><span>ลบ</span></th> </tr> <?php $i = 0; if($rs_prs && $rs_prs->num_rows()) { foreach($rs_prs->result() as $row_prs) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?> <td align="center"><span><?php echo $row_prs->personCode;?></span></td> <td class="indent"><span class="hand" onClick="sendPost('hidform', {'prsId':<?php echo $row_prs->prsId;?>}, '<?php echo site_url($this->config->item('rg_folder').'officer/showDetailPrs');?>', {})"><?php echo $row_prs->prefixName.$row_prs->fName.' '.$row_prs->lName;?></span></td> <td align="center"> <?php if(is_null($row_prs->prsId)) $show = $this->config->item('rg_tPPC'); else $show = $this->config->item('rg_tRG'); ?> <img src="<?php echo base_url().$show;?>" /></td> <td align="center"> <img src="<?php echo base_url().$this->config->item("rg_edit");?>" onClick="sendPost('myform', {'personId':'<?php echo $row_prs->personId;?>','psoutId':'<?php echo $row_prs->psoutId;?>'}, '<?php echo site_url($this->config->item('rg_folder').'officer/prs_input');?>')" width="23" height="19" align="absmiddle" border="0" class="hand" /> </td> <td align="center"> <img src="<?php echo base_url().$this->config->item("rg_delete");?>" width="16" height="19" align="absmiddle" class="hand" border="0" onClick="if(confirm('ต้องการลบข้อมูล ?')) { sendPost('myform', {'prsId':'<?php echo $row_prs->prsId;?>'}, '<?php echo site_url($this->config->item('rg_folder').'officer/prs_delete');?>')}"> </td> </tr> <?php $i++; } } else { ?> <tr> <td colspan="4" align="center"><span style="color:<?php echo $font_color_err;?>">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td> </tr> <?php } ?> <?php echo form_close();?></table></td> </tr> <tr> <td align="right"><span>รวม <?php echo $rs_prs->num_rows();?> รายการ</span></td> </tr> <tr> <td><input type="submit" name="add" value="เพิ่มรายการ" onClick="sendPost('myform', {}, '<?php echo site_url($this->config->item('rg_folder').'officer/prs_input');?>')" <?php echo (getval('cfgCheckPP', $row_cfg) == 'Y') ? 'disabled' : '';?> /> </td> </tr> </table></div> <br></td> </tr> </table> <table> <tr> <td><span style="color:<?php echo $font_color_err;?>"><b>หมายเหตุ :</b></span></td> <td><span style="color:<?php echo $font_color_err;?>">ใช้เมาส์คลิกที่ชื่อ-สกุลบุคลากรเพื่อดูรายละเอียดข้อมูลบุคลากร</span></td> </tr> <tr> <td></td> <td><span style="color:<?php echo $font_color_err;?>"> <img src="<?php echo base_url().$this->config->item('rg_tPPC');?>" /> : ยังไม่นำเข้าข้อมูลบุคลากร </span></td> </tr> <tr> <td></td> <td><span style="color:<?php echo $font_color_err;?>"> <img src="<?php echo base_url().$this->config->item('rg_tRG');?>" /> : นำเข้าข้อมูลบุคลากรแล้ว</span></td> </tr> </table>
|