| 10 |
lars |
1 |
var argDate;
|
|
|
2 |
var argYear;
|
|
|
3 |
var argMonth;
|
|
|
4 |
var argDay;
|
|
|
5 |
function datepick(theme,field) {
|
|
|
6 |
argYear = '';
|
|
|
7 |
argMonth = '';
|
|
|
8 |
argDay = '';
|
|
|
9 |
if(document.getElementById(field))
|
|
|
10 |
{
|
|
|
11 |
argDate=document.getElementById(field);
|
|
|
12 |
}
|
|
|
13 |
else
|
|
|
14 |
{
|
|
|
15 |
argDate = field;
|
|
|
16 |
}
|
|
|
17 |
open('/smarty_datepick/index.php?type=textfield&theme='+theme+'&date='+argDate.value,'datepick','width=200,height=200');
|
|
|
18 |
}
|
|
|
19 |
function datepick3(theme,field1,field2,field3) {
|
|
|
20 |
argYear = field1;
|
|
|
21 |
argMonth = field2;
|
|
|
22 |
argDay = field3;
|
|
|
23 |
argDate = '';
|
|
|
24 |
open('/smarty_datepick/index.php?type=dropdown&theme='+theme+'&date='+argYear.options[argYear.selectedIndex].value+'-'+argMonth.options[argMonth.selectedIndex].value+'-'+argDay.options[argDay.selectedIndex].value,'datepick','width=200,height=200');
|
|
|
25 |
}
|