Project NiceCalendar (CleanView - Demo - Download)
NiceCalendar is a pretty and user-friendly Calendar app.
It can easily be placed in any kind of portal or blog system and doesn't require further coding: you just customize some CSS directives and everything is ready to work.
A cool feature is the "day link" option which allows you to assign a specific text+link to some calendar days. Each message will be displayed with a nice tooltip (see demo).
Usage example:
« Back
Current version: 2.3
Description
NiceCalendar is a pretty and user-friendly Calendar app.It can easily be placed in any kind of portal or blog system and doesn't require further coding: you just customize some CSS directives and everything is ready to work.
A cool feature is the "day link" option which allows you to assign a specific text+link to some calendar days. Each message will be displayed with a nice tooltip (see demo).
Docs
NiceCalendar methods:- NiceCalendar($data='',$tooltip=true,$month='',$year='',$big=0, $mondayFirst=false) :: Constructor. Sets the "reminders" data, tool-tip option (true means activated), and the month+year combination to display. Optionally you can also choose to show the big version of the calendar and to set Monday as first day of the month (default=Sunday).
- @void draw () :: Outputs the calendar.
"day link" Data variable:
$data=array(
'1-7-2006'=>array('blog.php?id=01072006','A day to remember'),
'12-7-2006'=>array('#','Don\'t need any link'),
'26-7-2006'=>array('index.php','My homepage'),
'11-6-2006'=>array('#','Also for previous Month !!')
);
Usage example:
//Put this in the head
echo '<script type="text/javascript" src="NiceCalendar.js"></script>';
echo '<link rel="stylesheet" type="text/css" href="NiceCalendar.css" />';
//end head
$remind=array(
'1-7-2006'=>array('blog.php?id=01072006','A day to remember'),
'12-7-2006'=>array('#','Don\'t need any link'),
'26-7-2006'=>array('index.php','My homepage'),
'11-6-2006'=>array('#','Also for previous Month !!'));
$calendar = new NiceCalendar($remind,1,$_GET['month'],$_GET['year']);
$calendar->draw();
D
O
C
S
O
C
S
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="NiceCalendar.css" />
- <script src="NiceCalendar.js"></script>
- </head>
- <body>
<?#populate the demo calendar// FORMAT= 'dd-mm-yyyy'=>array('link.php','event title')$remind=array('1-7-2007' =>array('blog.php?id=01072006','A day to remember'),'12-7-2007'=>array('#','Don\'t need any link'),'27-7-2007'=>array('index.php','My homepage'),'11-6-2007'=>array('#','Also for previous Month !!'));/*** little calendar demo ***/$calendar = new NiceCalendar($remind,1,$_GET['month'],$_GET['year'],0,0);$calendar->draw();echo '<br><br><br>';/*** BIG calendar demo ***/$calendar = new NiceCalendar($remind,1,$_GET['month'],$_GET['year'],1,0);$calendar->draw();- ?>
- </body>
« Back