dolibarr 21.0.0-beta
index.php File Reference

Home page of calendar events. More...

Go to the source code of this file.

Functions

 show_day_events ($db, $day, $month, $year, $monthshown, $style, &$eventarray, $maxprint=0, $maxnbofchar=16, $newparam='', $showinfo=0, $minheight=60, $nonew=0, $bookcalcalendarsarray=array())
 Show event of a particular day.
 
 dol_color_minus ($color, $minus, $minusunit=16)
 Change color with a delta.
 
 sort_events_by_date ($a, $b)
 Sort events by date.
 
 sort_events_by_percentage ($a, $b)
 Sort events by percentage.
 

Detailed Description

Home page of calendar events.

Definition in file index.php.

Function Documentation

◆ dol_color_minus()

dol_color_minus ( $color,
$minus,
$minusunit = 16 )

Change color with a delta.

Parameters
string$colorColor
int$minusDelta (1 = 16 unit). Positive value = darker color, Negative value = brighter color.
int$minusunitMinus unit
Returns
string New color

Definition at line 2373 of file index.php.

◆ show_day_events()

show_day_events ( $db,
$day,
$month,
$year,
$monthshown,
$style,
& $eventarray,
$maxprint = 0,
$maxnbofchar = 16,
$newparam = '',
$showinfo = 0,
$minheight = 60,
$nonew = 0,
$bookcalcalendarsarray = array() )

Show event of a particular day.

Parameters
DoliDB$dbDatabase handler
int$dayDay
int$monthMonth
int$yearYear
int$monthshownCurrent month shown in calendar view
string$styleStyle to use for this day
array<int,ActionComm[]>$eventarray Array of events
int$maxprintNb of actions to show each day on month view (0 means no limit)
int$maxnbofcharNb of characters to show for event line
string$newparamParameters on current URL
int$showinfoAdd extended information (used by day and week view)
int$minheightMinimum height for each event. 60px by default.
int<-1,1>$nonew 0=Add "new entry button", 1=No "new entry button", -1=Only "new entry button"
array{}|array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int}}$bookcalcalendarsarray Used for Bookcal module array of calendar of bookcal
Returns
void

Definition at line 1839 of file index.php.

References $conf, dol_mktime(), position, and status.

◆ sort_events_by_date()

sort_events_by_date ( $a,
$b )

Sort events by date.

Parameters
object$aEvent A
object$bEvent B
Returns
int Return integer < 0 if event A should be before event B, > 0 otherwise, 0 if they have the exact same time slot

Definition at line 2393 of file index.php.

◆ sort_events_by_percentage()

sort_events_by_percentage ( $a,
$b )

Sort events by percentage.

Parameters
object$aEvent A
object$bEvent B
Returns
int Return integer < 0 if event A should be before event B, > 0 otherwise, 0 if they have the exact same percentage

Definition at line 2432 of file index.php.