001.
<script src=
"../js/ui/jquery.ui.widget.js"
></script>
002.
<script src=
"../js/ui/jquery.ui.mouse.js"
></script>
003.
<script src=
"../js/ui/jquery.ui.sortable.js"
></script>
004.
<script src=
"../js/ui/jquery.ui.tabs.js"
></script>
005.
<script src=
"../js/ui/jquery.ui.menu.js"
></script>
006.
<script src=
"../js/ui/jquery.ui.autocomplete.js"
></script>
007.
<script src=
"../js/ui/jquery.ui.position.js"
></script>
008.
<script src=
"../js/ui/jquery.ui.datepicker.js"
></script>
009.
<script src=
"../js/ui/i18n/jquery.ui.datepicker-th.js"
></script>
010.
<script type=
"text/javascript"
>
011.
$(document).ready(
function
(){
012.
$(
"#slidingDiv"
).hide();
013.
$(
"#show_hide"
).show();
014.
015.
$(
'#show_hide'
).click(
function
(){
016.
$(
"#slidingDiv"
).slideToggle();
017.
});
018.
var
tabs = $(
"#tabs"
).tabs();
019.
tabs.find(
".ui-tabs-nav"
).sortable({
020.
axis:
"x"
,
021.
stop:
function
() {
022.
tabs.tabs(
"refresh"
);
023.
}
024.
});
025.
$(
"#showfault2"
).autocomplete({
026.
minLength: 1,
027.
source:
"../modules/payaqua/card_result_fault.php"
,
028.
focus:
function
( event, ui ) {
029.
$(
"#showfault2"
).val( ui.item.label );
030.
return
false;
031.
},
032.
})
033.
.data(
"ui-autocomplete"
)._renderItem =
function
( ul, item ) {
034.
return
$(
"<li>"
)
035.
.append(
'<a><div class="list_item_container" title="'
+item.name+
'"><span class="label">'
+ item.name +
'</span></div></a>'
)
036.
.appendTo( ul );
037.
};
038.
039.
});
040.
</script>
041.
<div
class
=
"aqua_hbar"
><img src=
"../media/icons/nav/book_2.png"
width=
"32"
height=
"32"
>ลงกระทำความผิด</div>
042.
<?php
043.
$member_data
=
$getdata
->my_sql_query(NULL,
"member"
,
"member_key='"
.
addslashes
(
$_GET
['key
'])."'
");
044.
if
(@
addslashes
(
$_POST
[
'show_data'
])){
045.
$faultdata
=
$getdata
->my_sql_query(NULL,
"fault"
,
"fault_code='"
.
addslashes
(
$_REQUEST
['fault_code
'])."'
");
046.
}
047.
if
(@
addslashes
(
$_POST
[
'register_fault'
])){
048.
if
(@
addslashes
(
$faultdata
[
'fault_status'
] != 0)){
049.
$display_alert
=
'<div class="alert_box red"><img src="../media/icons/set/white/alert2.png" width="32" height="32">ผู้ข้อหานี้ยังไม่ได้ถูกเปิดใช้งาน กรุณาตรวจสอบและลองใหม่อีกครั้ง !</div>'
;
050.
}
else
if
(
addslashes
(
$_POST
[
'h_fault_key'
]) != NULL){
051.
$regis_key
= md5(
addslashes
(
$_POST
[
'h_fault_key'
]).time(
"now"
));
052.
$getdata
->my_sql_insert(
"fault_register"
,
"regis_key='"
.
$regis_key
.
"',fault_key='"
.
addslashes
(
$_POST
['h_fault_key
'])."'
,member_key=
'".$member_data->member_key."'
,regis_price=
'".addslashes($_POST['
fault_price
'])."'
,payment_status=
'0'
");
053.
$display_alert
=
'<div class="alert_box green"><img src="../media/icons/set/color/right1.png" width="32" height="32">บันทึกกระทำความผิด สำเร็จ!</div>'
;
054.
echo
'<script>alert("บันทึกกระทำความผิด สำเร็จ!")</script>'
;
055.
echo
"<script>window.location='?p=payaqua&member_code=$member_data->member_code'</script>"
;
056.
057.
}
else
{
058.
$display_alert
=
'<div class="alert_box red"><img src="../media/icons/set/white/notification.png" width="32" height="32">ข้อมูลไม่ถูกต้อง กรุณาตรวจสอบใหม่อีกครั้ง !</div>'
;
059.
}
060.
061.
}
062.
?>
063.
<?php
echo
@
$faultdata
->fault_status;?>
064.
<div
class
=
"field_invisible"
>
065.
<?php
echo
@
$display_alert
;?>
066.
<form id=
"form1"
name=
"form1"
method=
"post"
>
067.
<table width=
"100%"
border=
"0"
>
068.
<tr>
069.
<td width=
"50%"
><fieldset
class
=
"field_std3"
>
070.
<legend>ข้อมูลสมาชิกวิน ฯ </legend>
071.
<table width=
"100%"
border=
"0"
>
072.
<tr>
073.
<td width=
"11%"
rowspan=
"2"
align=
"center"
><img src=
"../resource/members/images/<?php echo @$member_data->member_photo;?>"
height=
"50"
alt=
""
id=
"image_border"
/></td>
074.
<td width=
"23%"
align=
"right"
>เลขบัตรประชาชน :</td>
075.
<td width=
"66%"
> <?php
echo
@
$member_data
->member_code;?></td>
076.
</tr>
077.
<tr>
078.
<td height=
"21"
align=
"right"
>ชื่อ-สกุล :</td>
079.
<td> <?php
echo
@
$member_data
->member_prefix.
$member_data
->member_name.
" "
.
$member_data
->member_lastname;?></td>
080.
</tr>
081.
</table></fieldset></td>
082.
<td width=
"50%"
><fieldset
class
=
"field_std3"
>
083.
<legend>ค้นหากระทำความผิด</legend><table width=
"100%"
border=
"0"
>
084.
<tr>
085.
<td width=
"50%"
height=
"29"
align=
"center"
>
086.
<label
for
=
"fault_on"
>ข้อหาหรือมาตรา :</label>
087.
<input type=
"text"
name=
"fault_code"
class
=
"aqua_textfield"
id=
"showfault2"
autofocus autocomplete=
"off"
value=
"<?php echo @addslashes($_GET['fault_code']);?>"
>
088.
<input type=
"submit"
name=
"show_data"
class
=
"button green"
value=
"แสดงข้อมูล"
>
089.
</select></td>
090.
</tr>
091.
<tr>
092.
<td width=
"50%"
> </td>
093.
</tr>
094.
</table>
095.
</fieldset>
096.
</tr>
097.
<tr>
098.
<td colspan=
"2"
><?php
099.
if
(@
addslashes
(
$_POST
[
'show_data'
])){
100.
?>
101.
<fieldset
class
=
"field_std3"
>
102.
<legend>รายละเอียดความผิด
103.
</legend><table width=
"100%"
border=
"0"
>
104.
<tr>
105.
<td width=
"28%"
align=
"right"
>ID </td>
106.
<td width=
"18%"
>
107.
<input name=
"fault_code"
type=
"text"
disabled id=
"aqua_textfield"
value=
"<?php echo @$faultdata->fault_code;?>"
readonly>
108.
<input type=
"hidden"
name=
"h_fault_key"
id=
"h_fault_key"
value=
"<?php echo @$faultdata->fault_key;?>"
></td>
109.
<td width=
"15%"
align=
"right"
>ข้อหา</td>
110.
<td width=
"39%"
><input name=
"fault_name"
type=
"text"
disabled id=
"aqua_textfield2"
value=
"<?php echo @$faultdata->fault_name;?>"
readonly></td>
111.
</tr>
112.
<tr>
113.
<td align=
"right"
>มาตรา</td>
114.
<td colspan=
"3"
>
115.
<textarea name=
"fault_name_description"
disabled readonly id=
"aqua_textarea"
><?php
echo
@
$faultdata
->fault_name_description;?></textarea></td>
116.
</tr>
117.
<tr>
118.
<td align=
"right"
>พระราชบัญญัติ</td>
119.
<td colspan=
"3"
>
120.
<input name=
"fault_price"
type=
"text"
disabled id=
"aqua_textfield"
value=
"<?php echo @$faultdata->fault_act;?>"
readonly>
121.
</tr>
122.
<tr>
123.
<td align=
"right"
>ค่าปรับ</td>
124.
<td colspan=
"3"
>
125.
<input type=
"text"
name=
"fault_price"
id=
"aqua_textfield"
show_value value=
"<?php echo @$faultdata->fault_price;?>"
></td>
126.
</tr>
127.
<tr>
128.
<td> </td>
129.
<td colspan=
"3"
><input type=
"submit"
name=
"register_fault"
class
=
"button green"
value=
"บันทึกลงระบบ"
></td>
130.
</tr>
131.
</table>
132.
</fieldset><?php
133.
}
134.
?></td>
135.
</tr>
136.
</table>
137.
</form>
138.
</div>