Viewing file: v_infoAm_5.php (5.99 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_ha = (isset($qu_ha) && $qu_ha!=NULL) ? $qu_ha->row() : NULL;
$receiveDate = setValue('receiveDate',$row_ha)!="" ? setValue('receiveDate',$row_ha) : '';
?>
<table width="100%">
<tr>
<td><table class="szone">
<?php echo form_open($this->config->item("ea_folder")."info_alumni/process_infoAm_5", array("name" => "myform", "id" => "myform"));?>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td colspan="4" height="25px" class="indent"><span class="h error">ข้อมูลการได้รับรางวัล</span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">ชื่อรางวัล ภาษาไทย</td>
<td colspan="3"><input type="text" name="awardNameT" id="awardNameT" value="<?php echo set_value('awardNameT',setValue('awardNameT',$row_ha));?>" size="50" maxlength="100" />
<span class="error"> * <?php echo form_error('awardNameT');?></span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">ชื่อรางวัล ภาษาอังกฤษ</td>
<td colspan="3"><input type="text" name="awardNameE" id="awardNameE" value="<?php echo set_value('awardNameE',setValue('awardNameE',$row_ha));?>" size="50" maxlength="100" /></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">หน่วยงานที่ให้รางวัล</td>
<td><input type="text" name="awardCompany" id="awardCompany" value="<?php echo set_value('awardCompany',setValue('awardCompany',$row_ha));?>" size="30" maxlength="100" />
<span class="error"> * <?php echo form_error('awardCompany');?></span></td>
<td class="coltd_szone">วันที่ได้รับรางวัล</td>
<td><script>DateInput('receiveDate', true, 'DD/MM/YYYY', "<?php echo (set_value('receiveDate')) ? set_value('receiveDate') : (setValue('receiveDate',$row_ha) ? splitDateDb2(setValue('receiveDate',$row_ha),'/') : getNowDateFw2());?>")</script></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">ประเภทรางวัล</td>
<td>
<?php
echo form_dropdown('typeAwardId', $rs_ta, set_value('typeAwardId', setValue('typeAwardId', $row_ha)));
?>
<span class="error"> *<?php echo form_error('typeAwardId');?></span></td>
<td class="coltd_szone">ระดับการได้รับรางวัล</td>
<td>
<?php
echo form_dropdown('levelAwardId', $rs_levAw, set_value('levelAwardId', setValue('levelAwardId', $row_ha)));
?>
<span class="error"> *<?php echo form_error('levelAwardId');?></span></td>
</tr>
<!-- <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">เอกสารประกอบ</td>
<td colspan="3"></td>
</tr> -->
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td colspan="4" align="center">
<input type="submit" name="add" id="add" value="บันทึก" />
<input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
<input type="hidden" name="tab" id="tab" value="<?php echo $tab;?>" />
<input type="hidden" name="alumniId" id="alumniId" value="<?php echo $alumniId;?>" />
<input type="hidden" name="seqId" id="seqId" value="<?php echo setValue('seqId',$row_ha);?>" />
<input type="hidden" name="ha_alumniId" id="ha_alumniId" value="<?php echo setValue('alumniId',$row_ha);?>" /></td>
</tr>
<?php echo form_close();?></table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="headCol">
<tr bgcolor="<?php echo $this->config->item('table_c_even');?>">
<th class="seqCol">ลำดับที่</th>
<th>ชื่อรางวัล</th>
<th>หน่วยงานที่ให้รางวัล</th>
<th>ประเภทรางวัล</th>
<th>ระดับการได้รับรางวัล</th>
<th class="domAmtCol">วันที่ได้รับรางวัล</th>
<th class="editCol">แก้ไข</th>
<th class="deleteCol">ลบ</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_c_even')."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center"><?php echo $i+1;?></td>
<td class="indent"><?php echo $row_ha->awardNameT;?></td>
<td class="indent"><?php echo $row_ha->awardCompany;?></td>
<td class="indent"><?php echo $row_ha->typeAwardNameT;?></td>
<td class="indent"><?php echo $row_ha->levelAwardNameT;?></td>
<td class="indent"><?php echo abbreDate2($row_ha->receiveDate);?></td>
<td align="center"><img class="hand" src="<?php echo base_url().$this->config->item('ea_edit');?>" align="absmiddle" border="0"
onClick="sendPost('hidform',
{'alumniId':<?php echo $row_ha->alumniId;?>,
'tab':<?php echo $tab;?>,
'seqId':<?php echo $row_ha->seqId;?>},
'<?php echo site_url($this->config->item('ea_folder').'info_alumni/main_infoAm');?>')" /></td>
<td align="center"><img class="hand" src="<?php echo base_url().$this->config->item('ea_delete');?>" align="absmiddle" border="0"
onClick="sendPost('hidform',
{'alumniId':<?php echo $row_ha->alumniId;?>,
'tab':<?php echo $tab;?>,
'seqId':<?php echo $row_ha->seqId;?>},
'<?php echo site_url($this->config->item('ea_folder').'info_alumni/process_deleteInfoAm_5');?>')" /></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr>
<td align="center" colspan="8"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td align="right">รวม <?php echo $i;?> รายการ</td>
</tr>
</table>
|