/home/bjcompany/domains/benjabhorn.com/public_html/benjabhorn_group/form/form_estimate_detail.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
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
<?php include("../phpconfig.php")?>
<?php 

        $query
="SELECT * FROM `tbl_member`  WHERE id='".$_GET['memID']."' ";
        
$result=mysql_query($query);        
        
$data=mysql_fetch_assoc($result);
?>
<!DOCTYPE html>
<html>
  <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="jquery.uniform.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
      $(function(){
        $("input, textarea, select, button").uniform();
      });
    </script>
    <link rel="stylesheet" href="css/uniform.default.css" type="text/css" media="screen">
    <style type="text/css" media="screen">
      body {
        padding: 0px;
      }
      h1 {
        margin-top: 0;
      }
      ul {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      li {
        margin-bottom: 20px;
        clear: both;
      }
      label {
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
        display: block;
        margin-bottom: 3px;
        clear: both;
      }
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
}
    </style>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link href="../style.css" rel="stylesheet" type="text/css">
  <script language="javascript">
         function checkForm(){
                    if(document.form1.name_sname.value==''){
                                alert('กรุณาใส่ชื่อ-นามสกุล')    ;
                                return false;
                        }else if(document.form1.email.value==''){
                                alert('กรุณาใส่อีเมล์')    ;
                                return false;
                        }else if(document.form1.telephone.value==''){
                                alert('กรุณาใส่หมายเลขโทรศัพท์มือถือ')    ;
                                return false;
                        }else {
                                document.form1.action.value='Add';
                            }
            }
   </script>
</head>
  <body>
      <div align="center" class="drop-shadow curved curved-hz-2">
      <p align="center">&nbsp;</p>
      <table width="100%" border="0" align="center" cellpadding="5" cellspacing="3">
        <tr>
          <td height="30" colspan="2" align="left" valign="top" class="line txt11-blue"><strong><img src="../images/icon/icon_system_manager.png" width="50" height="50">ข้อมูลสำหรับติดต่อ</strong></td>
          <td height="30" colspan="2"align="left" class="txt11-blue line"><strong><img src="../images/icon/Invoice.png" width="32" height="32">รายละเอียดเพื่อคำนวณวงเงินสินเชื่อ</strong></td>
        </tr>
        <tr>
          <td height="26" align="right" valign="top"><input type="hidden" name="action" id="action"></td>
          <td height="26" align="left" valign="top">&nbsp;</td>
          <td width="108" height="26" align="right" valign="top">&nbsp;</td>
          <td width="296" height="26" align="left" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td width="197" height="30" align="right" valign="top"><strong>ชื่อ-นามสกุล</strong></td>
          <td width="297" height="30" align="left" valign="top"><?php echo $data['name_sname']?></td>
          <td height="30" align="right" valign="top"><strong>อาชีพ</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['Career']?></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>E-mail</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['email']?></td>
          <td height="30" align="right" valign="top"><strong>รายได้ต่อเดือน</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['income']?>
  &nbsp; บาท</td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>โทรศัพท์มือถือ</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['telephone']?>
         </td>
          <td height="30" align="right" valign="top"><strong>ภาระหนี้ต่อเดือน</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['dept_per_month']?>
  &nbsp; บาท</td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>ที่อยู่ปัจจุบัน</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['address']?></td>
          <td height="30" align="right" valign="top"><strong>จำนวนปีที่กู้</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['year_to_loan']?>&nbsp; ปี</td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>ท่านรู้จักเราจากสื่อใด</strong></td>
          <td height="30" colspan="3" align="left" valign="top"><table width="311" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td width="24"><input name="know_web" type="checkbox" id="know_web" value="1" <?php if($data['know_web']==1){ echo "checked";}?> /></td>
                  <td width="90">เว็บไซต์</td>
                  <td width="23"><input name="know_direct" type="checkbox" id="know_direct" value="1"  <?php if($data['know_direct']==1){ echo "checked";}?>/></td>
                  <td width="101">มีผู้แนะนำ</td>
                  <td width="20"><input name="know_newspaper" type="checkbox" id="know_newspaper" value="1" <?php if($data['know_newspaper']==1){ echo "checked";}?>/></td>
                  <td width="194">หนังสือพิมพ์</td>
                </tr>
                <tr>
                  <td><input name="know_radio" type="checkbox" id="know_radio" value="1" <?php if($data['know_radio']==1){ echo "checked";}?> /></td>
                  <td>วิทยุ</td>
                  <td><input name="know_brochure" type="checkbox" id="know_brochure" value="1" <?php if($data['know_brochure']==1){ echo "checked";}?> /></td>
                  <td>แผ่นพับ</td>
                  <td><input name="know_other" type="checkbox" id="know_other" value="1"  <?php if($data['know_other']==1){ echo "checked";}?>/></td>
                  <td>อื่น ๆ </td>
                </tr>
              </tbody>
          </table></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>ท่านต้องการรับข่าวสารโดยวิธี</strong></td>
          <td height="30" colspan="3" align="left" valign="top"><table width="304" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td width="26"><input name="need_news" type="checkbox" id="need_news" value="1"   <?php if($data['need_news']==1){ echo "checked";}?>/></td>
                  <td width="87">อีเมล</td>
                  <td width="22"><input name="need_letter" type="checkbox" id="need_letter" value="1"   <?php if($data['need_letter']==1){ echo "checked";}?>/></td>
                  <td width="103">จดหมาย</td>
                  <td width="24"><input name="need_sms" type="checkbox" id="need_sms" value="1"  <?php if($data['need_sms']==1){ echo "checked";}?>/></td>
                  <td width="77">SMS</td>
                </tr>
              </tbody>
          </table></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top">&nbsp;</td>
          <td height="30" align="left" valign="top">&nbsp;</td>
          <td align="left" valign="top">&nbsp;</td>
          <td align="left" valign="top">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" align="center" cellpadding="5" cellspacing="3">

        <tr>
          <td height="30" colspan="2" align="left" valign="top" class="line txt11-blue"><strong><img src="../images/icon/icon_registration (1).png" width="50" height="50" align="absbottom">รายละเอียดเกี่ยวกับบ้าน</strong></td>
        </tr>
        <tr>
          <td width="257" height="26" align="right" valign="top">&nbsp;</td>
          <td width="257" height="26" align="left" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>ความต้องการซื้อที่อยู่อาศัยใหม่</strong> </td>
          <td height="30" align="left" valign="top"><table width="352" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td width="22"><input name="buy_new" type="radio" value="1" <?php if($data['buy_new']==1){ echo "checked";}?> /></td>
                  <td width="115">มีความต้องการ</td>
                  <td width="20"><input name="buy_new" type="radio" value="0"  <?php if($data['buy_new']==0){ echo "checked";}?>/></td>
                  <td width="195">ไม่มี ซื้อแล้ว</td>
                </tr>
              </tbody>
          </table></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>ต้องการซื้อบ้านภายใน</strong> </td>
          <td height="30" align="left" valign="top">
         <?php echo $data['buy_in']?>     </td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>ประเภทที่อยู่อาศัย</strong></td>
          <td height="30" align="left" valign="top"><table width="589" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td width="20"><input name="buy_single_hone" type="checkbox" id="buy_single_hone" value="1" <?php if($data['buy_single_hone']==1){ echo "checked";}?> /></td>
                  <td width="89">บ้านเดี่ยว</td>
                  <td width="20"><input name="buy_twin_home" type="checkbox" id="buy_twin_home" value="1"  <?php if($data['buy_twin_home']==1){ echo "checked";}?>/></td>
                  <td width="85">บ้านแฝด</td>
                  <td width="20"><input name="buy_town_house" type="checkbox" id="buy_town_house" value="1"  <?php if($data['buy_town_house']==1){ echo "checked";}?>/></td>
                  <td width="95">ทาวน์เฮาส์</td>
                  <td width="20"><input name="buy_commercial_house" type="checkbox" id="buy_commercial_house" value="1"  <?php if($data['buy_commercial_house']==1){ echo "checked";}?> /></td>
                  <td width="110">อาคารพาณิชย์</td>
                  <td width="30"><input name="buy_condo" type="checkbox" id="buy_condo" value="1"   <?php if($data['buy_condo']==1){ echo "checked";}?>/></td>
                  <td width="100">คอนโดมิเนียม</td>
                </tr>
              </tbody>
          </table></td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>ราคาบ้าน</strong></td>
          <td height="30" align="left" valign="top">
            <?php echo $data['price']?></td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>เงินผ่อนต่องวด</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['Installments']?>         </td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>ทำเลที่สนใจ</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['location']?></td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>โครงการที่สนใจ</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['project_interest']?>
          </td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>ขนาดพื้นที่ใช้สอย /
            ห้องที่ต้องการ</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['need_area_room']?>
                   </td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>ทำเลที่ตั้งที่ทำงาน</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['buyer_work_location']?></td>
        </tr>
        <tr>
          <td height="30" align="right"><strong>ชื่อสถานที่ทำงาน</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['buyer_work_name']?></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top"><strong>อบถามเพิ่มเติม /
            คำแนะนำอื่นๆ</strong></td>
          <td height="30" align="left" valign="top"><?php echo $data['buy_note']?></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top">&nbsp;</td>
          <td height="30" align="left" valign="top">&nbsp;</td>
        </tr>
      </table>
      <p align="center">&nbsp;</p>
    </div>
</body>
</html>