Viewing file:      v_alumniAward.php (7.37 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php  $row_ha = (isset($qu_ha) && $qu_ha!=NULL) ? $qu_ha->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_alumniAward",array("id"=>"tab4"));?><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 colspan="3"><input type="text" name="awardNameT" id="awardNameT" size="70" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('awardNameT');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ชื่อรางวัล (ภาษาอังกฤษ)</b></font></td>                             <td height="22" colspan="3"><input type="text" name="awardNameE" id="awardNameE" size="70" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('awardNameE');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>หน่วยงานที่ให้รางวัล</b></font></td>                                                 <td height="22" colspan="3"><input type="text" name="awardCompany" id="awardCompany" size="70" />                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('awardCompany');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ประเภทรางวัล</b></font></td>                             <td height="22" width="30%"><font size="2"> <?php                             echo form_dropdown('taId', $rs_ta); ?>                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font> <?php                             echo form_error('taId'); ?>                             </td>                             <td class="coltd_easzone"><font size="2"><b>ระดับการได้รับรางวัล</b></font>                             <td height="22" width="25%">                             <?php echo form_dropdown('laId', $rs_la);?>                             <font color="<?php echo $this->config->item('font_color_err');?>" size="2">*</font>                             <?php echo form_error('laId');?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>ปีที่ได้รับรางวัล</b></font></td>                                                 <td height="22" colspan="3"><input type="text" name="awardYear" id="awardYear" size="35" /></td>                             </td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>รูปประกาศนียบัตร</b></font></td>                             <td colspan="3">                             <input type="file" name="uploadfile" id="uploadfile" size="50" />                             <input type="hidden" name="picturePerson" id="picturePerson" />                             <br><font size="2"> </font>                             <font size="2" color="<?php echo $this->config->item('font_color_err');?>"><b>(ขนาดรูปภาพควรมีขนาด 100x115 pixels)</b></font></td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td class="coltd_easzone"><font size="2"><b>เอกสารการได้รับรางวัล</b></font></td>                             <td colspan="3">                             <input type="file" name="uploadfile" id="uploadfile" size="50" />                             <input type="hidden" name="picturePerson" id="picturePerson" />                             <br><font size="2"> </font>                             <font size="2" color="<?php echo $this->config->item('font_color_err');?>"><b>(ขนาดรูปภาพควรมีขนาด 100x115 pixels)</b></font></td>                         </tr>                         <tr bgcolor="<?php echo $this->config->item('tr_color_even');?>">                             <td height="22" colspan="4" 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="hidden" name="alumniId" id="alumniId" value="<?php echo set_value('alumniId',$alumniId);?>">                             <input type="hidden" name="status" value="<?php //echo $status;?>" />                             <input type="hidden" 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_ha) && $rs_ha->num_rows()) {                             foreach($rs_ha->result() as $row_ha) {                                 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 $row_ha->awardYear;?></font></td>                                 <td class="indent" align="left"><font size="2"><?php echo $row_ha->awardNameT;?></font></td>                                 <td class="indent" align="left"><font size="2"><?php echo $row_ha->awardCompany;?></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_ha->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_ha->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');?>" size="2"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></td>     </tr> </table>
  |