Viewing file:      v_g_showGDSt.php (3.3 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 $row_cfg = (isset($qu_cfg) && $qu_cfg!=NULL) ? $qu_cfg->row() : NULL;
 $row_cur = isset($qu_cur) ? $qu_cur->row() : NULL;
 $row_tm = isset($qu_tm) ? $qu_tm->row() : NULL;
 ?>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
         <td>
             <div align="center"><br /><span class="h" style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>">รายชื่อผู้สำเร็จการศึกษา</span>
             <table class="szone">
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                     <td class="coltd_szone"><span>ชื่อหลักสูตร</span></td>
                     <td><span><?php echo explodeSquare(getval('curName', $row_cur));?></span></td>
                 </tr>
                 <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                     <td class="coltd_szone"><span>ปีการศึกษาที่จบ</span></td>
                     <td><span><?php echo $stdGraduateY;?></span></td>
                 </tr>
                 <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                     <td class="coltd_szone"><span>ภาคการศึกษา</span></td>
                     <td><span><?php echo getval('tmCode', $row_tm);?></span></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr>
                     <td colspan="2"><table class="headCol">
                         <tr>
                             <th class="seqCol"><span>ลำดับที่</span></th>
                             <th class="stdCodeCol"><span>รหัสประจำตัว</span></th>
                             <th><span>ชื่อ-นามสกุล</span></th>
                             <th class="hourCol"><span>เกียรตินิยม</span></th>
                             <th class="hourCol"><span>วันจบการศึกษา</span></th>
                             <th class="stdCodeCol"><span>สถานะ</span></th>
                         </tr>
 <?php
                         $i = 0;
                         $num_rows = count($rs);
                         if ($num_rows) {
                             foreach ($rs as $key => $val) {
                                 $row_std = $rs[$key]['qu_std']->row();
                                 echo "<tr onmouseover=\"bgColor='".setValue('cfgBgClSwapTr',$row_cfg)."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                             <td class="seqCol" align="center"><span><?php echo $i+1;?></span></td>
                             <td align="center"><span><?php echo $row_std->stdCode;?></span></td>
                             <td class="indent"><span><?php echo $row_std->prefixName.$row_std->stdName.' '.$row_std->stdSurname;?></span></td>
                             <td align="center"><span><?php echo $rs[$key]['honor'];?></span></td>
                             <td align="center"><span><?php echo fullDate(splitDateDb2($row_std->stdGraduateDate));?></span></td>
                             <td align="center"><span><?php echo $row_std->sstName;?></span></td>
                         </tr>
 <?php
                                 $i++;
                             }
                         } else {
 ?>
                         <tr>
                             <td colspan="6" align="center"><span style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>">** ไม่ปรากฏรายชื่อผู้สำเร็จการศึกษา **</span></td>
                         </tr>
 <?php
                         }
 ?>
                     </table></td>
                 </tr>
                 <tr>
                     <td colspan="2" align="right"><span>รวม <?php echo $num_rows;?> รายการ</span></td>
                 </tr>
                 <tr>
                     <td><input type="submit" name="back" id="back" value="ย้อนกลับ" onClick='javascript:history.back()' /></td>
                 </tr>
             </table></div>
         <br></td>
     </tr>
 </table>
  |