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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
<?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 BJ Concrete : ".$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: APP ' . "\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 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="style.css" rel="stylesheet" type="text/css" />
<!--------- code menu --------> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="stylesheet" type="text/css" href="css/font-awesome.css"> <link rel="stylesheet" type="text/css" href="css/menu.css"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/function.js"></script> <!--------- code menu -------->
<!--------- code slide to top --------> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<style> body { background: url(images/bg-top-detail.jpg) no-repeat top center; background-color:#57ba5e; /* background-color:#2f2f2f;*/ }
div#page { max-width: 900px; margin-left: auto; margin-right: auto; padding: 2px; } .back-to-top { position: fixed; bottom: 0em; right: 0px; text-decoration: none; color: #000000; /* background-color: rgba(235, 235, 235, 0.80); */ font-size: 12px; padding: 0em; display: none; }
.back-to-top:hover { /* background-color: rgba(135, 135, 135, 0.50); */ } </style> <!--------- code slide to top -------->
<!--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> <center> <table width="1000" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="777" align="left" valign="top" style="padding-left:10px;"><?php include("menu.php"); ?></td> <td width="223" align="right" valign="top"><img src="images/index/index_04.png" width="223" height="68" alt="" /></td> </tr> <tr> <td colspan="2" align="left" valign="top" width="1000" height="500" style="background-image:url(Slideshow/images/banner-1-4.png); background-repeat:no-repeat; background-position:center top;"/> </td> </tr> <tr> <td height="200" colspan="2" align="right" valign="top"> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="350" ></td> <td width="650" valign="top" class="LRTB20" > <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="radius8"> <tr> <td height="10" colspan="2" align="left" class="L10"></td> </tr> <tr> <td height="40" colspan="2" align="center" bgcolor="#57BA5E" class="text-white"><strong class="txt-header-white"> บริษัท เบญจพร คอนกรีต โปรดักส์ จำกัด</strong></td> </tr> <tr> <td height="15" align="right" valign="top" class="L10"> </td> <td height="15" align="left" valign="top" > </td> </tr> <tr> <td width="22%" height="30" align="right" valign="top" class="LR10 txt-clipvdo"><strong>สำนักงาน</strong></td> <td width="72%" height="30" align="left" valign="top" class="LR10 txt-clipvdo" ><strong>2/2 หมูที่ 3 ตำบลพะวง อำเภอหาดใหญ่ จังหวัดสงขลา 90230</strong></td> </tr> <tr> <td height="30" align="right" bgcolor="#F4F4F4" class="LR10 txt-clipvdo"><strong>โทรศัพท์</strong></td> <td height="30" align="left" bgcolor="#F4F4F4" class="LR10 txt-clipvdo"><strong>074-291720</strong></td> </tr> <tr> <td height="30" align="right" class="LR10 txt-clipvdo"><strong>โทรสาร</strong></td> <td height="30" align="left" class="LR10 txt-clipvdo"><strong>074-291721</strong></td> </tr> <tr> <td height="30" align="right" bgcolor="#F4F4F4" class="LR10 txt-clipvdo"><strong>อีเมล์</strong></td> <td height="30" align="left" bgcolor="#F4F4F4" class="LR10 txt-clipvdo" > </td> </tr> <tr> <td height="30" align="right" class="LR10 txt-clipvdo"><strong>เฟสบุ๊ค</strong></td> <td height="30" align="left" class="LR10 txt-clipvdo"><a href="https://www.facebook.com/bjconcrete" target="_blank">www.facebook.com/bjconcrete</a></td> </tr> <tr> <td height="30" align="left" class="L10"> </td> <td height="30" align="left"> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" valign="top" bgcolor="#333333" class="LRTB20 txt-header-white" >หากท่านมีความประสงค์ต้องการติดต่อ ปรึกษา ขอคำแนะนำ กรุณากรอกแบบฟอร์มด้านล่างนี้ค่ะ</td> </tr> <tr> <td colspan="2" valign="top" bgcolor="#E1E1E1" class="LRTB20" ><form name="form1" method="post" action="contact.php"> <input name="action" type="hidden" id="action" /> <table width="100%" border="0" cellpadding="0" cellspacing="3" class="text-10"> <tr> <td width="23%" height="35" align="right" ><strong class="txt-clipvdo">ชื่อผู้ติดต่อ</strong></td> <td width="77%" height="35" align="left" class="L10"><input name="names" type="text" class="txt-10" size="40"></td> </tr> <tr> <td width="23%" height="35" align="right" ><strong class="txt-clipvdo">อีเมล์</strong></td> <td height="35" align="left" class="L10"><input name="email" type="text" class="txt-10" size="40"></td> </tr> <tr class="txt-9"> <td width="23%" height="35" align="right"><strong class="txt-clipvdo">โทรศัพท์</strong></td> <td height="35" align="left" class="L10"><input name="teleno" type="text" class="txt-10" size="40"></td> </tr> <tr> <td width="23%" align="right" valign="top" ><strong class="txt-clipvdo">รายละเอียด</strong></td> <td align="left" class="L10"><textarea name="detail" cols="43" rows="10" class="txt-10" ></textarea></td> </tr> <tr> <td width="23%" height="40"><label></label></td> <td height="40" class="L10"><input type="button" name="Submit" value=" ส่งข้อความ " width="60" onClick="CsF();" class="txt-clipvdo" ></td> </tr> </table> </form></p> </blockquote></td> </tr> <tr> <td colspan="2" bgcolor="#E1E1E1"> </td> </tr> <tr> <td height="10" colspan="2"></td> </tr> </table> </td> </tr> </table> <?php include("footer.php"); ?> <!--------- code slide to top --------> <div><a href="#" class="back-to-top"><img src="images/gotop01a.png" alt="" width="104" height="73" /></a></div>
<script> jQuery(document).ready(function() { var offset = 220; var duration = 500; jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > offset) { jQuery('.back-to-top').fadeIn(duration); } else { jQuery('.back-to-top').fadeOut(duration); } }); jQuery('.back-to-top').click(function(event) { event.preventDefault(); jQuery('html, body').animate({scrollTop: 0}, duration); return false; }) }); </script> <!--------- code slide to top -------->
</center> </body> </html>
|