/home/banprang/domains/plai.go.th/public_html/coremain/header.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
include('manage_blog.php');
include(
'manage_popup.php');
include(
'function_scripts.php');
include(
'function_msg.php');
include(
'function_button.php');
include(
'function_sql_query.php');
include(
'function_web_manage.php');
include(
'function_form.php');
include(
'function_word_sencor.php');
//include("coremain/editor/fckeditor.php");
include("function_permission.php");
include(
"function_mail.php");
include(
"navigator.php"); 
include(
"mimemail.inc.php"); 
#NN#
include('main_ajax.php');

//print_r($_SESSION);

// Background 1
//ปรับความกว้างตามขนาดจอภาพ
?>
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td>
      <table width='<?= ($_SESSION['web_width'] + 10?>' border='0' align='center' cellpadding='0' cellspacing='0'>
        <tr>
          <td><?php include("$_SESSION[web_name]/header.php"); ?></td>
        </tr>
        <?php if($header_type != 'swf'){ ?>
        <tr>
          <td>
            <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='<?= $_SESSION['tb_head_bgcolor'?>'>
              <tr>
                <td width='100%' id='<?= $_SESSION['menu'?>' class="<?= $_SESSION['themes_'?>">
                  <ul class="menu_top" width="100%">
                    <li><a href='index.php'><h3>หน้าแรก</h3></a></li>
                    <li><a href='index.php?mod=project&path=project'><h3>ผลงานของเรา</h3></a></li>
                    <li><a href='index.php?mod=gallery&path=gallery'><h3>ประชาสัมพันธ์</h3></a></li>
                    <li><a href="index.php?mod=e_service&path=e_service"><h3>ร้องเรียน-ร้องทุกข์</h3></a></li>
                    <li><a href="index.php?mod=e_service1&path=e_service1"><h3>E-Service</h3></a></li>
                    <li><a href='index.php?mod=send_mail&path=contact'><h3>ส่งอีเมล์</h3></a></li>
                    <li><a href='index.php?mod=site_map&path=site_map'><h3>แผนที่เว็บ</h3></a></li>
                    <li><a href='index.php?mod=blog&path=blog&id_sub=0'><h3>ติดต่อเรา</h3></a></li>
                  </ul>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <?php ?>
<?php
// ============= Manage Header/Theme/Text Running ===================
// Status Package Module
  
$status_module=select_query("status_module","cms_status_module","id","33");
  if(
$_SESSION['admin_web']=="admin" && $status_module[0]==1){ ?>
        <tr>
          <td>
            <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='<?= $_SESSION['bg_textrun'// 2 ?>'>
              <tr>
                <td align=left width='100%'>
                  <img src='coremain/images/bullet2.gif'> <b><a href='index.php?mod=text_running&path=text_running'>จัดการ Text Running</a></b>
                  &nbsp;&nbsp;&nbsp;&nbsp;<img src='coremain/images/bullet2.gif' border=0> <b><a href='index.php?mod=manage_popup&path=popup'>&nbsp;จัดการ Popup</a></b>
                </td>
              </tr>
            </table>
          </td>
        </tr>
<?php }
//================ Text Running & Login ===============
?>
        <tr>
          <td>
            <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='<?= $_SESSION['tb_head_bgcolor'?>'>
              <tr>
                <td width='10%' align='left'>
                <?php if($_SESSION['show_theme']==|| $_SESSION['show_theme']==""){ ?>
                  &nbsp;&nbsp;<a href='index.php?show_theme=2'><img src='coremain/images/1.png' border='0' title='ซ่อน Flash'></a>
                <?php }else{ ?>
                  &nbsp;&nbsp;<a href='index.php?show_theme=1'><img src='coremain/images/2.png' border='0' title='แสดง Flash'></a>
                <?php 
                
?>
                </td>
       
                <td width='70%' align='center'>
                  <marquee class=text onmouseover=this.stop() onmouseout=this.start() scrollAmount=3 scrollDelay=100>
                    <?php $x=select_query("texts","cms_text_running","id","1",$condition=NULL); ?>
                    <?php echo $x[0]; ?>
                  </marquee>
                </td>


                <!-- ================ แสดงชื่อผู้เข้าสู่ระบบ ================ -->
                <?php $status_module=select_query("status_module","cms_status_module","id","10"); ?>
                <td width="20%" align='right' bgcolor=''><?php // 3 ?>
                <?php if($_SESSION["admin_web"]==""){ ?>
                  <a href='index.php?mod=login&path=login'><img src='coremain/images/login.gif' border='0'></a>
                <?php }else if(($status_module[0]==1) && $_SESSION["admin_web"]!=""){ ?>
                  ยินดีต้อนรับคุณ 
                  <a href='index.php?path=user&mod=edit_user&id_user=<?= $_SESSION['id_user_admin'?>'><img src='coremain/images/edit.gif' border='0' title='แก้ไขข้อมูล'></a> 
                  &nbsp; &nbsp; &nbsp;<font color='ff0000'><?= $_SESSION['name_post'?></font></a>
                  <a href='index.php?mod=logout&path=login'><img src='coremain/images/logout.gif' border='0'></a>
                <?php }else{ ?>
                  ยินดีต้อนรับคุณ 
                  <font color='ff0000'><?= $_SESSION['name_post'?></font>
                  <a href='index.php?mod=logout&path=login'><img src='coremain/images/logout.gif' border='0'></a>
                <?php ?>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<!-- The Modal -->
<div id="myModal" class="modal">
  <!-- Modal content -->
  <div class="modal-content">
    <span class="close">&times;</span>
  </div>
</div>

<div id="subModal" class="modal">
  <!-- Modal content -->
  <div class="modal-content modal-md">
    <span class="close">&times;</span>
  </div>
</div>


<script type='text/javascript' language="JavaScript">
  
  function goURLdel() {
    var blnLink
    blnLink = confirm("Click OK เพื่อยืนยันการลบข้อมูล?")
    if (!blnLink) { return false; }
    return true;
  }
  
  function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; 
    for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
      x.src=x.oSrc;
  }

  function MM_preloadImages() { //v3.0
    var d=document; if(d.images){
      if(!d.MM_p)
        d.MM_p=new Array();
      var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
      if(a[i].indexOf("#")!=0){
        d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
      }
    }
  }

  function MM_findObj(n, d) { //v4.01
    var p,i,x;  
    if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length){
      d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
    }
    if(!(x=d[n])&&d.all) x=d.all[n];
    for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
  }

  function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments;
    document.MM_sr=new Array;
    for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){
      document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
    }
  }
  
</script>