Viewing file: v_addEduDegree.php (5.81 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_edg = (isset($qu_edg) && ($qu_edg!=NULL)) ? $qu_edg->row() : NULL; ?> <table width="100%" align="center"> <tr> <td> <div align="center"> <table width="100%"> <tr> <td align="center"><font class="h error">ข้อมูลวุฒิการศึกษา</font></td> </tr> <tr> <td align="right"> <?php $att_h = array( 'width' => '600', 'height' => '300', 'scrollbars' => 'yes', 'resizable' => 'yes' ); //echo anchor_popup($this->config->item("rg_folder")."help/show/h001", "<img src=\"".base_url().$this->config->item("rg_help")."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" title=\"ช่วยเหลือ\" />", $att_h); echo anchor_popup($this->config->item("rg_folder")."bdpbri/edg_print", "<img src=\"".base_url().$this->config->item("rg_print")."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" title=\"พิมพ์\"/>"); ?> </td> </tr> <tr> <td><?php echo form_open($this->config->item("rg_folder")."bdpbri/edg_insert_update", array("name" => "myform", "id" => "myform"));?> <table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone2">ชื่อวุฒิการศึกษา (ไทย)</font></td> <td ><input type="text" name="edgName" id="edgName" value="<?php echo setValue('edgName',$row_edg);?>" size="65" class="required-thai" /> <span class="error">* <?php echo form_error("edgName");?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone2">ชื่อวุฒิการศึกษา (อังกฤษ)</font></td> <td><input type="text" name="edgNameE" id="edgNameE" value="<?php echo setValue('edgNameE',$row_edg);?>" size="65" class="required-eng" /> <span class="error">* <?php echo form_error("edgNameE");?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone2">ชื่อย่อวุฒิ (ไทย)</font></td> <td><input type="text" name="edgAbbr" id="edgAbbr" value="<?php echo setValue('edgAbbr',$row_edg);?>" size="40" class="required-thai" /> <span class="error">* <?php echo form_error("edgAbbr");?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone2">ชื่อย่อวุฒิ (อังกฤษ)</font></td> <td><input type="text" name="edgAbbrE" id="edgAbbrE" value="<?php echo setValue('edgAbbrE',$row_edg);?>" size="40" class="required-eng" /> <span class="error">* <?php echo form_error("edgAbbrE");?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2" align="center"> <input type="submit" name="add" id="add" value="บันทึก" /> <input type="reset" name="clear" value="เคลียร์ข้อมูล" /> <input type="hidden" name="edgId" id="edgId" value="<?php echo setValue('edgId',$row_edg);?>" /></td> </tr> </table><?php echo form_close();?></td> </tr> <?php echo form_open($this->config->item("rg_folder")."bdpbri/edg_search");?> <tr> <td align="right"> <font size="2"><b>ชื่อวุฒิการศึกษา</b></font> <input type="text" name="edgNameSearch" value="<?php echo set_value('edgNameSearch','');?>" /> <input type="submit" name="search" value="ค้นหา" /> <br /><?php echo form_error("edgNameSearch");?></td> </tr><?php echo form_close();?> <tr> <td><table class="headCol"> <tr> <th class="seqCol"><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></th> <th><font color="<?php echo $font_color_table;?>" size="2"><b>ชื่อวุฒิการศึกษา</b></font></th> <th class="editCol"><font color="<?php echo $font_color_table;?>" size="2"><b>แก้ไข</b></font></th> <th class="deleteCol"><font size="2" color="<?php echo $font_color_table;?>"><b>ลบ</b></font></td> </tr> <?php $i = 0; if(isset($rs_edg) && $rs_edg->num_rows()) { foreach($rs_edg->result() as $row) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?> <td align="center"><font size="2"><?php echo $i+1;?></font></td> <td class="indent"><font size="2"> <span class="hand" onClick="sendPost('hidform', {'edgId':<?php echo $row->edgId;?>}, '<?php echo site_url($this->config->item('rg_folder').'bdpbri/edg_detail');?>',{'width':400,'height':400})" /><?php echo explodeSquare($row->edgName);?></span> <td align="center"><span class="hand" onClick="sendPost('myform', {'edgId':<?php echo $row->edgId;?>}, 'edg_input')"><img src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0" /></span></td> <td align="center"> <img src="<?php echo base_url().$this->config->item("rg_delete");?>" class="hand" onClick="confirmDel2( {'edgId':<?php echo $row->edgId;?>}, 'm_form1', '<?php echo site_url($this->config->item('rg_folder').'bdpbri/edg_delete');?>')" /></td> </tr> <?php $i++; } } else { ?> <tr> <td colspan="4" height="22" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</div></td> </tr> <?php } ?> </table></td> </tr> <tr> <td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td> </tr> </table></div> <div class="error"><strong>หมายเหตุ : </strong>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</div> </td> </tr> </table>
|