if (isset($_REQUEST['edit'])) { $edit = true; } else { $edit = false; } $Relaties = new Relaties(); writeHead("<TITLE>Relaties - Atlas - ADL Prototype</TITLE>" . ($edit ? '<SCRIPT type="text/javascript" src="js/edit.js"></SCRIPT>' : '<SCRIPT type="text/javascript" src="js/navigate.js"></SCRIPT>') . "\n"); if ($edit) { echo '<FORM name="editForm" action="' . $_SERVER['PHP_SELF'] . '" method="POST" class="Edit">'; } ?> <H1>Relaties</H1> <DIV class="Floater Relatielijst"> <DIV class="FloaterHeader">Relatielijst</DIV> <DIV class="FloaterContent"><?php $Relatielijst = $Relaties->get_Relatielijst(); echo ' <UL>'; foreach ($Relatielijst as $i0 => $idv0) { $v0 = $idv0; echo ' <LI CLASS="item UI" ID="0.' . $i0 . '">'; echo display('Relation', 'display', $idv0['id']); if (!$edit) { echo ' <DIV class="GotoArrow" id="To0.' . $i0 . '">⇒</DIV>'; echo '<DIV class="Goto" id="GoTo0.' . $i0 . '"><UL>'; echo '<LI><A HREF="' . serviceref('Relatiedetails', array('Relatiedetails' => urlencode($idv0['id']))) . '">Relatiedetails</A></LI>'; echo '<LI><A HREF="' . serviceref('Populatie', array('Populatie' => urlencode($idv0['id']))) . '">Populatie</A></LI>'; echo '</UL></DIV>'; }
} </SCRIPT> <?php } ?> <?php if ($edit) { echo '</FORM>'; } include_once "Concepten.inc.php"; include_once "Relaties.inc.php"; include_once "Regels.inc.php"; $cs = new Concepten(); $res = new Relaties(); $rus = new Regels(); $cpts = count($cs->get_Conceptenlijst()); $rels = count($res->get_Relatielijst()); $ruls = count($rus->get_Regellijst()); echo "<DIV class='Floater ctxinfo'>"; echo " <DIV class='FloaterHeader'>"; echo " <DIV class='FloaterContent'>aantal relaties : " . $rels . "</DIV>"; echo " <DIV class='FloaterContent'>aantal concepten: " . $cpts . "</DIV>"; echo " <DIV class='FloaterContent'>aantal regels : " . $ruls . "</DIV>"; echo " </DIV>"; echo "</DIV>"; if (!$edit) { $buttons = $buttons; } else { $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1');", "Save") . ifaceButton(serviceref($_REQUEST['content']), "Cancel"); } writeTail($buttons);