Home Page - www.tele-pro.co.uk - Ecommerce Integration


Scripts > Opening Times

Display Opening Times/Hours of Business

Please note that this is a script demonstration, and these are not our opening times relating to this website. An extended version of the script is used on this website, to show our real international availability times in several timezones across the globe.

Currently closed

It's 8:27 pm, on Friday, in timezone 0:00. We are currently closed - please email us, or call us on +44 (0)845 2578717 and leave a message.

Normal Opening Times

Day Start End
Sun Closed  
Mon 10.00 19.30
Tue 9.00 19.30
Wed 9.00 19.30
Thu 9.00 19.30
Fri 9.00 17.30
Sat 9.00 14.30

 

Remote Override

To override the current open or closed state, add the state and authorisation code to the querystring of this script as follows:

The AuthCode in this example is scripts@nicksumner.com

Override as Closed

?Override=closed&AuthCode=scripts@nicksumner.com

Override as Open

?Override=open&AuthCode=scripts@nicksumner.com

Undo Override
times.asp?Override=none&AuthCode=scripts@nicksumner.com

View Override Status
times.asp?Override=?

Download
Download Opening Times script - times.txt (4Kb)
 

Override Control Form

The form below will generate the querystrings described above with the state and authorisation code, and send them to the Opening Times script.

It can be placed at a discreet web address on your site as a quick and convenient way to remotely control the Override Status of the Opening Times script.

AuthCode: Override:


The AuthCode in this example is scripts@nicksumner.com


 

 

Opening Times - Technical Information

This Opening Times script is written in ASP and JScript code. It constructs the HTML code for a plain table containing the opening times information, and the table can be placed anywhere on the page.

The ASP code uses arrays to hold the opening times for each day of the week.

JScript has a convenient function getTimezoneOffset() which returns the timezone. There is no equivalent method in ASP, and so the code includes a server-side JScript function which uses getTimezoneOffset().

The Override status, which is derived from querystring parameters as described above, is held in Application variables so that it persists for all visitors and across browser sessions

Download Opening Times script - times.txt (4Kb)
 

Your Feedback is Important

Why not let us know your feedback, or any suggestions you have? Your opinion and feedback is very important to us and to future website visitors, as it enables the continual improvement of products, services, scripts and software available from this website.

Anonymous

International availability times

Click here to view the times that we're available for customer service assistance and technical support in your international time zone
 

 Template Monster - professional web templates and flash templates for immediate download.

Top | Home | ECommerce | Hosting | Site Map | Search | © 2003-6 | Contact