dolibarr  19.0.0-dev
Functions
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)
 Show event of a particular day. More...
 
 dol_color_minus ($color, $minus, $minusunit=16)
 Change color with a delta. More...
 
 sort_events_by_date ($a, $b)
 Sort events by date. More...
 
 sort_events_by_percentage ($a, $b)
 Sort events by percentage. More...
 

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 2199 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 
)

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$eventarrayArray 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.
string$nonew0=Add "new entry button", 1=No "new entry button", -1=Only "new entry button"
Returns
void

Definition at line 1708 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 < 0 if event A should be before event B, > 0 otherwise, 0 if they have the exact same time slot

Definition at line 2219 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 < 0 if event A should be before event B, > 0 otherwise, 0 if they have the exact same percentage

Definition at line 2258 of file index.php.