<?php include 'settings.php'; ?>
<!DOCTYPE html>
<head>
<title>Vista RPC Viewer</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
a { color: black; }
body { font-size:14px; }
</style>
</head>
<?php
$fn = $_GET['fn']; $fn = htmlspecialchars($fn);
$ien = $_GET['ien']; $ien = htmlspecialchars($ien);
switch ($fn)
{
case "list":
logit("app_rpcwlist");
echo "<body>\n";
getit("localhost:8090/rpc/list");
echo "</body>\n";
echo "</html>\n";
break;
case "main":
logit("app_rpcwmain");
echo "<body>\n";
getit("localhost:8090/rpc/main/" . $ien);
echo "</body>\n";
echo "</html>\n";
break;
default:
logit("app_rpcw");
?>
<script type="text/javascript">
function resizeIframes()
{
heightPct=.95;
widthPct=.95;
widthFileList=310;
document.getElementById("list").height=window.innerHeight*heightPct;
document.getElementById("list").width=widthFileList;
document.getElementById("main").height=window.innerHeight*heightPct;
document.getElementById("main").width=(window.innerWidth-widthFileList)*widthPct;
}
</script>
<body onresize="resizeIframes()">
<table style="width:100%">
<tr>
<td><iframe src="rpcw.php?fn=list" name="list" id="list"></iframe></td>
<td><iframe name="main" id="main"></iframe></td>
</tr>
</table>
</body>
<script type="text/javascript"> resizeIframes(); </script>
</html>
<?php
break;
}
?>