Viewing file:      v_showDetailNews.php (3.18 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 $row_nw = (isset($qu_nw) && $qu_nw!=NULL) ? $qu_nw->row() : NULL;
 ?>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
         <td><fieldset>
             <legend align="center"><span class="h error">รายละเอียดข้อมูลข่าวประกาศ</span></legend>
             <label><div align="center"><br>
             <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
                 <tr>
                     <td><table class="szone">
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">รหัสเรียกข่าว</td>
                             <td><?php echo setValue('nwId',$row_nw);?></font></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">ระบบ</td>
                             <td><?php echo setValue('StNameT',$row_nw);?></font></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">หัวเรื่องข่าวประกาศ</td>
                             <td><?php echo setValue('nwTitle',$row_nw);?></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">วันที่เริ่ม</td>
                             <td><?php echo (setValue('nwFrDate',$row_nw)=='0000-00-00') ? "ไม่กำหนดเวลา" : fullDate2(setValue('nwFrDate',$row_nw));?></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">วันที่สิ้นสุด</td>
                             <td><?php echo (setValue('nwToDate',$row_nw)=='0000-00-00') ? "ไม่กำหนดเวลา" : fullDate2(setValue('nwToDate',$row_nw));?></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">ประกาศโดย</td>
                             <td><?php echo setValue('nwAnnoucedBy',$row_nw);?></font></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">รูปภาพ</td>
                             <td>
 <?php
                             if(setValue('nwPicture',$row_nw)!='') {
 ?>
                             <img src="<?php echo base_url().$this->config->item('rg_pictureNews').setValue('nwPicture',$row_nw);?>" />
 <?php
                             } else {
                                 echo "ไม่กำหนดรูปภาพ";
                             }
 ?>
                             </td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">รายละเอียดข่าว</td>
                             <td><?php echo nl2br(htmlspecialchars(setValue('nwDetail',$row_nw)));?></font></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td class="coltd_szone">เอกสารประกอบ</td>
                             <td>
 <?php
                         if(isset($rs_nwu) && $rs_nwu->num_rows()) {
                             foreach($rs_nwu->result() as $row) {
                                 echo anchor(base_url().$this->config->item('rg_docNews').$row->nwuPath, $row->nwuFileName);
                                 echo "<br />";
                             }
                         } else {
                             echo "-";
                         }
 ?>
                             </td>
                         </tr>
                     </table></td>
                 </tr>
                 <tr>
                     <td align="center">
                     <input type="button" name="close" value="ปิดหน้าต่าง" onClick="javascript:window.close();"></td>
                 </tr>
             </table></div></label>
         </fieldset></td>
     </tr>
 </table>
  |