Viewing file:      v_showMedal.php (4.31 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<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")."graduate4/processMedal", array("name" => "myform", "id" => "myform"));?>
             <table class="szone">
                 <tr>
                     <td align="center" colspan="2"><span class="h error">ประมวลผลนักศึกษาที่จะได้รับเหรียญรางวัล</span></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">หลักสูตร</td>
                     <td><?php echo $qu_cur->row()->curName;?>
                     <input type="hidden" name="curId" id="curId" value="<?php echo $qu_cur->row()->curId;?>" /></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">ปีการศึกษาที่เข้า</td>
                     <td><?php echo $adY;?>
                     <input type="hidden" name="adY" id="adY" value="<?php echo $adY;?>"></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr>
                     <td colspan="2"><table class="headCol">
                         <tr>
                             <th>ลำดับที่</th>
                             <th>รหัสนักศึกษา</th>
                             <th>ชื่อ-นามสกุลนักศึกษา</th>
                             <th>สถานะนักศึกษา</th>
                             <th>GPA</th>
                             <th>คะแนน<br>ความประพฤติ</th>
                             <th>เหรียญรางวัล</th>
                             <th>ยกเลิก</th>
                         </tr>
 <?php                
             $i = 0;
             if($rs_std && $rs_std->num_rows()) {
                 foreach($rs_std->result() as $row) {
                             echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                             <td align="center"><?php echo $i+1;?></td>
                             <td align="center"><?php echo $row->stdCode;?>
                             <input type="hidden" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="<?php echo $row->stdId;?>"></td>
                             <td class="indent"><?php echo $row->prefixName.$row->stdName.' '.$row->stdSurname;?></td>
                             <td align="center"><font size="2" color="<?php if($row->stdSstId==3 || $row->stdSstId==4) echo $font_color_err;?>"><?php echo $row->sstName;?></font></td>
                             <td align="center"><?php echo number_format($row->stdGPA,2);?></td>
                             <td align="center"><?php echo $row->stdTotalPoint;?></td>
                             <td align="center">
 <?php
                             if($row->stdSstId==1 || $row->stdSstId==3 || $row->stdSstId==4) {
 ?>
                             <span><input type="radio" name="medal<?php echo $i;?>" id="medal<?php echo $i;?>" value="1" <?php if(setValue('stdMedal',$row)=='1') echo 'checked';?>> เหรียญทอง</span>
                             <span><input type="radio" name="medal<?php echo $i;?>" id="medal<?php echo $i;?>" value="2" <?php if(setValue('stdMedal',$row)=='2') echo 'checked';?> /> เหรียญเงิน</span>
 <?php
                             }
 ?>
                             </td>
                             <td align="center">
 <?php
                             if($row->stdMedal==1 || $row->stdMedal==2) {
 ?>
                             <span onClick="confirmDel2({'curId':<?php echo $qu_cur->row()->curId;?>,
                              'stdTmIdAdmit':<?php echo $adY;?>,
                              'stdId':<?php echo $row->stdId;?>}, 'myform','<?php echo site_url($this->config->item('rg_folder').'graduate4/processMedal');?>')" />
                              <img src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" width="16" height="19" class="hand" /></span>
 <?php
                             } else {
 ?>
                             <font size="2">-</font>
 <?php
                             }
 ?>
                             </td>
                         </tr>
 <?php
                 $i++;
             }
         } else {
 ?>
                         <tr>    
                             <td colspan="8" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                         </tr>
 <?php
         }
 ?>                        
                     </table></td>
                 </tr>
                 <tr>    
                     <td colspan="2" align="right">รวม <?php echo $i;?> รายการ</td>
                 </tr>
                 <tr>
                     <td colspan="2" align="center"><br>
                     <input type="submit" name="edit" id="edit" value="บันทึก" />
                     <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" /> 
                     <input type="hidden" name="cnt" id="cnt" value="<?php echo $i-1;?>"></td>
                 </tr>                
             </table><?php echo form_close();?></div>
         <br></td>
     </tr>
 </table>
  |