<?php use BattleChores\domain\creature\CreatureHuntingStyleGateway; include '../config.php'; include '../php_classes/setup.php'; $printHtml = new \BattleChores\PrintHtml(); echo $printHtml->head("Hunting Style Edit"); try { $database = new PDO($dsn, $user, $password); } catch (PDOException $e) { print 'Connection failed: ' . $e->getMessage(); } ?> <body> <main> <h1>Hunting Style Edit</h1> <div> <h2>Add new creature hunting style</h2> <form method="post" action="CreatureHuntingStyleAdd.php"> <input type="text" name="Name"> <input type="submit" value="Create"> <input type="reset" value="Restart"> </form> </div> <div> <h2>List of creature hunting styles</h2> <ul> <?php $creatureHuntingStyleGateway = new CreatureHuntingStyleGateway($database); $attributes = $creatureHuntingStyleGateway->selectAll(); foreach ($attributes as $attribute) {
<?php use BattleChores\domain\creature\CreatureDispositionGateway; include '../config.php'; include '../php_classes/setup.php'; $printHtml = new \BattleChores\PrintHtml(); echo $printHtml->head("Creature Disposition Edit"); try { $database = new PDO($dsn, $user, $password); } catch (PDOException $e) { print 'Connection failed: ' . $e->getMessage(); } ?> <body> <main> <h1>Disposition Edit</h1> <div> <h2>Add new creature disposition</h2> <form method="post" action="CreatureDispositionAdd.php"> <input type="text" name="Name"> <input type="submit" value="Create"> <input type="reset" value="Restart"> </form> </div> <div> <h2>List of creature dispositions</h2> <ul> <?php $creatureDispositionGateway = new CreatureDispositionGateway($database); $attributes = $creatureDispositionGateway->selectAll(); foreach ($attributes as $attribute) {
<?php use BattleChores\domain\creature\CreatureDietGateway; include '../config.php'; include '../php_classes/setup.php'; $printHtml = new \BattleChores\PrintHtml(); echo $printHtml->head("Creature Diet Edit"); try { $database = new PDO($dsn, $user, $password); } catch (PDOException $e) { print 'Connection failed: ' . $e->getMessage(); } ?> <body> <main> <h1>Diet Edit</h1> <div> <h2>Add new creature diet</h2> <form method="post" action="CreatureDietAdd.php"> <input type="text" name="Name"> <input type="submit" value="Create"> <input type="reset" value="Restart"> </form> </div> <div> <h2>List of creature diets</h2> <ul> <?php $creatureDietGateway = new CreatureDietGateway($database); $attributes = $creatureDietGateway->selectAll(); foreach ($attributes as $attribute) {
<?php use BattleChores\domain\creature\CreatureSocialGateway; include '../config.php'; include '../php_classes/setup.php'; $printHtml = new \BattleChores\PrintHtml(); echo $printHtml->head("Creature Social Edit"); try { $database = new PDO($dsn, $user, $password); } catch (PDOException $e) { print 'Connection failed: ' . $e->getMessage(); } ?> <body> <main> <h1>Creature Social Type Edit</h1> <div> <h2>Add new creature social type </h2> <form method="post" action="CreatureSocialAdd.php"> <input type="text" name="Name"> <input type="submit" value="Create"> <input type="reset" value="Restart"> </form> </div> <div> <h2>List of Creature Social Types</h2> <ul> <?php $creatureSocialGateway = new CreatureSocialGateway($database); $attributes = $creatureSocialGateway->selectAll(); foreach ($attributes as $attribute) {
<?php use BattleChores\domain\creature\CreatureAttributeTypeGateway; include 'config.php'; include 'php_classes/setup.php'; $printHtml = new \BattleChores\PrintHtml(); print $printHtml->head("Attribute Type Edit"); try { $database = new PDO($dsn, $user, $password); } catch (PDOException $e) { print 'Connection failed: ' . $e->getMessage(); } ?> <body> <main> <h1>Attribute Type Edit</h1> <div> <h2>Add new attribute type</h2> <form method="post" action="AttributeTypeAdd.php"> <input type="text" name="Name"> <input type="submit" value="Create"> <input type="reset" value="Restart"> </form> </div> <div> <h2>List of Attribute Types</h2> <ul> <?php $attributeTypeGateway = new CreatureAttributeTypeGateway($database); $attributes = $attributeTypeGateway->selectAll(); foreach ($attributes as $attribute) {
<?php include 'config.php'; include 'php_classes/setup.php'; $printHtml = new \BattleChores\PrintHtml(); echo $printHtml->head("Creature Creator"); ?> <body> <main> <h1>Creature Creator Links</h1> <ul> <?php $pageNames = ["Creature Creator" => "CreatureCreator.php", "Creature Repository" => "CreatureRepository.php", "Class" => "ClassEdit.php", "Attribute" => "AttributeEdit.php", "Attribute Type" => "AttributeTypeEdit.php", "Creature Diet" => "creature_tier/CreatureDietEdit.php", "Creature Disposition" => "creature_tier/CreatureDispositionEdit.php", "Creature Hunting Style" => "creature_tier/CreatureHuntingStyleEdit.php", "Creature Social" => "creature_tier/CreatureSocialEdit.php"]; foreach ($pageNames as $pageName => $pageURL) { print '<li><a href="' . $pageURL . '">' . $pageName . '</a></li>'; } ?> </ul> </main> </body> </html>