Removing penglobal directory.
git-svn-id: svn://10.0.0.236/trunk@110893 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,51 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@oeone.com)
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- -->
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<RDF:Seq about="urn:mozilla:package:root">
|
||||
<RDF:li resource="urn:mozilla:package:penglobal"/>
|
||||
</RDF:Seq>
|
||||
|
||||
<RDF:Description about="urn:mozilla:package:penglobal"
|
||||
chrome:displayName="penglobal"
|
||||
chrome:author="OEOne Corp."
|
||||
chrome:name="penglobal">
|
||||
</RDF:Description>
|
||||
</RDF:RDF>
|
||||
|
||||
@@ -1,211 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@oeone.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
|
||||
var kDate_MillisecondsInSecond = 1000;
|
||||
var kDate_SecondsInMinute = 60;
|
||||
var kDate_MinutesInHour = 60;
|
||||
var kDate_HoursInDay = 24;
|
||||
var kDate_DaysInWeek = 7;
|
||||
|
||||
var kDate_SecondsInHour = 3600;
|
||||
var kDate_SecondsInDay = 86400
|
||||
var kDate_SecondsInWeek = 604800
|
||||
|
||||
var kDate_MinutesInDay = 1440;
|
||||
var kDate_MinutesInWeek = 10080;
|
||||
|
||||
|
||||
var kDate_MillisecondsInMinute = 60000;
|
||||
var kDate_MillisecondsInHour = 3600000;
|
||||
var kDate_MillisecondsInDay = 86400000;
|
||||
var kDate_MillisecondsInWeek = 604800000;
|
||||
|
||||
|
||||
// required includes: "chrome://global/content/strres.js" - String Bundle Code
|
||||
|
||||
function DateUtils()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
DateUtils.getLastDayOfMonth = function( year, month )
|
||||
{
|
||||
var pastLastDate = new Date( year, month, 32 );
|
||||
var lastDayOfMonth = 32 - pastLastDate.getDate();
|
||||
|
||||
return lastDayOfMonth;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function DateFormater()
|
||||
{
|
||||
// we get the date bundle in case the locale changes, can
|
||||
// we be notified of a locale change instead, then we could
|
||||
// get the bundle once.
|
||||
|
||||
this.dateStringBundle = srGetStrBundle("chrome://penglobal/locale/dateFormat.properties");
|
||||
|
||||
}
|
||||
|
||||
|
||||
DateFormater.prototype.getFormatedTime = function( date )
|
||||
{
|
||||
// Format the time using a hardcoded format for now, since everything
|
||||
// that displays the time uses this function we will be able to
|
||||
// make a user settable time format and use it here.
|
||||
|
||||
var hour = date.getHours();
|
||||
var min = date.getMinutes();
|
||||
|
||||
// compute am and pm
|
||||
|
||||
if( hour < 12 )
|
||||
{
|
||||
var ampm = this.dateStringBundle.GetStringFromName( "am-string" );
|
||||
}
|
||||
else
|
||||
{
|
||||
var ampm = this.dateStringBundle.GetStringFromName( "pm-string" );
|
||||
}
|
||||
|
||||
// convert to 12 hour clock
|
||||
|
||||
if( hour > 12 )
|
||||
{
|
||||
hour -= 12;
|
||||
}
|
||||
|
||||
// make 0 be midnight
|
||||
|
||||
if( hour == 0 )
|
||||
{
|
||||
hour = 12;
|
||||
}
|
||||
|
||||
// put two zeros in the minute
|
||||
|
||||
var minString = min.toString();
|
||||
|
||||
if( min < 10 )
|
||||
{
|
||||
minString = "0" + min;
|
||||
}
|
||||
|
||||
// Make the time to display
|
||||
|
||||
var timeString = hour + ":" + minString + " " + ampm;
|
||||
|
||||
return timeString;
|
||||
|
||||
}
|
||||
|
||||
|
||||
DateFormater.prototype.getFormatedDate = function( date )
|
||||
{
|
||||
// Format the date using a hardcoded format for now, since everything
|
||||
// that displays the date uses this function we will be able to
|
||||
// make a user settable date format and use it here.
|
||||
|
||||
var oneBasedMonthNum = date.getMonth() + 1;
|
||||
|
||||
var monthString = this.dateStringBundle.GetStringFromName("month." + oneBasedMonthNum + ".Mmm" );
|
||||
|
||||
var dateString = monthString + " " + date.getDate();
|
||||
|
||||
return dateString;
|
||||
}
|
||||
|
||||
|
||||
// 0-11 Month Index
|
||||
|
||||
DateFormater.prototype.getMonthName = function( monthIndex )
|
||||
{
|
||||
|
||||
var oneBasedMonthNum = monthIndex + 1;
|
||||
|
||||
var monthName = this.dateStringBundle.GetStringFromName("month." + oneBasedMonthNum + ".name" );
|
||||
|
||||
return monthName;
|
||||
}
|
||||
|
||||
|
||||
// 0-11 Month Index
|
||||
|
||||
DateFormater.prototype.getShortMonthName = function( monthIndex )
|
||||
{
|
||||
|
||||
var oneBasedMonthNum = monthIndex + 1;
|
||||
|
||||
var monthName = this.dateStringBundle.GetStringFromName("month." + oneBasedMonthNum + ".Mmm" );
|
||||
|
||||
return monthName;
|
||||
}
|
||||
|
||||
|
||||
// 0-6 Day index ( starts at Sun )
|
||||
|
||||
DateFormater.prototype.getDayName = function( dayIndex )
|
||||
{
|
||||
|
||||
var oneBasedDayNum = dayIndex + 1;
|
||||
|
||||
var dayName = this.dateStringBundle.GetStringFromName("day." + oneBasedDayNum + ".name" );
|
||||
|
||||
return dayName;
|
||||
}
|
||||
|
||||
|
||||
// 0-6 Day index ( starts at Sun )
|
||||
|
||||
DateFormater.prototype.getShortDayName = function( dayIndex )
|
||||
{
|
||||
|
||||
var oneBasedDayNum = dayIndex + 1;
|
||||
|
||||
var dayName = this.dateStringBundle.GetStringFromName("day." + oneBasedDayNum + ".Mmm" );
|
||||
|
||||
return dayName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,342 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!-- CSS Files -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://penglobal/skin/datepicker/datepicker.css" ?>
|
||||
|
||||
|
||||
<!-- DTD Files -->
|
||||
|
||||
<!DOCTYPE window
|
||||
[
|
||||
<!ENTITY % dtd1 SYSTEM "chrome://penglobal/locale/global.dtd" > %dtd1;
|
||||
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
|
||||
]>
|
||||
|
||||
<!-- Overlay -->
|
||||
|
||||
<overlay
|
||||
id="oe-date-picker-overlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- Javascript includes -->
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/dateUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/datepicker.js"/>
|
||||
|
||||
<!-- Popup that holds the picker -->
|
||||
|
||||
<popup onpopupshowing="oeDatePicker.onpopupshowing(this)" id="oe-date-picker-popup" >
|
||||
<vbox id="oe-date-picker-overlay-box" flex="1"/>
|
||||
</popup>
|
||||
|
||||
<!-- Box with insides of the picker -->
|
||||
|
||||
<vbox id="oe-date-picker-overlay-box" >
|
||||
|
||||
|
||||
<!-- Year controls -->
|
||||
<hbox id="oe-date-picker-year-controls-box" >
|
||||
|
||||
<box flex="1">
|
||||
<image id="oe-date-picker-year-previous-button" onclick="oeDatePicker.previousYearCommand()"/>
|
||||
</box>
|
||||
|
||||
<label id="oe-date-picker-year-title-text" value="" />
|
||||
|
||||
<box flex="1" id="oe-date-picker-year-next-button-box" >
|
||||
<image id="oe-date-picker-year-next-button" onclick="oeDatePicker.nextYearCommand()"/>
|
||||
</box>
|
||||
|
||||
</hbox>
|
||||
|
||||
|
||||
<!-- Year Grid -->
|
||||
|
||||
<grid id="oe-date-picker-year-grid" flex="1">
|
||||
<columns>
|
||||
<column class="oe-date-picker-year-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-year-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-year-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-year-column-class" flex="1"/>
|
||||
</columns>
|
||||
<rows >
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-1-box" onclick="oeDatePicker.clickMonth(this, 1)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-date-picker-year-month-name-class" value="&month.1.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-2-box" onclick="oeDatePicker.clickMonth(this, 2)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.2.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-3-box" onclick="oeDatePicker.clickMonth(this, 3)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.3.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-4-box" onclick="oeDatePicker.clickMonth(this, 4)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.4.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-5-box" onclick="oeDatePicker.clickMonth(this, 5)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.5.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-6-box" onclick="oeDatePicker.clickMonth(this, 6)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.6.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-7-box" onclick="oeDatePicker.clickMonth(this, 7)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.7.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-8-box" onclick="oeDatePicker.clickMonth(this, 8)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.8.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-9-box" onclick="oeDatePicker.clickMonth(this, 9)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.9.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-10-box" onclick="oeDatePicker.clickMonth(this, 10)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.10.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-11-box" onclick="oeDatePicker.clickMonth(this, 11)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.11.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-year-month-box-class" id="oe-date-picker-year-month-12-box" onclick="oeDatePicker.clickMonth(this, 12)" >
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-date-picker-year-month-name-class" value="&month.12.MMM;" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
</rows>
|
||||
|
||||
</grid> <!-- Year Grid -->
|
||||
|
||||
|
||||
<!-- Month Grid -->
|
||||
<box id="oe-date-picker-month-grid-box" flex="1">
|
||||
|
||||
<grid id="oe-date-picker-month-grid" flex="1">
|
||||
<columns>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
<column class="oe-date-picker-month-column-class" flex="1"/>
|
||||
</columns>
|
||||
<rows >
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-1-box" onclick="oeDatePicker.clickDay(1)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-1" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-2-box" onclick="oeDatePicker.clickDay(2)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-2" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-3-box" onclick="oeDatePicker.clickDay(3)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-3" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-4-box" onclick="oeDatePicker.clickDay(4)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-4" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-5-box" onclick="oeDatePicker.clickDay(5)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-5" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-6-box" onclick="oeDatePicker.clickDay(6)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-6" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-7-box" onclick="oeDatePicker.clickDay(7)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-7" value="" /></box>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-8-box" onclick="oeDatePicker.clickDay(8)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-8" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-9-box" onclick="oeDatePicker.clickDay(9)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-9" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-10-box" onclick="oeDatePicker.clickDay(10)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-10" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-11-box" onclick="oeDatePicker.clickDay(11)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-11" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-12-box" onclick="oeDatePicker.clickDay(12)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-12" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-13-box" onclick="oeDatePicker.clickDay(13)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-13" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-14-box" onclick="oeDatePicker.clickDay(14)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-14" value="" /></box>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-15-box" onclick="oeDatePicker.clickDay(15)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-15" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-16-box" onclick="oeDatePicker.clickDay(16)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-16" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-17-box" onclick="oeDatePicker.clickDay(17)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-17" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-18-box" onclick="oeDatePicker.clickDay(18)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-18" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-19-box" onclick="oeDatePicker.clickDay(19)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-19" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-20-box" onclick="oeDatePicker.clickDay(20)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-20" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-21-box" onclick="oeDatePicker.clickDay(21)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-21" value="" /></box>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-22-box" onclick="oeDatePicker.clickDay(22)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-22" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-23-box" onclick="oeDatePicker.clickDay(23)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-23" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-24-box" onclick="oeDatePicker.clickDay(24)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-24" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-25-box" onclick="oeDatePicker.clickDay(25)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-25" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-26-box" onclick="oeDatePicker.clickDay(26)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-26" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-27-box" onclick="oeDatePicker.clickDay(27)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-27" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-28-box" onclick="oeDatePicker.clickDay(28)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-28" value="" /></box>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-29-box" onclick="oeDatePicker.clickDay(29)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-29" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-30-box" onclick="oeDatePicker.clickDay(30)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-30" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-31-box" onclick="oeDatePicker.clickDay(31)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-31" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-32-box" onclick="oeDatePicker.clickDay(32)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-32" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-33-box" onclick="oeDatePicker.clickDay(33)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-33" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-34-box" onclick="oeDatePicker.clickDay(34)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-34" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-35-box" onclick="oeDatePicker.clickDay(35)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-35" value="" /></box>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-36-box" onclick="oeDatePicker.clickDay(36)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-36" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-37-box" onclick="oeDatePicker.clickDay(37)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-37" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-38-box" onclick="oeDatePicker.clickDay(38)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-38" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-39-box" onclick="oeDatePicker.clickDay(39)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-39" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-40-box" onclick="oeDatePicker.clickDay(40)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-40" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-41-box" onclick="oeDatePicker.clickDay(41)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-41" value="" /></box>
|
||||
</vbox>
|
||||
<vbox class="oe-date-picker-month-day-box-class" id="oe-date-picker-month-day-42-box" onclick="oeDatePicker.clickDay(42)">
|
||||
<box><label class="oe-date-picker-month-day-number-class" id="oe-date-picker-month-day-text-42" value="" /></box>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
</rows>
|
||||
</grid> <!-- Month Grid -->
|
||||
|
||||
</box> <!-- Month Grid Box -->
|
||||
|
||||
|
||||
</vbox> <!-- Box with insides of the picker -->
|
||||
</overlay>
|
||||
|
||||
@@ -1,411 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@oeone.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
|
||||
/***** oe-datepicker
|
||||
* AUTHOR
|
||||
* Garth Smedley
|
||||
*
|
||||
* NOTES
|
||||
* Date picker popup.
|
||||
* Closes when a day is clicked, and passes the picked date into your oncommand function.
|
||||
*
|
||||
* To use the datepicker include the overlay in your XUL, this .js file is included from there
|
||||
|
||||
<?xul-overlay href="chrome://penglobal/content/datepicker-overlay.xul"?>
|
||||
*
|
||||
*
|
||||
<popup id="oe-date-picker-popup" oncommand="yourCommandFunction( this )" >
|
||||
</popup>
|
||||
*
|
||||
* Attach the date picker to an item using the popup attribute, an image for example:
|
||||
*
|
||||
<image class="four-state-image-button" popup="oe-date-picker-popup" onmousedown="yourPrepareDatePickerFunction()" />
|
||||
|
||||
*
|
||||
* In your .js, initialize the picker with the inital date when the user clicks, set to now in this example:
|
||||
*
|
||||
function yourPrepareDatePickerFunction( )
|
||||
{
|
||||
var datePickerPopup = document.getElementById( "oe-date-picker-popup" );
|
||||
|
||||
datePickerPopup.setAttribute( "value", new Date() );
|
||||
}
|
||||
*
|
||||
* In your .js, respond to the user picking a date, this function will not be called if they just click
|
||||
* out of the picker
|
||||
*
|
||||
function yourCommandFunction( datepopup )
|
||||
{
|
||||
var newDate = datepopup.value;
|
||||
|
||||
// datepopup.value is a Date object with
|
||||
// the year, month, day set to the user selection
|
||||
}
|
||||
|
||||
* IMPLEMENTATION NOTES
|
||||
*
|
||||
* In order to prevent name space pollution, all of the date picker methods
|
||||
* are static members of the oeDatePicker class.
|
||||
*
|
||||
**********
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Date picker class, has static members only.
|
||||
*/
|
||||
|
||||
function oeDatePicker()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Static variables
|
||||
*/
|
||||
|
||||
|
||||
/** The popup window containing the picker */
|
||||
oeDatePicker.gPopup = null;
|
||||
|
||||
|
||||
/** The original starting date and currently selected date */
|
||||
oeDatePicker.gOriginalDate = null;
|
||||
oeDatePicker.gSelectedDate = null;
|
||||
|
||||
/* selected items */
|
||||
oeDatePicker.gSelectedMonthItem = null;
|
||||
oeDatePicker.gSelectedDayItem = null;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Set up the picker, called when the popup pops
|
||||
*/
|
||||
|
||||
oeDatePicker.onpopupshowing = function( popup )
|
||||
{
|
||||
// remember the popup item so we can close it when we are done
|
||||
|
||||
oeDatePicker.gPopup = popup;
|
||||
|
||||
// get the start date from the popup value attribute and select it
|
||||
|
||||
var startDate = popup.getAttribute( "value" );
|
||||
|
||||
oeDatePicker.gOriginalDate = new Date( startDate );
|
||||
oeDatePicker.gSelectedDate = new Date( startDate );
|
||||
|
||||
// Avoid problems when changing months if the date is at the end of the month
|
||||
// i.e. if date is 31 march and you do a setmonth to april, the month would
|
||||
// actually be set to may, beacause april only has 30 days.
|
||||
// This is why we keep the original date around.
|
||||
|
||||
oeDatePicker.gSelectedDate.setDate( 1 );
|
||||
|
||||
// draw the year based on the selected date
|
||||
|
||||
oeDatePicker.redrawYear();
|
||||
|
||||
// draw the month based on the selected date
|
||||
|
||||
var month = oeDatePicker.gSelectedDate.getMonth() + 1;
|
||||
var selectedMonthBoxItem = document.getElementById( "oe-date-picker-year-month-" + month + "-box" );
|
||||
|
||||
oeDatePicker.selectMonthItem( selectedMonthBoxItem );
|
||||
|
||||
// draw in the days for the selected date
|
||||
|
||||
oeDatePicker.redrawDays();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when a day is clicked, close the picker and call the client's oncommand
|
||||
*/
|
||||
|
||||
|
||||
oeDatePicker.clickDay = function( newDayItemNumber )
|
||||
{
|
||||
// get the clicked day
|
||||
|
||||
var dayNumberItem = document.getElementById( "oe-date-picker-month-day-text-" + newDayItemNumber );
|
||||
|
||||
var dayNumber = dayNumberItem.getAttribute( "value" );
|
||||
|
||||
// they may have clicked an unfilled day, if so ignore it and leave the picker up
|
||||
|
||||
if( dayNumber != "" )
|
||||
{
|
||||
// set the selected date to what they cliked on
|
||||
|
||||
oeDatePicker.gSelectedDate.setDate( dayNumber );
|
||||
|
||||
oeDatePicker.selectDate();
|
||||
|
||||
oeDatePicker.gPopup.closePopup();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
oeDatePicker.selectDate = function()
|
||||
{
|
||||
// We copy the picked date to avoid problems with changing the Date object in place
|
||||
|
||||
var pickedDate = new Date( oeDatePicker.gSelectedDate );
|
||||
|
||||
// put the selected date in the popup item's value property
|
||||
|
||||
oeDatePicker.gPopup.value = pickedDate;
|
||||
|
||||
// get the client oncommand function, call it if there is one
|
||||
|
||||
var commandEventMethod = oeDatePicker.gPopup.getAttribute( "oncommand" );
|
||||
|
||||
if( commandEventMethod != null )
|
||||
{
|
||||
// set up a variable date, that will be avaialable from within the
|
||||
// client method
|
||||
|
||||
var date = pickedDate;
|
||||
|
||||
// Make the function a member of the popup before calling it so that
|
||||
// 'this' will be the popup
|
||||
|
||||
oeDatePicker.gPopup.oeDatePickerFunction = function() { eval( commandEventMethod ); };
|
||||
|
||||
oeDatePicker.gPopup.oeDatePickerFunction();
|
||||
}
|
||||
|
||||
// close the popup
|
||||
|
||||
//oeDatePicker.gPopup.closePopup ();
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when a month box is clicked
|
||||
*/
|
||||
|
||||
oeDatePicker.clickMonth = function( newMonthItem, newMonthNumber )
|
||||
{
|
||||
// already selected, return
|
||||
|
||||
if( oeDatePicker.gSelectedMonthItem == newMonthItem )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// update the selected date
|
||||
|
||||
oeDatePicker.gSelectedDate.setMonth( newMonthNumber - 1 );
|
||||
|
||||
// select Month
|
||||
|
||||
oeDatePicker.selectMonthItem( newMonthItem );
|
||||
|
||||
// redraw days
|
||||
|
||||
oeDatePicker.redrawDays();
|
||||
|
||||
oeDatePicker.selectDate();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when previous Year button is clicked
|
||||
*/
|
||||
|
||||
oeDatePicker.previousYearCommand = function()
|
||||
{
|
||||
// update the selected date
|
||||
|
||||
var oldYear = oeDatePicker.gSelectedDate.getFullYear();
|
||||
oeDatePicker.gSelectedDate.setFullYear( oldYear - 1 );
|
||||
|
||||
// redraw the year and the days
|
||||
|
||||
oeDatePicker.redrawYear();
|
||||
oeDatePicker.redrawDays();
|
||||
|
||||
oeDatePicker.selectDate();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when next Year button is clicked
|
||||
*/
|
||||
|
||||
oeDatePicker.nextYearCommand = function()
|
||||
{
|
||||
// update the selected date
|
||||
|
||||
var oldYear = oeDatePicker.gSelectedDate.getFullYear();
|
||||
oeDatePicker.gSelectedDate.setFullYear( oldYear + 1 );
|
||||
|
||||
// redraw the year and the days
|
||||
|
||||
oeDatePicker.redrawYear();
|
||||
oeDatePicker.redrawDays();
|
||||
|
||||
oeDatePicker.selectDate();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Draw the year based in the selected date
|
||||
*/
|
||||
|
||||
oeDatePicker.redrawYear = function()
|
||||
{
|
||||
var yearTitleItem = document.getElementById( "oe-date-picker-year-title-text" );
|
||||
yearTitleItem.setAttribute( "value", oeDatePicker.gSelectedDate.getFullYear() );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Select a month box
|
||||
*/
|
||||
|
||||
oeDatePicker.selectMonthItem = function( newMonthItem )
|
||||
{
|
||||
// clear old selection, if there is one
|
||||
|
||||
if( oeDatePicker.gSelectedMonthItem != null )
|
||||
{
|
||||
oeDatePicker.gSelectedMonthItem.setAttribute( "selected" , false );
|
||||
}
|
||||
|
||||
// Set the selected attribute, used to give it a different style
|
||||
|
||||
newMonthItem.setAttribute( "selected" , true );
|
||||
|
||||
// Remember new selection
|
||||
|
||||
oeDatePicker.gSelectedMonthItem = newMonthItem;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Select a day box
|
||||
*/
|
||||
|
||||
oeDatePicker.selectDayItem = function( newDayItem )
|
||||
{
|
||||
// clear old selection, if there is one
|
||||
|
||||
if( oeDatePicker.gSelectedDayItem != null )
|
||||
{
|
||||
oeDatePicker.gSelectedDayItem.setAttribute( "selected" , false );
|
||||
}
|
||||
|
||||
if( newDayItem != null )
|
||||
{
|
||||
// Set the selected attribute, used to give it a different style
|
||||
|
||||
newDayItem.setAttribute( "selected" , true );
|
||||
}
|
||||
|
||||
// Remember new selection
|
||||
|
||||
oeDatePicker.gSelectedDayItem = newDayItem;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Redraw day numbers based on the selected date
|
||||
*/
|
||||
|
||||
oeDatePicker.redrawDays = function( )
|
||||
{
|
||||
// Write in all the day numbers
|
||||
|
||||
var firstDate = new Date( oeDatePicker.gSelectedDate.getFullYear(), oeDatePicker.gSelectedDate.getMonth(), 1 );
|
||||
var firstDayOfWeek = firstDate.getDay();
|
||||
|
||||
var lastDayOfMonth = DateUtils.getLastDayOfMonth( oeDatePicker.gSelectedDate.getFullYear(), oeDatePicker.gSelectedDate.getMonth() )
|
||||
|
||||
|
||||
// clear the selected day item
|
||||
|
||||
oeDatePicker.selectDayItem( null );
|
||||
|
||||
// redraw each day bax in the 7 x 6 grid
|
||||
|
||||
var dayNumber = 1;
|
||||
|
||||
for( var dayIndex = 0; dayIndex < 42; ++dayIndex )
|
||||
{
|
||||
// get the day text box
|
||||
|
||||
var dayNumberItem = document.getElementById( "oe-date-picker-month-day-text-" + (dayIndex + 1) );
|
||||
|
||||
// if it is an unfilled day ( before first or after last ), just set its value to "",
|
||||
// and don't increment the day number.
|
||||
|
||||
if( dayIndex < firstDayOfWeek || dayNumber > lastDayOfMonth )
|
||||
{
|
||||
dayNumberItem.setAttribute( "value" , "" );
|
||||
}
|
||||
else
|
||||
{
|
||||
// set the value to the day number
|
||||
|
||||
dayNumberItem.setAttribute( "value" , dayNumber );
|
||||
|
||||
// draw the day as selected, if the Original Day is visible
|
||||
|
||||
if( dayNumber == oeDatePicker.gOriginalDate.getDate() &&
|
||||
oeDatePicker.gSelectedDate.getYear() == oeDatePicker.gOriginalDate.getYear() &&
|
||||
oeDatePicker.gSelectedDate.getMonth() == oeDatePicker.gOriginalDate.getMonth() )
|
||||
{
|
||||
var dayNumberBoxItem = document.getElementById( "oe-date-picker-month-day-" + (dayIndex + 1) + "-box" );
|
||||
oeDatePicker.selectDayItem( dayNumberBoxItem );
|
||||
}
|
||||
|
||||
// advance the day number
|
||||
|
||||
++dayNumber;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,638 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!-- CSS Files -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://penglobal/skin/timepicker/timepicker.css" ?>
|
||||
|
||||
<!-- DTD Files -->
|
||||
|
||||
<!DOCTYPE window
|
||||
[
|
||||
<!ENTITY % dtd1 SYSTEM "chrome://penglobal/locale/global.dtd" > %dtd1;
|
||||
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
|
||||
]>
|
||||
|
||||
<!-- Overlay -->
|
||||
|
||||
<overlay
|
||||
id="oe-time-picker-overlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- Javascript includes -->
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/dateUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/timepicker.js"/>
|
||||
|
||||
<!-- Popup to hold time picker-->
|
||||
|
||||
<popup onpopupshowing="oeTimePicker.onpopupshowing(this)" id="oe-time-picker-popup" >
|
||||
<vbox id="oe-time-picker-overlay-box" flex="1"/>
|
||||
</popup>
|
||||
|
||||
|
||||
<!-- Box to hold time picker internals -->
|
||||
|
||||
<vbox id="oe-time-picker-overlay-box" >
|
||||
|
||||
<!-- AM/PM controls -->
|
||||
|
||||
<hbox id="oe-time-picker-ampm-controls-box" >
|
||||
|
||||
<box class="oe-time-picker-am-pm-box-class" id="oe-time-picker-am-box" flex="1" onclick="oeTimePicker.clickAm( this )">
|
||||
<label id="oe-time-picker-year-title-text" value="&time.AM;" />
|
||||
</box>
|
||||
|
||||
<box class="oe-time-picker-am-pm-box-class" id="oe-time-picker-pm-box" flex="1" onclick="oeTimePicker.clickPm( this )" >
|
||||
<label id="oe-time-picker-year-title-text" value="&time.PM;" />
|
||||
</box>
|
||||
|
||||
|
||||
</hbox>
|
||||
|
||||
|
||||
<!-- Hour Grid -->
|
||||
|
||||
<grid id="oe-time-picker-hour-grid">
|
||||
<columns>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-hour-column-class" flex="1"/>
|
||||
</columns>
|
||||
<rows >
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-0" onclick="oeTimePicker.clickHour(this, 0)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="12" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-1" onclick="oeTimePicker.clickHour(this, 1)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="1" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-2" onclick="oeTimePicker.clickHour(this, 2)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="2" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-3" onclick="oeTimePicker.clickHour(this, 3)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="3" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-4" onclick="oeTimePicker.clickHour(this, 4)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="4" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-5" onclick="oeTimePicker.clickHour(this, 5)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="5" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-6" onclick="oeTimePicker.clickHour(this, 6)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="6" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-7" onclick="oeTimePicker.clickHour(this, 7)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="7" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-8" onclick="oeTimePicker.clickHour(this, 8)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="8" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-9" onclick="oeTimePicker.clickHour(this, 9)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="9" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-10" onclick="oeTimePicker.clickHour(this, 10)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="10" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-hour-box-class" id="oe-time-picker-hour-box-11" onclick="oeTimePicker.clickHour(this, 11)" >
|
||||
<spacer flex="1" />
|
||||
<box ><label class="oe-time-picker-hour-name-class" value="11" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
</rows>
|
||||
|
||||
</grid> <!-- Hour Grid -->
|
||||
|
||||
|
||||
<!-- Five Minute Grid -->
|
||||
|
||||
<vbox id="oe-time-picker-five-minute-grid-box" flex="1">
|
||||
|
||||
<grid id="oe-time-picker-five-minute-grid" flex="1">
|
||||
<columns>
|
||||
<column class="oe-time-picker-five-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-five-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-five-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-five-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-five-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-five-minute-column-class" flex="1"/>
|
||||
</columns>
|
||||
<rows >
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-0" onclick="oeTimePicker.clickMinute(this, 0)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":00" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-5" onclick="oeTimePicker.clickMinute(this, 5)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":05" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-10" onclick="oeTimePicker.clickMinute(this, 10)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":10" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-15" onclick="oeTimePicker.clickMinute(this, 15)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":15" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-20" onclick="oeTimePicker.clickMinute(this, 20)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":20" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-25" onclick="oeTimePicker.clickMinute(this, 25)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":25" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-30" onclick="oeTimePicker.clickMinute(this, 30)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":30" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-35" onclick="oeTimePicker.clickMinute(this, 35)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":35" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-40" onclick="oeTimePicker.clickMinute(this, 40)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":40" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-45" onclick="oeTimePicker.clickMinute(this, 45)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":45" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-50" onclick="oeTimePicker.clickMinute(this, 50)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":50" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-five-minute-box-class" id="oe-time-picker-five-minute-box-55" onclick="oeTimePicker.clickMinute(this, 55)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-five-minute-number-class" value=":55" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
</rows>
|
||||
</grid> <!-- Five Minute Grid -->
|
||||
|
||||
<hbox>
|
||||
<label id="oe-time-picker-more-control-image" value="&more.label;" onclick="oeTimePicker.clickMore()" />
|
||||
<spacer flex="1"/>
|
||||
<image id="oe-time-picker-minutes-bottom-image"/>
|
||||
</hbox>
|
||||
|
||||
</vbox> <!-- Five Minute Grid Box -->
|
||||
|
||||
<!-- One Minute Grid -->
|
||||
|
||||
<vbox id="oe-time-picker-one-minute-grid-box" flex="1" collapsed="true">
|
||||
|
||||
<grid id="oe-time-picker-one-minute-grid" flex="1">
|
||||
<columns>
|
||||
<column class="oe-time-picker-one-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-one-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-one-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-one-minute-column-class" flex="1"/>
|
||||
<column class="oe-time-picker-one-minute-column-class" flex="1"/>
|
||||
</columns>
|
||||
<rows >
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-0" onclick="oeTimePicker.clickMinute(this, 0)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":00" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-1" onclick="oeTimePicker.clickMinute(this, 1)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":01" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-2" onclick="oeTimePicker.clickMinute(this, 2)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":02" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-3" onclick="oeTimePicker.clickMinute(this, 3)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":03" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-4" onclick="oeTimePicker.clickMinute(this, 4)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":04" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-5" onclick="oeTimePicker.clickMinute(this, 5)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":05" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-6" onclick="oeTimePicker.clickMinute(this, 6)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":06" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-7" onclick="oeTimePicker.clickMinute(this, 7)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":07" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-8" onclick="oeTimePicker.clickMinute(this, 8)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":08" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-9" onclick="oeTimePicker.clickMinute(this, 9)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":09" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-10" onclick="oeTimePicker.clickMinute(this, 10)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":10" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-11" onclick="oeTimePicker.clickMinute(this, 11)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":11" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-12" onclick="oeTimePicker.clickMinute(this, 12)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":12" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-13" onclick="oeTimePicker.clickMinute(this, 13)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":13" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-14" onclick="oeTimePicker.clickMinute(this, 14)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":14" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-15" onclick="oeTimePicker.clickMinute(this, 15)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":15" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-16" onclick="oeTimePicker.clickMinute(this, 16)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":16" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-17" onclick="oeTimePicker.clickMinute(this, 17)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":17" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-18" onclick="oeTimePicker.clickMinute(this, 18)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":18" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-19" onclick="oeTimePicker.clickMinute(this, 19)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":19" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-20" onclick="oeTimePicker.clickMinute(this, 20)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":20" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-21" onclick="oeTimePicker.clickMinute(this, 21)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":21" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-22" onclick="oeTimePicker.clickMinute(this, 22)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":22" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-23" onclick="oeTimePicker.clickMinute(this, 23)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":23" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-24" onclick="oeTimePicker.clickMinute(this, 24)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":24" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-25" onclick="oeTimePicker.clickMinute(this, 25)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":25" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-26" onclick="oeTimePicker.clickMinute(this, 26)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":26" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-27" onclick="oeTimePicker.clickMinute(this, 27)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":27" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-28" onclick="oeTimePicker.clickMinute(this, 28)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":28" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-29" onclick="oeTimePicker.clickMinute(this, 29)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":29" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-30" onclick="oeTimePicker.clickMinute(this, 30)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":30" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-31" onclick="oeTimePicker.clickMinute(this, 31)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":31" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-32" onclick="oeTimePicker.clickMinute(this, 32)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":32" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-33" onclick="oeTimePicker.clickMinute(this, 33)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":33" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-34" onclick="oeTimePicker.clickMinute(this, 34)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":34" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-35" onclick="oeTimePicker.clickMinute(this, 35)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":35" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-36" onclick="oeTimePicker.clickMinute(this, 36)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":36" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-37" onclick="oeTimePicker.clickMinute(this, 37)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":37" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-38" onclick="oeTimePicker.clickMinute(this, 38)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":38" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-39" onclick="oeTimePicker.clickMinute(this, 39)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":39" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-40" onclick="oeTimePicker.clickMinute(this, 40)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":40" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-41" onclick="oeTimePicker.clickMinute(this, 41)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":41" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-42" onclick="oeTimePicker.clickMinute(this, 42)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":42" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-43" onclick="oeTimePicker.clickMinute(this, 43)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":43" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-44" onclick="oeTimePicker.clickMinute(this, 44)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":44" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-45" onclick="oeTimePicker.clickMinute(this, 45)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":45" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-46" onclick="oeTimePicker.clickMinute(this, 46)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":46" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-47" onclick="oeTimePicker.clickMinute(this, 47)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":47" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-48" onclick="oeTimePicker.clickMinute(this, 48)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":48" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-49" onclick="oeTimePicker.clickMinute(this, 49)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":49" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-50" onclick="oeTimePicker.clickMinute(this, 50)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":50" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-51" onclick="oeTimePicker.clickMinute(this, 51)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":51" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-52" onclick="oeTimePicker.clickMinute(this, 52)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":52" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-53" onclick="oeTimePicker.clickMinute(this, 53)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":53" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-54" onclick="oeTimePicker.clickMinute(this, 54)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":54" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<row flex="1" >
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-55" onclick="oeTimePicker.clickMinute(this, 55)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":55" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-56" onclick="oeTimePicker.clickMinute(this, 56)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":56" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-57" onclick="oeTimePicker.clickMinute(this, 57)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":57" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-58" onclick="oeTimePicker.clickMinute(this, 58)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":58" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
<vbox class="oe-time-picker-one-minute-box-class" id="oe-time-picker-one-minute-box-59" onclick="oeTimePicker.clickMinute(this, 59)">
|
||||
<spacer flex="1" />
|
||||
<box><label class="oe-time-picker-one-minute-number-class" value=":59" /></box>
|
||||
<spacer flex="1" />
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
|
||||
|
||||
</rows>
|
||||
</grid> <!-- One Minute Grid -->
|
||||
|
||||
<hbox>
|
||||
<label id="oe-time-picker-less-control-image" value="&less.label;" onclick="oeTimePicker.clickLess()"/>
|
||||
<spacer flex="1"/>
|
||||
<image id="oe-time-picker-minutes-bottom-image" />
|
||||
</hbox>
|
||||
|
||||
</vbox> <!-- One Minute Grid Box -->
|
||||
|
||||
</vbox> <!-- Box to hold time picker internals -->
|
||||
|
||||
</overlay>
|
||||
|
||||
Reference in New Issue
Block a user