/home/banprang/domains/plai.go.th/public_html/coremain/module/theme/manage_theme.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
<?php
// permssion
if($_SESSION[admin_web]!="admin"){    
    
permission_fail();            
}

$navig['manage_user']="เปลี่ยนหน้ากาก";
navigator($navig);
echo 
"<br>";
bar_header("เปลี่ยนหน้ากาก"); // Bar_Header
fieldset_top("เปลี่ยนหน้ากาก");


include(
"function_box.php");

?>

<form name="form1" method="post" action="index.php?mod=manage_theme&path=theme">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align=center>


<?php 
$selThemes 
"SELECT * FROM cms_main_themes ORDER BY id";
$queThemes mysql_query($selThemes);
$num 1;
while(
$obj mysql_fetch_array($queThemes)){
  
$themes $obj['id'];
  if(
$num == 1){
    
open1();
    
manage_box('themes'.$num.'.jpg');
    if(
$_SESSION['themes_'] == $themes)
      
check($themes$num'รูปแบบที่ ');
    else
      
no_check($themes$num'รูปแบบที่ ');
    
close1();
  }else{
    
manage_box('themes'.$num.'.jpg');
    if(
$_SESSION['themes_'] == $themes)
      
check($themes$num'รูปแบบที่ ');
    else
      
no_check($themes$num'รูปแบบที่ ');
    
close2();
    
spech();
  }
  ++
$num;
}
    
    
    
button_text('เปลี่ยนหน้ากาก''Submit'2);
?>
  
<!--<tr><td colspan='2' align='center'><br><br><input type='submit' name='Submit' value='เปลี่ยนหน้ากาก' onmouseover=this.style.cursor='hand'></td></tr>-->




</table>
</form>
<?php fieldset_down();?>