Changes between Version 13 and Version 14 of BoltRef


Ignore:
Timestamp:
Dec 13, 2007, 11:42:13 AM (17 years ago)
Author:
Nicolas
Comment:

fix sample PHP code

Legend:

Unmodified
Added
Removed
Modified
  • BoltRef

    v13 v14  
    2929The available information is:
    3030{{{
    31 $student.sex;    // 0=unknown, 1=male, 2=female
    32 $student.birth_year;
    33 $student.country;
    34 $student.name;
    35 $student.bandwidth;  // 1: <100Kb; 2: <1Mb; 3: <10Mb etc.
    36 $student.has_audio_output;    // 1: no, 2: yes
    37 $student.has_audio_input;
     31$student->sex;    // 0=unknown, 1=male, 2=female
     32$student->birth_year;
     33$student->country;
     34$student->name;
     35$student->bandwidth;  // 1: <100Kb; 2: <1Mb; 3: <10Mb etc.
     36$student->has_audio_output;    // 1: no, 2: yes
     37$student->has_audio_input;
    3838}}}
    3939
    4040For example, suppose you want to use a larger font for students over 50:
    4141{{{
    42 if ($student.age > 50) {
     42if ($student->age > 50) {
    4343    echo "<style>
    4444        body {font-size: large;}
     
    135135    lesson(...),
    136136    lesson(...),
    137     exercise(...),
     137    exercise(...)
    138138);
    139139?>