/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.6 2002/09/18 19:01:47 xzilla Exp $
+ * $Id: functions.php,v 1.7 2002/12/27 16:31:32 chriskl Exp $
*/
// Include application functions
if (!isset($_POST['formLanguage'])) $_POST['formLanguage'] = '';
if (!isset($_POST['formDefinition'])) $_POST['formDefinition'] = '';
- $types = &$localData->getTypes();
- $langs = &$localData->getLangs();
+ $types = &$localData->getTypes(true);
+ $langs = &$localData->getLanguages();
echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Functions: Create Function</h2>\n";
$misc->printMsg($msg);
htmlspecialchars($_REQUEST['database']), "&function=", urlencode($func_full), "&function_oid=", $funcs->f[$data->fnFields['fnoid']], "\">Properties</a></td>\n";
echo "<td class=opbutton{$id}><a href=\"$PHP_SELF?action=edit&database=",
htmlspecialchars($_REQUEST['database']), "&function=", urlencode($func_full), "&function_oid=", $funcs->f[$data->fnFields['fnoid']], "\">Edit</a></td>\n";
- echo "<td class=opbutton{$id}><a href=\"$PHP_SELF?action=confirm_drop&database=",
+ echo "<td class=opbutton{$id}><a href=\"$PHP_SELF?action=confirm_drop&database=",
htmlspecialchars($_REQUEST['database']), "&function=", urlencode($func_full), "&function_oid=", $funcs->f[$data->fnFields['fnoid']], "\">Drop</a></td>\n";
echo "</tr>\n";
$funcs->moveNext();
/**
* Manage types in a database
*
- * $Id: types.php,v 1.1 2002/12/21 11:16:46 chriskl Exp $
+ * $Id: types.php,v 1.2 2002/12/27 16:31:32 chriskl Exp $
*/
// Include application functions
if (!isset($_POST['typstorage'])) $_POST['typstorage'] = $data->typStorageDef;
// Retrieve all functions and types in the database
- $funcs = &$localData->getFunctions();
+ $funcs = &$localData->getFunctions(true);
$types = &$localData->getTypes();
echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strTypes}: {$strCreateType}</h2>\n";
$misc->printMsg($msg);
-
+
echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
echo "<table width=\"100%\">\n";
echo "<tr><th class=data><b>{$strName}</b></th></tr>\n";