dolibarr 24.0.0-beta
index.php File Reference

Home page of calendar events. More...

Go to the source code of this file.

Functions

 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.
 

Variables

 $cacheusers = array()
 
 $theme_datacolor
 

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 2475 of file index.php.

◆ 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 2495 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 2534 of file index.php.

Variable Documentation

◆ $cacheusers

$cacheusers = array()

Definition at line 1598 of file index.php.

Referenced by FormActions\showactions().

◆ $theme_datacolor

$theme_datacolor
Initial value:
= array(
array(137, 86, 161),
array(60, 147, 183),
array(250, 190, 80),
array(80, 166, 90),
array(190, 190, 100),
array(91, 115, 247),
array(140, 140, 220),
array(190, 120, 120),
array(115, 125, 150),
array(100, 170, 20),
array(150, 135, 125),
array(85, 135, 150),
array(150, 135, 80),
array(150, 80, 150)
)

Definition at line 1600 of file index.php.

Referenced by DolGraph\__construct(), DolGraph\draw_chart(), and box_graph_nb_tickets_type\loadBox().