Viewing file:      v_showCourseOpenFor.php (3.66 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"><table width="100%">                 <tr>                     <td align="center"><span class="h" style="color:<?php echo $font_color_err;?>">กำหนดรายวิชาที่เปิดสอน (เรียนรวมหลายหลักสูตร)</span></td>                 </tr>                 <tr>                     <td><br /></td>                 </tr>                 <tr>                     <td><span><b>ปีการศึกษา</b> <?php                     $js = "id=\"acY\" onChange=\"sendPost('hidform', {'acY':this.value,'tmId':".$tmId."}, 'cof_show')\"";                     echo form_dropdown('acY', $rs_tmc, $acY, $js); ?>                     <b> ภาคการศึกษา</b></span> <?php                     $js = "id=\"acY\" onChange=\"sendPost('hidform', {'acY':".$acY.",'tmId':this.value}, 'cof_show')\"";                     echo form_dropdown('tmId', $rs_tm, $tmId, $js); ?>                     </td>                 </tr>                 <tr>                     <td><table class="headCol">                         <tr>                             <th class="groupCol"><span>รหัสวิชา</span></th>                             <th><span>ชื่อวิชา</span></th>                             <th class="editCol"><span>กลุ่ม</span></th>                             <th class="groupCol"><span>หน่วยกิต</span></th>                             <th class="stdCodeCol"><span>จำนวนที่นั่ง<br>ที่เปิดรับ</span></th>                             <th class="stdCodeCol"><span>เลือกหลักสูตร</span></th>                         </tr> <?php                 $num_rows = count($rs);                 if ($num_rows) {                     foreach ($rs as $key => $val) {                         $row_co = $rs[$key]['qu_co']->row();
                          if ($rs[$key]['rs_cof']->num_rows())                             $image = base_url().$this->config->item('rg_edit');                         else                             $image = base_url().$this->config->item('rg_edit_yell');
                          echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?>                             <td class="indent"><span><?php echo getval('crsCode', $row_co);?></span></td>                             <td class="indent"><span><?php echo getval('crsName', $row_co);?></span></td>                             <td align="center"><span><?php echo getval('coSection', $row_co);?></span></td>                             <td align="center"><span><?php echo getval('crsUnit', $row_co);?></span></td>                             <td align="center"><span><?php echo getval('coNumSeatOpen', $row_co);?></span></td>                             <td align="center"><span class="hand" onClick="sendPost('hidform', {'coId':<?php echo getval('coId', $row_co);?>}, 'cof_input')"><img src="<?php echo $image;?>" width="23" height="19" align="absmiddle" border="0" /></span></td>                         </tr> <?php                     }                 } else { ?>                         <tr>                             <td colspan="6" align="center"><span style="color:<?php echo $font_color_err;?>">** ไม่ปรากฏรายวิชาที่เปิดสอนในฐานข้อมูล **</span></td>                         </tr> <?php                 } ?>                     </table></td>                 </tr>             </table></div>         </td>     </tr>     <tr>         <td height="22" colspan="6" align="right">รวม <?php echo $num_rows;?> รายการ</td>     </tr>     <tr>         <td><table class="mark">             <tr>                 <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>                 <td><img src="<?php echo base_url().$this->config->item('rg_edit_yell');?>" width="23" height="19" align="absmiddle" border="0">                 <span style="color:<?php echo $font_color_err;?>"> ยังไม่เลือกหลักสูตร</span></td>             </tr>             <tr>                 <td class="coltd_mark"></td>                 <td><img src="<?php echo base_url().$this->config->item('rg_edit');?>" width="23" height="19" align="absmiddle" border="0">                 <span style="color:<?php echo $font_color_err;?>"> เลือกหลักสูตรแล้ว</span></td>             </tr>         </table></td>     </tr> </table>
  |