PHP Classes

PHP Timezone Select List: Show a form input to let the user pick a timezone

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-07-05 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 51 All time: 10,596 This week: 314Up
Version License PHP version Categories
selecttz 1.0Freeware8HTML, Code Generation, PHP 8
Description 

Author

This package can show a form input to let the user pick a timezone.

It can generate HTML for a form select input with a list of time zones from many countries worldwide.

The package can return the generated HTML to be inserted in form.

The identifier and other HTML attributes of the generated select input are configurable.

Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 8 packages by
Country: Greece Greece
Age: ???
All time rank: 418425 in Greece Greece
Week rank: 3 Up1 in Greece Greece Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
require_once('..\kernel\coreTimezones.php');

$objTZ = new \ASCOOS\CMS\KERNEL\CORE\Timezones\TTimezonesHandler();

$params = [
   
'class="default"',
   
'data-role="timezones"'
];

?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>ASCOOS - Test timezones select box</title>
   
    <link rel="icon" href="../favicon.ico" />
  </head>

  <body>
    <form>
        <label for="timezones">Choose a PHP Timezone:</label>
        <?php
          $start
= microtime(true);
          echo
$objTZ->getHtmlSelect('timezones', $params);
         
$profile_ascoos = number_format(microtime(true) - $start, 25);
          unset(
$start);
         
?>
</form>
    <div>
      <p>The list of timezones was created in : <?php echo $profile_ascoos; unset($profile_ascoos); ?></p>
    </div>
  </body>
</html>


Details

<p align="center"><img src="https://dl.ascoos.com/images/ascoos.png" height=120 /></p>

selectTZ

Description

Create an dropdown select with Timezones.

*

<p align="center"><img src="https://github.com/ascoos/selectTZ/blob/main/screenshot/select-timezones.png" height=584 /></p>

<p align="center"><img src="https://github.com/ascoos/selectTZ/blob/main/screenshot/select-timezones-generated-html-code.png" /></p>


Screenshots  
  • screenshot/select-timezones-1.png
  • screenshot/select-timezones-Firefox-1.png
  • screenshot/select-timezones-Firefox.png
  • screenshot/select-timezones-generated-html-code.png
  • screenshot/select-timezones.png
  Files folder image Files  
File Role Description
Files folder imagescreenshot (1 file)
Files folder imagesrc (2 directories)
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  screenshot  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imagekernel (2 files)
Files folder imagetest (2 files)

  Files folder image Files  /  src  /  kernel  
File Role Description
  Plain text file coreTimezones.php Class Class source
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files  /  src  /  test  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file tz-select.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:51
This week:0
All time:10,596
This week:314Up