if (isset($_REQUEST['edit'])) { $edit = true; } else { $edit = false; } $Regels = new Regels(); writeHead("<TITLE>Regels - 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>Regels</H1> <DIV class="Floater Regellijst"> <DIV class="FloaterHeader">Regellijst</DIV> <DIV class="FloaterContent"><?php $Regellijst = $Regels->get_Regellijst(); echo ' <UL>'; foreach ($Regellijst as $i0 => $idv0) { $v0 = display('UserRule', 'display', $idv0); echo ' <LI CLASS="item UI" ID="0.' . $i0 . '">'; if (!$edit) { echo ' <A HREF="' . serviceref('UserRule', array('UserRule' => urlencode($idv0))) . '">' . htmlspecialchars($v0) . '</A>'; } else { echo htmlspecialchars($v0); } echo '</LI>'; } if ($edit) {
} </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);