Esempio n. 1
0
             $result[$i][$j] = $rowarray[0][$jj];
         }
     }
     $result[1][1] = $result[2][1] . '<br />' . $result[3][1];
     $result[4][1] = $result[2][1];
     $result[5][1] = $result[3][1];
     $result[6][1] = $result[7][1] . '<br />' . $result[8][1];
     $result[9][1] = $result[7][1];
     $result[10] = array('', $result[8][1], $result[9][2], $result[8][3], '');
 }
 foreach ($pronouns as $pron_index => $pronoun) {
     echo "   <tr>\n     <th>{$pronoun}</th>\n";
     foreach ($tenses as $tense_index => $tense) {
         //echo "    <td id=\"v$tense_index$pron_index\">",conjugate($row,$verb_root,$tense_index,$pron_index),"</td>\n";
         $my_conjugated = conjugate($row, $verb_root, $tense_index, $pron_index);
         $my_conjugated_color = conjugate($row, $verb_root, $tense_index, $pron_index, $color_on);
         if ($hspell_on) {
             $hspell_conjugated = $result[$pron_index + 1][$tense_index + 1];
         }
         $class = '';
         $devocalized_my_conjugated = niqqud_to_ktiv_male($my_conjugated);
         //$devocalized_my_conjugated = devocalize($my_conjugated);
         if ($hspell_on && $devocalized_my_conjugated != $hspell_conjugated && str_replace('<br />', '', $hspell_conjugated) != '') {
             $class .= ' hspell-nomatch';
         }
         $meat = $my_conjugated_color;
         if ($hspell_on) {
             $meat = "<span class=\"a\">" . $meat . "</span><span class=\"b\">" . $hspell_conjugated . "</span>";
         }
         echo "    <td id=\"v{$tense_index}{$pron_index}\" class=\"" . $class . "\" title=\"" . str_replace('<br />', "\n", $devocalized_my_conjugated) . "\">{$meat}</td>\n";
     }
Esempio n. 2
0
     echo "<a href=\"add_verb.php\" onfocus=\"if(this.blur)this.blur();\">Back</a>\n";
     echo "</body>";
     exit;
 } else {
     // it's a verb, so continue;
     // cut off the last letters and return just the root;
     if ($check_verb == 'rsi') {
         $cut_verb = $verb_length - 4;
         $root = substr($verb, 0, $cut_verb);
     } else {
         $root = substr($verb, 0, $cut_verb);
     }
 }
 // now direct the user to the next step based upon their choice of regular or irregular;
 if ($_POST['menu'] == 'regular' or $_POST['menu'] == 'reflexive') {
     $query = conjugate($verb, $root, $_POST['menu'], $_POST['menu2'], $check_verb, $_POST['past_part']);
     if (!$query) {
         echo "Data could not be entered.\n";
     } else {
         echo "<font color=\"navy\">{$verb}</font> has been successfully conjugated \n<br />";
         echo "and added to the database.<br />\n";
         echo "<body link=\"navy\" vlink=\"navy\" alink=\"navy\">\n";
         echo "<a href=\"add_verb.php\">Back</a>\n";
         echo "</body>";
         exit;
     }
 } elseif ($_POST['menu'] == 'irregular') {
     // to be completed;
     header("Location:  ../secure/irregular.php");
     exit;
 }