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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
<?php session_start(); if($_POST['action']=='send'){ $dates=date("Y-m-d"); //$to = 'contact@me-fi.com' . ', '; // note the comma $to ='contact@me-fi.com' . ', '; // note the comma /*$to .= '???????????,';*/ $names=$_POST['names']; $email = $_POST['email']; $teleno = $_POST['teleno']; $detail = $_POST['detail']; $subject ="Message from BENJABHORN GROUP : ".$names; $message="<table width=400 border=0 cellspacing=2 cellpadding=2> <tr> <td width=130 height=25>Name: </td> <td width=260>$names</td> </tr> <tr> <td height=25>E-mail: </td> <td>$email</td> </tr> <tr> <td height=25>Telephone: </td> <td>$teleno</td> </tr> <tr height=25> <td>Descriptions: </td> <td>$detail</td> </tr> </table> "; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $headers .= 'To: BENJABHORN GROUP ' . "\r\n"; $headers .= 'From: '.$names.'<'.$email .'>' . "\r\n"; mail($to, $subject,$message, $headers); ?> <script language="javascript"> alert('Message was sent successful.'); document.location='contact.php'; </script> <?php } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <title>เบญจพรกรุ๊ป Benjabhorn Group</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { background-image:url(images/bg-inside.jpg); background-position:top; background-repeat:repeat-x; } #apDiv1 { position:absolute; left:422px; top:136px; width:822px; height:310px; z-index:1; } #apDiv2 { position:absolute; left:130px; top:160px; width:1000px; height:50px; z-index:1; } --> </style>
<!--send mail--> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script language="javascript"> function CsF(){ var value1 = form1.names.value; var value2 = form1.email.value; var value3 = form1.teleno.value; var value4 = form1.detail.value; if(value1==''){ alert('Please insert your name.'); return false; }else if(value2==''){ alert('Please insert your your e-mail.'); return false; }else if(value3==''){ alert('Please insert your your telephone.'); return false; }else if(value4==''){ alert('Please insert your descriptions.'); return false; }else { form1.action.value='send'; form1.submit(); } } </script> <!--send mail-->
</head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!--<div id="apDiv1"> <iframe src="slide-project/index.html" width="800" height="300" frameborder="0" scrolling="no"></iframe></div> --> <center> <?php include("header.php"); ?> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="36" colspan="2" align="left" valign="top"><img src="images/1.jpg" alt="" /></td> </tr> <tr> <td colspan="2" align="left" valign="top"><p class="txt30">CONTACT US / ติดต่อสอบถาม</p> <hr size="2" noshade="noshade" /> <p> </p></td> </tr> <tr> <td width="496" align="center" valign="top" class="txt30"><table width="99%" border="0" cellspacing="0" cellpadding="4"> <tr> <td height="37" colspan="2" class="h-title">โครงการเบญจพร แลนด์ แอนด์ เฮ้าส์ </td> </tr> <tr> <td width="32%" height="25" align="right"><span class="LR20 h-title">สำนักงาน</span></td> <td width="68%" height="25" align="left">741 ม. 2 ถ.ท่าสะอ้าน-บ้านน้ำกระจาย <br /> ต.บ่อยาง อ.เมือง จ.สงขลา 90100</td> </tr> <tr> <td height="25" align="right" class="LR20 h-title">โทรศัพท์</td> <td height="25" align="left"> (074)-335121 , (074)-335122 </td> </tr> <tr> <td height="25" align="right" class="LR20 h-title">โทรสาร</td> <td height="25" align="left">(074)-335120 </td> </tr> <tr> <td height="25" align="right" class="LR20 h-title">อีเมล์</td> <td height="25" align="left"><strong>admin@benjabhorn.com</strong> <br /></td> </tr> <tr> <td height="25" align="right" class="LR20 h-title"> </td> <td height="25" align="left"> </td> </tr> <tr> <td height="354" colspan="2" align="center" style="padding-top:35px; background-image:url(images/bg-map.jpg); background-position:top center; background-repeat:no-repeat;" > <iframe width="445" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.th/maps?f=q&source=s_q&hl=th&geocode=&q=%E0%B9%80%E0%B8%9A%E0%B8%8D%E0%B8%88%E0%B8%9E%E0%B8%A3+%E0%B9%81%E0%B8%A5%E0%B8%99%E0%B8%94%E0%B9%8C+%E0%B9%81%E0%B8%AD%E0%B8%99%E0%B8%94%E0%B9%8C+%E0%B9%80%E0%B8%AE%E0%B9%89%E0%B8%B2%E0%B8%AA%E0%B9%8C+%E0%B8%AA%E0%B8%87%E0%B8%82%E0%B8%A5%E0%B8%B2+%E0%B8%97%E0%B9%88%E0%B8%B2%E0%B8%AA%E0%B8%B0%E0%B8%AD%E0%B9%89%E0%B8%B2%E0%B8%99&aq=&sll=7.161659,100.597944&sspn=0.032191,0.038581&ie=UTF8&hq=%E0%B9%80%E0%B8%9A%E0%B8%8D%E0%B8%88%E0%B8%9E%E0%B8%A3+%E0%B9%81%E0%B8%A5%E0%B8%99%E0%B8%94%E0%B9%8C+%E0%B9%81%E0%B8%AD%E0%B8%99%E0%B8%94%E0%B9%8C+%E0%B9%80%E0%B8%AE%E0%B9%89%E0%B8%B2%E0%B8%AA%E0%B9%8C+%E0%B8%AA%E0%B8%87%E0%B8%82%E0%B8%A5%E0%B8%B2+%E0%B8%97%E0%B9%88%E0%B8%B2%E0%B8%AA%E0%B8%B0%E0%B8%AD%E0%B9%89%E0%B8%B2%E0%B8%99&hnear=&radius=15000&ll=7.146356,100.580064&spn=0.071946,0.071946&t=m&output=embed"></iframe> </td> </tr> </table> </td> <td width="504" align="center" valign="top"><table width="94%" height="436" border="0" align="center" cellpadding="0" cellspacing="0" class="border"> <tr> <td width="8"> </td> <td height="51" class="h-title"> กรอกแบบฟอร์มด้านล่างนี้เพื่อติดต่อเรา <br /> Please fill out the form below to contact us</td> <td width="11"> </td> </tr> <tr> <td width="8" height="64"> </td> <td valign="top" bgcolor="#FFFFFF" class="txt-10"><form name="form1" method="post" action="contact.php"> <p> <input name="action" type="hidden" id="action" /> </p> <p> </p> <p><strong>เราขอน้อมรับทุกคำแนะนำจากท่าน</strong> เพราะทุกความต้องการของท่าน คือ แรงบันดาลใจให้เราพัฒนาต่อไป มีความประสงค์ต้องการติดต่อบริษัท, ร้องเรียนปัญหา, แจ้งซ่อมหรือนัดเจ้าหน้าที่ประจำโครงการ เพื่อเยี่ยมชมโครงการของเบญจพรกรุ๊ป เชิญส่งทุกความคิดเห็นของท่าน ที่นี่!! </p> <table width="100%" border="0" cellpadding="0" cellspacing="3" class="text-10"> <tr> <td width="29%" height="62"></td> <td width="71%" height="62"></td> </tr> <tr> <td width="29%" height="30" align="right" class="LR20 txt-10"><strong>ชื่อผู้ติดต่อ</strong></td> <td height="30" align="left"><input name="names" type="text" class="txt-10" size="40"></td> </tr> <tr> <td width="29%" height="30" align="right" class="LR20 txt-10"><strong>อีเมล์</strong></td> <td height="30" align="left"><input name="email" type="text" class="txt-10" size="40"></td> </tr> <tr class="txt-9"> <td width="29%" height="30" align="right"><strong class="LR20 txt-10">โทรศัพท์</strong></td> <td height="30" align="left"><input name="teleno" type="text" class="txt-10" size="40"></td> </tr> <tr> <td width="29%" align="right" valign="top" class="LR20 txt-10"><strong>รายละเอียด</strong></td> <td align="left"><textarea name="detail" cols="43" rows="10" class="txt-10" ></textarea></td> </tr> <tr> <td width="29%"><label></label></td> <td><input type="button" name="Submit" value=" ส่งข้อความ " class="txt-10" width="60" onClick="CsF();" ></td> </tr> </table> </form></td> <td width="11"> </td> </tr> <tr> <td width="8"> </td> <td height="11" ></td> <td width="11"></td> </tr> </table></td> </tr> <tr> <td colspan="2" align="right" valign="top"><map name="Map" id="Map2"> <area shape="rect" coords="229,2,299,30" href="#" alt="" /> <area shape="rect" coords="306,2,383,30" href="type.php" alt="" /> </map></td> </tr> <tr> <td height="73" colspan="2" align="left" valign="top" > </td> </tr> </table> </center> <?php include("footer.php"); ?> </body> </html>
|