Jump to main content
University Computer Centre
Extension Modules for websites
<?php
# Display of dates of the TU Calendar of Events
# https://www.tu-chemnitz.de/tu/termine/
  require_once('tu/inc/termine.inc');

  echo '<h2>max. 4 future dates of the Institute of Chemistry, display as in the Calendar of Events</h2>';
  echo termine(array('wer' => '%Chemie%'), 4, array('stil' => 4));

  echo '<h2>max. 2 dates of the URZ, compact table:</h2>';
  echo termine(array('fakultaet' => '%rechenzentrum%'), 2, array('stil' => 1));

  echo '<h2>max. 4 future dates of the Faculty of Natural Sciences with title Colloquium, listing, details as pop-up</h2>';

  echo termine(array('fakultaet' => '%Naturwissenschaften%',
                       'titel' => '%Colloquium'), 4, array('stil' => 2'link' => 'popup'));

/*
  $html = termine(array('field' => 'value'[, ...]), number, array('stil' => ...));

   field are data fields to select the events to be displayed:
        'titel' = event title
        'fakultaet' = Faculty or central institution (german term!)
        'wer' = organizer, i. e. professorship
        'label' = assigned label (on request to webmaster@tu-chemnitz.de)
        'info' = info text
        'uid' = user ID of the registrant(s)
        'uniteil', 'ort' = university site, room or other place
   value = character string to be searched for, placeholder = %
          alternatively, an array with two or more strings can be specified,
          e.g. for dates of two faculties:
           'fakultaet' =  array('%Mathematik%', '%Maschinenbau%')

   number = maximum number of events displayed (default: 10)

   style:
     'stil' => 1...4
        1 = compact table
        2 = list
        4 = as Calendar of Events: Complete overview table with "color coding"
     'link' => 'popup'
        Event details as small pop-up window (otherwise new page)
*/

?>

Show output with this program code