$needTables = true; include "config.inc.php"; include "utils.php"; include "setup.php"; #print $_SESSION["activeDB"]."kake"; $title = "RAP DB » List models"; include "header.php"; include "menu.php"; if (isset($_REQUEST["modelURI"])) { $m = new MemModel($_REQUEST["base"]); $db->putModel($m, $_REQUEST["modelURI"]); } ?> <h1>Database <?php print dbLink($activeDB); ?> </h1> <h1>Chose a model:</h1> <ul> <?php foreach ($db->listModels() as $mo) { $m = $mo["modelURI"]; ?> <li><a href="model.php?modelURI=<?php print urlencode($m); ?> "><?php
?> <h1>Please chose a database to edit:</h1> <ul> <?php if (isset($msg)) { print "<span class=\"warning\">{$msg}</span>\n"; } foreach ($_DB as $k => $v) { ?> <li><a href="choseDB.php?db=<?php print $k; ?> "><?php print dbLink($k); ?> </a><?php print $k == "non_config" ? " (specified this session)" : ""; ?> </li> <?php } if (count($_DB) == 0) { print "<li>No databases configured.</li>\n"; } ?> </ul>