Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /joomla/html/parameter/element/timezones.php

Documentation is available at timezones.php

  1. <?php
  2. /**
  3. @version        $Id: helpsites.php 5921 2006-12-04 16:12:21Z chrisdavenport $
  4. @package        Joomla.Framework
  5. @subpackage    Parameter
  6. @copyright    Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
  7. @license        GNU/GPL, see LICENSE.php
  8. *  Joomla! is free software. This version may have been modified pursuant
  9. *  to the GNU General Public License, and as distributed it includes or
  10. *  is derivative of works licensed under the GNU General Public License or
  11. *  other free or open source software licenses.
  12. *  See COPYRIGHT.php for copyright notices and details.
  13. */
  14.  
  15. // Check to ensure this file is within the rest of the framework
  16. defined('JPATH_BASE'or die();
  17.  
  18. /**
  19.  * Renders a timezones element
  20.  *
  21.  * @author         Johan Janssens <[email protected]>
  22.  * @package     Joomla.Framework
  23.  * @subpackage        Parameter
  24.  * @since        1.5
  25.  */
  26.  
  27. class JElementTimezones extends JElement
  28. {
  29.    /**
  30.     * Element name
  31.     *
  32.     * @access    protected
  33.     * @var        string 
  34.     */
  35.     var    $_name = 'Timezones';
  36.  
  37.     function fetchElement($name$value&$node$control_name)
  38.     {
  39.         if(!strlen($value)) {
  40.             $conf =JFactory::getConfig();
  41.             $value $conf->getValue('config.offset');
  42.         }
  43.  
  44.         // LOCALE SETTINGS
  45.         $timezones array (
  46.             JHTMLSelect::option(-12JText::_('(UTC -12:00) International Date Line West')),
  47.             JHTMLSelect::option(-11JText::_('(UTC -11:00) Midway Island, Samoa')),
  48.             JHTMLSelect::option(-10JText::_('(UTC -10:00) Hawaii')),
  49.             JHTMLSelect::option(-9.5JText::_('(UTC -09:30) Taiohae, Marquesas Islands')),
  50.             JHTMLSelect::option(-9JText::_('(UTC -09:00) Alaska')),
  51.             JHTMLSelect::option(-8JText::_('(UTC -08:00) Pacific Time (US &amp; Canada)')),
  52.             JHTMLSelect::option(-7JText::_('(UTC -07:00) Mountain Time (US &amp; Canada)')),
  53.             JHTMLSelect::option(-6JText::_('(UTC -06:00) Central Time (US &amp; Canada), Mexico City')),
  54.             JHTMLSelect::option(-5JText::_('(UTC -05:00) Eastern Time (US &amp; Canada), Bogota, Lima')),
  55.             JHTMLSelect::option(-4JText::_('(UTC -04:00) Atlantic Time (Canada), Caracas, La Paz')),
  56.             JHTMLSelect::option(-3.5JText::_('(UTC -03:30) St. John`s, Newfoundland and Labrador')),
  57.             JHTMLSelect::option(-3JText::_('(UTC -03:00) Brazil, Buenos Aires, Georgetown')),
  58.             JHTMLSelect::option(-2JText::_('(UTC -02:00) Mid-Atlantic')),
  59.             JHTMLSelect::option(-1JText::_('(UTC -01:00) Azores, Cape Verde Islands')),
  60.             JHTMLSelect::option(0JText::_('(UTC 00:00) Western Europe Time, London, Lisbon, Casablanca')),
  61.             JHTMLSelect::option(1JText::_('(UTC +01:00) Amsterdam, Berlin, Brussels, Copenhagen, Madrid, Paris')),
  62.             JHTMLSelect::option(2JText::_('(UTC +02:00) Jerusalem, Kaliningrad, South Africa')),
  63.             JHTMLSelect::option(3JText::_('(UTC +03:00) Baghdad, Riyadh, Moscow, St. Petersburg')),
  64.             JHTMLSelect::option(3.5JText::_('(UTC +03:30) Tehran')),
  65.             JHTMLSelect::option(4JText::_('(UTC +04:00) Abu Dhabi, Muscat, Baku, Tbilisi')),
  66.             JHTMLSelect::option(4.5JText::_('(UTC +04:30) Kabul')),
  67.             JHTMLSelect::option(5JText::_('(UTC +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent')),
  68.             JHTMLSelect::option(5.5JText::_('(UTC +05:30) Bombay, Calcutta, Madras, New Delhi')),
  69.             JHTMLSelect::option(5.75JText::_('(UTC +05:45) Kathmandu')),
  70.             JHTMLSelect::option(6JText::_('(UTC +06:00) Almaty, Dhaka, Colombo')),
  71.             JHTMLSelect::option(6.30JText::_('(UTC +06:30) Yagoon')),
  72.             JHTMLSelect::option(7JText::_('(UTC +07:00) Bangkok, Hanoi, Jakarta')),
  73.             JHTMLSelect::option(8JText::_('(UTC +08:00) Beijing, Perth, Singapore, Hong Kong')),
  74.             JHTMLSelect::option(8.75JText::_('(UTC +08:00) Western Australia')),
  75.             JHTMLSelect::option(9JText::_('(UTC +09:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk')),
  76.             JHTMLSelect::option(9.5JText::_('(UTC +09:30) Adelaide, Darwin, Yakutsk')),
  77.             JHTMLSelect::option(10JText::_('(UTC +10:00) Eastern Australia, Guam, Vladivostok')),
  78.             JHTMLSelect::option(10.5JText::_('(UTC +10:30) Lord Howe Island (Australia)')),
  79.             JHTMLSelect::option(11JText::_('(UTC +11:00) Magadan, Solomon Islands, New Caledonia')),
  80.             JHTMLSelect::option(11.30JText::_('(UTC +11:30) Norfolk Island')),
  81.             JHTMLSelect::option(12JText::_('(UTC +12:00) Auckland, Wellington, Fiji, Kamchatka')),
  82.             JHTMLSelect::option(12.75JText::_('(UTC +12:45) Chatham Island')),
  83.             JHTMLSelect::option(13JText::_('(UTC +13:00) Tonga')),
  84.             JHTMLSelect::option(14JText::_('(UTC +14:00) Kiribati')),);
  85.  
  86.         return JHTMLSelect::genericList($timezones''.$control_name.'['.$name.']'' class="inputbox"''value''text'$value$control_name.$name );
  87.     }
  88. }
  89. ?>

Documentation generated on Mon, 05 Mar 2007 21:29:30 +0000 by phpDocumentor 1.3.1