Tag archive for "PHP"

Web Design

10 Ways to Save Time While Building a Website: Improved

11 Comments 28 February 2009

While you should never rush to complete a website, money is time. The more web work you can do, the greater your income will be and/or you’ll have extra free time to do as you wish with. I’ve compiled a list of 10 tools and resources that can help you reduce the amount of time you spend developing considerably. Continue Reading

HTML

A Useful Addition to any Business Website

1 Comment 05 August 2008

I’ve used this code in a large amount of business websites I’ve produced. It allows users to see at a glance whether a business is open or closed. If the time is within the specified hours, it will display an open image, if it any other time, it will display the closed image. It is easy to implement and looks great on a store hours page. It goes by the time of your server however so if your server is in a different timezone, adjust the hours accordingly. See a demo in action here.

<?php
/**
* Open / Closed script
* Try to edit only the ‘$hours’ array and the <img /> tags later on
* Editing anything else could give undesired results
*/

// These are the hours, correlating with the above days, in AM and PM format separated by ‘-’
$hours = array(’Sunday’ => ‘Closed’,
‘Monday’ => ‘By Appointment’,
‘Tuesday’ => ‘10AM-5PM’,
‘Wednesday’ => ‘10AM-5PM’,
‘Thursday’ => ‘10AM-5PM’,
‘Friday’ => ‘10AM-6PM’,
‘Saturday’ => ‘10AM-5PM’);

Continue Reading

          

Community News







© 2010 [Re]Encoded.com. Powered by Wordpress.