home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
oss
/
cvs-2004
/
bahasa
/
web
/
pronunciations.php,v
< prev
next >
Wrap
Text File
|
2003-10-20
|
23KB
|
1,108 lines
head 1.6;
access;
symbols;
locks; strict;
comment @# @;
1.6
date 2003.10.20.00.21.46; author bule; state Exp;
branches;
next 1.5;
1.5
date 2003.10.18.00.33.42; author bule; state Exp;
branches;
next 1.4;
1.4
date 2003.10.06.00.39.27; author bule; state Exp;
branches;
next 1.3;
1.3
date 2003.10.01.06.51.29; author bule; state Exp;
branches;
next 1.2;
1.2
date 2003.09.11.05.28.22; author bule; state Exp;
branches;
next 1.1;
1.1
date 2003.09.05.06.42.53; author bule; state Exp;
branches;
next ;
desc
@@
1.6
log
@*** empty log message ***
@
text
@<?
session_start();
require_once("../php/Indonesia.php");
require_once("../php/Web.php");
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Project Name: Bahasa Indonesia Dictionary
// Directory: bahasa/web
// File Name: pronunciations.php
// Author(s): John L. Whiteman
// Created: September 04, 2003
// Modified: October 19, 2003
// Description: The purpose of this restricted access PHP web
// client page is to allow the administrator view,
// edit, and add pronunciation entries.
//
// Copyright (c) 2003 John L. Whiteman
//
// Permission is herby granted, free of charge, to any person obtaining a
// copy of this software, data, and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
// ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHERE IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING IN THE SOFTWARE.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
$web = new Web();
if (!$_SESSION['ADMIN']) {
$web->redirect("login.php");
exit;
}
$indonesia = new Indonesia();
$status = $indonesia->get_dictionary_status();
if ($status["status"] == 1 || $status["status"] == 2) {
$web-redirect("admin.php");
exit;
}
?>
<html>
<head>
<title>Bahasa Indonesia Dictionary: Pronunciations</title>
<link href="bahasa.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="bahasa.js"></script>
<script language="Javascript" type="text/javascript">
<!--
//////////////////////////////////////////////////////////////////////////////
function verify() {
symbol = document.pronunciations.symbol.value;
symbol = trim(symbol);
if (is_white_space(symbol)) {
alert(
"You must enter a symbol value!");
document.pronunciations.symbol.focus();
return(false);
}
if (symbol.length > 20) {
alert(
"The symbol value must be 20 characters or less!");
document.pronunciations.symbol.focus();
return(false);
}
category = document.pronunciations.category.value;
category = trim(category);
if (is_white_space(category)) {
alert(
"You must enter a category value!");
document.pronunciations.category.focus();
return(false);
}
if (category.length > 20) {
alert(
"The category value must be 20 characters or less!");
document.pronunciations.category.focus();
return(false);
}
pronunciation = document.pronunciations.pronunciation.value;
pronunciation = trim(pronunciation);
if (is_white_space(pronunciation)) {
alert(
"You must enter a pronunciation value!");
document.pronunciations.pronunciation.focus();
return(false);
}
if (pronunciation.length > 20) {
alert(
"The pronunciation value must be 20 characters or less!");
document.pronunciations.pronunciation.focus();
return(false);
}
ipa = document.pronunciations.ipa.value;
ipa = trim(ipa);
if (is_white_space(ipa)) {
alert(
"You must enter an International Phonetic Alphabet value!");
document.pronunciations.ipa.focus();
return(false);
}
if (ipa.length > 20) {
alert(
"The International Phonetic Alphabet value " +
"must be 20 characters or less!");
document.pronunciations.ipa.focus();
return(false);
}
description = document.pronunciations.description.value;
description= trim(description);
if (is_white_space(description)) {
alert(
"You must enter a description value.");
document.pronunciations.description.focus();
return(false);
}
password = document.pronunciations.password.value;
if (is_white_space(password)) {
alert(
"You must enter a password value.");
document.pronunciations.password.focus();
return(false);
}
return(true);
}
//////////////////////////////////////////////////////////////////////////////
function verify_delete() {
password = document.delete_pronunciation.password.value;
if (is_white_space(password)) {
alert(
"You must enter a password value.");
document.delete_pronunciation.password.focus();
return(false);
}
}
//////////////////////////////////////////////////////////////////////////////
// -->
</script>
</head>
<body>
<?
$web->show_logo("Pronunciations");
?>
<a href="admin.php">Administration</a>
<?
if (
($_SESSION['NODUP_PRONUNCIATIONS']) &&
(isset($_POST['id'])) &&
($_SESSION['NODUP_PRONUNCIATIONS'] == $_POST['id'])) {
show_pronunciations_form($web, $indonesia);
} else if (
(isset($_POST['action'])) &&
(isset($_POST['symbol'])) &&
(isset($_POST['category'])) &&
(isset($_POST['pronunciation'])) &&
(isset($_POST['ipa'])) &&
(isset($_POST['description'])) &&
(isset($_POST['id'])) &&
(isset($_POST['password']))) {
show_pronunciations_form($web, $indonesia);
if ($_SESSION['NODUP_PRONUNCIATIONS']) {
unset($_SESSION['NODUP_PRONUNCIATIONS']);
}
$errstr = $indonesia->login($_SESSION['ADMIN'], $_POST['password']);
if ($errstr != "") {
print "<hr><b>Permission denied!</b><hr>\n";
} else {
if ($_POST['action'] == "insert") {
$errstr =
$indonesia->insert_pronunciation(
$_POST['symbol'], $_POST['category'],
$_POST['pronunciation'], $_POST['ipa'],
$_POST['description']);
if ($errstr != "") {
print "<hr><b>${errstr}</b><hr>\n";
} else {
print "<hr><b>Successful insert!</b><hr>\n";
$_SESSION['NODUP_PRONUNCIATIONS'] =
$_POST['id'];
}
} else if (
($_POST['action'] == "update") &&
(isset($_POST['pkey']))) {
$errstr =
$indonesia->update_pronunciation(
$_POST['pkey'],
$_POST['symbol'], $_POST['category'],
$_POST['pronunciation'], $_POST['ipa'],
$_POST['description']);
if ($errstr != "") {
print "<hr><b>${errstr}</b><hr>\n";
} else {
print "<hr><b>Successful update!</b><hr>\n";
$_SESSION['NODUP_PRONUNCIATIONS'] =
$_POST['id'];
}
} else if (
($_POST['action'] == "delete") &&
(isset($_POST['pkey']))) {
$errstr =
$indonesia->delete_pronunciation($_POST['pkey']);
if ($errstr != "") {
print "<hr><b>${errstr}</b><hr>\n";
} else {
print "<hr><b>Successful delete!</b><hr>\n";
$_SESSION['NODUP_PRONUNCIATIONS'] =
$_POST['id'];
}
}
}
} else if (isset($_POST['pronunciation_pkey'])) {
if ($_POST['pronunciation_pkey'] == 0) {
show_insert_new_pronunciation_form($web, $indonesia);
} else {
show_update_pronunciations_form(
$web, $indonesia, $_POST['pos_pkey']);
}
} else if (isset($_POST['delete_pronunciation_pkey'])) {
show_delete_pronunciation_form(
$web, $indonesia, $_POST['delete_pronunciation_pkey']);
} else if (isset($_POST['update_pronunciation_pkey'])) {
show_update_pronunciation_form(
$web, $indonesia, $_POST['update_pronunciation_pkey']);
} else {
show_pronunciations_form($web, $indonesia);
}
?>
</body>
</html>
<?
//////////////////////////////////////////////////////////////////////////////
function show_delete_pronunciation_form($web, $indonesia, $spkey) {
$id = uniqid(rand(), true);
$rpronunciation = array();
$spkey = $web->strip($spkey);
$errstr =
$indonesia->get_pronunciation($rpronunciation, $spkey);
if ($errstr != "") {
print "<hr><b>${errstr}</b><hr>\n";
return;
}
$pkey = $web->tohtml($rpronunciation[0]["pkey"]);
$symbol = $web->tohtml($rpronunciation[0]["symbol"]);
$category = $web->tohtml($rpronunciation[0]["category"]);
$pronunciation = $web->tohtml($rpronunciation[0]["pronunciation"]);
$ipa = $web->tohtml($rpronunciation[0]["ipa"]);
$description = $web->tohtml($rpronunciation[0]["description"]);
$created = $web->tohtml($rpronunciation[0]["created"]);
$modified = $web->tohtml($rpronunciation[0]["modified"]);
print <<<EOFSDPF
<form name="delete_pronunciation" method="post"
onSubmit='return verify_delete()'>
<hr>
<table cellpadding="3" cellspacing="3" border="1">
<tr>
<th>PKEY</th>
<th>Symbol</th>
<th>Category</th>
<th>Pronunciation</th>
<th>IPA</th>
<th>Description</th>
<th>Created</th>
<th>Modified</th>
</tr><tr>
<td>${pkey}</td>
<td>${symbol}</td>
<td>${category}</td>
<td>${pronunciation}</td>
<td>${ipa}</td>
<td>${description}</td>
<td>${created}</td>
<td>${modified}</td>
</tr>
</table>
<hr>
<table cellpadding="3" cellspacing="3" border="0">
<tr>
<td>Password:</td>
<td><input type="password" name="password" size="50"></td>
<td><input type="submit" value="Delete Pronunciation!"></td>
</tr>
</table>
<input type="hidden" name="id" value="${id}">
<input type="hidden" name="action" value="delete">
<input type="hidden" name="pkey" value="${pkey}">
<input type="hidden" name="symbol" value="${symbol}">
<input type="hidden" name="category" value="${category}">
<input type="hidden" name="pronunciation" value="${pronunciation}">
<input type="hidden" name="ipa" value="${ipa}">
<input type="hidden" name="description" value="${description}">
</form>
<script language="Javascript" type="text/javascript">
document.delete_pronunciation.password.focus();
</script>
EOFSDPF;
}
//////////////////////////////////////////////////////////////////////////////
function show_insert_new_pronunciation_form($web, $indonesia) {
$id = uniqid(rand(), true);
print <<<EOFINPF
<form name="pronunciations" method="post" onsubmit='return verify()'>
<table cellpadding="3" cellspacing="3" border="0">
<tr>
<td>Symbol (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="symbol" size="25" maxlength="20">
</td>
</tr><tr>
<td>Category (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="category" size="25" maxlength="20">
</td>
</tr><tr>
<td>Pronunciation (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="pronunciation" size="25" maxlength="20">
</td>
</tr><tr>
<td>International Phonetic Alphabet (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="ipa" size="25" maxlength="20">
</td>
</tr><tr>
<td>Description:</td>
</tr><tr>
<td>
<textarea name="description" rows="7"
cols="55" wrap="soft"></textarea>
</td>
</tr><tr>
<td>Password:</td>
</tr><tr>
<td>
<input type="password" name="password" size="50">
</td>
</tr><tr>
<td align="right">
<input type="reset" value="Reset">
<input type="submit" value="Insert Pronunciation!">
</td>
</tr><tr>
<td> </td>
</tr>
</table>
<input type="hidden" name="action" value="insert">
<input type="hidden" name="id" value="${id}">
</form>
<script language="Javascript" type="text/javascript">
document.pronunciations.symbol.focus();
</script>
EOFINPF;
return;
}
//////////////////////////////////////////////////////////////////////////////
function show_pronunciations_form($web, $indonesia) {
$pronunciations = array();
$errstr = $indonesia->get_pronunciations($pronunciations);
if ($errstr != "") {
print "<hr><b>${errstr}</b><hr><br>\n";
return;
}
$total_pronunciations = count($pronunciations);
if ($total_pronunciations == 0) {
print
"<br><br>\n" .
"Insert a new pronunciation entry." .
"<form method=\"post\"><input type=\"submit\" " .
"value=\"Insert a New Pronunciation Entry!\">\n" .
"<input type=\"hidden\" name=\"pronunciation_pkey\" " .
"value=\"0\"> " .
"</form>\n";
return;
}
print
"<br><br>\n" .
"Insert a new pronunciation entry or " .
"update or delete an existing ones below:" .
"<form method=\"post\"><input type=\"submit\" " .
"value=\"Insert a New Pronunciation Entry!\">\n" .
"<input type=\"hidden\" name=\"pronunciation_pkey\" value=\"0\"> " .
"</form>\n";
$pronunciation_table =
"<br>\n" .
"<table cellpadding=\"3\" \n" .
"cellspacing=\"3\" border=\"1\">\n" .
"<tr>\n" .
"<th>PKEY</th>\n" .
"<th>Symbol</th>\n" .
"<th>Category</th>\n" .
"<th>Pronunciation</th>\n" .
"<th>IPA</th>\n" .
"<th>Description</th>\n" .
"<th>Created</th>\n" .
"<th>Modified</th>\n" .
"<th>Update</th>\n" .
"<th>Delete</th></tr>\n";
for($i = 0; $i < $total_pronunciations; $i++) {
$pkey = $web->tohtml($pronunciations[$i]["pkey"]);
$symbol = $web->tohtml($pronunciations[$i]["symbol"]);
$category = $web->tohtml($pronunciations[$i]["category"]);
$pronunciation =
$web->tohtml($pronunciations[$i]["pronunciation"]);
$ipa = $web->tohtml($pronunciations[$i]["ipa"]);
$description = $web->tohtml($pronunciations[$i]["description"]);
$created = $web->tohtml($pronunciations[$i]["created"]);
$modified = $web->tohtml($pronunciations[$i]["modified"]);
$pronunciation_table .=
"<tr>\n" .
"<td>${pkey}</td>\n" .
"<td>${symbol}</td>\n" .
"<td>${category}</td>\n" .
"<td>${pronunciation} </td>\n" .
"<td>${ipa} </td>\n" .
"<td>${description} </td>\n" .
"<td>${created}</td>\n" .
"<td>${modified}</td>\n" .
"<td>\n" .
"<form name=${pkey} method=\"post\">\n" .
"<input type=\"submit\" value=\"Update!\">\n" .
"<input type=\"hidden\" name=\"update_pronunciation_pkey\" " .
"value=\"${pkey}\">\n" .
"</form>\n" .
"</td>\n" .
"<td>\n" .
"<form name=${pkey} method=\"post\">\n" .
"<input type=\"submit\" value=\"Delete!\">\n" .
"<input type=\"hidden\" name=\"delete_pronunciation_pkey\" " .
"value=\"${pkey}\">\n" .
"</form>\n" .
"</td></tr>\n";
}
$pronunciation_table .= "</table>\n";
print "$pronunciation_table";
return;
}
//////////////////////////////////////////////////////////////////////////////
function show_update_pronunciation_form($web, $indonesia, $spkey) {
$id = uniqid(rand(), true);
$rpronunciation = array();
$spkey = $web->strip($spkey);
$errstr =
$indonesia->get_pronunciation($rpronunciation, $spkey);
if ($errstr != "") {
print "<hr><b>${errstr}</b><hr>\n";
return;
}
$pkey = $web->tohtml($rpronunciation[0]["pkey"]);
$symbol = $web->tohtml($rpronunciation[0]["symbol"]);
$category = $web->tohtml($rpronunciation[0]["category"]);
$pronunciation = $web->tohtml($rpronunciation[0]["pronunciation"]);
$ipa = $web->tohtml($rpronunciation[0]["ipa"]);
$description = $web->tohtml($rpronunciation[0]["description"]);
$created = $web->tohtml($rpronunciation[0]["created"]);
$modified = $web->tohtml($rpronunciation[0]["modified"]);
print <<<EOFSUPF
<form name="pronunciations" method="post" onsubmit='return verify()'>
<table cellpadding="3" cellspacing="3" border="0">
<tr>
<td>Symbol (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="symbol" size="25" maxlength="20"
value="${symbol}">
</td>
</tr><tr>
<td>Category (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="category" size="25" maxlength="20"
value="${category}">
</td>
</tr><tr>
<td>Pronunciation (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="pronunciation" size="25" maxlength="20"
value="${pronunciation}">
</td>
</tr><tr>
<td>International Phonetic Alphabet (1 to 20 characters):</td>
</tr><tr>
<td>
<input type="text" name="ipa" size="25" maxlength="20"
value="${ipa}">
</td>
</tr><tr>
<td>Description:</td>
</tr><tr>
<td>
<textarea name="description" rows="7"
cols="55" wrap="soft">${description}</textarea>
</td>
</tr><tr>
<td>Password:</td>
</tr><tr>
<td>
<input type="password" name="password" size="50">
</td>
</tr><tr>
<td align="right">
<input type="reset" value="Reset">
<input type="submit" value="Update Pronunciation!">
</td>
</tr><tr>
<td> </td>
</tr>
</table>
<input type="hidden" name="action" value="update">
<input type="hidden" name="id" value="${id}">
<input type="hidden" name="pkey" value="${pkey}">
</form>
<script language="Javascript" type="text/javascript">
document.pronunciations.symbol.focus();
</script>
EOFSUPF;
return;
}
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
?>
@
1.5
log
@*** empty log message ***
@
text
@d12 1
a12 1
// Modified: October 17, 2003
d62 2
@
1.4
log
@*** empty log message ***
@
text
@d12 1
a12 1
// Modified: October 05, 2003
d61 3
a63 2
<title>Bahasa Indonesia Dictionary: Pronunciations
</title>
d66 1
a66 25
//////////////////////////////////////////////////////////////////////////////
function is_white_space(stoken) {
if (stoken == null) return(true);
if (stoken == '') return(true);
if (stoken == "") return(true);
return(false);
}
//////////////////////////////////////////////////////////////////////////////
function trim(stoken) {
if (is_white_space(stoken)) {
return(stoken);
}
stoken = stoken.replace(/^\s*/, "");
stoken = stoken.replace(/\s*$/, "");
return(stoken);
}
d211 1
a211 1
//////////////////////////////////////////////////////////////////////////////
@
1.3
log
@*** empty log message ***
@
text
@d12 1
a12 1
// Modified: September 30, 2003
d239 3
a241 1
<h2>Bahasa Indonesia Dictionary: Pronunciations</h2>
@
1.2
log
@*** empty log message ***
@
text
@d12 1
a12 1
// Modified: September 05, 2003
d40 1
a40 1
if (!session_is_registered("ADMIN")) {
d244 1
a244 1
(session_is_registered("NODUP_PRONUNCIATIONS")) &&
d262 1
a262 1
if (session_is_registered("NODUP_PRONUNCIATIONS")) {
d264 1
a264 1
session_unregister("NODUP_PRONUNCIATIONS");
d291 2
a292 3
$NODUP_PRONUNCIATIONS = $_POST['id'];
session_register("NODUP_PRONUNCIATIONS");
d314 2
a315 3
$NODUP_PRONUNCIATIONS = $_POST['id'];
session_register("NODUP_PRONUNCIATIONS");
d333 2
a334 3
$NODUP_PRONUNCIATIONS = $_POST['id'];
session_register("NODUP_PRONUNCIATIONS");
@
1.1
log
@*** empty log message ***
@
text
@d12 1
a12 1
// Modified: September 04, 2003
d93 1
a93 1
symbol = document.pronunciation_form.symbol.value;
d100 1
a100 1
"You must enter a symbol value.");
d102 1
a102 1
document.pronunciation_form.symbol.focus();
d110 1
a110 1
"The symbol value must be 255 characters or less!");
d112 1
a112 1
document.pronunciation_form.symbol.focus();
d117 1
a117 1
category = document.pronunciation_form.category.value;
d124 1
a124 1
"You must enter a category value.");
d126 1
a126 1
document.pronunciation_form.category.focus();
d134 1
a134 1
"The category value must be 255 characters or less!");
d136 1
a136 1
document.pronunciation_form.category.focus();
d141 1
a141 1
pronunciation = document.pronunciation_form.category.value;
d143 1
a143 1
category = trim(category);
d145 1
a145 1
if (is_white_space(category)) {
d148 1
a148 1
"You must enter a category value.");
d150 1
a150 1
document.pronunciation_form.category.focus();
d155 1
a155 1
if (category.length > 20) {
d158 1
a158 1
"The category value must be 255 characters or less!");
d160 1
a160 1
document.pronunciation_form.category.focus();
d165 1
d167 1
d169 1
d171 2
d174 1
d176 2
d179 1
d181 3
d185 1
d187 2
d190 1
d192 1
d194 1
d196 2
d199 1
d201 2
a202 1
description = document.parts_of_speech.description.value;
d204 1
a204 1
description= trim(description);
d206 1
a206 1
if (is_white_space(description)) {
d209 1
a209 1
"You must enter a description value.");
d211 1
a211 1
document.parts_of_speech.description.focus();
d216 6
a221 1
password = document.parts_of_speech.password.value;
d228 1
a228 1
document.parts_of_speech.password.focus();
a231 2
return(true);
d233 2
d246 1
a246 1
($_SESSION['NODUP_PRONUNCIATONS'] == $_POST['id'])) {
d248 1
a248 1
show_pronunciation_form($web, $indonesia);
d252 4
a255 1
(isset($_POST['part_of_speech'])) &&
d260 2
d271 1
a271 1
print "<hr><b>Permission denied!</b><hr><br>\n";
a274 1
d278 4
a281 2
$indonesia->insert_parts_of_speech(
$_POST['part_of_speech'], $_POST['description']);
d285 1
a285 2
print
"<hr><b>${errstr}</b><hr>\n";
d289 1
a289 2
print
"<hr><b>Insert successful!</b><hr>\n";
d293 1
a293 3
session_register("NODUP_PRONUNCIATONS");
show_pos_form($web, $indonesia);
d296 3
a298 2
} else if ($_POST['action'] == "update") {
d301 5
a305 2
$indonesia->update_parts_of_speech($_POST['pkey'],
$_POST['part_of_speech'], $_POST['description']);
d309 1
a309 2
print
"<hr><b>${errstr}</b><hr><br>\n";
d313 1
a313 2
print
"<hr><b>Update successful!</b><hr>\n";
d318 14
d333 1
a333 2
show_pos_form($web, $indonesia);
}
d335 1
a335 1
} else {
d337 3
a339 2
show_pos_form($web, $indonesia);
}
d350 1
a350 1
show_update_pronunciation_form(
d354 10
d366 1
a366 1
show_pronunciation_form($web, $indonesia);
d374 76
d455 1
a455 1
<form name="pronunciation_form" method="post" onsubmit='return verify()'>
d479 1
a479 1
<input type="text" name="pronunciation_ipa" size="25" maxlength="20">
d482 1
a482 1
<td>Comments:</td>
d485 1
a485 1
<textarea name="comments" rows="7"
d508 1
a508 1
document.pronunciation_form.symbol.focus();
d515 1
a515 1
function show_pronunciation_form($web, $indonesia) {
d561 1
a561 1
"<th>Non-IPA</th>\n" .
d563 1
a563 1
"<th>Comments</th>\n" .
d577 1
a577 1
$comments = $web->tohtml($pronunciations[$i]["comments"]);
d588 1
a588 1
"<td>${comments} </td>\n" .
d595 2
a596 1
"value=\"${pkey}\"></form>\n" .
d602 2
a603 1
"value=\"${pkey}\"></form>\n" .
d614 1
a614 1
function show_update_pronunciation_form($web, $indonesia, $pkey) {
d616 3
a618 1
$pos = array();
d620 1
a620 1
$id = uniqid(rand(), true);
d622 2
a623 1
$errstr = $indonesia->get_part_of_speech($pos, $pkey);
d627 1
a627 1
print "<hr><b>${errstr}</b><hr>\n";
d632 8
a639 1
$pkey = $web->tohtml($pos->pkey);
d641 2
a642 6
$part_of_speech = $web->tohtml($pos->part_of_speech);
$description = $web->tohtml($pos->description);
print <<<EOFUPF
<form name="parts_of_speech" method="post" onsubmit='return verify()'>
d645 2
a646 1
<td>Part of Speech<br>(255 characters maximum):</td>
d648 23
a670 2
<input type="text" name="part_of_speech"
value="${part_of_speech}" maxlength="255">
d674 1
d681 1
d683 1
a683 1
<input type="password" name="password">
d686 1
a686 1
<td colspan="2" align="right">
d689 1
a689 1
<input type="submit" value="Update Part of Speech!">
d691 2
d696 1
a697 1
<input type="hidden" name="id" value="${id}">
d700 1
a700 1
document.parts_of_speech.part_of_speech.focus();
d702 1
a702 1
EOFUPF;
@