001.
<?
include
"headlog.php"
;?>
002.
<?
include
(
"scrip.php"
); ?>
005.
<style type=
"text/css"
>
006.
<!--
007.
.style1 {color: #FF0000}
008.
.style2 {color: #000000}
009.
.style3 {color: #0000FF}
010.
-->
011.
</style>
012.
<head>
013.
<meta http-equiv=Content-Type content=
"text/html; charset=utf-8"
>
014.
<title>..:::ระบบจัดการกลุ่มออมทรัพย์เพื่อการผลิต:::..</title>
015.
<link href=
"style.css"
rel=
"stylesheet"
type=
"text/css"
/>
016.
<link href=
"main_style.css"
rel=
"stylesheet"
type=
"text/css"
/>
017.
</head>
018.
<?
019.
$strDefault
=
$objResult2
[
"prefix"
] ;
020.
mysql_connect(
"localhost"
,
"root"
,
"1234"
)
or
die
(mysql_error());
021.
mysql_select_db(
"savingdbdb"
);
022.
?>
023.
024.
<body>
025.
<div
class
=
"warp"
>
026.
<div
class
=
"body"
>
027.
<div id=
"left_block"
>
028.
<p style=
" clear:both;margin:10px 0 0;"
>
029.
<div
class
=
"manu_list"
style=
"margin-top:1px;"
>
030.
<td colspan=
"2"
><img src=
"images/menu.gif"
width=
"220"
height=
"30"
/></td>
031.
<a href=
"authdepindex.php"
>หน้าแรก</a>
032.
<a href=
"authdepprofile"
>ข้อมูลส่วนตัว</a>
033.
<a href=
"authdepmem"
>จัดการข้อมูลสมาชิก</a>
034.
<a href=
"authdepitem"
>จัดการข้อมูลเงินฝาก</a>
035.
<a href=
"authdepdiv"
>คำนวณเงินปันผล</a>
036.
<a href=
"authdeppaydiv"
>ข้อมูลการจ่ายเงินปันผล</a>
037.
<a href=
"authnews"
>จัดการข้อมูลข่าวประชาสัมพันธ์</a>
038.
<a href=
"logout.php"
>ออกจากระบบ</a>
039.
</div>
040.
</p>
041.
</div>
042.
</div>
043.
<div id=
"right_block"
>
044.
<font size=
"18"
color=
"#993300"
><b><center> แก้ไขข้อมูลสมาชิก </center></b></font>
045.
<form action=
"savememedit.php?user_id=<?=$_GET["
uID
"];?>"
name=
"frm"
method=
"post"
>
046.
<?
047.
include
(
"connect.php"
);
048.
$strSQL
=
"SELECT * FROM user WHERE user_id = "
.
$_GET
[
"uID"
];
049.
$objQuery
= mysql_query(
$strSQL
);
050.
$objResult
= mysql_fetch_array(
$objQuery
);
051.
if
(!
$objResult
)
052.
{
053.
echo
"Not found user_id="
.
$_GET
[
"uID"
];
054.
}
055.
else
056.
{
057.
?>
058.
059.
<table width=
"96%"
border=
"0"
align=
"center"
cellpadding=
"1"
cellspacing=
"0"
bordercolor=
"#000066"
>
060.
<tr>
061.
<td width=
"23%"
height=
"38"
align=
"right"
><strong>คำนำหน้า :</strong></td>
062.
<td width=
"72%"
align=
"left"
>
063.
064.
<select name=
"txtprefix"
>
065.
<option value=
""
>--คำนำหน้า--</option>
066.
<?
067.
$strSQL
=
"SELECT * FROM prefix"
;
068.
$objQuery2
= mysql_query(
$strSQL
);
069.
070.
while
(
$objResult2
= mysql_fetch_array(
$objQuery2
))
071.
{
072.
if
(
$objResult
[
"prefix"
] ==
$objResult2
[
"prefix_id"
])
073.
{
074.
$sel
=
"selected='selected'"
;
075.
}
076.
else
077.
{
078.
$sel
=
""
;
079.
}
080.
?>
081.
<option value=
"<?=$objResult2["
prefix_id
"];?>"
<?=
$sel
;?>>
082.
<?=
$objResult2
[
"prefix_name"
];?>
083.
</option>
084.
<?
085.
}
086.
?>
087.
</select> <td width=
"2%"
align=
"left"
> </td>
088.
<td width=
"2%"
align=
"left"
> </td>
089.
</tr>
090.
<tr>
091.
<td height=
"34"
align=
"right"
>
092.
<strong>ชื่อ :</strong></td>
093.
<td align=
"left"
>
094.
<input type=
"text"
name=
"txtfname"
value=
"<? echo $objResult['fname'];?>"
>
095.
<strong>นามสกุล :</strong>
096.
<input type=
"text"
id=
"txtlname"
name=
"txtlname"
value=
"<?=$objResult['lname']?>"
>
097.
</td>
098.
<td height=
"34"
align=
"right"
> </td>
099.
<td align=
"left"
> </td>
100.
</tr>
101.
<tr>
102.
<td height=
"86"
align=
"right"
><strong>ที่อยู่ :</strong></td>
103.
<td align=
"left"
>
104.
<textarea name=
"txtaddress"
cols=
"38"
rows=
"4"
id=
"txtaddress"
><?=
$objResult
[
"address"
]; ?></textarea></td>
105.
<td align=
"left"
> </td>
106.
<td align=
"left"
> </td>
107.
</tr>
108.
<td height=
"38"
align=
"right"
><strong>หมายเลขบัตรประชาชน :</strong></td>
109.
<td align=
"left"
>
110.
<input type=
"text"
id=
"txtidcard"
name=
"txtidcard"
maxlength=
"13"
value=
"<?=$objResult["
idcard
"];?>"
>
111.
<font color=
"red"
>**13 ตัวอักษร**</font> </td>
112.
<td align=
"left"
> </td>
113.
<br />
114.
<td align=
"left"
> </td>
115.
</tr>
116.
<tr>
117.
<td height=
"38"
align=
"right"
><strong>วันเกิด :</strong></td>
118.
<td align=
"left"
>
119.
<input type=
"text"
id=
"txtbirth"
name=
"txtbirth"
value=
"<?=$objResult["
birth
"];?>"
/>
120.
<a href=
"javascript:displayDatePicker('txtbirth')"
><img border=
"0"
src=
"images/calendar.jpg"
width=
"19"
height=
"19"
/></a></td>
121.
<td align=
"left"
> </td>
122.
<td align=
"left"
> </td>
123.
<td width=
"0%"
align=
"left"
><a href=
"javascript:displayDatePicker('txtbirth')"
>
124.
</a>
125.
</td>
126.
<td width=
"1%"
align=
"left"
> </td>
127.
128.
</tr>
129.
<tr>
130.
<td height=
"41"
align=
"right"
><strong>เบอร์ติดต่อ :</strong></td>
131.
<td align=
"left"
>
132.
<input type=
"text"
id=
"txttelephone"
name=
"txttelephone"
value=
"<?=$objResult["
telephone
"];?>"
/>
133.
<span
class
=
"style1"
>**ตย. 089-0000000**</span></td>
134.
<td align=
"left"
> </td>
135.
<td align=
"left"
> </td>
136.
</tr>
137.
<tr>
138.
<td height=
"37"
align=
"right"
><strong>อาชีพ :</strong></td>
139.
<td align=
"left"
>
140.
<input type=
"text"
id=
"txtoccupation"
name=
"txtoccupation"
value=
"<?=$objResult["
occupation
"];?>"
/>
141.
<strong>รายได้เฉลี่ยต่อเดือน :
142.
<input name=
"txtsalary"
type=
"text"
id=
"txtsalary"
size=
"10"
value=
"<?=$objResult["
salary
"];?>"
/>
143.
บาท</strong>
144.
</td>
145.
<td align=
"left"
> </td>
146.
<td align=
"left"
> </td>
147.
</tr>
148.
<tr>
149.
<td height=
"37"
align=
"right"
><strong>จำนวนเงินฝากต่อเดือน :</strong></td>
150.
<td align=
"left"
>
151.
<input type=
"text"
id=
"txtdep_mount"
name=
"txtdep_mount"
value=
"<?=$objResult["
dep_mount
"];?>"
/>
152.
<strong>บาท</strong></td>
153.
<td align=
"left"
> </td>
154.
<td align=
"left"
> </td>
155.
</tr>
156.
<br/><br/>
157.
<tr>
158.
<td align=
"center"
>
159.
<td align=
"center"
>
160.
<div align=
"left"
>
161.
162.
<input type=
"submit"
value=
"บันทึก"
/>
163.
<input type=
"reset"
value=
"ยกเลิก"
/>
164.
</div></td>
165.
<td align=
"center"
> </td>
166.
<td align=
"center"
>
167.
<div align=
"left"
>
168.
<p> </p>
169.
<p> </p>
170.
</div></td>
171.
</td>
172.
</tr>
173.
</table>
174.
<?
175.
}
176.
mysql_close(
$objConnect
);
177.
?>
178.
179.
</form>
180.
<br/>
181.
</p>
182.
</div>