--- a/index.php +++ b/index.php @@ -1,12 +1,36 @@ <?php -include ("config.php"); -require_once(__ROOT__.'/lib/tag-cloud/src/lotsofcode/TagCloud/TagCloud.php'); +include("config.php"); +require_once(__ROOT__ . '/lib/tag-cloud/src/lotsofcode/TagCloud/TagCloud.php'); includeHeader("title"); -$cloud = new lotsofcode\TagCloud\TagCloud(); -$cloud->addTag("tag-cloud"); -$cloud->addTag("programming"); -echo $cloud->render(); -includeFooter(); ?> +<div class="jumbotron"> + <div class="container"> + <div style="float:left; margin: 5%; display:block"> + <img src="img/icon_2567.png" width="100" height="100"/> + </div> + <h1>Hello, world!</h1> + <p>This is a template for a simple marketing or informational website. It includes a large callout called a + jumbotron and three supporting pieces of content. Use it as a starting point to create something more + unique.</p> + + <p><a class="btn btn-primary btn-lg" role="button" href="table.php">Learn more »</a></p> + + </div> +</div> + +<div class="container"> + <?php + $cloud = new lotsofcode\TagCloud\TagCloud(); + foreach ($db->query("Select service_name from dcaas_services;") as $row) { + foreach (explode(" ", $row[0]) as $word) { + $cloud->addTag($word); + } + } + $cloud->setMinLength(4); + echo $cloud->render(); + echo "</div>"; + includeFooter(); + ?> +