Personal Calendar
 
HOME | CONTACT US | SITE MAP

Recent Searches:
Search: Personal Calendar
Search: Calendar
Search: Event Calendar

Partner Sites:
Web Inceptions, Inc.
Domain Name Sales
Domain Registration Alerts


New Sites:
Supernatural Photography
Bargain Scrapbooks
Challenge Workshop
Virtual Pets
Reconcilable Differences
The Love Bible
Advanced Navigation
PUA
Hyper Seduction
Advanced Defense
Party Confidential
Spice Chefs
Adventure Climbers
Independent Cycling
Organic Parenting
Affordable Beach Living
Coach Promotion
Nightlife Photographer
Affordable Home Broker
Interior Updates
Real Estate Bailout
Serenity Photography
Advanced Exports
Enhanced Photography
Smart Custody
Adventure By Nature
The Wine You Love
Bridal Insight
Inspirational Instruction
Coral Adventures
PersonalCalendar.info
Tuesday, March 09, 2010


Simple & Free Website Calendar

Offering a calendar to your site is a popular and easy addition to any site. In this article I will explain the relatively simple logic to allow you to create your own calendar. To be more specific, we'll create a calendar which shows either a monthly or weekly view and assume you can pass variables into the program. The first thing needed are the minimum variables or parameters necessary to give ourselves a fair amount of flexibility.

These variables will be the starting day, number of days to show, and any offset needed. The first two variables are pretty obvious, but the purpose of offset may not be clear. offset can be used to show previous and next calendars while maintaining view (e. g. monthly or weekly). Next, considering that we would like to be able to show periods such as "this week", "this month", "next week", etc.


we will need to create some logic to handle these options. To do this, we'll have 3 variables the program will accept: calendar, showdays, & offset. calendar will be used to request a specific calendar (e. g. "this week") while the other two variables come from those defined above. Our script will need to take the calendar and offset variables to populate the starting day.

Note: All code shown here is pseudo-code and will not work in any known language. For the example calendar script in PHP, please visit the author's site. // First, establish the starting day and number of days to show. // Express number of days using "month" for a monthly show because months vary in number of days. IF calendar = "this month" start_day = first of the month num_days = "month"ELSE IF calendar = "this week" start_day = last Sunday num_days = 7ELSE IF .

. . continue for all acceptable formsELSE start_day = default day num_days = default numberEND IF// Now modify start_day by the appropriate offset and establish number of days (count_max) to// show appropriate for the value of num_daysIF num_days = "month" start_day = first of the month adjusted by offset number of months count_max = number of days in the monthELSE start_day = start_day adjusted by offset number of days count_max = num_daysEND IF// Determine the day of the week start_day falls onstart_day_of_week = day of week for start_day, this should be a number from 0 to 6.

We have now collected all the information necessary to show the appropriate calendar. Moving on, we now need to generate our calendar.

Our calendar should output the header information and the name of the month as a caption. Then all which remains is to output each row. Let's take a look at how that can be achieved:column_position = start_day_of_weekIF column_position > 0 OUTPUT: empty TD cell spanning column_position+1 cells INCREMENT: column_positionEND IForiginal_start_day = start_daycurrent_day = start_dayWHILE (current_day - start_day) < count_max) IF (column_position MOD 7) = 0 OUTPUT: open TR tag END IF OUTPUT: TD cell with current_day in it INCREMENT: column_position INCREMENT: current_day IF (column_position MOD 7) = 0 OUTPUT: close TR tag END IFEND WHILEThis will output each of the rows, wrapping on Saturday, but will leave the last TR tag open, so be sure to close it and the table.

Then, all you need to do is save your file and use the code, setting the appropriate variables, wherever you would like! Now, this is an extremely simple example and adding features such as navigation and event management are definite pluses.

For a copy of this script with functioning code, please see the author's website. Jeremy Miller - Webmaster of Script Reference - The *NEW* PHP Reference & Tutorial Site For Non-Programmers

Author:
Jeremy Miller




More great sites:
Privileged | Riptides | Antisocial | Empowering | Gatekeeper | Herpetology | Methadone | Microdermabrasion | Office Leasing | Presidio | Surf Report | Used Auto | Vision Correction | Pamper | Debt Settlement | RDN | Realty Guide | Web Income | Local Realty | USCG | HEA | Consumer Safety | Debt Repair | Dine | DIU | Entice | Fertility Drug | Health Insurance Law | Infancy | Office Move | Reserves | Sales Leads | San Diego Rentals | Toxins | Disability Rights | Home Realty | Business Backup | Business Web Hosting | Family Photographs | IAJ | OGL | Work Injury Law | Encounters | Event Planners | Action Plan | BYA | Corporate Security | Eruption | Felons | Home Foreclosures | Housing Authority | IJA | Inmates | Narration | Home Pharmacist | Bike Race | ENF | For Rent By Owner | Grand Parent | Home Renovation | JLI | KIE | NPR | State Bar | Wedding Band | Yacht Brokerage | Back Support | Credit Store | Dive Guide | Executive Development | Home Buying Secrets | Imitation | Marketing Secrets | Stock Photographs | Vintage Clothes | Family Court | Garage Band | Get Healthy | Educational Books | Family Activities |

Do you have a web site? Please link to us!


PersonalCalendar.info: Simple & Free Website Calendar

More Personal Calendar information:

Article: Choosing Your Calendar Choosing Your Calendar

Article: Creating Personalized Photo Calendars Creating Personalized Photo Calendars

Article: Calendars and Personality Type Calendars and Personality Type

Article: Outlook Not Just for Email Using Your Outlook Calendar Outlook Not Just for Email Using Your Outlook Calendar

Article: The Retailers Calendar The Retailers Calendar

Article: Want to Manage Your Time?  Get Real! Want to Manage Your Time? Get Real!

Article: Simple & Free Website Calendar Simple & Free Website Calendar

Article: Teacher Websites A Students Perspective Teacher Websites A Students Perspective

Article: 10 Time-Saving Calendar & Scheduling Tips 10 Time-Saving Calendar & Scheduling Tips

Article: Time is on Your Side? Manage it Wisely Time is on Your Side? Manage it Wisely

Article: What You Need in Your Marketing Calendar What You Need in Your Marketing Calendar

Article: 12 month 2005 Marketing Calendar that Boost Sales 12 month 2005 Marketing Calendar that Boost Sales

Article: Calendar Teaching Tips Calendar Teaching Tips

Article: Using a Marketing Calendar Template Using a Marketing Calendar Template

Article: Creating a Foundation for Your Marketing Creating a Foundation for Your Marketing

Article: Fool for God Fool for God

Article: Chinese Zodiac Signs Chinese Zodiac Signs

Article: Keeping YOUR Calendar Full Keeping YOUR Calendar Full

Article: The Promotional Calendar Has Just Evolved - Is Your Company Ready? The Promotional Calendar Has Just Evolved - Is Your Company Ready?

Article: Same Time Next Year Using Editorial Calendars as Part of your PR Efforts Same Time Next Year Using Editorial Calendars as Part of your PR Efforts

Article: How to Turn a Marketing Calendar into Marketing Success! How to Turn a Marketing Calendar into Marketing Success!

Article: 6 MUST Have Strategies To Make Big Bucks with Big Ticket Items 6 MUST Have Strategies To Make Big Bucks with Big Ticket Items

Article: Outlook...  Not Just for Email! Using Your Outlook Calendar Outlook... Not Just for Email! Using Your Outlook Calendar

Article: RSS Round-Up: Whats Happening with Simple Syndication? RSS Round-Up: Whats Happening with Simple Syndication?

Article: 5 Tips to Help You Market When You Think Youre Too Busy 5 Tips to Help You Market When You Think Youre Too Busy


Personal Calendar
Calendar Event Calendar

Related Items:
Iceland Personal
Office Supplies
Event Calendar
Wall Calendar
Web Calendar
Personal Calendar
Calendar Software
Appointment Book
Appointment Calendar
Personalized Calendar
In The Park
Waterplane
Linzer Klangwolke
Eldorado Bbq
Tribe Tracker
Downtown
Password Reminder
Air Show
Calendar Girl
Celestial Calendar
Alpine Calendar
Frolic Friends
Plan It Calendar
Eldorado Festival
Judy Garland Festival
Calendar Year 2005
Gallery Calendar
Prayer Calendar
Mushroom Festival
Missouri Events
Spanish Calendar
Bbq Blues
Winter Frolic
Swiss Calendar
Bbq Brew
Main Event
Entertainment Book
2005 Calendar
Atlanta Sports
Dance Calendar
Mexican Calendar
Eminem Calendar
Aubade Calendar
Picnic Sports
Castle Calendar
Public Calendar
Birthday Calendar
Hydroplane
A Printable Calendar
Tourism
Meeting Reminder
Reminder Cards
Calendar German
Palm Pilot Software
Restaurant Atlanta
Calendar Mom
Software
Books
Pda
Holiday
Christmas
Pdas
Organizer
Handheld
Organize
Personal Information
Handhelds
Pensacola
Office Supply
Office Equipment
Sports Events
Pda Software
Pda Phone
Palm Software
Personal Organizer
Handheld Computer
Magic Show
Medical Software
Day Planner
Handheld Software
Barrel Racing
Day-timer
Day Timer
Group Calendar
Calendar Online
Calendar Program
Event Reminder
Online Schedule
Day Planners
Calendar Creator
Calendar Reminder
Family Calendar
Software For Pda
Calendar Maker
Daily Reminder
Reminder Program
Calendar Scheduler
Date Reminder
Web Based Calendar
Seattle Events
Personal Calendars
Scheduling Calendar
Personal Planner
Pda Medical Software
Family Schedule
Calendar Task
Palm Medical Software
Daily Planners
Desktop Reminder
Events Atlanta
Task Software
Telephone Reminders
Phone Reminder
Children Calendar
Directory Atlanta
Appointment Program
Calendaring Program
Calendars For 2005
Computer Reminder
Scrapbook Calendar
Paralegal Software

 
Copyright © 2000-2006 PersonalCalendar.info. All Rights Reserved.
Home | Contact Us | About Us | Site Map | Add URL