add files
169
vendor/akdelf/akdmin/themes/office/pub/js/calendar/calendar.html
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
<!--
|
||||
Title: Tigra Calendar
|
||||
URL: http://www.softcomplex.com/products/tigra_calendar/
|
||||
Version: 3.4 (all formats)
|
||||
Date: 01/06/2007
|
||||
Note: Permission given to use this script in ANY kind of applications if
|
||||
header lines are left unchanged.
|
||||
Note: Script consists of two files: calendar?.js and calendar.html
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Select Date, Please.</title>
|
||||
<style>
|
||||
td {font-family: Tahoma, Verdana, sans-serif; font-size: 12px;}
|
||||
td a {text-decoration: none;}
|
||||
</style>
|
||||
<script language="JavaScript">
|
||||
|
||||
// months as they appear in the calendar's title
|
||||
var ARR_MONTHS = ["January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"];
|
||||
// week day titles as they appear on the calendar
|
||||
var ARR_WEEKDAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
||||
// day week starts from (normally 0-Su or 1-Mo)
|
||||
var NUM_WEEKSTART = 1;
|
||||
// path to the directory where calendar images are stored. trailing slash req.
|
||||
var STR_ICONPATH = 'img/';
|
||||
|
||||
var re_urlCur = new RegExp('c=(\\-?\\d+)');
|
||||
var re_urlSel = new RegExp('s=(\\-?\\d+)');
|
||||
var re_id = new RegExp('id=(\\d+)');
|
||||
|
||||
var dt_selected = (re_urlSel.exec(String(window.location))
|
||||
? new Date(new Number(RegExp.$1)) : new Date());
|
||||
var dt_current = (re_urlCur.exec(String(window.location))
|
||||
? new Date(new Number(RegExp.$1)) : dt_selected);
|
||||
var num_id = (re_id.exec(String(window.location))
|
||||
? new Number(RegExp.$1) : 0);
|
||||
|
||||
var obj_caller = (window.opener ? window.opener.calendars[num_id] : null);
|
||||
|
||||
if (obj_caller && obj_caller.year_scroll) {
|
||||
// get same date in the previous year
|
||||
var dt_prev_year = new Date(dt_current);
|
||||
dt_prev_year.setFullYear(dt_prev_year.getFullYear() - 1);
|
||||
if (dt_prev_year.getDate() != dt_current.getDate())
|
||||
dt_prev_year.setDate(0);
|
||||
|
||||
// get same date in the next year
|
||||
var dt_next_year = new Date(dt_current);
|
||||
dt_next_year.setFullYear(dt_next_year.getFullYear() + 1);
|
||||
if (dt_next_year.getDate() != dt_current.getDate())
|
||||
dt_next_year.setDate(0);
|
||||
}
|
||||
|
||||
// get same date in the previous month
|
||||
var dt_prev_month = new Date(dt_current);
|
||||
if (dt_prev_month.getMonth()) {
|
||||
dt_prev_month.setMonth(dt_prev_month.getMonth() - 1);
|
||||
if (dt_prev_month.getDate() != dt_current.getDate())
|
||||
dt_prev_month.setDate(0);
|
||||
}
|
||||
else {
|
||||
dt_prev_month.setFullYear(dt_prev_month.getFullYear() - 1);
|
||||
dt_prev_month.setMonth(11);
|
||||
}
|
||||
|
||||
// get same date in the next month
|
||||
var dt_next_month = new Date(dt_current);
|
||||
dt_next_month.setMonth(dt_next_month.getMonth() + 1);
|
||||
if (dt_next_month.getDate() != dt_current.getDate())
|
||||
dt_next_month.setDate(0);
|
||||
|
||||
// get first day to display in the grid for current month
|
||||
var dt_firstday = new Date(dt_current);
|
||||
dt_firstday.setDate(1);
|
||||
dt_firstday.setDate(1 - (7 + dt_firstday.getDay() - NUM_WEEKSTART) % 7);
|
||||
|
||||
// function passing selected date to calling window
|
||||
function set_datetime(n_datetime, b_close) {
|
||||
if (!obj_caller) return;
|
||||
|
||||
var dt_datetime = obj_caller.prs_time(
|
||||
(document.cal ? document.cal.time.value : ''),
|
||||
new Date(n_datetime)
|
||||
);
|
||||
|
||||
if (!dt_datetime) return;
|
||||
if (b_close) {
|
||||
|
||||
obj_caller.target.value = (document.cal
|
||||
? obj_caller.gen_tsmp(dt_datetime)
|
||||
: obj_caller.gen_date(dt_datetime)
|
||||
);window.close();
|
||||
}
|
||||
else obj_caller.popup(dt_datetime.valueOf());
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" marginheight="5" marginwidth="5" topmargin="5" leftmargin="5" rightmargin="5">
|
||||
<table class="clsOTable" cellspacing="0" border="0" width="100%">
|
||||
<tr><td bgcolor="#4682B4">
|
||||
<table cellspacing="1" cellpadding="3" border="0" width="100%">
|
||||
<tr><td colspan="7"><table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<script language="JavaScript">
|
||||
document.write(
|
||||
'<td nowrap>'+(obj_caller&&obj_caller.year_scroll?'<a href="javascript:set_datetime('+dt_prev_year.valueOf()+')"><img src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16" border="0" alt="previous year"></a> ':'')+'<a href="javascript:set_datetime('+dt_prev_month.valueOf()+')"><img src="'+STR_ICONPATH+'prev.gif" width="16" height="16" border="0" alt="previous month"></a></td>'+
|
||||
'<td align="center" width="100%"><font color="#ffffff">'+ARR_MONTHS[dt_current.getMonth()]+' '+dt_current.getFullYear() + '</font></td>'+
|
||||
'<td nowrap><a href="javascript:set_datetime('+dt_next_month.valueOf()+')"><img src="'+STR_ICONPATH+'next.gif" width="16" height="16" border="0" alt="next month"></a>'+(obj_caller && obj_caller.year_scroll?' <a href="javascript:set_datetime('+dt_next_year.valueOf()+')"><img src="'+STR_ICONPATH+'next_year.gif" width="16" height="16" border="0" alt="next year"></a>':'')+'</td>'
|
||||
);
|
||||
</script>
|
||||
</tr>
|
||||
</table></td></tr>
|
||||
<tr>
|
||||
<script language="JavaScript">
|
||||
|
||||
// print weekdays titles
|
||||
for (var n=0; n<7; n++)
|
||||
document.write('<td bgcolor="#87cefa" align="center"><font color="#ffffff">'+ARR_WEEKDAYS[(NUM_WEEKSTART+n)%7]+'</font></td>');
|
||||
document.write('</tr>');
|
||||
|
||||
// print calendar table
|
||||
var dt_current_day = new Date(dt_firstday);
|
||||
while (dt_current_day.getMonth() == dt_current.getMonth() ||
|
||||
dt_current_day.getMonth() == dt_firstday.getMonth()) {
|
||||
// print row heder
|
||||
document.write('<tr>');
|
||||
for (var n_current_wday=0; n_current_wday<7; n_current_wday++) {
|
||||
if (dt_current_day.getDate() == dt_selected.getDate() &&
|
||||
dt_current_day.getMonth() == dt_selected.getMonth() &&
|
||||
dt_current_day.getFullYear() == dt_selected.getFullYear())
|
||||
// print current date
|
||||
document.write('<td bgcolor="#ffb6c1" align="center" width="14%">');
|
||||
else if (dt_current_day.getDay() == 0 || dt_current_day.getDay() == 6)
|
||||
// weekend days
|
||||
document.write('<td bgcolor="#dbeaf5" align="center" width="14%">');
|
||||
else
|
||||
// print working days of current month
|
||||
document.write('<td bgcolor="#ffffff" align="center" width="14%">');
|
||||
|
||||
document.write('<a href="javascript:set_datetime('+dt_current_day.valueOf() +', true);">');
|
||||
|
||||
if (dt_current_day.getMonth() == this.dt_current.getMonth())
|
||||
// print days of current month
|
||||
document.write('<font color="#000000">');
|
||||
else
|
||||
// print days of other months
|
||||
document.write('<font color="#606060">');
|
||||
|
||||
document.write(dt_current_day.getDate()+'</font></a></td>');
|
||||
dt_current_day.setDate(dt_current_day.getDate()+1);
|
||||
}
|
||||
// print row footer
|
||||
document.write('</tr>');
|
||||
}
|
||||
if (obj_caller && obj_caller.time_comp) {
|
||||
document.write('<form onsubmit="javascript:set_datetime('+dt_current.valueOf()+', true)" name="cal"><tr><td colspan="7" bgcolor="#87CEFA"><font color="White" face="tahoma, verdana" size="2">Time: <input type="text" name="time" value="'+obj_caller.gen_time(this.dt_current)+'" size="8" maxlength="8"></font></td></tr></form>');
|
||||
document.forms['cal'].elements['time'].focus();
|
||||
}
|
||||
</script>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
158
vendor/akdelf/akdmin/themes/office/pub/js/calendar/calendar1.js
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
// Title: Tigra Calendar
|
||||
// URL: http://www.softcomplex.com/products/tigra_calendar/
|
||||
// Version: 3.4 (European date format)
|
||||
// Date: 07/12/2007
|
||||
// Note: Permission given to use this script in ANY kind of applications if
|
||||
// header lines are left unchanged.
|
||||
// Note: Script consists of two files: calendar?.js and calendar.html
|
||||
|
||||
// if two digit year input dates after this year considered 20 century.
|
||||
var NUM_CENTYEAR = 30;
|
||||
// is time input control required by default
|
||||
var BUL_TIMECOMPONENT = false;
|
||||
// are year scrolling buttons required by default
|
||||
var BUL_YEARSCROLL = true;
|
||||
|
||||
var calendars = [];
|
||||
var RE_NUM = /^\-?\d+$/;
|
||||
|
||||
function calendar1(obj_target) {
|
||||
|
||||
// assigning methods
|
||||
this.gen_date = cal_gen_date1;
|
||||
this.gen_time = cal_gen_time1;
|
||||
this.gen_tsmp = cal_gen_tsmp1;
|
||||
this.prs_date = cal_prs_date1;
|
||||
this.prs_time = cal_prs_time1;
|
||||
this.prs_tsmp = cal_prs_tsmp1;
|
||||
this.popup = cal_popup1;
|
||||
|
||||
// validate input parameters
|
||||
if (!obj_target)
|
||||
return cal_error("Error calling the calendar: no target control specified");
|
||||
if (obj_target.value == null)
|
||||
return cal_error("Error calling the calendar: parameter specified is not valid target control");
|
||||
this.target = obj_target;
|
||||
this.time_comp = BUL_TIMECOMPONENT;
|
||||
this.year_scroll = BUL_YEARSCROLL;
|
||||
|
||||
// register in global collections
|
||||
this.id = calendars.length;
|
||||
calendars[this.id] = this;
|
||||
}
|
||||
|
||||
function cal_popup1 (str_datetime) {
|
||||
if (str_datetime)
|
||||
this.dt_current = this.prs_tsmp(str_datetime);
|
||||
else
|
||||
this.dt_selected = this.dt_current = this.prs_tsmp(this.target.value);
|
||||
|
||||
if (!this.dt_current) return;
|
||||
|
||||
var obj_calwindow = window.open(
|
||||
'calendar.html?id=' + this.id + '&s=' + this.dt_selected.valueOf() + '&c=' + this.dt_current.valueOf(),
|
||||
'Calendar', 'width=200,height=' + (this.time_comp ? 215 : 190) +
|
||||
',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes'
|
||||
);
|
||||
obj_calwindow.opener = window;
|
||||
obj_calwindow.focus();
|
||||
}
|
||||
|
||||
// timestamp generating function
|
||||
function cal_gen_tsmp1 (dt_datetime) {
|
||||
return(this.gen_date(dt_datetime) + ' ' + this.gen_time(dt_datetime));
|
||||
}
|
||||
|
||||
// date generating function
|
||||
function cal_gen_date1 (dt_datetime) {
|
||||
return (
|
||||
(dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate() + "-"
|
||||
+ (dt_datetime.getMonth() < 9 ? '0' : '') + (dt_datetime.getMonth() + 1) + "-"
|
||||
+ dt_datetime.getFullYear()
|
||||
);
|
||||
}
|
||||
// time generating function
|
||||
function cal_gen_time1 (dt_datetime) {
|
||||
return (
|
||||
(dt_datetime.getHours() < 10 ? '0' : '') + dt_datetime.getHours() + ":"
|
||||
+ (dt_datetime.getMinutes() < 10 ? '0' : '') + (dt_datetime.getMinutes()) + ":"
|
||||
+ (dt_datetime.getSeconds() < 10 ? '0' : '') + (dt_datetime.getSeconds())
|
||||
);
|
||||
}
|
||||
|
||||
// timestamp parsing function
|
||||
function cal_prs_tsmp1 (str_datetime) {
|
||||
// if no parameter specified return current timestamp
|
||||
if (!str_datetime)
|
||||
return (new Date());
|
||||
|
||||
// if positive integer treat as milliseconds from epoch
|
||||
if (RE_NUM.exec(str_datetime))
|
||||
return new Date(str_datetime);
|
||||
|
||||
// else treat as date in string format
|
||||
var arr_datetime = str_datetime.split(' ');
|
||||
return this.prs_time(arr_datetime[1], this.prs_date(arr_datetime[0]));
|
||||
}
|
||||
|
||||
// date parsing function
|
||||
function cal_prs_date1 (str_date) {
|
||||
|
||||
var arr_date = str_date.split('-');
|
||||
|
||||
if (arr_date.length != 3) return cal_error ("Invalid date format: '" + str_date + "'.\nFormat accepted is dd-mm-yyyy.");
|
||||
if (!arr_date[0]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo day of month value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[0])) return cal_error ("Invalid day of month value: '" + arr_date[0] + "'.\nAllowed values are unsigned integers.");
|
||||
if (!arr_date[1]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo month value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[1])) return cal_error ("Invalid month value: '" + arr_date[1] + "'.\nAllowed values are unsigned integers.");
|
||||
if (!arr_date[2]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo year value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[2])) return cal_error ("Invalid year value: '" + arr_date[2] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
var dt_date = new Date();
|
||||
dt_date.setDate(1);
|
||||
|
||||
if (arr_date[1] < 1 || arr_date[1] > 12) return cal_error ("Invalid month value: '" + arr_date[1] + "'.\nAllowed range is 01-12.");
|
||||
dt_date.setMonth(arr_date[1]-1);
|
||||
|
||||
if (arr_date[2] < 100) arr_date[2] = Number(arr_date[2]) + (arr_date[2] < NUM_CENTYEAR ? 2000 : 1900);
|
||||
dt_date.setFullYear(arr_date[2]);
|
||||
|
||||
var dt_numdays = new Date(arr_date[2], arr_date[1], 0);
|
||||
dt_date.setDate(arr_date[0]);
|
||||
if (dt_date.getMonth() != (arr_date[1]-1)) return cal_error ("Invalid day of month value: '" + arr_date[0] + "'.\nAllowed range is 01-"+dt_numdays.getDate()+".");
|
||||
|
||||
return (dt_date)
|
||||
}
|
||||
|
||||
// time parsing function
|
||||
function cal_prs_time1 (str_time, dt_date) {
|
||||
|
||||
if (!dt_date) return null;
|
||||
var arr_time = String(str_time ? str_time : '').split(':');
|
||||
|
||||
if (!arr_time[0]) dt_date.setHours(0);
|
||||
else if (RE_NUM.exec(arr_time[0]))
|
||||
if (arr_time[0] < 24) dt_date.setHours(arr_time[0]);
|
||||
else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed range is 00-23.");
|
||||
else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_time[1]) dt_date.setMinutes(0);
|
||||
else if (RE_NUM.exec(arr_time[1]))
|
||||
if (arr_time[1] < 60) dt_date.setMinutes(arr_time[1]);
|
||||
else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed range is 00-59.");
|
||||
else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_time[2]) dt_date.setSeconds(0);
|
||||
else if (RE_NUM.exec(arr_time[2]))
|
||||
if (arr_time[2] < 60) dt_date.setSeconds(arr_time[2]);
|
||||
else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed range is 00-59.");
|
||||
else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
dt_date.setMilliseconds(0);
|
||||
return dt_date;
|
||||
}
|
||||
|
||||
function cal_error (str_message) {
|
||||
alert (str_message);
|
||||
return null;
|
||||
}
|
||||
158
vendor/akdelf/akdmin/themes/office/pub/js/calendar/calendar2.js
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
// Title: Tigra Calendar
|
||||
// URL: http://www.softcomplex.com/products/tigra_calendar/
|
||||
// Version: 3.4 (American date format)
|
||||
// Date: 07/12/2007
|
||||
// Note: Permission given to use this script in ANY kind of applications if
|
||||
// header lines are left unchanged.
|
||||
// Note: Script consists of two files: calendar?.js and calendar.html
|
||||
|
||||
// if two digit year input dates after this year considered 20 century.
|
||||
var NUM_CENTYEAR = 30;
|
||||
// is time input control required by default
|
||||
var BUL_TIMECOMPONENT = false;
|
||||
// are year scrolling buttons required by default
|
||||
var BUL_YEARSCROLL = true;
|
||||
|
||||
var calendars = [];
|
||||
var RE_NUM = /^\-?\d+$/;
|
||||
|
||||
function calendar2(obj_target) {
|
||||
|
||||
// assigning methods
|
||||
this.gen_date = cal_gen_date2;
|
||||
this.gen_time = cal_gen_time2;
|
||||
this.gen_tsmp = cal_gen_tsmp2;
|
||||
this.prs_date = cal_prs_date2;
|
||||
this.prs_time = cal_prs_time2;
|
||||
this.prs_tsmp = cal_prs_tsmp2;
|
||||
this.popup = cal_popup2;
|
||||
|
||||
// validate input parameters
|
||||
if (!obj_target)
|
||||
return cal_error("Error calling the calendar: no target control specified");
|
||||
if (obj_target.value == null)
|
||||
return cal_error("Error calling the calendar: parameter specified is not valid target control");
|
||||
this.target = obj_target;
|
||||
this.time_comp = BUL_TIMECOMPONENT;
|
||||
this.year_scroll = BUL_YEARSCROLL;
|
||||
|
||||
// register in global collections
|
||||
this.id = calendars.length;
|
||||
calendars[this.id] = this;
|
||||
}
|
||||
|
||||
function cal_popup2 (str_datetime) {
|
||||
if (str_datetime)
|
||||
this.dt_current = this.prs_tsmp(str_datetime);
|
||||
else
|
||||
this.dt_selected = this.dt_current = this.prs_tsmp(this.target.value);
|
||||
|
||||
if (!this.dt_current) return;
|
||||
|
||||
var obj_calwindow = window.open(
|
||||
'calendar.html?id=' + this.id + '&s=' + this.dt_selected.valueOf() + '&c=' + this.dt_current.valueOf(),
|
||||
'Calendar', 'width=200,height=' + (this.time_comp ? 215 : 190) +
|
||||
',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes'
|
||||
);
|
||||
obj_calwindow.opener = window;
|
||||
obj_calwindow.focus();
|
||||
}
|
||||
|
||||
// timestamp generating function
|
||||
function cal_gen_tsmp2 (dt_datetime) {
|
||||
return(this.gen_date(dt_datetime) + ' ' + this.gen_time(dt_datetime));
|
||||
}
|
||||
|
||||
// date generating function
|
||||
function cal_gen_date2 (dt_datetime) {
|
||||
return (
|
||||
(dt_datetime.getMonth() < 9 ? '0' : '') + (dt_datetime.getMonth() + 1) + "/"
|
||||
+ (dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate() + "/"
|
||||
+ dt_datetime.getFullYear()
|
||||
);
|
||||
}
|
||||
// time generating function
|
||||
function cal_gen_time2 (dt_datetime) {
|
||||
return (
|
||||
(dt_datetime.getHours() < 10 ? '0' : '') + dt_datetime.getHours() + ":"
|
||||
+ (dt_datetime.getMinutes() < 10 ? '0' : '') + (dt_datetime.getMinutes()) + ":"
|
||||
+ (dt_datetime.getSeconds() < 10 ? '0' : '') + (dt_datetime.getSeconds())
|
||||
);
|
||||
}
|
||||
|
||||
// timestamp parsing function
|
||||
function cal_prs_tsmp2 (str_datetime) {
|
||||
// if no parameter specified return current timestamp
|
||||
if (!str_datetime)
|
||||
return (new Date());
|
||||
|
||||
// if positive integer treat as milliseconds from epoch
|
||||
if (RE_NUM.exec(str_datetime))
|
||||
return new Date(str_datetime);
|
||||
|
||||
// else treat as date in string format
|
||||
var arr_datetime = str_datetime.split(' ');
|
||||
return this.prs_time(arr_datetime[1], this.prs_date(arr_datetime[0]));
|
||||
}
|
||||
|
||||
// date parsing function
|
||||
function cal_prs_date2 (str_date) {
|
||||
|
||||
var arr_date = str_date.split('/');
|
||||
|
||||
if (arr_date.length != 3) return alert ("Invalid date format: '" + str_date + "'.\nFormat accepted is dd-mm-yyyy.");
|
||||
if (!arr_date[1]) return alert ("Invalid date format: '" + str_date + "'.\nNo day of month value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[1])) return alert ("Invalid day of month value: '" + arr_date[1] + "'.\nAllowed values are unsigned integers.");
|
||||
if (!arr_date[0]) return alert ("Invalid date format: '" + str_date + "'.\nNo month value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[0])) return alert ("Invalid month value: '" + arr_date[0] + "'.\nAllowed values are unsigned integers.");
|
||||
if (!arr_date[2]) return alert ("Invalid date format: '" + str_date + "'.\nNo year value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[2])) return alert ("Invalid year value: '" + arr_date[2] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
var dt_date = new Date();
|
||||
dt_date.setDate(1);
|
||||
|
||||
if (arr_date[0] < 1 || arr_date[0] > 12) return alert ("Invalid month value: '" + arr_date[0] + "'.\nAllowed range is 01-12.");
|
||||
dt_date.setMonth(arr_date[0]-1);
|
||||
|
||||
if (arr_date[2] < 100) arr_date[2] = Number(arr_date[2]) + (arr_date[2] < NUM_CENTYEAR ? 2000 : 1900);
|
||||
dt_date.setFullYear(arr_date[2]);
|
||||
|
||||
var dt_numdays = new Date(arr_date[2], arr_date[0], 0);
|
||||
dt_date.setDate(arr_date[1]);
|
||||
if (dt_date.getMonth() != (arr_date[0]-1)) return alert ("Invalid day of month value: '" + arr_date[1] + "'.\nAllowed range is 01-"+dt_numdays.getDate()+".");
|
||||
|
||||
return (dt_date)
|
||||
}
|
||||
|
||||
// time parsing function
|
||||
function cal_prs_time2 (str_time, dt_date) {
|
||||
|
||||
if (!dt_date) return null;
|
||||
var arr_time = String(str_time ? str_time : '').split(':');
|
||||
|
||||
if (!arr_time[0]) dt_date.setHours(0);
|
||||
else if (RE_NUM.exec(arr_time[0]))
|
||||
if (arr_time[0] < 24) dt_date.setHours(arr_time[0]);
|
||||
else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed range is 00-23.");
|
||||
else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_time[1]) dt_date.setMinutes(0);
|
||||
else if (RE_NUM.exec(arr_time[1]))
|
||||
if (arr_time[1] < 60) dt_date.setMinutes(arr_time[1]);
|
||||
else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed range is 00-59.");
|
||||
else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_time[2]) dt_date.setSeconds(0);
|
||||
else if (RE_NUM.exec(arr_time[2]))
|
||||
if (arr_time[2] < 60) dt_date.setSeconds(arr_time[2]);
|
||||
else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed range is 00-59.");
|
||||
else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
dt_date.setMilliseconds(0);
|
||||
return dt_date;
|
||||
}
|
||||
|
||||
function cal_error (str_message) {
|
||||
alert (str_message);
|
||||
return null;
|
||||
}
|
||||
165
vendor/akdelf/akdmin/themes/office/pub/js/calendar/calendar3.js
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
// Title: Tigra Calendar
|
||||
// URL: http://www.softcomplex.com/products/tigra_calendar/
|
||||
// Version: 3.4 (mySQL format)
|
||||
// Date: 07/12/2007
|
||||
// Note: Permission given to use this script in ANY kind of applications if
|
||||
// header lines are left unchanged.
|
||||
// Note: Script consists of two files: calendar?.js and calendar.html
|
||||
|
||||
// if two digit year input dates after this year considered 20 century.
|
||||
var NUM_CENTYEAR = 30;
|
||||
// is time input control required by default
|
||||
var BUL_TIMECOMPONENT = false;
|
||||
// are year scrolling buttons required by default
|
||||
var BUL_YEARSCROLL = true;
|
||||
|
||||
var calendars = [];
|
||||
var RE_NUM = /^\-?\d+$/;
|
||||
|
||||
function calendar3(obj_target) {
|
||||
|
||||
// assigning methods
|
||||
this.gen_date = cal_gen_date3;
|
||||
this.gen_time = cal_gen_time3;
|
||||
this.gen_tsmp = cal_gen_tsmp3;
|
||||
this.prs_date = cal_prs_date3;
|
||||
this.prs_time = cal_prs_time3;
|
||||
this.prs_tsmp = cal_prs_tsmp3;
|
||||
this.popup = cal_popup3;
|
||||
|
||||
// validate input parameters
|
||||
if (!obj_target)
|
||||
return cal_error("Error calling the calendar: no target control specified");
|
||||
if (obj_target.value == null)
|
||||
return cal_error("Error calling the calendar: parameter specified is not valid target control");
|
||||
this.target = obj_target;
|
||||
this.time_comp = BUL_TIMECOMPONENT;
|
||||
this.year_scroll = BUL_YEARSCROLL;
|
||||
|
||||
// register in global collections
|
||||
this.id = calendars.length;
|
||||
calendars[this.id] = this;
|
||||
}
|
||||
|
||||
function cal_popup3 (str_datetime) {
|
||||
if (str_datetime)
|
||||
this.dt_current = this.prs_tsmp(str_datetime);
|
||||
else
|
||||
this.dt_selected = this.dt_current = this.prs_tsmp(this.target.value);
|
||||
|
||||
if (!this.dt_current) return;
|
||||
|
||||
var obj_calwindow = window.open(
|
||||
'calendar.html?id=' + this.id + '&s=' + this.dt_selected.valueOf() + '&c=' + this.dt_current.valueOf(),
|
||||
'Calendar', 'width=200,height=' + (this.time_comp ? 215 : 190) +
|
||||
',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes'
|
||||
);
|
||||
obj_calwindow.opener = window;
|
||||
obj_calwindow.focus();
|
||||
}
|
||||
|
||||
// timestamp generating function
|
||||
function cal_gen_tsmp3 (dt_datetime) {
|
||||
return(this.gen_date(dt_datetime) + ' ' + this.gen_time(dt_datetime));
|
||||
}
|
||||
|
||||
// date generating function
|
||||
function cal_gen_date3 (dt_datetime) {
|
||||
return (
|
||||
dt_datetime.getFullYear() + "-"
|
||||
+ (dt_datetime.getMonth() < 9 ? '0' : '') + (dt_datetime.getMonth() + 1) + "-"
|
||||
+ (dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate()
|
||||
);
|
||||
}
|
||||
// time generating function
|
||||
function cal_gen_time3 (dt_datetime) {
|
||||
return (
|
||||
(dt_datetime.getHours() < 10 ? '0' : '') + dt_datetime.getHours() + ":"
|
||||
+ (dt_datetime.getMinutes() < 10 ? '0' : '') + (dt_datetime.getMinutes()) + ":"
|
||||
+ (dt_datetime.getSeconds() < 10 ? '0' : '') + (dt_datetime.getSeconds())
|
||||
);
|
||||
}
|
||||
|
||||
// timestamp parsing function
|
||||
function cal_prs_tsmp3 (str_datetime) {
|
||||
// if no parameter specified return current timestamp
|
||||
if (!str_datetime)
|
||||
return (new Date());
|
||||
|
||||
// if positive integer treat as milliseconds from epoch
|
||||
if (RE_NUM.exec(str_datetime))
|
||||
return new Date(str_datetime);
|
||||
|
||||
// else treat as date in string format
|
||||
var arr_datetime = str_datetime.split(' ');
|
||||
return this.prs_time(arr_datetime[1], this.prs_date(arr_datetime[0]));
|
||||
}
|
||||
|
||||
// date parsing function
|
||||
function cal_prs_date3 (str_date) {
|
||||
|
||||
var arr_date = str_date.split('-');
|
||||
|
||||
if (arr_date.length != 3) return alert ("Invalid date format: '" + str_date + "'.\nFormat accepted is yyyy-mm-dd.");
|
||||
|
||||
if (!arr_date[0]) return alert ("Invalid date format: '" + str_date + "'.\nNo year value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[0])) return alert ("Invalid year value: '" + arr_date[0] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_date[1]) return alert ("Invalid date format: '" + str_date + "'.\nNo month value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[1])) return alert ("Invalid month value: '" + arr_date[1] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_date[2]) return alert ("Invalid date format: '" + str_date + "'.\nNo day of month value can be found.");
|
||||
if (!RE_NUM.exec(arr_date[2])) return alert ("Invalid day of month value: '" + arr_date[2] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
|
||||
|
||||
var dt_date = new Date();
|
||||
dt_date.setDate(1);
|
||||
|
||||
if (arr_date[0] < 100) arr_date[0] = Number(arr_date[0]) + (arr_date[0] < NUM_CENTYEAR ? 2000 : 1900);
|
||||
dt_date.setFullYear(arr_date[0]);
|
||||
|
||||
|
||||
if (arr_date[1] < 1 || arr_date[1] > 12) return alert ("Invalid month value: '" + arr_date[1] + "'.\nAllowed range is 01-12.");
|
||||
dt_date.setMonth(arr_date[1] - 1);
|
||||
|
||||
|
||||
var dt_numdays = new Date(arr_date[0], arr_date[1], 0);
|
||||
dt_date.setDate(arr_date[2]);
|
||||
if (dt_date.getMonth() != (arr_date[1]-1)) return alert ("Invalid day of month value: '" + arr_date[2] + "'.\nAllowed range is 01-"+dt_numdays.getDate()+".");
|
||||
|
||||
return (dt_date)
|
||||
}
|
||||
|
||||
// time parsing function
|
||||
function cal_prs_time3 (str_time, dt_date) {
|
||||
|
||||
if (!dt_date) return null;
|
||||
var arr_time = String(str_time ? str_time : '').split(':');
|
||||
|
||||
if (!arr_time[0]) dt_date.setHours(0);
|
||||
else if (RE_NUM.exec(arr_time[0]))
|
||||
if (arr_time[0] < 24) dt_date.setHours(arr_time[0]);
|
||||
else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed range is 00-23.");
|
||||
else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_time[1]) dt_date.setMinutes(0);
|
||||
else if (RE_NUM.exec(arr_time[1]))
|
||||
if (arr_time[1] < 60) dt_date.setMinutes(arr_time[1]);
|
||||
else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed range is 00-59.");
|
||||
else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
if (!arr_time[2]) dt_date.setSeconds(0);
|
||||
else if (RE_NUM.exec(arr_time[2]))
|
||||
if (arr_time[2] < 60) dt_date.setSeconds(arr_time[2]);
|
||||
else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed range is 00-59.");
|
||||
else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed values are unsigned integers.");
|
||||
|
||||
dt_date.setMilliseconds(0);
|
||||
return dt_date;
|
||||
}
|
||||
|
||||
function cal_error (str_message) {
|
||||
alert (str_message);
|
||||
return null;
|
||||
}
|
||||
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/cal.gif
vendored
Normal file
|
After Width: | Height: | Size: 127 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/icon_demo.gif
vendored
Normal file
|
After Width: | Height: | Size: 160 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/icon_docs.gif
vendored
Normal file
|
After Width: | Height: | Size: 151 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/icon_download.gif
vendored
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/icon_forum.gif
vendored
Normal file
|
After Width: | Height: | Size: 204 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/icon_home.gif
vendored
Normal file
|
After Width: | Height: | Size: 198 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/leftBG.gif
vendored
Normal file
|
After Width: | Height: | Size: 107 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/logo.gif
vendored
Normal file
|
After Width: | Height: | Size: 660 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/next.gif
vendored
Normal file
|
After Width: | Height: | Size: 214 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/next_year.gif
vendored
Normal file
|
After Width: | Height: | Size: 256 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/pixel.gif
vendored
Normal file
|
After Width: | Height: | Size: 67 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/prev.gif
vendored
Normal file
|
After Width: | Height: | Size: 212 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/prev_year.gif
vendored
Normal file
|
After Width: | Height: | Size: 259 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/rss.gif
vendored
Normal file
|
After Width: | Height: | Size: 163 B |
BIN
vendor/akdelf/akdmin/themes/office/pub/js/calendar/img/tc.gif
vendored
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
271
vendor/akdelf/akdmin/themes/office/pub/js/calendar/index.html
vendored
Normal file
@@ -0,0 +1,271 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<title>Free JavaScript Calendar</title>
|
||||
<meta name="description" content="Free JavaScript popup date and time picker control (javascript calendar)" />
|
||||
<meta name="keywords" content="free JavaScript Calendar, javascript, client side, pop, popup, timestamp, date, picker, database, control" />
|
||||
<link rel="stylesheet" type="text/css" href="screen.css" media="all" />
|
||||
|
||||
<!-- European format dd-mm-yyyy -->
|
||||
<script language="JavaScript" src="calendar1.js"></script><!-- Date only with year scrolling -->
|
||||
<!-- American format mm/dd/yyyy -->
|
||||
<script language="JavaScript" src="calendar2.js"></script><!-- Date only with year scrolling -->
|
||||
<!-- mySQL format yyyy-mm-dd -->
|
||||
<script language="JavaScript" src="calendar3.js"></script><!-- Date only with year scrolling -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- header -->
|
||||
<img src="img/tc.gif" id="prodLogo" alt="Tigra Calendar" />
|
||||
<img src="img/logo.gif" id="corpLogo" alt="Softcomplex logo" />
|
||||
<div id="slogan">affordable web development services</div>
|
||||
<div id="topNav">
|
||||
| <a href="http://www.softcomplex.com/">About Us</a>
|
||||
| <a href="http://www.softcomplex.com/services.html">Services</a>
|
||||
| <a href="http://www.softcomplex.com/download.html">Download</a>
|
||||
| <a href="http://www.softcomplex.com/order.html">Order</a>
|
||||
| <a href="http://www.softcomplex.com/support.html">Support</a>
|
||||
| <a href="http://www.softcomplex.com/news.xml"><img src="img/rss.gif" alt="Subscribe to News Feed" /></a>
|
||||
|
|
||||
</div>
|
||||
<div class="clearing"> </div>
|
||||
<!-- /header -->
|
||||
|
||||
<h1>Tigra Calendar</h1>
|
||||
<div id="content">
|
||||
<div id="leftPane">
|
||||
<h2 class="first">Product Links</h2>
|
||||
<a href="/" title="Product Page"><img src="img/icon_home.gif" width="18" height="17" alt="" border="0" align="absmiddle" alt="Product Page"> <b>Product Page</b></a>
|
||||
<a href="/demo1.html" title="Product Demonstrations"><img src="img/icon_demo.gif" width="18" height="17" border="0" align="absmiddle"alt="Product Demonstrations"><b> Live Demos</b></a>
|
||||
<a href="/download.html" title="Free Script Download"><img src="img/icon_download.gif" width="18" height="18" alt="Free Download" border="0" align="absmiddle" alt="Free Script Download"> <b>Free Download</b></a>
|
||||
<a href="/docs/" title="Documentation Page"><img src="img/icon_docs.gif" width="18" height="18" alt="Product Documentation" border="0" align="absmiddle"> <b>Documentation</b></a>
|
||||
<a href="/forum/forumdisplay_42/" title="Support Forum"><img src="img/icon_forum.gif" width="18" height="18" alt="Support Forum" border="0" align="absmiddle" alt="Support Forum"> <b>Support Forum</b></a>
|
||||
|
||||
<h1>All Products</h1>
|
||||
<h2 class="first">Client Side Products</h2>
|
||||
<a href="http://www.softcomplex.com/products/tigra_menu/" title="JavaScript Menu - allows unlimited levels and multiple menus per page. Supports custom effects and geometry">Tigra Menu</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_menu_pro/" title="Tigra Menu PRO is a flexible JavaScript DHTML menu solution for commercial applications offering high reliability and wide browsers support">Tigra Menu PRO</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_menu_gold/" title="Tigra Menu Gold is a cross browser Javascript Menu navigation component for web sites offering most complete feature set">Tigra Menu GOLD</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_tree_menu/" title="Tigra Tree Menu is a free JavaScript DHTML navigation system for web sites and web applications. Product looks and acts exactly as Microsoft Windows Tree Control. Offering the best performance on the market, script can manage hierarchies containing thousands of items">Tigra Tree Menu</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_tree_menu_pro/" title="Tigra Tree Menu PRO is cross-browser JavaScript Tree Menu navigation component for web sites and web applications">Tigra Tree Menu PRO</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_calendar/" title="Free JavaScript Calendar, popup date and time picker that makes it easy for your visitors to fill out the date/time field(s) of your form, by selecting the date from a popup calendar">Tigra Calendar</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_calendar_pro/" title="Tigra Calendar PRO is flexible JavaScript Calendar offering high reliability and wide browsers support. This script allows your visitors to select any date from on page calendar with minimum number of clicks">Tigra Calendar PRO</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_scroller/" title="Tigra Scroller is free JavaScript widget for web sites that scrolls text or html in the box">Tigra Scroller</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_scroller_pro/" title="Tigra Scroller PRO is professional cross browser JavaScript widget for web sites that scrolls text or html in the box. Script offers great browsers compatibility and most complete feature set">Tigra Scroller PRO</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_color_picker/" title="Tigra Color Picker - Free JavaScript widget that makes it easy for your visitors to fill out color value field(s) by selecting the color from a popup palette">Tigra Color Picker</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_hints/" title="Tigra Hints is free JavaScript widget that displays pop-up box with notes (also known as tooltips or hints) when mouse appears over any HTML element on the page">Tigra Hints</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_fader/" title="Tigra Fader is free JavaScript slide show component featuring cross-fade transition effect between the slides">Tigra Fader</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_tables/" title="JavaScript applet creating nice client-side visual effects for HTML tables making them easier to read">Tigra Tables</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_tables_pro/" title="Tigra Tables PRO is flexible cross-browser client side table data manipulation JavaScript offering rows sorting, filtering, paged output, altering rows coloring and other visual effects. Tigra Tables PRO component saves development time and greatly reduces network load. With highly optimized algorithms script offers good results on large data sets">Tigra Tables PRO</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_form_validator/" title="Tigra Form Validator is free JavaScript component performing client side form validation.">Tigra Form Validator</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_form_validator_pro/" title="Tigra Form Validator PRO is professionally designed JavaScript component performing client-side form validation of any complexity. The script supports most of the data types used in online forms and it can be easily extended with any custom types">Tigra Form Validator PRO</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_status_bar_scroller/" title="Tigra Status Bar Scroller is free JavaScript widget for web sites that scrolls text in browser's status bar or title">Tigra Status Bar Scroller</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_slider_control/" title="Tigra Slider Control - is free JavaScript component for the websites that adds vertical and horizontal trackbar capability to the HTML forms">Tigra Slider Control</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_slider_control_pro/" title="Tigra Slider Control PRO - is JavaScript component for the websites that adds advanced vertical and horizontal trackbar capability to the HTML forms">Tigra Slider Control PRO</a>
|
||||
|
||||
<h2>Server Side Products</h2>
|
||||
<a href="http://www.1minutegallery.com/" title="1 Minute Gallery is easy to install and customize PHP gallery script">1 Minute Gallery</a>
|
||||
<a href="http://www.softcomplex.com/products/php_event_calendar/" title="PHP Event Calendar is component that creates event calendar or browsable news archive. With the intuitive control panel, minimum efforts are required to set up and maintain the script">PHP Event Calendar</a>
|
||||
<a href="http://www.softcomplex.com/products/php_image_gallery/" title="PHP Image Gallery - Image gallery supporting hierarchical album structure with flexible permissions system and easy to use administrative panel">PHP Image Gallery</a>
|
||||
<a href="http://www.softcomplex.com/products/scms/" title="Softcomplex CMS (SCMS) is the web application designed to simplify the static content management of the websites">Softcomplex CMS</a>
|
||||
|
||||
<h2>ActiveX Components</h2>
|
||||
<a href="http://www.softcomplex.com/products/asp_upload_component/" title="ASP Upload Component is ActiveX component designed to ease access to multipart/form-data received from client's browser when developing Active Server Pages applications. With this component installed you can access multiple file uploads and other form data just the way it is done with Request object">ASP Upload Component</a>
|
||||
<a href="http://www.softcomplex.com/products/asp_mail_component/" title="ASP Mail Component is ActiveX component designed to allow e-mail sending from Active Server Pages (ASP). With this component installed you can send simple text E-mail message as well as HTML e-mail with attachments and multiple receipinents">ASP Mail Component</a>
|
||||
<a href="http://www.softcomplex.com/products/asp_zip_component/" title="ASP Zip Component is ActiveX component designed to allow work with zip archives. With this component installed you can create, extract and repair your zip archives">ASP Zip Component</a>
|
||||
|
||||
<h2>Design Services</h2>
|
||||
<a href="http://www.softcomplex.com/design/" title="Web design and product customizations">Web Design</a>
|
||||
<a href="http://www.softcomplex.com/design/logos.php" title="Logo design and corporate identity solutions">Logo Design</a>
|
||||
|
||||
<h2>Online Services</h2>
|
||||
<a href="http://www.javascriptmenubuilder.com/" title="Web application allowing to build the site with great javascript menu navigation system interactively with minimum effort in three steps just answering questions. After few minutes you'll be downloading your site in zip archive">Tigra Menu Online Builder</a>
|
||||
<a href="http://www.softcomplex.com/products/tigra_code_compressor/" title="Tigra Code Compressor is free application that compresses and scramles JavaScript code or other source files. This makes scripts lightweight and helps to protect author's know how.">Tigra Code Compressor</a>
|
||||
</div>
|
||||
|
||||
<div id="rightPane">
|
||||
<h2 class="first">Calendar Sample</h2>
|
||||
|
||||
<form name="tstest">
|
||||
<table class="compat">
|
||||
<tr>
|
||||
<th>European Date Format<br />(dd-mm-yyyy)</th>
|
||||
<th>American Date Format <br />(mm/dd/yyyy)</th>
|
||||
<th>mySQL format <br />(yyyy-mm-dd)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" valign="top">
|
||||
Select Date (w. year scrl.):<br>
|
||||
<input type="Text" name="input1" value="">
|
||||
<a href="javascript:cal1.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Date (w/o year scrl.):<br>
|
||||
<input type="Text" name="input2" value="">
|
||||
<a href="javascript:cal2.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Timestamp (w. year scrl.):<br>
|
||||
<input type="Text" name="input3" value="">
|
||||
<a href="javascript:cal3.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Timestamp (w/o year scrl.):<br>
|
||||
<input type="Text" name="input4" value="">
|
||||
<a href="javascript:cal4.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
</td>
|
||||
<td bgcolor="#ffffff">
|
||||
Select Date (w. year scrl.):<br>
|
||||
<input type="Text" name="input5" value="">
|
||||
<a href="javascript:cal5.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Date (w/o year scrl.):<br>
|
||||
<input type="Text" name="input6" value="">
|
||||
<a href="javascript:cal6.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Timestamp (w. year scrl.):<br>
|
||||
<input type="Text" name="input7" value="">
|
||||
<a href="javascript:cal7.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Timestamp (w/o year scrl.):<br>
|
||||
<input type="Text" name="input8" value="">
|
||||
<a href="javascript:cal8.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
</td>
|
||||
<td bgcolor="#ffffff" valign="top" colspan="2">
|
||||
Select Date (w. year scrl.):<br>
|
||||
<input type="Text" name="input9" value="">
|
||||
<a href="javascript:cal9.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Date (w/o year scrl.):<br>
|
||||
<input type="Text" name="input10" value="">
|
||||
<a href="javascript:cal10.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Timestamp (w. year scrl.):<br>
|
||||
<input type="Text" name="input11" value="">
|
||||
<a href="javascript:cal11.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
Select Timestamp (w/o year scrl.):<br>
|
||||
<input type="Text" name="input12" value="">
|
||||
<a href="javascript:cal12.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<script language="JavaScript">
|
||||
<!-- // create calendar object(s) just after form tag closed
|
||||
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
|
||||
// note: you can have as many calendar objects as you need for your application
|
||||
var cal1 = new calendar1(document.forms['tstest'].elements['input1']);
|
||||
cal1.year_scroll = true;
|
||||
cal1.time_comp = false;
|
||||
var cal2 = new calendar1(document.forms['tstest'].elements['input2']);
|
||||
cal2.year_scroll = false;
|
||||
cal2.time_comp = false;
|
||||
var cal3 = new calendar1(document.forms['tstest'].elements['input3']);
|
||||
cal3.year_scroll = true;
|
||||
cal3.time_comp = true;
|
||||
var cal4 = new calendar1(document.forms['tstest'].elements['input4']);
|
||||
cal4.year_scroll = false;
|
||||
cal4.time_comp = true;
|
||||
|
||||
var cal5 = new calendar2(document.forms['tstest'].elements['input5']);
|
||||
cal5.year_scroll = true;
|
||||
cal5.time_comp = false;
|
||||
var cal6 = new calendar2(document.forms['tstest'].elements['input6']);
|
||||
cal6.year_scroll = false;
|
||||
cal6.time_comp = false;
|
||||
var cal7 = new calendar2(document.forms['tstest'].elements['input7']);
|
||||
cal7.year_scroll = true;
|
||||
cal7.time_comp = true;
|
||||
var cal8 = new calendar2(document.forms['tstest'].elements['input8']);
|
||||
cal8.year_scroll = false;
|
||||
cal8.time_comp = true;
|
||||
|
||||
var cal9 = new calendar3(document.forms['tstest'].elements['input9']);
|
||||
cal9.year_scroll = true;
|
||||
cal9.time_comp = false;
|
||||
var cal10 = new calendar3(document.forms['tstest'].elements['input10']);
|
||||
cal10.year_scroll = false;
|
||||
cal10.time_comp = false;
|
||||
var cal11 = new calendar3(document.forms['tstest'].elements['input11']);
|
||||
cal11.year_scroll = true;
|
||||
cal11.time_comp = true;
|
||||
var cal12 = new calendar3(document.forms['tstest'].elements['input12']);
|
||||
cal12.year_scroll = false;
|
||||
cal12.time_comp = true;
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<h2>Notes</h2>
|
||||
<p>There is a form with Tigra Calendars attached to the fields. Note, that you can have multiple calendars on the same page independently configurable.</p>
|
||||
|
||||
<h2>Benefits</h2>
|
||||
<ul>
|
||||
<li><b>Easy date input</b> - With Tigra Calendar date input is simple and intuitive. Visitors can select any date from unlimited range with few clicks.</li>
|
||||
<li><b>Cost Saving Component</b> - Don't waste your time coding date conversion and validation all over again for each new project. Get the dates on server side ready for further processing.</li>
|
||||
<li><b>Professional Look</b> - Simple great looking improvement to the user interface of your web application.</li>
|
||||
</ul>
|
||||
|
||||
<h2><a href="http://www.softcomplex.com/products/tigra_calendar_pro/">Tigra Calendar PRO</a> additionally offers:</h2>
|
||||
<ul>
|
||||
<li>Support for ANY custom date or time format</li>
|
||||
<li>All aspects of appearance (colors, font, spacing etc.) are easy configurable; existing CSS properties of the web site can be linked to the calendar elements</li>
|
||||
<li>Date limits (minimum and maximum allowed dates) are supported as either absolute date or relatively in days from today</li>
|
||||
<li>Quick years and months scrolling with drop-down boxes, next/previous buttons are also supported</li>
|
||||
<li>Reset date to today button</li>
|
||||
<li>List of holidays or other dates requiring special highlighting (for example those not available for booking) supported</li>
|
||||
<li>Forbidden dates list (by date, by day of week etc)</li>
|
||||
<li>Allowed dates list (blacks out all the dates except those listed)</li>
|
||||
<li>Configurable behavior on out of range date selection</li>
|
||||
<li>Free setup support, free product updates, discounts for other products</li>
|
||||
<li>Inline, pop-up and modal mode versions of the calendar</li>
|
||||
</ul>
|
||||
<p><a href="http://www.softcomplex.com/cgi-bin/mgr.pl?class=cart&action=add&license[71]=1">Order Tigra Calendar PRO</a></p>
|
||||
|
||||
<h2>Support Tigra Calendar development</h2>
|
||||
<p>If you find Tigra Calendar useful, please donate or vote for the script. Your patronage is very much appreciated.</p>
|
||||
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||
<input type="hidden" name="cmd" value="_donations">
|
||||
<input type="hidden" name="business" value="payments@softcomplex.com">
|
||||
<input type="hidden" name="item_name" value="Tigra Calenar">
|
||||
<input type="hidden" name="no_shipping" value="0">
|
||||
<input type="hidden" name="no_note" value="1">
|
||||
<input type="hidden" name="currency_code" value="USD">
|
||||
<input type="hidden" name="tax" value="0">
|
||||
<input type="hidden" name="lc" value="US">
|
||||
<input type="hidden" name="bn" value="PP-DonationsBF">
|
||||
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
||||
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
||||
</form>
|
||||
|
||||
<form action="http://www.hotscripts.com/cgi-bin/rate.cgi" method="POST" target="_new">
|
||||
<input type=hidden name="ID" value="40098">
|
||||
<a href="http://www.hotscripts.com/Detailed/40098.html"><b>HotScripts.com</b></a> :
|
||||
<select name="rate" size="1" style="font-size:10px;">
|
||||
<option selected value="5">Excellent!</option>
|
||||
<option value="4">Very Good</option>
|
||||
<option value="3">Good</option>
|
||||
<option value="2">Fair</option>
|
||||
<option value="1">Poor</option>
|
||||
</select> <input type="submit" value="Rate It!" style="font-size:10px;">
|
||||
</form>
|
||||
<form action="http://www.scriptsearch.com/cgi-bin/rateit.cgi" method="post" target="_new">
|
||||
<input type="hidden" name="ID" value="3901">
|
||||
<a href="http://www.scriptsearch.com/details/3901.html"><b>ScriptSearch.com</b></a> :
|
||||
<select name="rate" size="1" style="font-size:10px;">
|
||||
<option value="5" selected>Excellent!</option>
|
||||
<option value="4">Very Good</option>
|
||||
<option value="3">Good</option>
|
||||
<option value="2">Fair</option>
|
||||
<option value="1">Poor</option>
|
||||
</select> <input type="submit" value="Vote!" style="font-size:10px;">
|
||||
</form><br>
|
||||
|
||||
</div>
|
||||
<div class="clearing"> </div>
|
||||
</div>
|
||||
|
||||
<!-- footer -->
|
||||
<div id="footer">
|
||||
<div id="cpRight">Copyright ©2002-2008 SoftComplex Inc. All rights reserved.</div>
|
||||
<div id="botmLinks">
|
||||
| <a href="http://www.softcomplex.com/">company info</a>
|
||||
| <a href="http://www.softcomplex.com/site_agreement.html">terms of service</a>
|
||||
| <a href="http://www.softcomplex.com/privacy_policy.html">privacy policy</a>
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
<!-- /footer -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
91
vendor/akdelf/akdmin/themes/office/pub/js/calendar/screen.css
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
/* general */
|
||||
body
|
||||
{ margin: 15px; background-color: white; color: #000000; font-family: Tahoma, Verdana; font-size: 11px; min-width: 760px;}
|
||||
table, td, th
|
||||
{ color: #000000; font-family: Tahoma, Verdana; font-size: 11px; }
|
||||
img
|
||||
{ border: 0 }
|
||||
a, a:link, a:visited, a:active
|
||||
{ color: #0000aa; text-decoration: none; }
|
||||
a:hover
|
||||
{ color: #ff0000; }
|
||||
h1
|
||||
{ background-color: #4682B4; color: #FFFFFF; margin: 0; padding: 3px 3px 3px 10px; font-size: 13px; }
|
||||
h2
|
||||
{ background-color: #DBEAF5; color: #000000; margin: 0 0 5px 0; padding: 3px; font-size: 12px; }
|
||||
h1 a, h1 a:link, h1 a:visited,
|
||||
h2 a, h2 a:link, h2 a:visited,
|
||||
h3 a, h3 a:link, h3 a:visited
|
||||
{ color: black; }
|
||||
hr
|
||||
{ color: #DBEAF5; height : 1px; }
|
||||
pre
|
||||
{ background: #dddddd; border: 1px solid black; color: black; padding-top: 1em; white-space: pre; padding: 10px;}
|
||||
p
|
||||
{ margin-left: 10px; }
|
||||
ul, ol
|
||||
{ margin-left: 30px; }
|
||||
form
|
||||
{ margin: 0; }
|
||||
|
||||
/* header */
|
||||
img#prodLogo
|
||||
{ width: 350px; height: 80px; float: left; }
|
||||
img#corpLogo
|
||||
{ width: 178px; height: 30px; float: right; }
|
||||
div#slogan
|
||||
{ margin: 0; white-space: nowrap; float: right; clear: right; font-size: 10px;}
|
||||
div#topNav
|
||||
{ margin: 25px 0 0 0; white-space: nowrap; float: right; clear: right; }
|
||||
div#topNav a
|
||||
{ font-weight: bold;}
|
||||
|
||||
/* content */
|
||||
div#content
|
||||
{ border-right: 1px solid #4682B4; background: url('img/leftBG.gif') repeat-y left; }
|
||||
div#leftPane
|
||||
{ width: 200px; padding: 0 0 20px 0; float: left; }
|
||||
div#leftPane h1
|
||||
{ margin: 20px 0 0 0; padding-left: 10px; }
|
||||
div#leftPane h2
|
||||
{ margin: 10px 0 5px 1px; border-bottom: 1px solid #d0d0d0; padding-left: 10px;}
|
||||
div#leftPane .first
|
||||
{ margin-top: 0; }
|
||||
div#leftPane a
|
||||
{ display: block; margin-left: 10px; }
|
||||
div#leftPane a.sect
|
||||
{ font-weight: bold; }
|
||||
|
||||
div#rightPane
|
||||
{ margin-left: 220px; padding: 0 20px 20px 10px; }
|
||||
div#rightPane h2
|
||||
{ margin: 20px -20px 5px -9px; border-bottom: 1px solid #d0d0d0; border-left: 1px solid #d0d0d0; padding-left: 10px; }
|
||||
div#rightPane h1
|
||||
{ margin: 20px -20px 5px -30px; padding-left: 30px; }
|
||||
div#rightPane .first
|
||||
{ margin-top: 0; }
|
||||
|
||||
table.compat
|
||||
{ border: 1px solid silver; border-collapse: collapse; margin: 5px auto 5px auto; }
|
||||
table.compat th
|
||||
{ border: 1px solid silver; border-collapse: collapse; background-color: #e0e0e0; padding: 4px 8px 4px 8px; min-width: 60px; }
|
||||
table.compat td
|
||||
{ border: 1px solid silver; border-collapse: collapse; padding: 4px; }
|
||||
.clearing
|
||||
{ height: 5px; margin: 0; padding: 0; clear: both; font-size: 1px; }
|
||||
.com
|
||||
{ color: gray; }
|
||||
|
||||
/* footer */
|
||||
div#footer
|
||||
{ background-color: #4682B4; color: #FFFFFF; padding: 3px 2px 3px 10px; height: 15px; clear:both; }
|
||||
div#cpRight
|
||||
{ float : left; white-space: nowrap; }
|
||||
div#botmLinks
|
||||
{ float: right; white-space: nowrap; }
|
||||
div#footer div#botmLinks
|
||||
{ color: #000000; white-space: nowrap; }
|
||||
div#botmLinks a
|
||||
{ color: #FFFFFF; white-space: nowrap; }
|
||||
div#botmLinks a:hover
|
||||
{ text-decoration: underline; }
|
||||