10
10
function menulayout($forward,$backward,$downloadlink,$heading,$headinglink,$filecontent) {
11
11
if($backward != ""){
12
$backwardButton = "<a href='".$backward."'><img src='CodeViewerLeftbutton.png'></a>";
12
$backwardButton = "<a href='".$backward."'><img src='../media/codeviewer/CodeViewerLeftbutton.png'></a>";
14
$backwardButton = "<img src='CodeViewerLeftbuttonGrayed.png'>";
14
$backwardButton = "<img src='../media/codeviewer/CodeViewerLeftbuttonGrayed.png'>";
17
17
if($forward != ""){
18
$forwardButton = "<a href='".$forward."'><img src='CodeViewerRightbutton.png'></a>";
18
$forwardButton = "<a href='".$forward."'><img src='../media/codeviewer/CodeViewerRightbutton.png'></a>";
20
$forwardButton = "<img src='CodeViewerLeftbuttonGrayed.png'>";
20
$forwardButton = "<img src='../media/codeviewer/CodeViewerLeftbuttonGrayed.png'>";
23
23
if($downloadlink != ""){
24
$downloadButton = "<a href='".$downloadlink."'><img src='CodeViewerDownloadbutton.png'></a>";
24
$downloadButton = "<a href='".$downloadlink."'><img src='../media/codeviewer/CodeViewerDownloadbutton.png'></a>";
26
$downloadButton = "<img src='CodeViewerLeftbuttonGrayed.png'>";
26
$downloadButton = "<img src='../media/codeviewer/CodeViewerLeftbuttonGrayed.png'>";
30
<body onload='resize();' onresize='resize();'>
32
<table style='width:100%;height:100%;border:solid 1px;'>
29
echo ' <body onload="resize();" onresize="resize();">
31
<table style="width:100%;height:100%;border:solid 1px;">
34
33
<td class="buttonstyle">
37
<td class='buttonstyle'>
40
<td class="buttonstyle">
41
<a href='../Lindex.html'><img src='CodeViewerRightbutton.png'></a>
36
<td class="buttonstyle">
39
<td class="buttonstyle">
40
<a href="../Lindex.html"><img src="../media/codeviewer/CodeViewerRightbutton.png"></a>
43
42
<td class="verticalaligntext">
44
<a href="<?=$headinglink;?>" style="text-decoration: none"><?=$heading;?></a>
43
<a href="'. $headinglink .'" style="text-decoration: none">'. $heading .'</a>
46
<td class='buttonstyle'>
45
<td class="buttonstyle">
52
51
<div id="bottom" class="restContainer">
53
52
<div style="float: left;">
54
<div id="panel" class="panel" onmousemove='resizepanel(event)' onmousedown='mdpanel(event)' onmouseup='mupanel(event)'>
55
<?php include($filecontent); ?>
53
<div id="panel" class="panel" onmousemove="resizepanel(event)" onmousedown="mdpanel(event)" onmouseup="mupanel(event)">';
54
include($filecontents);
58
<div class="codecontent">
57
<div class="codecontent">';
62
60
/* function menulayoutend