/home/banprang/domains/plai.go.th/public_html/coremain/module/boss_message/boss_msg_view.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
import_request_variables
('pG''p_');
if(
$p_id_message!="")                        {         $id_message=trim($p_id_message);        }
if(
$p_id_top!="")                            {         $id_top=trim($p_id_top);                }
if(
$p_id_message!="")                        {         $id_message=trim($p_id_message);        }
if(
$p_status!="")                            {         $status=trim($p_status);                }
if(
$p_del!="")                                {          $del=trim($p_del);                        }
if(
$p_id_count!="")                            {         $id_count=trim($p_id_count);            }


if (
$id_message == "") { // หากไม่มีตำแหน่งกำหนดมา ให้เอาตัวล่าสุดที่เพิ่งใส่
  
$pos select_query("id_message""cms_boss_message""id_top"$id_top" order by id_message DESC LIMIT 1");
  
$id_message $pos[0];
}
$boss_msg select_query_object("*""cms_boss_message""id_top"$id_top" and id_message = $id_message");

$navig['boss_msg_view'] = "รายละเอียดสาสน์";
navigator($navig);
echo 
"<br/>";
bar_header($boss_msg->topic); // Bar_Header
fieldset_top($boss_msg->topic);

if (
$_SESSION['admin_web'] == "admin" || id_top_permission($id_top)) {

  echo 
"<br/>";
  echo 
"<center>";
  
/*
    if($boss_msg->status==1)
    box_hide("index.php?mod=boss_msg_view&path=boss_message&id_top=$id_top&id_message=$id_message&status=0");
    else
    box_show("index.php?mod=boss_msg_view&path=boss_message&id_top=$id_top&id_message=$id_message&status=1");
   */
  
box_update("index.php?mod=boss_message_edit&path=boss_message&id_message=$boss_msg->id_message&message_name=$boss_msg->topic&id_top=$id_top");
  echo 
" แก้ไขข้อมูล &nbsp;";


  
box_delete("index.php?mod=boss_msg_del&path=boss_message&id_top=$id_top&id_message=$id_message&id_message=$boss_msg->id_message""del_popup");
  echo 
" &nbsp; &nbsp; &nbsp;ลบข้อมูล &nbsp;&nbsp;";
  echo 
"</center>";
}
?>


<table width="98%" border="0" align="center" cellpadding="1" cellspacing="3">
  <tr>
    <td align='center'>
      <?php echo "<br><b>$boss_msg->topic</b><br><br>";
      
?>

    </td>
  </tr>
  <tr>     
    <td align='center'>
      <img src="<?php echo $_SESSION['web_name'] . "/module_boss_message/" $boss_msg->picture?>">
    </td>
  </tr>
  <tr>
    <td align="left">
      <?php echo $boss_msg->message;?>
    </td> 
  </tr>

  <tr>
    <td align='left'>
      <?php echo $boss_msg->pic_description?>
    </td>
  </tr>
  <tr>
    <td align='left'>&nbsp;     
    </td>
  </tr>
  <tr>
    <td align='right'>
      ผู้ประกาศ :  <?php echo $boss_msg->owner?><br>
      ประกาศวันที่ : <?php echo $boss_msg->date_create?>
    </td>
  </tr>

</table>
<?php


fieldset_down
();
?>
<script language="javascript">
    function submit(){
        document.edit_linkpic.submit();
    }
</script>