<html lang=<?php 
echo $lang;
?>
>
  <head>
    <title><?php 
echo "{$table} - " . WH_Text($table);
?>
 - WikiHiero</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="/favicon.ico">
  </head>
  <body bgcolor="#DDDDDD">

    <?php 
echo "<b>{$table}</b> - " . WH_Text($table) . "<br><br>";
if ($dh = opendir(WH_IMG_DIR)) {
    while (($file = readdir($dh)) !== false) {
        if ($table == "All") {
            $code = WH_GetCode($file);
            if (in_array($code, $wh_phonemes)) {
                echo "<img src=\"" . WH_IMG_DIR . "{$file}\" title=\"{$code} [" . array_search($code, $wh_phonemes) . "]\">\n";
            } else {
                echo "<img src=\"" . WH_IMG_DIR . "{$file}\" title=\"{$code}\">\n";
            }
        } else {
            if ($table == "Phoneme") {
                $code = WH_GetCode($file);
                if (in_array($code, $wh_phonemes)) {
                    echo "<img src=\"" . WH_IMG_DIR . "{$file}\" title=\"{$code} [" . array_search($code, $wh_phonemes) . "]\">\n";
                }
Example #2
0
function WH_Table($table)
{
    global $lang;
    $url = "wh_table.php?table=" . urlencode($table) . '&lang=' . urlencode($lang);
    $encUrl = htmlspecialchars(Xml::encodeJsVar($url));
    echo "<a href=\"#\" onClick=\"MyWindow=window.open({$encUrl},'{$table}','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20'); return false;\" title =\"" . WH_Text($table) . "\">{$table}</a>";
}
Example #3
0
    $table = "";
}
function WH_Text($index)
{
    global $wh_language;
    global $lang;
    if (isset($wh_language[$index])) {
        if (isset($wh_language[$index][$lang])) {
            return $wh_language[$index][$lang];
        } else {
            return $wh_language[$index]["en"];
        }
    }
    return "";
}
slim_header("{$table} - " . WH_Text($table));
?>
<script language="JavaScript" type="text/javascript">
function add(glyph) {
	text=window.parent.hierodisplay.document.hieroform.hierobox.value;
	lastc=text.charCodeAt(text.length-1);
	if((lastc>=48&&lastc<=57)||(lastc>=65 && lastc<=90)||(lastc>=97&&lastc<=122))
		sep='-';
	else
		sep='';
	window.parent.hierodisplay.document.hieroform.hierobox.value+=sep+glyph;
}
</script>
<?php 
if ($dh = opendir("{$wikihiero_dir}/" . WH_IMG_DIR)) {
    while (($file = readdir($dh)) !== false) {
Example #4
0
function WH_Table($table)
{
    global $lang;
    echo "<a href=\"#\" onClick=\"MyWindow=window.open('wh_table.php?table={$table}&lang={$lang}','{$table}','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20'); return false;\" title =\"" . WH_Text($table) . "\">{$table}</a>";
}
Example #5
0
<html lang=<?php 
echo htmlspecialchars($lang);
?>
>
  <head>
    <title><?php 
echo htmlspecialchars($table) . " - " . WH_Text($table);
?>
 - WikiHiero</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="/favicon.ico">
  </head>
  <body bgcolor="#DDDDDD">

    <?php 
echo "<b>" . htmlspecialchars($table) . "</b> - " . WH_Text($table) . "<br /><br />";
if ($dh = opendir(WH_IMG_DIR)) {
    while (($file = readdir($dh)) !== false) {
        if ($table == "All") {
            $code = WH_GetCode($file);
            if (in_array($code, $wh_phonemes)) {
                echo "<img src=\"" . htmlspecialchars(WH_IMG_DIR . $file) . "\" " . "title=\"" . htmlspecialchars($code) . " [" . htmlspecialchars(array_search($code, $wh_phonemes)) . "]\">\n";
            } else {
                echo "<img src=\"" . htmlspecialchars(WH_IMG_DIR . $file) . "\" title=\"" . htmlspecialchars($code) . "\">\n";
            }
        } else {
            if ($table == "Phoneme") {
                $code = WH_GetCode($file);
                if (in_array($code, $wh_phonemes)) {
                    echo "<img src=\"" . htmlspecialchars(WH_IMG_DIR . $file) . "\" " . "title=\"" . htmlspecialchars($code) . " [" . htmlspecialchars(array_search($code, $wh_phonemes)) . "]\">\n";
                }
Example #6
0
<?php 
echo "<option>" . WH_Text("Tables") . "</option>\n";
echo "<option>----</option>\n";
foreach ($tables as $v) {
    echo "<option value=\"{$v}\">" . (strlen($v) <= 2 ? "{$v} &mdash; " : "") . WH_Text($v) . "</option>\n";
}
?>
</select>
</td></tr>
<tr><td>
<select onChange="hierobox.value+=this.value; this.value=0;">
<?php 
echo "<option value=\"0\">" . WH_Text("Syntax") . "</option>\n";
echo "<option>----</option>\n";
foreach ($syntax as $v) {
    echo "<option value=\"{$v}\"> {$v} " . WH_Text($v) . "</option>";
}
?>
</select>
</td><td align="right">
<input type="submit" value="Submit">
<input type="button" value="Reset" onClick="hierobox.value='';">
</td></tr>
<tr><td colspan="3">
<?php 
// Stupid, but it works:
echo preg_replace("|" . WH_IMG_DIR . WH_IMG_PRE . "|", "{$wikihiero_url}/" . WH_IMG_DIR . WH_IMG_PRE, WikiHiero($hierobox, WH_MODE_HTML));
?>
</td></tr>
</table>
</form>