Viewing file:      v_alumniWork.php (6.19 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php  $row_hw = (isset($qu_hw) && $qu_hw!=NULL) ? $qu_hw->row() : NULL; ?> <table width="100%">     <tr>         <td>             <label><div align="center">             <table width="100%">                 <tr>                     <td align="center" class="h">การทำงาน</td>                 </tr>                 <tr>                     <td><?php echo form_open($this->config->item("ea_folder")."alumni/v_alumniWork",array("name"=>"tab3","id"=>"tab3"));?>                     <table class="easzone">                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ชื่อหน่วยงาน (ภาษาไทย)</b></font></td>                                             <td><input type="text" name="companyNameT" id="companyNameT" size="70" value="<?php //echo setValue('companyNameT',$row_hw);?>" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('companyNameT');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ชื่อหน่วยงาน (ภาษาอังกฤษ)</b></font></td>                                                 <td><input type="text" name="companyNameE" id="companyNameE" size="70" value="" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('companyNameE');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ที่อยู่ของหน่วยงาน</b></font></td>                                                 <td><input type="text" name="companyAddr" id="companyAddr" size="70" value="" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('companyAddr');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ตำแหน่ง</b></font></td>                                                 <td><input type="text" name="companyPosition" id="companyPosition" size="70" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('companyPosition');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>วันเดือนปีที่เข้ารับตำแหน่ง</b></font></td>                                                 <td><script>DateInput('companyAdmidPosYear', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script>                                                          <!-- <script>DateInput('companyAdmidPosYear',true,'DD/MM/YYYY','<?php echo isset($row_hw) ? splitDateDb2(setValue("companyAdmidPosYear",$row_hw),"/") : splitDateDb2(getNowDate(),"/");?>')</script> --></td>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td height="22" colspan="2" align="center">                             <input type="submit" name="add" value="บันทึกข้อมูล" />                             <input type="reset" name="clear" value="ลบข้อมูล" />                             <input type="button" name="cancel" value="ยกเลิก" />                             <input type="hidden" name="method" value="edit" />                             <input type="text" name="alumniId" id="alumniId" value="<?php echo set_value('alumniId',$alumniId);?>">                             <input type="text" name="seqId" id="seqId" value="<?php echo setValue('seqId',$row_hw);?>" />                             <input type="text" name="tab" id="tab" value="<?php echo $tab;?>"/>                             </td>                         </tr>                     </table><?php echo form_close();?><br /></td>                 </tr>                 <tr>                     <td>                         <table class="eaheadCol">                             <tr>                                 <th><font size="2" color="<?php echo $this->config->item('font_color_table');?>"><b>ปีที่เข้ารับตำแหน่ง</b></font></th>                                 <th><font color="<?php echo $this->config->item('font_color_table');?>" size="2"><b>ชื่อตำแหน่ง</b></font></th>                                 <th><font color="<?php echo $this->config->item('font_color_table');?>" size="2"><b>ชื่อหน่วยงาน</b></font></th>                                 <th class="editCol"><font color="<?php echo $this->config->item('font_color_table');?>" size="2"><b>แก้ไข</b></font></th>                                 <th class="deleteCol"><font color="<?php echo $this->config->item('font_color_table');?>" size="2"><b>ลบ</b></font></th>                             </tr> <?php                         $i = 0;                         if(isset($rs_hw) && $rs_hw->num_rows()) {                             foreach($rs_hw->result() as $row_hw) {                                 echo "<tr onmouseover=\"bgColor='".$this->config->item("tr_color_even")."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?>                                 <td align="center"><font size="2"><?php echo fullDate(splitDateDb2(setValue('companyAdmidPosYear',$row_hw),"/"));?></font></td>                                 <td class="indent" align="left"><font size="2"><?php echo $row_hw->companyPosition;?></font></td>                                 <td class="indent" align="left"><font size="2"><?php echo $row_hw->companyNameT;?></font></td>                                 <td align="center">                                 <img class="hand" src="<?php echo base_url()."images/".$this->config->item("rg_folder")."picture/edit.gif";?>" align="absmiddle" border="0" onClick="sendPost('hidform',{'seqId':<?php echo $row_hw->seqId;?>}, '<?php echo site_url($this->config->item('ea_folder').'alumni/v_alumniWork');?>')" /></td>                                 <td align="center">                                 <img class="hand" src="<?php echo base_url()."images/".$this->config->item("rg_folder")."picture/delete.gif";?>" align="absmiddle" border="0" onClick="confirmDel2({seqId:<?php echo $row_hw->seqId;?>}, 'hidform','<?php echo site_url($this->config->item('ea_folder').'alumni/alumniWork_delete');?>')" /></td>                             </tr> <?php                                 $i++;                             }                         } else { ?>                             <tr>                                 <td colspan="5" height="22" align="center"><font size="2" color="<?php echo $this->config->item('font_color_err');?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>                             </tr> <?php                         } ?>                         </table>                     </td>                 </tr>             </table></div></label>         <br><font color="<?php echo $this->config->item('font_color_err');?>"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></td>     </tr> </table>
  |