NanakShahi Date and Purbs Generator v1.0
Basically this script generates the current NanakShahi dates and also the Gurpurbs and Itihasik Purbs from the NanakShahi Calendar, together with the Hukamnama of the current month. It also has similar limited English date outputs as well.
Very flexible, you can edit the display style “CSS” so you can make it display look the way you want as the data is stored as raw.
For details download and read the ReadMe.txt and How_To_Use.txt files.
Please go here for the recent release version 1.1 released on 07/01/2008
Contact Me if you encounter any problems!
Requirements: Your server must support php
Folder Content: Everything you need!
- index.php v1.0 14/06/2007 - Displaying the results
- style.css v1.0 14/06/2007 - Display style for the data
- bgorange.gif v1.0 14/06/2007 - Image used as the heading’s background
- date.php v1.0 14/06/2007 - Date modification functionality
- purbs.php v1.0 14/06/2007 - Purabs for the current Year according to SGPC NanakShahi Calendar
- ReadMe.txt v1.0 14/06/2007 - For the systems explanation
- How_to_Use.txt v1.0 14/06/2007 - Examples on the usage
- punjabi_fonts.zip v1.0 14/06/2007 - 33 Punjabi fonts in total, install them on your computer!
Below are the two examples using Short Tags i.e. and Standard Tags i.e. , you can see both of them produce exactly te same thing.
Usage is very straight forward:
first extract the folder NanakShahiCalendar from the zip file in the directory where your date page is or will be residing, now include this line at the beginning of the file you want the dates to display.
Than place this tag where you want the results to appear, should print the date as 28th of Harh 539, also this tag will also produce exactly the same output.
Below are the available variables that can be used to display related results:
Nanakshahi Date and Purbs variables:
$nDate - Current date in the format “28th of Harh 539″
$gurbani - Hukamnama of current month
$gurpurb - Current Gurpurb
$itihasik - Current itihasik purb
$month - Current Nanakshahi month name
English Date and Holidays variables:
$engDate - Current date in the format “Friday 13th of July 2007″
$engHoliday - Current Holiday
As English calendar systems are available on the internet in many useful formats, I will not be paying much attention on this part. However I though that you might want to have this functionality within this system for generic usage.
Websites using it:
http://www.gurunanakdarbar.org.uk
If you would like to be on this thread, just submit a comment or use the contact form with your details. I will happily insert your details in the thread.
Also If I know you are using this script, I will definitely be informaing you about any updates it may need, So submitting your site would be a good idea, I think.
Features coming soon:
- Listing Gurpurbs and Itihasik Purbs for the current month
- Days remaining for the nearest Gurpurb (i.e. 5 days remaining for Guru Nanak Dev Ji’s Birthday etc.)
- and many more.
If you have a suggestion for a feature please leave a comment or contact me, I will be ahppy to do any upgrades.
Harvinder Singh said,
An updated version has been released, please find the link below:
Please go here for the recent release version 1.1 released on 07/01/2008