Viewing file:      v_showRealStdAd.php (2.78 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 ini_set("memory_limit", $this->config->item('rg_memory_limit'));
 set_time_limit(0);
 ?>
 <table width="100%">
 <?php echo form_open($this->config->item("rg_folder")."import/processAddRealStdAd", array("name" => "myform", "id" => "myform"));?>
     <tr>
         <td align="center"><span class="h error">นำเข้านักเรียนที่มีสิทธิ์เข้าศึกษาจากระบบ Admision</span></td>
     </tr>
     <tr>
         <td><br /></td>
     </tr>
     <tr>
         <td><table class="headCol">
             <tr>
                 <th colspan="6">รายชื่อนักเรียนที่มีสิทธิ์เข้าศึกษาจากระบบ Admission ปีการศึกษา <?php echo $acY_R;?><br />
                 <?php echo $cfgName;?></th>
             </tr>
             <tr>
                 <th class="seqCol">ลำดับที่</th>
                 <th>ชื่อ - นามสกุล</th>
                 <th>โควตา</th>
                 <th>หลักสูตรจากระบบ Admission</th>
                 <th class="amtCol">สถานะเข้าศึกษา</th>
                 <th class="amtCol">รอบการรับสมัคร</th>
             </tr>
 <?php
 $i = 0;
 if(isset($std)) {
     foreach($std as $key => $val) {
         if($val->app_idcard) {            // ตัดหัวท้ายออก
             $app_result_status = (strval($val->app_result_status)=='Y') ? 'เข้าศึกษา' : 'สละสิทธิ์';
             $err = (strval($val->app_result_status)=='Y') ? '' : 'error';;
             echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                 <td align="center"><span class="<?php echo $err;?>"><?php echo $i+1;?></span></td>
                 <td class="indent"><span class="<?php echo $err;?>"><?php echo strval($val->pf_name.$val->app_name.' '.$val->app_lname);?></span></td>
                 <td class="indent"><span class="<?php echo $err;?>"><?php echo strval($val->qt_name);?></span></td>
                 <td class="indent"><span class="<?php echo $err;?>"><?php echo strval($val->crs_name);?></span></td>
                 <td align="center"><span class="<?php echo $err;?>"><?php echo $app_result_status;?></span></td>
                 <td align="center"><span class="<?php echo $err;?>"><?php echo strval($val->at_name);?></span></td>
             </tr>
 <?php
             $i++;
         }
     }
 }
 ?>
         </table></td>
     </tr>
     <tr>
         <td align="right">รวม <?php echo $i;?> รายการ</td>
     </tr>
     <tr>
         <td align="center"><br />
         <input type="submit" name="add" value="ยืนยันการนำเข้านักเรียนที่มีสิทธิ์เข้าศึกษาจากระบบ Admission" <?php echo ($i==0) ? 'disabled' : '';?> />
         <input type="hidden" name="acY_R" id="acY_R" value="<?php echo $acY_R;?>" /></td>
     </tr>
 <?php echo form_close();?>
 </table>
  |