<?php include 'settings.php'; ?>
<!DOCTYPE html>
<head>
<title>Vista Option 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">
</head>
<?php
$fn = $_GET['fn']; $fn = htmlspecialchars($fn);
$ien = $_GET['ien']; $ien = htmlspecialchars($ien);
switch ($fn)
{
case "list":
logit("app_vopllist");
echo " <style>\n";
echo " a { color: black; }\n";
echo " body { font-size:14px; }\n";
echo " td { vertical-align: top; }\n";
echo " </style>\n";
echo "<body>\n";
getit("localhost:8090/vopl/list");
echo "</body>\n";
echo "</html>\n";
break;
case "main":
logit("app_voplmain");
echo " <style>\n";
echo " a { color: black; }\n";
echo " body { font-size:14px; }\n";
echo " td { vertical-align: top; }\n";
echo " table, th, td { border: 1px solid; }\n";
echo " table { border-collapse: collapse; }\n";
echo " </style>\n";
echo "<body>\n";
getit("localhost:8090/vopl/main/" . $ien);
echo "</body>\n";
echo "</html>\n";
break;
default:
logit("app_vopl");
echo " <style>\n";
echo " a { color: black; }\n";
echo " body { font-size:14px; }\n";
echo " td { vertical-align: top; }\n";
echo " </style>\n";
echo "<script type=\"text/javascript\">\n";
echo " function resizeIframes()\n";
echo " {\n";
echo " heightPct=.95;\n";
echo " widthPct=.95;\n";
echo " widthFileList=310;\n";
echo " document.getElementById(\"list\").height=window.innerHeight*heightPct;\n";
echo " document.getElementById(\"list\").width=widthFileList;\n";
echo " document.getElementById(\"main\").height=window.innerHeight*heightPct;\n";
echo " document.getElementById(\"main\").width=(window.innerWidth-widthFileList)*widthPct;\n";
echo " }\n";
echo "</script>\n";
echo "<body onresize=\"resizeIframes()\">\n";
echo " <table style=\"width:100%\">\n";
echo " <tr>\n";
echo " <td><iframe src=\"vopl.php?fn=list\" name=\"list\" id=\"list\"></iframe></td>\n";
echo " <td><iframe name=\"main\" id=\"main\"></iframe></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "</body>\n";
echo "<script type=\"text/javascript\"> resizeIframes(); </script>\n";
echo "</html>\n";
break;
}
?>