<?php require_once('Connections/login.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO tb_login (name, telno, username, password) VALUES (%s, %s, %s, %s)",
                       GetSQLValueString($_POST['name'], "text"),
                       GetSQLValueString($_POST['telno'], "text"),
                       GetSQLValueString($_POST['username'], "text"),
                       GetSQLValueString($_POST['password'], "text"));

  mysql_select_db($database_login, $login);
  $Result1 = mysql_query($insertSQL, $login) or die(mysql_error());

  $insertGoTo = "index.html";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}
?>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Preload Script (index.psd) -->
<script type="text/javascript">
<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		index_Shape_4_over = newImage("images/index_Shape-4-over.gif");
		index_Shape_4_over015 = newImage("images/index_Shape-4-over-15.gif");
		index_Shape_4_over023 = newImage("images/index_Shape-4-over-23.gif");
		index_Shape_4_over027 = newImage("images/index_Shape-4-over-27.gif");
		index_Shape_4_over031 = newImage("images/index_Shape-4-over-31.gif");
		index_Shape_4_over035 = newImage("images/index_Shape-4-over-35.gif");
		index_Shape_4_over040 = newImage("images/index_Shape-4-over-40.gif");
		index_WEBMASTER______E_MAIL_Sunisa_123poom_hotmail_com_over = newImage("images/index_WEBMASTER------E-M-50.gif");
		preloadFlag = true;
	}
}

// -->
</script>
<!-- End Preload Script -->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="preloadImages();">
<!-- ImageReady Slices (index.psd) -->
<table id="Table_01" width="1025" height="769" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="20">
			<img src="images/index_01.gif" width="1024" height="194" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="194" alt=""></td>
	</tr>
	<tr>
		<td colspan="6" rowspan="3">
			<img src="images/index_02.gif" width="77" height="62" alt=""></td>
		<td colspan="2" rowspan="2">
			<a href="index.html"
				onmouseover="changeImages('index_Shape_4', 'images/index_Shape-4-over.gif'); return true;"
				onmouseout="changeImages('index_Shape_4', 'images/index_Shape-4.gif'); return true;"
				onmousedown="changeImages('index_Shape_4', 'images/index_Shape-4-over.gif'); return true;"
				onmouseup="changeImages('index_Shape_4', 'images/index_Shape-4-over.gif'); return true;">
			  <img name="index_Shape_4" src="images/index_Shape-4.gif" width="156" height="48" border="0" alt=""></a></td>
		<td colspan="9">
			<img src="images/index_04.gif" width="541" height="9" alt=""></td>
		<td colspan="2" rowspan="4" align="center" valign="top" bgcolor="#DEDEDE">username
          <input type="text" name="username" id="username">
password
<input type="password" name="password" id="password">
<input type="submit" name="button" id="button" value="&#3605;&#3585;&#3621;&#3591;">
<input type="reset" name="button2" id="button2" value="&#3618;&#3585;&#3648;&#3621;&#3636;&#3585;"></td>
		<td rowspan="22">
<img src="images/index_06.gif" width="32" height="574" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="9" alt=""></td>
	</tr>
	<tr>
		<td colspan="6" rowspan="2">
			<img src="images/index_07.gif" width="48" height="53" alt=""></td>
		<td rowspan="13" align="center" bgcolor="#4A9429">&nbsp;
		  <h3>&#3626;&#3617;&#3633;&#3588;&#3619;&#3626;&#3617;&#3634;&#3594;&#3636;&#3585;&#3651;&#3627;&#3617;&#3656;
          </h3>
		  <form method="post" name="form1" action="<?php echo $editFormAction; ?>">
            <table align="center">
              <tr valign="baseline">
                <td nowrap align="center">&#3594;&#3639;&#3656;&#3629;</td>
                <td><input type="text" name="name" value="" size="32"></td>
              </tr>
              <tr valign="baseline">
                <td nowrap align="center">&#3648;&#3610;&#3629;&#3619;&#3660;&#3650;&#3607;&#3619;</td>
                <td><input type="text" name="telno" value="" size="32"></td>
              </tr>
              <tr valign="baseline">
                <td nowrap align="center">&#3594;&#3639;&#3656;&#3629;&#3612;&#3641;&#3657;&#3651;&#3594;&#3657;</td>
                <td><input type="text" name="username" value="" size="32"></td>
              </tr>
              <tr valign="baseline">
                <td nowrap align="center">&#3619;&#3627;&#3633;&#3626;&#3612;&#3656;&#3634;&#3609;</td>
                <td><input type="text" name="password" value="" size="32"></td>
              </tr>
              <tr valign="baseline">
                <td nowrap align="center">&nbsp;</td>
                <td bgcolor="#4A9429"><input type="submit" value="&#3610;&#3633;&#3609;&#3607;&#3638;&#3585;">
                <input type="reset" name="button3" id="button3" value="&#3618;&#3585;&#3648;&#3621;&#3636;&#3585;"></td>
              </tr>
            </table>
            <input type="hidden" name="MM_insert" value="form1">
          </form>
        <p>&nbsp;</p></td>
		<td colspan="2" rowspan="4">
  <img src="images/index_09.gif" width="40" height="81" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="39" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/index_10.gif" width="156" height="14" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="14" alt=""></td>
	</tr>
	<tr>
		<td colspan="2" rowspan="15">
			<img src="images/index_11.gif" width="22" height="329" alt=""></td>
		<td colspan="7" rowspan="3">
			<a href="pawan.html"
				onmouseover="changeImages('index_Shape_4014', 'images/index_Shape-4-over-15.gif'); return true;"
				onmouseout="changeImages('index_Shape_4014', 'images/index_Shape-4-14.gif'); return true;"
				onmousedown="changeImages('index_Shape_4014', 'images/index_Shape-4-over-15.gif'); return true;"
				onmouseup="changeImages('index_Shape_4014', 'images/index_Shape-4-over-15.gif'); return true;">
			  <img name="index_Shape_4014" src="images/index_Shape-4-14.gif" width="239" height="48" border="0" alt=""></a></td>
		<td colspan="5" rowspan="4">
			<img src="images/index_13.gif" width="20" height="54" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="14" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/index_14.gif" width="218" height="14" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="14" alt=""></td>
	</tr>
	<tr>
		<td rowspan="16">
			<img src="images/index_15.gif" width="35" height="450" alt=""></td>
		<td colspan="3" rowspan="14" align="center" bgcolor="#E8E7E8"><embed src=" http://www.blogclock.cn/swf/S1001286e2fe9fc-0.swf" width="208" height="174" type="application/x-shockwave-flash" quality="high" wmode="transparent"/embed>
		  <table width="200" border="0">
<tr>
		      <td><img src="anigif.gif" alt="" width="205" height="73"></td>
	        </tr>
		    <tr>
		      <td><img src="anigif2.gif" alt="" width="205" height="62"></td>
	        </tr>
		    <tr>
		      <td><img src="anigif3.gif" alt="" width="206" height="61"></td>
	        </tr>
	      </table>
	    <a href="http://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%AB%E0%B8%A5%E0%B9%88%E0%B8%87%E0%B9%82%E0%B8%9A%E0%B8%A3%E0%B8%B2%E0%B8%93%E0%B8%84%E0%B8%94%E0%B8%B5%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%8A%E0%B8%B5%E0%B8%A2%E0%B8%87">		  </a></td>
		<td>
			<img src="images/spacer.gif" width="1" height="20" alt=""></td>
	</tr>
	<tr>
		<td colspan="7">
			<img src="images/index_17.gif" width="239" height="6" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="6" alt=""></td>
	</tr>
	<tr>
		<td rowspan="11">
			<img src="images/index_18.gif" width="3" height="275" alt=""></td>
		<td colspan="7">
			<a href="buk.html"
				onmouseover="changeImages('index_Shape_4022', 'images/index_Shape-4-over-23.gif'); return true;"
				onmouseout="changeImages('index_Shape_4022', 'images/index_Shape-4-22.gif'); return true;"
				onmousedown="changeImages('index_Shape_4022', 'images/index_Shape-4-over-23.gif'); return true;"
				onmouseup="changeImages('index_Shape_4022', 'images/index_Shape-4-over-23.gif'); return true;">
			  <img name="index_Shape_4022" src="images/index_Shape-4-22.gif" width="239" height="48" border="0" alt=""></a></td>
		<td colspan="4" rowspan="4">
			<img src="images/index_20.gif" width="17" height="110" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="48" alt=""></td>
	</tr>
	<tr>
		<td colspan="7">
			<img src="images/index_21.gif" width="239" height="7" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td colspan="7">
			<a href="pay.html"
				onmouseover="changeImages('index_Shape_4026', 'images/index_Shape-4-over-27.gif'); return true;"
				onmouseout="changeImages('index_Shape_4026', 'images/index_Shape-4-26.gif'); return true;"
				onmousedown="changeImages('index_Shape_4026', 'images/index_Shape-4-over-27.gif'); return true;"
				onmouseup="changeImages('index_Shape_4026', 'images/index_Shape-4-over-27.gif'); return true;">
			  <img name="index_Shape_4026" src="images/index_Shape-4-26.gif" width="239" height="48" border="0" alt=""></a></td>
		<td>
			<img src="images/spacer.gif" width="1" height="48" alt=""></td>
	</tr>
	<tr>
		<td colspan="7">
			<img src="images/index_23.gif" width="239" height="7" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td rowspan="7">
			<img src="images/index_24.gif" width="1" height="165" alt=""></td>
		<td colspan="7">
			<a href="pa.html"
				onmouseover="changeImages('index_Shape_4030', 'images/index_Shape-4-over-31.gif'); return true;"
				onmouseout="changeImages('index_Shape_4030', 'images/index_Shape-4-30.gif'); return true;"
				onmousedown="changeImages('index_Shape_4030', 'images/index_Shape-4-over-31.gif'); return true;"
				onmouseup="changeImages('index_Shape_4030', 'images/index_Shape-4-over-31.gif'); return true;">
			  <img name="index_Shape_4030" src="images/index_Shape-4-30.gif" width="239" height="48" border="0" alt=""></a></td>
		<td colspan="3" rowspan="5">
			<img src="images/index_26.gif" width="16" height="109" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="48" alt=""></td>
	</tr>
	<tr>
		<td colspan="7">
			<img src="images/index_27.gif" width="239" height="6" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="6" alt=""></td>
	</tr>
	<tr>
		<td colspan="7" rowspan="2">
			<a href="tid.html"
				onmouseover="changeImages('index_Shape_4034', 'images/index_Shape-4-over-35.gif'); return true;"
				onmouseout="changeImages('index_Shape_4034', 'images/index_Shape-4-34.gif'); return true;"
				onmousedown="changeImages('index_Shape_4034', 'images/index_Shape-4-over-35.gif'); return true;"
				onmouseup="changeImages('index_Shape_4034', 'images/index_Shape-4-over-35.gif'); return true;">
			  <img name="index_Shape_4034" src="images/index_Shape-4-34.gif" width="239" height="48" border="0" alt=""></a></td>
		<td>
			<img src="images/spacer.gif" width="1" height="44" alt=""></td>
	</tr>
	<tr>
		<td rowspan="7">
			<img src="images/index_29.gif" width="453" height="216" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="4" alt=""></td>
	</tr>
	<tr>
		<td colspan="7">
			<img src="images/index_30.gif" width="239" height="7" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="images/index_31.gif" width="3" height="56" alt=""></td>
		<td colspan="8">
			<a href="regis.php"
				onmouseover="changeImages('index_Shape_4039', 'images/index_Shape-4-over-40.gif'); return true;"
				onmouseout="changeImages('index_Shape_4039', 'images/index_Shape-4-39.gif'); return true;"
				onmousedown="changeImages('index_Shape_4039', 'images/index_Shape-4-over-40.gif'); return true;"
				onmouseup="changeImages('index_Shape_4039', 'images/index_Shape-4-over-40.gif'); return true;">
			  <img name="index_Shape_4039" src="images/index_Shape-4-39.gif" width="239" height="48" border="0" alt=""></a></td>
		<td rowspan="5">
			<img src="images/index_33.gif" width="13" height="205" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="48" alt=""></td>
	</tr>
	<tr>
		<td colspan="8">
			<img src="images/index_34.gif" width="239" height="8" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="8" alt=""></td>
	</tr>
	<tr>
		<td rowspan="4">
			<img src="images/index_35.gif" width="13" height="183" alt=""></td>
		<td colspan="11" rowspan="2" align="center" bgcolor="#C0C0C0"><embed src=http://flash-clocks.com/free-flash-clocks-blog-topics/free-flash-clock-183.swf width=247 height=85 wmode=transparent type=application/x-shockwave-flash></td>
		<td rowspan="3">
<img src="images/index_37.gif" width="1" height="149" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="87" alt=""></td>
	</tr>
	<tr>
		<td colspan="3" rowspan="2">
			<img src="images/index_38.gif" width="223" height="62" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td colspan="11">
			<img src="images/index_39.gif" width="254" height="55" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="55" alt=""></td>
	</tr>
	<tr>
		<td colspan="6">
			<img src="images/index_40.gif" width="156" height="34" alt=""></td>
		<td colspan="11">
			<a href="#"
				onmouseover="changeImages('index_WEBMASTER______E_MAIL_Sunisa_123poom_hotmail_com', 'images/index_WEBMASTER------E-M-50.gif'); return true;"
				onmouseout="changeImages('index_WEBMASTER______E_MAIL_Sunisa_123poom_hotmail_com', 'images/index_WEBMASTER------E-MAIL.gif'); return true;"
				onmousedown="changeImages('index_WEBMASTER______E_MAIL_Sunisa_123poom_hotmail_com', 'images/index_WEBMASTER------E-M-50.gif'); return true;"
				onmouseup="changeImages('index_WEBMASTER______E_MAIL_Sunisa_123poom_hotmail_com', 'images/index_WEBMASTER------E-M-50.gif'); return true;">
				<img name="index_WEBMASTER______E_MAIL_Sunisa_123poom_hotmail_com" src="images/index_WEBMASTER------E-MAIL.gif" width="670" height="34" border="0" alt=""></a></td>
		<td>
			<img src="images/index_42.gif" width="153" height="34" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="34" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="13" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="9" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="3" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="3" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="48" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="92" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="64" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="28" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="3" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="2" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="13" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="453" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="35" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="5" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="65" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="153" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="32" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
<style type="text/css">BODY {cursor:url(http://i1318.photobucket.com/albums/t660/keynaftyaless/E400E210E320E2A0E4C03_zps17ecd5c9.png),auto;}a {cursor:url(http://i1318.photobucket.com/albums/t660/keynaftyaless/E400E210E320E2A0E4C032_zps4231f241.png),auto;}</style>??????
</body>
</html>