Viewing file:      v_showCurriculum.php (4.42 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<table width="95%" align="center">
     <tr>
         <td><div align="center">
             <?php echo form_open($this->config->item("rg_folder")."curriculum/cur_input");?>
             <table width="100%">
                 <tr >
                     <td align="right">
 <?php
                     $lnk = "<input type=\"submit\" name=\"add\" value=\"เพิ่มหลักสูตร\" />";
                     echo $oCRUD->CRUD($lnk, 'C');
 ?>
                     </td>
                 </tr>
                 <tr>
                     <td><table class="headCol">
                         <tr>
                             <th class="seqCol">ลำดับที่</th>
                             <th>ชื่อหลักสูตร</th>
                             <th class="groupCol">สถานะ</th>
                             <th class="editCol">แก้ไข</th>
                             <th class="deleteCol">ลบ</th>
                         </tr>
 <?php
                         if($rs_cur->num_rows()) {
                             $i = 0;
                             foreach($rs_cur->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 class="indent"><?php 
                             $lnk = "<span class=\"hand\" title=\"".$row->curDescription."\" onClick=\"sendPost('hidform', {'id':$row->curId}, '".site_url($this->config->item("rg_folder")."curriculum/cur_detail")."',{'width':500,'height':600})\">".explodeSquare($row->curName)."</span>";
                             echo $lnk;
                             ?></td>
                             <td align="center"><?php echo $row->curStatus;?></td>
                             <td align="center">
 <?php
                             $lnk = "<span class=\"hand\" onClick=\"sendPost('hidform2', {'curId':$row->curId}, '".site_url($this->config->item("rg_folder")."curriculum/cur_input")."')\"><img src=\"".base_url().$this->config->item("rg_edit")."\" width=\"23\" height=\"19\" align=\"absmiddle\" border=\"0\" /></span>";
                             echo $oCRUD->CRUD($lnk, 'U');
 ?>
                             </td>
                             <td align="center">
 <?php
                         if(isset($cp[$row->curId]) and $cp[$row->curId]=="Y"){
                             $lnk = "<img src=\"".base_url().$this->config->item("rg_deleted")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" />";
                             echo $oCRUD->CRUD($lnk, 'D');
                         }else{
                             $lnk = "<span class=\"hand\" onClick=\"confirmDel2({'id':$row->curId},'hidform3', '".site_url($this->config->item("rg_folder")."curpbri/cur_delete")."','คุณต้องการลบใช่หรือไม่ หากยืนยันข้อมูลในโครงสร้างหลักสูตร และโปรแกรมการศึกษาจะถูกลบไปด้วย!! ')\"><img src=\"".base_url().$this->config->item("rg_delete")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" /></span>";
                             echo $oCRUD->CRUD($lnk, 'D');
                         }                        
 ?>
                             </td>
                         </tr>
 <?php
                                 $i++;
                             }
                         }
                         else {
 ?>
                         <tr>
                             <td colspan="5" height="22" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                         </tr>
 <?php
                         }
 ?>
                     </table></td>
                 </tr>
                 <tr>
                     <td align="right">รวม <?php echo $rs_cur->num_rows();?> รายการ</td>
                 </tr>
             </table>
             <?php echo form_close();?></div></td>
     </tr>
     <tr>
         <td><table class="mark">
             <tr>
                 <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>
                 <td><span class="error">ใช้เมาส์คลิกที่ชื่อหลักสูตรเพื่อดูรายละเอียดของหลักสูตร</span></td>
             </tr>
             <tr>
                 <td class="coltd_mark"></td>
                 <td><span class="error">ชี้เมาส์ที่ชื่อหลักสูตรเพื่อดูสาระสำคัญของหลักสูตร</span></td>
             </tr>
             <tr>
                 <td class="coltd_mark"></td>
                 <td><span class="error">Y = ใช้อยู่, N = เลิกใช้แล้ว</span></td>
             </tr>
             <tr>
                 <td class="coltd_mark"></td>
                 <td><span class="error"><img src="<?php echo base_url().$this->config->item("rg_deleted");?>" /> = ยืนยันการเผยแพร่หลักสูตรแล้ว</span></td>
             </tr>
             <tr>
                 <td class="coltd_mark"></td>
                 <td><span class="error"><img src="<?php echo base_url().$this->config->item("rg_delete");?>" /> = ยังไม่ได้ยืนยันการเผยแพร่หลักสูตร</span></td>
             </tr>
         </table></td>
     </tr>
 </table>
  |