Viewing file: v_editGrd.php (5.41 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_co = (isset($qu_co) && $qu_co!=NULL) ? $qu_co->row() : NULL;
$row_tm = (isset($qu_tm) && $qu_tm!=NULL) ? $qu_tm->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<?php echo form_open($this->config->item("rg_folder")."grade/processEditGrd", array("name" => "myform", "id" => "myform"));?>
<table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
<tr>
<td align="center" class="h error">บันทึกแก้เกรด</td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">รายวิชา</td>
<td width="350"><font size="2"><?php echo setValue('crsCode',$row_co).' '.explodeSquare(setValue('crsName',$row_co));?></font>
<input type="hidden" name="coId" id="coId" value="<?php echo setValue('coId',$row_co);?>"></td>
<td class="coltd_szone">กลุ่ม</td>
<td><font size="2"><?php echo setValue('coSection',$row_co);?></font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">หน่วยกิต</td>
<td><font size="2"><?php echo setValue('crsUnit',$row_co);?></font></td>
<td class="coltd_szone">ภาค/ปีการศึกษา</td>
<td><font size="2"><?php echo setValue('tmCode',$row_tm).'/'.setValue('coAcY',$row_co);?></font>
<input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>">
<input type="hidden" name="acY" id="acY" value="<?php echo setValue('coAcY',$row_co);?>"></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">อาจารย์ผู้สอน</td>
<td colspan="3"><font size="2"><?php echo $qu_tt->row()->prsName;?></font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">เลขที่คำสั่ง</td>
<td colspan="3"><font size="2"></font>
<input type="text" name="docNo" id="docNo" value="<?php echo set_value('docNo');?>" size="15">
<font color="<?php echo $font_color_err;?>" size="2">*</font>
<br /><?php echo form_error('docNo');?></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="headCol">
<tr>
<th class="editCol"><font size="2" color="<?php echo $font_color_table;?>">เลือก</font></th>
<th class="stdCodeCol"><font size="2" color="<?php echo $font_color_table;?>">รหัสนักศึกษา</font></th>
<th><font color="<?php echo $font_color_table;?>" size="2">ชื่อ-นามสกุลนักศึกษา</font></th>
<th class="amtCol"><font size="2" color="<?php echo $font_color_table;?>">เกรด</font></th>
<th class="stdCodeCol"><font size="2" color="<?php echo $font_color_table;?>">เลขที่คำสั่ง</font></th>
<th class="stdCodeCol"><font size="2" color="<?php echo $font_color_table;?>">ผู้ปรับปรุงล่าสุด</font></th>
</tr>
<?php
$i = 0;
if(isset($arr) && count($arr)) {
foreach($arr as $key => $val) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center"><input type="checkbox" name="chk<?php echo $i;?>" id="chk<?php echo $i;?>" value="Y" />
<input type="hidden" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="<?php echo $arr[$key]['rd']->stdId;?>" /></td>
<td align="center"><font size="2"><?php echo $arr[$key]['rd']->stdCode;?></font></td>
<td class="indent"><font size="2"><?php echo $arr[$key]['rd']->prefixName.$arr[$key]['rd']->stdName.' '.$arr[$key]['rd']->stdSurname;?></font></td>
<td align="center">
<?php
echo form_dropdown('grdId'.$i, $arr[$key]['grd'], setValue('rdGrade',$arr[$key]['rd']));
?>
</td>
<td class="indent"><font size="2" ><?php echo $arr[$key]['rd']->rdDocNo;?></font></td>
<td class="indent"><font size="2" ><?php echo $arr[$key]['rd']->rdUpdateUserId;?></font></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr>
<td align="center" colspan="6"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายชื่อนักศึกษาที่ลงทะเบียนเรียน **</font></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td align="right" height="22"><font size="2" >รวม <?php echo $i;?> รายการ</font></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td align="center"><input type="submit" name="edit" value="บันทึกเกรด" <?php if($i == 0) echo 'disabled';?>>
<input type="reset" name="clear" value="เคลียร์ข้อมูล">
<input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '<?php echo site_url($this->config->item('rg_folder')."grade/showCrsEditGrd");?>' " />
<input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>"></td>
</tr>
</table><?php echo form_error();?></div>
</td>
</tr>
<tr>
<td><br /></td>
</tr>
</table>
|