/
index.php
50 lines (42 loc) · 1.38 KB
/
index.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
include 'includes/callAPI.php';
$get_data = handshakeAPI();
$hshake = json_decode($get_data, true);
//Include all the inital HTML including doctype, html, head and body tags
//Also includes the heading and top microplayer menu
//Include function to build side menu - we call it later
include 'includes/header.php';
include 'includes/menu.php';
?>
<script>
function resizeIframe(obj) {
obj.style.height = 0;
var newHeight = obj.contentWindow.document.documentElement.scrollHeight + 500;
obj.style.height = newHeight + 'px';
}
</script>
<!-- Main Body -->
<!-- 2 column grid -->
<div class="ui two column grid">
<div class="ui two wide sidemenu column"><!-- Start of page column 1 - left sidebar -->
<div class="ui container"> <!-- Container to constrain width of Vertical Menu -->
<!-- Include the side menu code -->
<?php
active_menu($hshake);
?>
</div> <!-- Close container -->
</div> <!-- End of Column 1 -->
<div class="ui fourteen wide column"><!-- START of main column 2 -->
<div class="ui inverted manatee segment">
<iframe src="recent_view.php" name="iframe_main" width="100%" frameborder="0" scrolling="no" title="Main Body View" onload="resizeIframe(this);"></iframe>
</div>
</div><!-- END of main column 2 -->
</div>
<!-- JS to initialise dropdowns-->
<script>
$('.ui.dropdown')
.dropdown()
;
</script>
</body>
</html>