Viewing file:      v_calGrade.php (5.81 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 $rowStd = (isset($qu_std) && $qu_std!=NULL) ? $qu_std->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/processCalGrade", array("name" => "myform", "id" => "myform"));?>
             <table width="100%" border="0" cellspacing="1" cellpadding="1">
                 <tr>
                     <td colspan="4" align="center"><span class="h error">ประมวลผลเกรด</span></td>
                     <td></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
 <?php
         if(isset($err_msg)) {
 ?>
                 <tr>
                     <td height="22" colspan="4"></td>
                 </tr>
                 <tr>
                     <td colspan="4" align="center"><font size="2" color="<?php echo $font_color_err;?>"><?php echo $err_msg;?>
                     <?php echo anchor($this->config->item("rg_folder").'grade/searchCalGrade','คลิกที่นี่ย้อนกลับ');?>**</font></td>
                 </tr>
 <?php
         } else {
 ?>
                 <tr>
                     <td>
                     <table class="szone">
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">รหัสนักศึกษา</td>
                             <td width="35%">: <?php echo $rowStd->stdCode;?>
                             <input type="hidden" name="stdCode" id="stdCode" value="<?php echo $rowStd->stdCode;?>" />
                             <input type="hidden" name="stdId" id="stdId" value="<?php echo $rowStd->stdId;?>" /></td>
                             <td class="coltd_szone">ชื่อ-นามสกุล</td>
                             <td width="35%">: <?php echo $rowStd->prefixName.$rowStd->stdName.' '.$rowStd->stdSurname;?></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">หลักสูตร</td>
                             <td colspan="3">: <?php echo $rowStd->curName;?></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">ชั้นปี</td>
                             <td>: <?php echo $rowStd->syCode;?></td>
                             <td class="coltd_szone">ระดับการศึกษา</td>
                             <td>: <?php echo $rowStd->levelName;?></td>
                         </tr>
                     </table>
                     </td>
                 </tr>
                 
                 <tr>
                     <td><br /></tr>
                 </tr>
                 <tr>
                     <td height="22" colspan="4" align="center"><table width="100%" class="headCol">
                         <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                             <th rowspan="2" align="center">ที่</th>
                             <th width="15%" rowspan="2" align="center">ภาค/ปีการศึกษา</th>
                             <th colspan="3" align="center">SEM-CR.</th>
                             <th width="7%" rowspan="2" align="center">GPA</th>
                             <th colspan="3" align="center">CUM-CR.</th>
                             <th width="7%" rowspan="2" align="center">GPAX</th>
                             <th width="16%" rowspan="2" align="center">ประมวลผลรายภาค</th>
                         </tr>
                         <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                             <th width="7%" height="22" align="center">ลง</th>
                             <th width="7%" align="center">ผ่าน</th>
                             <th width="11%" align="center">คิดเกรด</th>
                             <th width="7%" align="center">ลง</th>
                             <th width="7%" align="center">ผ่าน</th>
                             <th width="11%" align="center">คิดเกรด</th>
                         </tr>
 <?php
             $i = 0;
             if(isset($rs_rd) && $rs_rd->num_rows()) {
                 foreach ($rs_rd->result() as $row) {
                         echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                             <td align="center" height="22"><font size="2"><?php echo $i+1;?></font></td>
                             <td align="center"><font size="2">
 <?php
                             $atts = array('width'      => '560',
                                           'height'     => '520',
                                           'scrollbars' => 'yes',
                                           'status'     => 'yes',
                                           'resizable'  => 'yes',
                                           'screenx'    => '0',
                                           'screeny'    => '0');
                             echo  anchor_popup($this->config->item("rg_folder")."popup/showRegistDetails/$row->rdStdId/$row->rdAcY/$row->rdTmId", $row->rdTmId.'/'.$row->rdAcY, $atts);
 ?>
                             </td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmCreditAttempt);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmCreditSatisfy);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmCreditPoint);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmGPA,2);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmSumCreditAttempt);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmSumCreditSatisfy);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmSumCreditPoint);?></font></td>
                             <td align="center"><font size="2"><?php echo number_format($row->ssmGPAX,2);?></font></td>
                             <td align="center">
                             <input type="button" name="process" id="process" value="ประมวลผล" onClick="sendPost('myform', {'acY':<?php echo $row->rdAcY;?>,'tmId':<?php echo $row->rdTmId;?>})" /></td>
                         </tr>
 <?php
                     $i++;
                 }
             } else {
 ?>
                         <tr>
                             <td colspan="11" align="center"><span class="error">** ไม่ปรากฏรายการลงทะเบียนในฐานข้อมูล **</span></td>
                         </tr>
 <?php
             }
 ?>
                     </table></td>
                 </tr>
 <?php
         }
 ?>
             </table><?php echo form_close();?></div>
         <br><span class="error"><b>หมายเหตุ : </b>นำเมาส์ไปคลิกที่ภาค/ปีการศึกษา เพื่อดูรายวิชาที่ลงทะเบียนเรียน</span></td>
     </tr>
 </table>
 <p align="center"><font size="2" color="<?php echo $font_color_err;?>"><b><?php echo isset($success_msg) ? $success_msg : "";?></b></font></p>
  |