Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 54 | | All time: 10,612 This week: 69 |
|
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. | |
|
|
Innovation award
Nominee: 8x |
|
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>
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.