Single Lesson Wizard

Choose Your Lesson Type

DAVE; echo <<
Level

Lesson Type

Direction

Instrument

DAVE; } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // STAGE 2 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if($stage == 2){ $level = $_GET['level']; $instrument = $_GET['instrument']; $category = $_GET['category']; $direction = $_GET['direction']; $path = $_GET['path']; $mode = ""; $selected_modes = array(); $all_modes = array( "notation_instrument" => "Reading Music", "instrument_notation" => "Writing Music With Instrument", "instrument_theory" => "Naming Chords and Scales on Your Instrument", "theory_instrument" => "Playing Chords and Scales on Your Instrument", "notation_theory" => "Naming Written Chords and Scales", "theory_notation" => "Writing Chords and Scales", "sound_theory" => "Identifying Chords and Scales by Ear", "sound_instrument" => "Playing by Ear", "sound_notation" => "Writing Music by Ear" ); //Determine which modes will be enabled for this lesson. foreach($all_modes as $key => $mode_description){ if(strstr($key, $category)){ $selected_modes[$key] = $mode_description; } } echo <<Choose Your Lesson

"; echo ""; echo ''; echo '
Lesson

Note Pattern
"; echo "

"; echo ''; } //End Stage 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// // STAGE 3 /////////////////////////////////////////////////////////////////////////////////////////////////////// else if($stage == 3){ $level = $_GET['level']; $direction = $_GET["direction"]; $file = $_GET['chord_table']; $path = $_GET['path']; $instrument = strtolower($_GET['instrument']); $lesson_type = $_GET['mode']; $chords = $_GET['chords']; $mode = explode('_', $lesson_type); $return_path = $_GET['return_path']; $lesson_name = $_GET['lesson_name']; $special=$_GET['special']; global $user; $user_id = $user->uid ; $q = $mode[0]; $a = $mode[1]; if(!$path){ //If path blank, leave it so. } else { //Now add subfolder to existing path $path = $path . $level . '/'; } $jar_path = "http://www.ultramusician.com/files/EarTrainer/" . $dev . "/jars/"; $archive_string = $jar_path . $applet_name . ',' . "http://ultramusician.com/files/EarTrainer/sounds/" . $instrument . '.jar'; echo <<
Having trouble? Click HERE
DAVE; } //End stage


Choose Your Lesson Type



DAVE;

echo <<

Level
Lesson Type
Direction
Instrument



DAVE;
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// STAGE 2
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($stage == 2){
$level = $_GET[‘level’];
$instrument = $_GET[‘instrument’];
$category = $_GET[‘category’];
$direction = $_GET[‘direction’];
$path = $_GET[‘path’];
$mode = “”;
$selected_modes = array();
$all_modes = array(
“notation_instrument” => “Reading Music”,
“instrument_notation” => “Writing Music With Instrument”,
“instrument_theory” => “Naming Chords and Scales on Your Instrument”,
“theory_instrument” => “Playing Chords and Scales on Your Instrument”,
“notation_theory” => “Naming Written Chords and Scales”,
“theory_notation” => “Writing Chords and Scales”,
“sound_theory” => “Identifying Chords and Scales by Ear”,
“sound_instrument” => “Playing by Ear”,
“sound_notation” => “Writing Music by Ear”
);
//Determine which modes will be enabled for this lesson.
foreach($all_modes as $key => $mode_description){
if(strstr($key, $category)){
$selected_modes[$key] = $mode_description;
}
}

echo <<Choose Your Lesson







“;
echo “

“;
echo ‘

‘;
echo ‘

Lesson
Note Pattern

“;

echo “

“;
echo ‘‘;
} //End Stage 2

///////////////////////////////////////////////////////////////////////////////////////////////////////
// STAGE 3
///////////////////////////////////////////////////////////////////////////////////////////////////////
else if($stage == 3){
$level = $_GET[‘level’];
$direction = $_GET[“direction”];
$file = $_GET[‘chord_table’];
$path = $_GET[‘path’];
$instrument = strtolower($_GET[‘instrument’]);
$lesson_type = $_GET[‘mode’];
$chords = $_GET[‘chords’];
$mode = explode(‘_’, $lesson_type);
$return_path = $_GET[‘return_path’];
$lesson_name = $_GET[‘lesson_name’];
$special=$_GET[‘special’];
global $user;
$user_id = $user->uid ;
$q = $mode[0];
$a = $mode[1];
if(!$path){
//If path blank, leave it so.
} else {
//Now add subfolder to existing path
$path = $path . $level . ‘/’;
}

$jar_path = “http://www.ultramusician.com/files/EarTrainer/” . $dev . “/jars/”;
$archive_string = $jar_path . $applet_name . ‘,’ . “http://ultramusician.com/files/EarTrainer/sounds/” . $instrument . ‘.jar’;

echo <<

Having trouble? Click HERE


DAVE;
} //End stage