<?php
/** ensure this file is being included by a parent file */
defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' );
//require ( "include/functions.php");
require ( "language/lang-thai.php");
//include ("include/popup.js");
require_once "modules/meeting/time_inc.php";
$user=$_SESSION['login_user_id'];
//กรณีเลือกแสดงเฉพาะห้องประชุม
if(isset($_REQUEST['room_index'])){
$room_index=$_REQUEST['room_index'];
}
else{
$room_index="";
}
?>
<script language='javascript'>
//<!–
function printContentDiv(content){
var printReady = document.getElementById(content);
//var txt= 'nn';
var txt= '';
if (document.getElementsByTagName != null){
var txtheadTags = document.getElementsByTagName('head');
if (txtheadTags.length > 0){
var str=txtheadTags[0].innerHTML;
txt += str; // str.replace(/funChkLoad();/ig, ” “);
}
}
//txt += 'nn';
if (printReady != null){
txt += printReady.innerHTML;
}
//txt +='nn';
var printWin = window.open();
printWin.document.open();
printWin.document.write(txt);
printWin.document.close();
printWin.print();
}
// –>
</script>
<?php
//ส่วนหัว
echo "<br />";
if(!(($index==1) or ($index==2) or ($index==5))){
echo "<table width='100%' border='0' align='center'>";
echo "<tr align='center'><td><font color='#006666' size='3'><strong>ตารางทะเบียนจองห้องประชุม</strong></font></td></tr>";
echo "</table>";
}
//ส่วนยืนยันการลบข้อมูล
if($index==2) {
echo "<table width='500' border='0' align='center'>";
echo "<tr><td align='center'><font color='#990000' size='4'>โปรดยืนยันความต้องการลบข้อมูลอีกครั้ง</font><br></td></tr>";
echo "<tr><td align=center>";
$book_date=explode("-", $_GET['Date']);
$goto_date = $book_date[1]."-".$book_date[2]."-".$book_date[0];
echo "<INPUT TYPE='button' name='smb' value='ยืนยัน' onclick='location.href=\"?option=meeting&task=main/calListPrint&index=3&id=$_GET[id]&Date=$goto_date\"'>
<INPUT TYPE='button' name='back' value='ยกเลิก' onclick='location.href=\"?option=meeting&task=main/calListPrint&Date=$goto_date\"'";
echo "</td></tr></table>";
}
//ส่วนลบข้อมูล
if($index==3){
$sql = "delete from meeting_main where id='$_GET[id]'";
$dbquery = mysqli_query($connect,$sql);
}
//ส่วนบันทึกข้อมูล
if($index==4){
$date_time_now = date("Y-m-d H:i:s");
if(!isset($_POST['allchk'])){
$_POST['allchk']="";
}
foreach($_POST as $key => $value){
if($key!=$_POST['allchk']){
$sql = "update meeting_main set approve='$value', officer='$_SESSION[login_user_id]', officer_date='$date_time_now' where id='$key'";
$dbquery = mysqli_query($connect,$sql);
}
}
}
if ($index==5){
echo "<form id='frm1' name='frm1'>";
echo "<Center>";
echo "<Font color='#006666' Size=3><B>ส่วนของการอนุญาต</Font>";
echo "</Cener>";
echo "<Br><Br>";
$sql_room = "select * from meeting_room where active='1' order by id";
$dbquery_room = mysqli_query($connect,$sql_room);
While ($result_room = mysqli_fetch_array($dbquery_room))
{
$room_ar[$result_room['room_code']]=$result_room['room_name'];
}
$sql="select meeting_main.id, meeting_main.room, meeting_main.book_date, meeting_main.start_time, meeting_main.finish_time, meeting_main.objective, meeting_main.person_num, meeting_main.other, meeting_main.book_person, meeting_main.rec_date, meeting_main.approve, meeting_main.reason, person_main.name ,person_main.surname from meeting_main left join person_main on meeting_main.book_person = person_main.person_id where meeting_main.id='$_GET[id]' ";
$dbquery = mysqli_query($connect,$sql);
$result = mysqli_fetch_array($dbquery);
$id= $result['id'];
$room= $result['room'];
$start_time=$result['start_time'];
$start_time=number_format($start_time,2);
$finish_time=$result['finish_time'];
$finish_time=number_format($finish_time,2);
//$book_date = $result['book_date'];
$rec_date = $result['rec_date'];
$name= $result['name'];
$surname = $result['surname'];
echo "<Table width='60%'><tr><td>";
echo "<fieldset>";
echo "<legend> <B>ข้อมูลผู้ขอใช้</B>: </legend>";
echo "<table>";
echo "<Tr align='left'><Td align='right'>ห้องประชุม </Td><Td>$room_ar[$room]</Td></Tr>";
echo "<Tr align='left'><Td align='right'>วันทีใช้ห้อง </Td>";
echo "<Td align='left'>";
$book_date=explode("-", $result['book_date']);
$goto_date = $book_date[1]."-".$book_date[2]."-".$book_date[0];
?>
<script>
var Y_date=<?php echo $book_date[0]?>
var m_date=<?php echo $book_date[1]?>
var d_date=<?php echo $book_date[2]?>
Y_date= Y_date+'/'+m_date+'/'+d_date
DateInput('book_date', true, 'YYYY-MM-DD', Y_date)</script>
<?php
echo "</Td></Tr>";
//echo "<Tr align='left'><Td align='right'>วันทีใช้หห้อง </Td>";
//echo "<Td align='left'>";
//echo thai_date_3($book_date);
//echo "</Td></Tr>";
echo "<Tr align='left'><Td align='right'>ตั้งแต่เวลา </Td><Td><Select name='start_time' size='1'>";
$i=0;
for ($i=='0'; $i<='24'; $i++){
if ($result['start_time']==$i) {
echo "<option value = $i selected>".$i.".00 น.</option>";
}else{
echo "<option value = $i>".$i.".00 น.</option>";
}
}
echo "</select>";
echo "</td></tr>";
//echo "<Tr align='left'><Td align='right'>ตั้งแต่เวลา </Td>";
//echo "<Td align='left'>$start_time น.</Td></Tr>";
echo "<Tr align='left'><Td align='right'>ถึงเวลา </Td><Td><Select name='finish_time' size='1'>";
$i=0;
for ($i=='0'; $i<='24'; $i++){
if ($result['finish_time']==$i) {
echo "<option value = $i selected>".$i.".00 น.</option>";
}else{
echo "<option value = $i>".$i.".00 น.</option>";
}
}
echo "</select>";
echo "</td></tr>";
//echo "<Tr align='left'><Td align='right'>ถึงเวลา </Td>";
//echo "<Td align='left'>$finish_time น.</Td></Tr>";
echo "<Tr align='left'><Td align='right'>วัตถุประสงค์ </Td><Td>$result[objective]</Td></Tr>";
echo "<Tr align='left'><Td align='right'>จำนวนผู้เข้าประชุม </Td><Td>$result[person_num] คน</Td></Tr>";
echo "<Tr align='left'><Td align='right'>อื่น ๆ </Td><Td>$result[other]</Td></Tr>";
echo "<Tr align='left'><Td align='right'>ผู้จองฺ </Td><Td>$name $surname</Td></Tr>";
echo "<Tr align='left'><Td align='right'>วันเวลาจอง </Td><Td>";
echo thai_date_5($rec_date);
echo "</td></tr>";
echo "</table></fieldset>";
echo "<fieldset>";
echo "<legend> <B>ส่วนเจ้าหน้าที่</B>: </legend>";
echo "<table>";
$approve_check1=""; $approve_check2="";
if($result['approve']==1){
$approve_check1="checked";
}
else if($result['approve']==2){
$approve_check2="checked";
}
echo "<Tr align='left'><Td align='right'>อนุญาต/ไม่อนุญาตการใช้ห้องประชุม </Td><Td><Input Type='radio' Name='approve' value='1' $approve_check1>อนุญาต <Input Type='radio' Name='approve' value='2' $approve_check2>ไม่อนุญาต </Td></Tr>";
echo "<Tr align='left'><Td align='right'>หมายเหตุ(ถ้ามี) </Td><Td><Input Type='Text' Name='reason' Size='50' value='$result[reason]'></Td></Tr>";
echo "</table></fieldset>";
echo "</td></tr></Table>";
echo "<Input Type=Hidden Name='id' Value='$_GET[id]'>";
echo "<Input Type=Hidden Name='page' Value='$_GET[page]'>";
echo "<Br />";
echo "<Input Type=Hidden Name='id' Value='$_GET[id]'>";
$book_date=explode("-", $_GET['Date']);
$goto_date = $book_date[1]."-".$book_date[2]."-".$book_date[0];
echo "<Input Type=Hidden Name='goto_date' Value='$goto_date'>";
echo "<INPUT TYPE='button' name='smb' value='ตกลง' onclick='goto_url_update(1)' class=entrybutton>
<INPUT TYPE='button' name='back' value='ย้อนกลับ' onclick='goto_url_update(0)' class=entrybutton'>";
//echo "<INPUT TYPE='button' name='smb' value='ตกลง' onclick='location.href=\"?option=meeting&task=main/calMonth&index=6&id=$_GET[id]&Date=$goto_date\"'> <INPUT TYPE='button' name='back' value='ย้อนกลับ' onclick='location.href=\"?option=meeting&task=main/calMonth&Date=$goto_date\"'>";
echo "</form>";
}
if ($index==6){
// $sql = "update meeting_main set approve='$_POST[approve]',
// reason='$_POST[reason]',
// officer='$_SESSION[login_user_id]',
// officer_date='$date_time_now'
// where id='$_POST[id]'";
$sql = "update meeting_main set
book_date='$_POST[book_date]',
start_time='$_POST[start_time]',
finish_time='$_POST[finish_time]',
approve='$_POST[approve]',
reason='$_POST[reason]',
officer='$_POST[login_user_id]',
officer_date='$date_time_now'
where id='$_POST[id]'";
$dbquery = mysqli_query($connect,$sql);
}
//ส่วนฟอร์ม
if(!(($index==2) or ($index==5))){
echo "<form name='frm1'>";
echo "<table width=100%><tr><td align='left' width='50%'>";
echo " <INPUT TYPE='button' name='smb' value='กลับหน้าหลัก' onclick='location.href=\"?option=meeting&task=main/calMonth\"'> ";
?>
<a href="javascript:printContentDiv('lblPrint');"><img src=\"images/my-icons/print.png\" border='0' height='75'></a>
<?php
echo "</td><td align='right'>";
echo " <Select name='room_index' size='1'>";
echo '<option value ="" >เลือกห้องประชุม</option>' ;
$sql_room = "select * from meeting_room where active='1' order by id";
$dbquery_room = mysqli_query($connect,$sql_room);
While ($result_room = mysqli_fetch_array($dbquery_room )){
if ($room_index==$result_room ['room_code']){
echo "<option value=$result_room[room_code] selected>$result_room[room_name]</option>";
}else{
echo "<option value=$result_room[room_code]>$result_room[room_name]</option>";
}
}
echo "</select>";
echo " <INPUT TYPE='button' name='smb' value='เลือก' onclick='goto_url2(1)'>";
echo "</td></tr></table>";
echo "</form>";
if (empty($Date)) {
$Date = Date("m-d-Y");
}
$Date_Array = explode("-", $Date);
if ($Date_Array[2] < 1970)
print("ERROR! System can not interpret dates befor 01/01/1970");
else {
$Date = mktime(0, 0, 0, $Date_Array[0], $Date_Array[1], $Date_Array[2]); //0=เดือน 1=วัน 2=ปี
########## ส่วนหัว |-------------------------------------------
$Prev_Month = mktime(0, 0, 0, $Date_Array[0] - 1, 1, $Date_Array[2]);
$Prev_Date = Date("m-d-Y",$Prev_Month);
$Next_Month = mktime(0, 0, 0, $Date_Array[0] + 1, 1, $Date_Array[2]);
$Next_Date = Date("m-d-Y",$Next_Month);
$month_priv = $Date_Array[0]-1;
$month_next = $Date_Array[0]+1;
if($room_index=='') { //ลิงค์หน้าปฏิทินหลัก
print("\n<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr height=\"20\">");
########## Print Title : เดือนก่อนนี้ |-------------------------------------------
print("<td width=\"50%\" align=\"left\"><a href=\"?option=meeting&task=main/calListPrint&room_index=$room_index&Date=$Prev_Date\"><img src=\"images/arr_circle_prev42-42.gif\" border=0 valign=middle> $_month_priv</a></td>");
########## Print Title : เดือนถัดไป |-------------------------------------------
print("<td width=\"50%\" align=\"right\"><a href=\"?option=meeting&task=main/calListPrint&room_index=$room_index&Date=$Next_Date\">$_month_next <img src=\"images/arr_circle_next42-42.gif\" border=0 valign=middle></a></td>");
print("</TR></TABLE>");
?>
<div id="lblPrint">
<?php
########## Print Title : ประจำเดือน |-------------------------------------------
print("\n<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"><tr><td align=center>");
print("<B>");
print("ประจำเดือน ");
print(getMonthName($Date));
print(" พ.ศ. ");
print($Date_Array[2]+543);
print(" / ");
print(getMonthEnName($Date));
print(" ".$Date_Array[2]."");
print("</B>");
print("</TD></tr></table>");
}else{ //ลิงค์หน้าปฏิทินของห้องประชุม
print("\n<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr height=\"20\">");
########## Print Title : เดือนก่อนนี้ |-------------------------------------------
print("<td width=\"50%\" align=\"left\"><a href=\"?option=meeting&task=main/calListPrint&room_index=$room_index&Date=$Prev_Date\"><img src=\"images/arr_circle_prev42-42.gif\" border=0> $_month_priv</a></td>");
########## Print Title : เดือนถัดไป |-------------------------------------------
print("<td width=\"50%\" align=\"right\"><a href=\"?option=meeting&task=main/calListPrint&room_index=$room_index&Date=$Next_Date\">$_month_next <img src=\"images/arr_circle_next42-42.gif\" border=0></a></td>");
print("</TR></TABLE>");
?>
<div id="lblPrint">
<?php
########## Print Title : ประจำเดือน |-------------------------------------------
print("\n<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"><tr><td align=center>");
print("<B>");
print("ประจำเดือน ");
print(getMonthName($Date));
print(" พ.ศ. ");
print($Date_Array[2]+543);
print(" / ");
print(getMonthEnName($Date));
print(" ".$Date_Array[2]."");
print("</B>");
print("</TD></tr></table>");
}
/**** Get the Day (Integer) for the first day in the month */
$First_Day_of_Month_Date = mktime(0, 0, 0, $Date_Array[0], 1, $Date_Array[2]);
$Day_of_First_Week = Date("w",$First_Day_of_Month_Date);
/**** Find the last day of the month */
$Month = Date("m",$Date);
$day = 27;
do {
$End_of_Month_Date = mktime(0, 0, 0, $Date_Array[0], $day, $Date_Array[2]);
$Test_Month = Date("m",$End_of_Month_Date);
$day += 1;
} while ( $Month == $Test_Month );
$Last_Day = $day - 2;
/**** Get todays date */
$Today_d = Date("d");
$Today_m = Date("m");
$Today_y = Date("Y");
########## กำหนดค่าเดือน |-------------------------------------------
if ($Date_Array[0]=='01'){
$Date_Arrayx[0]='1'; $imgcalendar="<img src=\"images/calendar/1.png\" border=0>";
}elseif ($Date_Array[0]=='02'){
$Date_Arrayx[0]='2'; $imgcalendar="<img src=\"images/calendar/2.png\" border=0>";
}elseif ($Date_Array[0]=='03'){
$Date_Arrayx[0]='3'; $imgcalendar="<img src=\"images/calendar/3.png\" border=0>";
}elseif ($Date_Array[0]=='04'){
$Date_Arrayx[0]='4'; $imgcalendar="<img src=\"images/calendar/4.png\" border=0>";
}elseif ($Date_Array[0]=='05'){
$Date_Arrayx[0]='5'; $imgcalendar="<img src=\"images/calendar/5.png\" border=0>";
}elseif ($Date_Array[0]=='06'){
$Date_Arrayx[0]='6'; $imgcalendar="<img src=\"images/calendar/6.png\" border=0>";
}elseif ($Date_Array[0]=='07'){
$Date_Arrayx[0]='7'; $imgcalendar="<img src=\"images/calendar/7.png\" border=0>";
}elseif ($Date_Array[0]=='08'){
$Date_Arrayx[0]='8'; $imgcalendar="<img src=\"images/calendar/8.png\" border=0>";
}elseif ($Date_Array[0]=='09'){
$Date_Arrayx[0]='9'; $imgcalendar="<img src=\"images/calendar/9.png\" border=0>";
}elseif ($Date_Array[0]=='10'){ $imgcalendar="<img src=\"images/calendar/1.png\" border=0><img src=\"images/calendar/0.png\" border=0>";
}elseif ($Date_Array[0]=='11'){ $imgcalendar="<img src=\"images/calendar/1.png\" border=0><img src=\"images/calendar/1.png\" border=0>";
}elseif ($Date_Array[0]=='12'){ $imgcalendar="<img src=\"images/calendar/1.png\" border=0><img src=\"images/calendar/2.png\" border=0>";
}
########## ปฏิทิน |-------------------------------------------
echo "<CENTER>".$imgcalendar."<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"background-attachment: fixed; background-image: url(images/calendar/bg.jpg); background-repeat: no-repeat; background-position: right\">";
$day_of_week = 1;
########## วันในปฏิทินเดือนปัจจุบันที่เลือก |-------------------------------------------
for ($day = 1 ; $day <= $Last_Day ; $day++) {
if ($day_of_week == 1) {
########## วันในเดือนนี้ |-------------------------------------------
print("\n<tr>");
}
########## เริ่มต้น -> นำเข้าข้อมูลแสดงในปฏิทินในแต่ละวัน
########## ตรวจสอบวันที่ตรงกับวันที่ใช้งาน
switch ( $day ) {
case "1" : $day='01' ; break; case "2" : $day='02' ; break; case "3" : $day='03' ; break;
case "4" : $day='04' ; break;case "5" : $day='05' ; break;case "6" : $day='06' ; break;
case "7" : $day='07' ; break;case "8" : $day='08' ; break;case "9" : $day='09' ; break;
}
$ck_startDate = ($Date_Array[2])."-".$Date_Array[0]."-".$day;
########## เลือกฐานข้อมูลทั้งหมด
########## แยกแสดงผลการใช้งานเฉพาะห้องประชุมคันใดคันหนึ่ง กับ การใช้งานทั้งหมด
########## เลือกฐานข้อมูลแยกจาก ห้องประชุมทั้งหมด $room_index =='' ,เฉพาะห้องประชุม $room_index !=''
$sql_room = "select * from meeting_room where active='1' order by id";
$dbquery_room = mysqli_query($connect,$sql_room);
While ($result_room = mysqli_fetch_array($dbquery_room))
{
$room_ar[$result_room['room_code']]=$result_room['room_name'];
}
if($room_index != ''){ //แสดงการใช้งานเฉพาะห้องประชุมในวันนั้น
$sqlConfirm = "select meeting_main.id, meeting_main.room, meeting_main.book_date, meeting_main.start_time, meeting_main.finish_time, meeting_main.objective, meeting_main.person_num, meeting_main.other, meeting_main.book_person, meeting_main.rec_date, meeting_main.approve, meeting_main.reason, person_main.name ,person_main.surname from meeting_main left join person_main on meeting_main.book_person = person_main.person_id where meeting_main.room='$room_index' and meeting_main.book_date='$ck_startDate' order by meeting_main.room";
}else{ //แสดงการใช้งานทั้งหมดในวันนั้น
$sqlConfirm = "select meeting_main.id, meeting_main.room, meeting_main.book_date, meeting_main.start_time, meeting_main.finish_time, meeting_main.objective, meeting_main.person_num, meeting_main.other, meeting_main.book_person, meeting_main.rec_date, meeting_main.approve, meeting_main.reason, person_main.name ,person_main.surname from meeting_main left join person_main on meeting_main.book_person = person_main.person_id where meeting_main.book_date='$ck_startDate' order by meeting_main.room";
}
$rsConfirm = mysqli_query($connect,$sqlConfirm);
$num_rowsConfirm = mysqli_num_rows($rsConfirm);
$conf = 1;
//if($num_rowsConfirm == '0'){ print(""); }else{ print("ว่าง"); }
print ("<TABLE width=100% cellpadding=2 border=1>");
while ($row_rsConfirm = mysqli_fetch_array($rsConfirm)) {
$id= $row_rsConfirm['id'];
$room= $row_rsConfirm['room'];
$start_time=$row_rsConfirm['start_time'];
$start_time=number_format($start_time,2);
$finish_time=$row_rsConfirm['finish_time'];
$finish_time=number_format($finish_time,2);
$book_date = $row_rsConfirm['book_date'];
$rec_date = $row_rsConfirm['rec_date'];
$name= $row_rsConfirm['name'];
$surname = $row_rsConfirm['surname'];
if(isset($room_ar[$room])){
$room_name = $room_ar[$room];
}
$approve=$row_rsConfirm['approve'];
//กำหนดสีประจำสัปดาห์
if ( $day_of_week == 1 ) $color ="#ffaaaa"; //แดง #ff4040
if ( $day_of_week == 2 ) $color ="#fff"; //เหลือง #ffffd5
if ( $day_of_week == 3 ) $color ="#fff"; //ชมภู pink
if ( $day_of_week == 4 ) $color ="#fff"; //เขียว #d5ffd5
if ( $day_of_week == 5 ) $color ="#fff"; //แสด Orange
if ( $day_of_week == 6 ) $color ="#fff"; //ฟ้า #d5ffff
if ( $day_of_week == 7 ) $color ="#ffaaff"; //ม่วง #bf80ff
$color2 = '#FFFFB';
switch ( $approve ) {
case '1' :
$g="<img src=images/yes.png border='0'> อนุมัติ";
$f="meeting_report" ; $index="1";
break;
case '2' :
$g="<img src=images/no.png border='0'> ไม่อนุมัติ";
$f="meeting_report" ; $index="1";
break;
default :
if( ($row_rsConfirm['book_person']==$user) && ($result['approve']=='') ){
$color = "#d5ffd5";
$color2 = "#d5ffd5";
$g = "";
$f="meeting" ; $index="2";
}else{
$color = "#d5ffd5";
$color2 = "#d5ffd5";
$g = "<img src=images/loading.gif border='0'> รออนุมัติ";
$f="meeting_report" ; $index="1";
}
if(($result_permission['p1']==1) or ($_SESSION['admin_meeting']=="meeting")){
$color = "#d5ffd5";
$color2 = "#d5ffd5";
$g="<img src=images/loading.gif border='0'> รออนุมัติ</a>";
$f="officer" ; $index="5";
}
break;
}
########## แสดงข้อมูลที่พบ |-------------------------------------------
print ("<TR bgcolor=$color onmouseover=\"javascript:this.bgColor='$color2'\" onmouseout=\"javascript:this.bgColor='$color'\">
<TD valign=\"top\">$ck_startDate</td>
<td>".$g."</td>
<td>".$room_name."</td>
<td>จำนวน ".$row_rsConfirm['person_num']." คน</td>
<td>".$name." ".$surname."</td>
<td>".$d."</td>
<td>".$e."</td>
<td>".$start_time." น. ถึง ".$finish_time." น.</TD></TR>");
$conf++;
} //end while
}
print("\n</TABLE></CENTER>");
}
} //end if( !($index=='')
?>
<script>
function goto_url2(val){
callfrm("?option=meeting&task=main/calListPrint");
}
function CheckAll() {
for (var i = 0; i < document.frm1.elements.length; i++)
{
var e = document.frm1.elements[i];
if (e.name != "allchk")
e.checked = document.frm1.allchk.checked;
}
}
function goto_url_update(val){
if(val==0){
callfrm("?option=meeting&task=main/calListPrint&Date=<?php echo $goto_date ; ?>"); // page ย้อนกลับ
}else if(val==1){
if(!(frm1.approve[0].checked || frm1.approve[1].checked)){
alert("กรุณาเลือกการอนุญาต");
}else{
callfrm("?option=meeting&task=main/calListPrint&index=6&Date=<?php echo $goto_date ; ?>"); //page ประมวลผล
}
}
}
</script>