-
Notifications
You must be signed in to change notification settings - Fork 1
/
catalog_code.php
24 lines (22 loc) · 1.23 KB
/
catalog_code.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$catalog = new Website("catalog","","Sokoban - Catalog","default.css");
$catalog->createDiv("header","<h1>Sokoban - Catalog</h1>",$catalog);
$catalog->createDiv("blankspace"," ",$catalog);
$catalog->createDiv("navBar","$links",$catalog);
$catalog->createDiv("leftContent","$nav6l",$catalog);
$catalog->createDiv("centerContent",$database->returnAllLevels(),$catalog);
$catalog->createDiv("rightContent"," ",$catalog);
//------Gets the value of the divs
$divHeader = $catalog->getDivContentByKey('header');
$divBlankSpace = $catalog->getDivContentByKey('blankspace');
$divNavBar = $catalog->getDivContentByKey('navBar');
$divLeftContainer = $catalog->getDivContentByKey('leftContent');
$divCenterContainer = $catalog->getDivContentByKey('centerContent');
$divRightContainer = $catalog->getDivContentByKey('rightContent');
//------Adds the links to the page
$catalog->createDiv("bodyContainer","$divLeftContainer$divCenterContainer$divRightContainer",$catalog);
$divBodyContainer = $catalog->getDivContentByKey('bodyContainer');
$catalog->createDiv("container","$divHeader$divBlankSpace$divNavBar$divBodyContainer",$catalog);
$divContainer = $catalog->getDivContentByKey('container');
$catalog->addContent($divContainer);
?>