printXMLHeaders(); function armourQuery($query) { $p1 = preg_replace('/\\</i', '<', $query); return preg_replace('/\\>/i', '>', $p1); } ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>A Midsummer Night's Dream: Entity Viewer</title> <link rel="stylesheet" href="fourstore_editor.css" type="text/css" media="all" title="Default styles" /> </head> <body> <?php printNavigationList('entityviewer.php', $userID); ?> <?php //print_r($_POST); // print("<p>Query 1: " . armourQuery($queryAuto1) . "</p>"); ?> <form name="navigateForm" method="post" action="entityviewer.php"> <input name="idhash" type="hidden" value="<?php print $userID; ?> " /> <p>Go To Character: <select name="charNum"> <?php $charAutoNames = $query . "\n" . 'SELECT ?id ?name WHERE { GRAPH <' . $graphAuto . '> { ?id ?p omb:Character; foaf:name ?name } }' . "\n"; $autoNames = $s->query($charAutoNames);
} return $data; } else { return ""; } } ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>A Midsummer Night's Dream: Event</title> <link rel="stylesheet" href="fourstore_editor.css" type="text/css" media="all" title="Default styles" /> </head> <body> <?php printNavigationList('eventviewer.php', $userID); ?> <?php //print_r($_POST); // print("<p>Query 1: " . armourQuery($queryAuto1) . "</p>"); ?> <form name="navigateForm" method="post" action="eventviewer.php"> <input name="idhash" type="hidden" value="<?php print $userID; ?> " /> <input name="previousid" type="hidden" value="<?php print $event['follows']['auto']['id']; ?> " />
print "\tproperties[" . $index . "] = new Property('" . $property['property'] . "', '" . $property['module'] . "', '" . $property['object restriction'] . "', '" . $property['subject restriction'] . "', '" . $property['min'] . "', '" . $property['max'] . "', '" . $property['expected'] . "', '" . $property['reciprocal'] . "');\n"; $index++; } $index = 0; foreach ($classList as $class) { print "\tclasses[" . $index . "] = new Class('" . $class['Type'] . "', '" . $class['Value'] . "', '" . $class['Display'] . "');\n"; $index++; } ?> </script> <script type="text/javascript" src="functions.js"></script> </head> <body onload="setupNewPage();"> <?php printNavigationList('entitycreator.php', $userID); ?> <div id="entityCreator"> <form name="entityCreatorForm" method="POST"> <select class="chooseType" name="newTypeSelect" onchange="typeChanged('entitycreator.php?idhash=<?php print $userID; ?> &type=')"> <option value="char" selected="selected">Character</option> <option value="loc" >Location</option> </select> <button id="saveChanges" name="saveButton">Create Entity</button><br /> <input name="idhash" type="hidden" value="<?php print $userID;
foreach ($graph as $triple) { print "\tstore.add(new Triple('" . armourItem($triple['s']) . "', '" . armourItem($triple['p']) . "', '" . armourItem($triple['o']) . "', '" . armourItem($triple['o']) . "'));\n"; } $index = 0; foreach ($propertyList as $property) { print "\tproperties[" . $index . "] = new Property('" . $property['property'] . "', '" . $property['module'] . "', '" . $property['object restriction'] . "', '" . $property['subject restriction'] . "', '" . $property['min'] . "', '" . $property['max'] . "', '" . $property['expected'] . "', '" . $property['reciprocal'] . "');\n"; $index++; } ?> </script> <script type="text/javascript" src="functions.js"></script> </head> <body onload="setupPage();"> <?php printNavigationList('exp_characteredit.php', $userID); ?> <div id="entityChooser"> <form name="entityChooserForm" method="POST" onsubmit="displayChanges();" action="savedata.php"> <select class="chooseEntity" name="entityChooserSelect" onchange="entityChanged('basic');"><option value="Please wait..." /></select> <button id="saveChanges" name="saveButton">Save Changes</button><br /> <input name="idhash" type="hidden" value="<?php print $userID; ?> " /> <input name="saveType" type="hidden" value="location" /> <input name="source" type="hidden" value="exp_locationedit.php" /> <input name="addedTriples" type="hidden" value="" />
print "\tproperties[" . $index . "] = new Property('" . $property['property'] . "', '" . $property['module'] . "', '" . $property['object restriction'] . "', '" . $property['subject restriction'] . "', '" . $property['min'] . "', '" . $property['max'] . "', '" . $property['expected'] . "', '" . $property['reciprocal'] . "');\n"; $index++; } $index = 0; foreach ($classList as $class) { print "\tclasses[" . $index . "] = new Class('" . $class['Type'] . "', '" . $class['Value'] . "', '" . $class['Display'] . "');\n"; $index++; } ?> </script> <script type="text/javascript" src="functions.js"></script> </head> <body onload="setupLocPage();"> <?php printNavigationList('exp_locationedit.php', $userID); ?> <div id="entityChooser"> <form name="entityChooserForm" method="POST" onsubmit="displayChanges();" action="savedata.php"> <select class="chooseEntity" name="entityChooserSelect" onchange="entityChanged('all');"><option value="Please wait..." /></select> <button id="saveChanges" name="saveButton">Save Changes</button><br /> <input name="idhash" type="hidden" value="<?php print $userID; ?> " /> <input name="saveType" type="hidden" value="location" /> <input name="source" type="hidden" value="exp_locationedit.php" /> <input name="addedTriples" type="hidden" value="" />