20){$this_tribe_num = ($this_tribe_num - 20);} // Create the tone img $the_word_tone = $txt_26; $this_tone_name = $kin_line_array[$this_tone_num][6]; if (strlen($this_tone_num) === 1){$tone_img_name = '0'.$this_tone_num.'.png';} else {$tone_img_name = $this_tone_num.'.png';} $img_attrib_extra = $the_word_tone.' '.$this_tone_num.' '.$this_tone_name; $tone_img = ''.$img_attrib_extra.''; // Create the seal img $the_word_seal = $txt_27; $this_tribe_name = $kin_line_array[$this_tribe_num][11]; $kin_line_array[$this_day_kin_num][11]; if (strlen($this_tribe_num) === 1){$seal_img_name = '0'.$this_tribe_num.'.png';} else {$seal_img_name = $this_tribe_num.'.png';} $img_attrib_extra = $the_word_seal.' '.$this_tribe_num.' '.$this_tribe_name; $seal_img = ''.$img_attrib_extra.''; // Create a highlighted day if ($this_day_kin_num === $this_kin){$this_div_style = $highlight_style;} else {$this_div_style = '';} $ws_img_pkg = ""; $ws_img_pkg .= '
'; $ws_img_pkg .= '
'; $ws_img_pkg .= "$tone_img"; $ws_img_pkg .= '
'; $ws_img_pkg .= '
'; $ws_img_pkg .= "$seal_img"; $ws_img_pkg .= '
'; $ws_img_pkg .= '
'; // ASSIGN: kin_id, tone_num, tribe_num, $ws_info[$x] = array( "kin_id" => "$this_kin", "tone_num" => ($x + 1), "tribe_num" => "$this_tribe_num", "ws_img_pkg" => "$ws_img_pkg", ); } // END for loop // Create the Wavespell Table $ocx = ''; $ocx .= '
'; // Create a div for the table $ocx .= ''; // Main Table // Row 1 --------------------------------------------- $ocx .= ''; // cell for TONE 1 $ocx .= ''; $ocx .= ''; $ocx .= ''; // Row 2 ------------------------------------------- $ocx .= ''; // cell for TONE 2 $ocx .= ''; $ocx .= ''; // cell for TONE 13 $ocx .= "'; // cell for TONE 12 $ocx .= "'; $ocx .= "\n"; // Row 3 ------------------------------------------- // cell for TONE 3 $ocx .= "\n"; $ocx .= "'; $ocx .= "\n"; // cell for TONE 11 $ocx .= "\n"; $ocx .= "\n"; // Row 4 ------------------------------------------- $ocx .= "\n"; $ocx .= "\n"; $ocx .= "\n"; // cell for TONE 10 $ocx .= "\n"; $ocx .= "\n"; // Row 5 ------------------------------------------- $ocx .= "\n"; // cell for TONE 5 $ocx .= "\n"; // cell for TONE 6 $ocx .= "\n"; // cell for TONE 7 $ocx .= "\n"; // cell for TONE 8 $ocx .= "\n"; // cell for TONE 9 $ocx .= "\n"; // End final row $ocx .= "\n"; // End table $ocx .= "
'; $ocx .= $ws_info[0]['ws_img_pkg']; // Tone 1 $ocx .= '
'; $ocx .= $ws_info[1]['ws_img_pkg']; // Tone 2 $ocx .= '"; $ocx .= $ws_info[12]['ws_img_pkg']; // Tone 13 $ocx .= '"; $ocx .= $ws_info[11]['ws_img_pkg']; // Tone 12 $ocx .= '
"; $ocx .= $ws_info[2]['ws_img_pkg']; // Tone 3 $ocx .= '"; $ocx .= $ws_info[10]['ws_img_pkg']; // Tone 11 $ocx .= "
"; $ocx .= $ws_info[3]['ws_img_pkg']; // Tone 4 $ocx .= ""; $ocx .= $ws_info[9]['ws_img_pkg']; // Tone 10 $ocx .= "
"; $ocx .= $ws_info[4]['ws_img_pkg']; // Tone 5 $ocx .= ""; $ocx .= $ws_info[5]['ws_img_pkg']; // Tone 6 $ocx .= ""; $ocx .= $ws_info[6]['ws_img_pkg']; // Tone 7 $ocx .= ""; $ocx .= $ws_info[7]['ws_img_pkg']; // Tone 8 $ocx .= ""; $ocx .= $ws_info[8]['ws_img_pkg']; // Tone 9 $ocx .= "
\n"; // END Main Table $ocx .= "
\n"; // END div for the table echo "$ocx"; ?>