Viewing file: v_addCurriculumConfig.php (4.99 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_cc = isset($qu_cc) ? $qu_cc->row() : NULL; ?> <table width="100%" align="center"> <tr> <td> <div align="center"> <table width="100%" border="0"> <tr> <td colspan="2" align="center"><font class="h error">ข้อมูลประเภทบัณฑิตผู้สำเร็จการศึกษาของ สบช.</font></td> </tr> <tr> <td colspan="2" align="right"> <?php echo anchor_popup($this->config->item("rg_folder")."bdpbri/cc_print", "<img src=\"".base_url().$this->config->item("rg_print")."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />"); ?> </td> </tr> <tr> <td colspan="2"><?php echo form_open($this->config->item("rg_folder")."bdpbri/cc_insert_update", array("name" => "myform", "id" => "myform"));?> <table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">รหัสประเภท</td> <td> <?php if (isset($qu_cc)) { echo getval('ccCode', $row_cc, $ccCode); ?> <input type="hidden" name="ccCode" id="ccCode" value="<?php echo getval('ccCode', $row_cc, $ccCode);?>" /> <?php } else { ?> <input type="text" name="ccCode" id="ccCode" value="<?php echo set_value('ccCode',getval('ccCode', $row_cc, $ccCode));?>" size="3" maxlength="2" class="required-int" /> <span class="error">* <?php echo form_error("ccCode");?></span> <?php } ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ชื่อประเภท</td> <td><input type="text" name="ccName" id="ccName" value="<?php echo set_value('ccName',setValue('ccName',$row_cc));?>" size="70" class="required" /> <span class="error">* <?php echo form_error("ccName");?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">สถานะการใช้</td> <td><input type="checkbox" name="ccStatus" id="ccStatus" value="N" <?php echo (setValue('ccStatus',$row_cc)=='N') ? 'checked' : '';?> size="70" /> เลิกใช้งานแล้ว</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" id="clear" value="เคลียร์ข้อมูล" /> <input type="hidden" name="ccId" id="ccId" value="<?php echo setValue('ccId',$row_cc);?>" /></td> </tr> </table><?php echo form_close();?></td> </tr> <tr> <td colspan="2"><table class="headCol"> <tr> <th class="seqCol"><font size="2" color="<?php echo $font_color_table;?>">ลำดับที่</font></th> <th class="amtCol"><font size="2" color="<?php echo $font_color_table;?>">รหัสประเภท</font></th> <th><font size="2" color="<?php echo $font_color_table;?>">ชื่อประเภท</font></th> <th class="amtCol"><font size="2" color="<?php echo $font_color_table;?>">สถานะการใช้</font></th> <th class="editCol"><font size="2" color="<?php echo $font_color_table;?>">แก้ไข</font></th> <th class="deleteCol"><font size="2" color="<?php echo $font_color_table;?>">ลบ</font></th> </tr> <?php $i = 0; if(isset($rs_cc) && $rs_cc->num_rows()) { foreach($rs_cc->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 align="center"><font size="2"><?php echo $row->ccCode;?></font></td> <td class="indent"><font size="2"><?php echo $row->ccName;?></font></td> <td align="center"><font size="2"><?php echo $row->ccStatus;?></font></td> <td align="center"><span class="hand" onClick="sendPost('hidform', {'ccId':<?php echo $row->ccId;?>}, 'cc_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");?>" align="absmiddle" border="0" class="hand" onClick="confirmDel2( {'ccId':<?php echo $row->ccId;?>}, 'm_form1', '<?php echo site_url($this->config->item('rg_folder').'bdpbri/cc_delete');?>')" /></td> </tr> <?php $i++; } } else { ?> <tr> <td colspan="6" height="22" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></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>
|