Source for file functions.php
Documentation is available at functions.php
 * Other calendar plugin functions.  
 * @copyright © 2002-2006 The SquirrelMail Project Team  
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License  
 * @version $Id: functions.php,v 1.9.2.6 2006/05/06 07:52:19 tokul Exp $  
 * Adds second layer of calendar links to upper menu  
    global $color,$year,$day,$month;  
    echo 
html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) .
 
         html_tag( 'td', '', 'left', '', 'width="100%"' );  
    displayInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right");  
    displayInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right");  
    // displayInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right");  
    // echo "  \n";  
 * Generates html option tags with length values  
 * Hardcoded values from 0 minutes to 6 hours  
 * @param integer $selected selected option length  
    while( $bar = 
each($eventlength)) {  
        if($bar['key']==
$selected){  
            echo 
'        <option value="'.
$bar['key'].
'" selected="selected">'.
$bar['value'].
"</option>\n"; 
            echo 
'        <option value="'.
$bar['key'].
'">'.
$bar['value'].
"</option>\n"; 
 * Generates html option tags with minute values  
 * Hardcoded values in 5 minute intervals  
 * @param integer $selected selected value  
    while ( $bar = 
each($eventminute)) {  
        if ($bar['key']==
$selected){  
            echo 
'        <option value="'.
$bar['key'].
'" selected="selected">'.
$bar['value'].
"</option>\n"; 
            echo 
'        <option value="'.
$bar['key'].
'">'.
$bar['value'].
"</option>\n"; 
 * Generates html option tags with hour values  
 * @param integer $selected selected value  
 * @todo 12/24 hour format  
        ($i<
10)? 
$ih = 
"0" . 
$i : 
$ih = 
$i;  
            echo 
'            <option value="'.
$ih.
'" selected="selected">'.
$i.
"</option>\n"; 
            echo 
'            <option value="'.
$ih.
'">'.
$i.
"</option>\n"; 
 * Generates html option tags with priority values  
 * @param integer $selected selected value  
    while( $bar = 
each($eventpriority)) {  
        if($bar['key']==
$selected){  
            echo 
'        <option value="'.
$bar['key'].
'" selected="selected">'.
$bar['value'].
"</option>\n"; 
            echo 
'        <option value="'.
$bar['key'].
'">'.
$bar['value'].
"</option>\n"; 
 * Generates html option tags with year values  
 * Hardcoded values from 1902 to 2037  
 * @param integer $selected selected value  
    for ($i=
1902;$i<
2038;$i++
){  
            echo 
'            <option value="'.
$i.
'" selected="selected">'.
$i.
"</option>\n"; 
            echo 
'            <option value="'.
$i.
'">'.
$i.
"</option>\n"; 
 * Generates html option tags with month values  
 * @param integer $selected selected value  
            echo 
'            <option value="'.
$im.
'" selected="selected">'.
$is.
"</option>\n"; 
            echo 
'            <option value="'.
$im.
'">'.
$is.
"</option>\n"; 
 * Generates html option tags with day of month values  
 * Hardcoded values from 1 to 31  
 * @param integer $selected selected value  
        ($i<
10)? 
$ih=
"0".
$i : 
$ih=
$i;  
            echo 
'            <option value="'.
$ih.
'" selected="selected">'.
$i.
"</option>\n"; 
            echo 
'            <option value="'.
$ih.
'">'.
$i.
"</option>\n"; 
 
 
	
		Documentation generated on Sat, 07 Oct 2006 16:31:23 +0300 by phpDocumentor 1.3.0RC6