Source for file functions.php
Documentation is available at functions.php
* Other calendar plugin functions.
* @copyright 2002-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: functions.php 14845 2020-01-07 08:09:34Z pdontthink $
* Add link to menu at top of content pane
global $oTemplate, $nbsp;
return array('menuline' =>
$output);
* Adds second layer of calendar links to upper menu
global $color,$year,$day,$month;
// FIXME: Don't echo HTML from core. This whole function should probably be moved into a template file
echo
html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) .
html_tag( 'td', '', 'left', '', 'width="100%"' );
echo
makeInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right");
echo
makeInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right");
// echo makeInternalLink("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 Mon, 13 Jan 2020 04:22:34 +0100 by phpDocumentor 1.4.3