01.
<form action=
""
method=
"post"
name=
"form1"
id=
"form1"
target=
"iframe_target"
>
02.
<div align=
"center"
><span
class
=
"style1"
>11111111111</span>
03.
<input name=
"date"
type=
"text"
id=
"date"
value=
"<?php echo $row_Recordset1['start_date']; ?>"
size=
"11"
/>
04.
<a href=
"javascript:void(0)"
onclick=
"if(self.gfPop)gfPop.fPopCalendar(document.form1.date);return false;"
><img
class
=
"PopcalTrigger"
align=
"absmiddle"
src=
"../PopCalendarXP/calbtn.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
/></a>
05.
<span
class
=
"style1"
>ถึงวันที่</span>
06.
<input name=
"date1"
type=
"text"
id=
"date1"
value=
"<?php echo $row_Recordset1['end_date']; ?>"
size=
"11"
/>
07.
<a href=
"javascript:void(0)"
onclick=
"if(self.gfPop)gfPop.fPopCalendar(document.form1.date1);return false;"
><img
class
=
"PopcalTrigger"
align=
"absmiddle"
src=
"../PopCalendarXP/calbtn.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
/></a>
08.
<span
class
=
"style1"
> เลือกรูปแบบกราฟ</span> <strong><font size=
"2"
face=
"MS Sans Serif, Tahoma, sans-serif"
>
09.
<select name=
"graph"
id=
"graph"
>
10.
<option value=
""
>เลือกรูปแบบการฟ</option>
11.
<option value=
"Pie2D"
<?
if
(
$graph
==
"Pie2D"
){
echo
"selected"
;} ?>>กราฟวงกลม2D</option>
12.
<option value=
"Pie3D"
<?
if
(
$graph
==
"Pie3D"
){
echo
"selected"
;} ?>>กราฟวงกลม3D</option>
13.
<option value=
"Column2D"
<?
if
(
$graph
==
"Column2D"
){
echo
"selected"
;} ?>>กราฟแท่ง2D</option>
14.
<option value=
"Column3D"
<?
if
(
$graph
==
"Column3D"
){
echo
"selected"
;} ?>>กราฟแท่ง3D</option>
15.
<option value=
"Line"
<?
if
(
$graph
==
"Line"
){
echo
"selected"
;} ?>>กราฟเส้น2D</option>
16.
<option value=
"Area2D"
<?
if
(
$graph
==
"Area2D"
){
echo
"selected"
;} ?>>กราฟเส้น3D</option>
17.
<option value=
"Bar2D"
<?
if
(
$graph
==
"Bar2D"
){
echo
"selected"
;} ?>>กราฟแท่งแนวนอน2D</option>
18.
</select>
19.
</font></strong>
20.
<select name=
"select"
id=
"select"
>
21.
<option value=
""
>เลือกวันลา</option>
22.
<option value=
"chart_va_show_php"
>ลาพักผ่อน</option>
23.
<option value=
"chart_va_show_privacy.php"
>ลากิจ</option>
24.
</select>
25.
</div>
26.
</form>
27.
<script>
28.
$(
"#select"
).change(
function
(){
29.
var
graphVal = $(
"#graph option:selected"
).val();
30.
var
date1 = $(
"input#date"
).val();
31.
var
date2 = $(
"input#date1"
).val();
32.
var
url = $(
"option:selected"
,this).val();
33.
$.post(url , {dateBeg:date1,dateEnd:date2,graphValue:graphVal} ,
function
(returningData){
34.
$(
"#iframe_target"
).contents().find(
"body"
).html(returningData);
35.
36.
37.
});
38.
});
39.
</script>