Student S and Student T

[article] [edit page] [discussion] [history]

From Humanitarian-FOSS Project Development Site

View Song

In main.inc

function shn_hw_mainmenu() 
{
    global $global;
    global $conf;
    $module = $global['module'];

    shn_mod_menuopen(_lc("Hello World"));
    shn_mod_menuitem("default","Home",$module);
    shn_mod_menuitem("song","Song",$module);
    shn_mod_menuclose();

    
/** Includes Handlers for the main menu */
include $global['approot']."/inc/handler_mainmenu.inc";
} 

/**
*  This function is called when the user selects song from the menu. 
*  It displays the page defined in song.inc.
*
*  @access public
*  @return void
*/
function shn_hw_song()
{
    include_once ("song.inc");
}

/**
*  This function is called automatically when the HW module is 
*  selected.  It displays the default welcome page defined in home.inc.
*
*  @access public
*  @return void
*/
function shn_hw_default()
{
    include_once ("home.inc");
}

In song.inc


<?php


$days = array("first"=>"Make us a cup of tea",
"second"=>"Who the hell are you?",
"third"=>"Tutor three new students",
"fourth"=>"Fabricate some data",
"fifth"=>"TAKE an MSc",
"sixth"=>"Plagiarise some papers",
"seventh"=>"Go to Summer school",
"eighth"=>"Get some bloody funding",
"ninth"=>"No I have not read it",
"tenth"=>"Wheres your bloody thesis",
"eleventh"=>"Pull yourself together");

foreach($days as $day => $phrase)
{
  print "On the {$day} day of research my professor said to me, {$phrase}<br>";
}

?>

Personal tools