Changes between Version 35 and Version 36 of BoltRef
- Timestamp:
- Oct 23, 2008, 1:43:35 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltRef
v35 v36 39 39 $student->country; 40 40 $student->name; 41 $student->bandwidth; // 1: <100Kb; 2: <1Mb; 3: <10Mb etc. 42 $student->has_audio_output; // 1: no, 2: yes 43 $student->has_audio_input; 44 }}} 45 46 For example, suppose you want to use a larger font for students over 50: 47 {{{ 48 if ($student->age > 50) { 41 }}} 42 43 For example, suppose you want to use a larger font for female students: 44 {{{ 45 if ($student->sex == 2) { 49 46 echo '<style type="text/css"> 50 47 body {font-size: large;} … … 55 52 56 53 An alternative way to vary content based on student attributes is 57 to use separate lesson files, selected in the course document .54 to use separate lesson files, selected in the course document (see below). 58 55 59 56 == Exercises ==