Source Code Viewer

Viewing File: odu/it201/index.php

File: odu/it201/index.php
Title: IT 201: Intro to IT
File Size: 4.64 kb

Load any file into the Viewer:

<!DOCTYPE html>
<?php
	// Functions for all pages to access
	include("utilities/functions/functions.php");
	
	// Access the Classes in the functions list
	$general = new General;
	$research = new Research;
	$sqlAccess = new SQLAccess; // Not necessary yet
?>
<html>
    <head>
    	<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <link rel="stylesheet" href="utilities/css/normalize.css" />
        <link rel="stylesheet" href="utilities/font-awesome/css/font-awesome.min.css">
        <link rel="stylesheet" href="utilities/css/w3.css" />
		<title><?php echo $general->getResearchTopic("it201"); ?>: Intro to IT</title>
    </head>
    <body>
    	<article>
        <!-- Sidebar Navigation -->
			<nav class="w3-sidenav w3-collapse w3-white w3-card-2" style="width:200px;">
			  <h2 class="w3-center w3-purple w3-text-light-grey w3-text-shadow">Main Menu</h2>
			  <a href="javascript:void(0)" onclick="w3_close()" class="w3-closenav w3-large w3-hide-large">Close &times;</a>
			  <a class="w3-hover-light-grey" href="/index.php"><i class="fa fa-home"></i> Server Home</a> 
			  <a class="w3-hover-light-grey" href="timbl.php"><i class="fa fa-book"></i> <?php echo $general->getResearchTopic("timbl"); ?></a>
              <div class="w3-accordion">
				<a onclick="myAccFunc('cite')"><i class="fa fa-university"></i> Works Cited <i class="fa fa-caret-down"></i></a>
				<div id="cite" class="w3-accordion-content w3-white w3-card-4">
                  <!-- for the research essay, if you select an individual page, you'll have that paragraph with back/next/home buttons.  We will use isset($_GET['para']) to check -->
                  <a class="w3-hover-light-grey" href="cite.php?topic=timbl"><i class="fa fa-list-ul"></i> <?php echo $general->getResearchTopic("timbl"); ?></a>
				</div>
			  </div>
              <a class="w3-hover-light-grey" href="../../feedback.php"><i class="fa fa-commenting-o"></i> Feedback</a>
              <a class="w3-hover-light-grey" href="/src.php?file=odu/it201/index.php"><i class="fa fa-file-code-o"></i> View PHP Source</i></a>
			</nav>
			<!-- End Sidebar Navigation -->
            <section class="w3-main" style="margin-left:200px">
			<?php
				$general->writeHeader("teal", $general->getResearchTopic("it201"), "Intro to IT");
			?>
        	
                <section class="w3-container story-content">
                  
                    
                    <?php
                        // Reads the home page
                        // Expects a .research file
                        $research->readResearchDocument("topics/home.research");
                        
                        // Idea:
                        // $research->buildTable("topics/home.table");
                    ?>
                    
                </section>
                <?php include("../../copyleft.php"); ?>
            </section>
        </article>
    </body>
    <script>
	<!--
	function myAccFunc(theAcc) {
    var x = document.getElementById(theAcc);
    if (x.className.indexOf("w3-show") == -1) {
        x.className += " w3-show";
        x.previousElementSibling.className += " w3-light-gray";
    } else { 
        x.className = x.className.replace(" w3-show", "");
        x.previousElementSibling.className = 
        x.previousElementSibling.className.replace(" w3-light-gray", "");
    }
}

function myDropFunc() {
    var x = document.getElementById("demoDrop");
    if (x.className.indexOf("w3-show") == -1) {
        x.className += " w3-show";
        x.previousElementSibling.className += " w3-green";
    } else { 
        x.className = x.className.replace(" w3-show", "");
        x.previousElementSibling.className = 
        x.previousElementSibling.className.replace(" w3-green", "");
    }
}

function w3_open() {
    document.getElementsByClassName("w3-sidenav")[0].style.display = "block";
}
function w3_close() {
    document.getElementsByClassName("w3-sidenav")[0].style.display = "none";
}

var slideIndex = 1;
showDivs(slideIndex);

function plusDivs(n) {
  showDivs(slideIndex += n);
}

function currentDiv(n) {
  showDivs(slideIndex = n);
}

function showDivs(n) {
  var i;
  var x = document.getElementsByClassName("bus-slideshow");
  var dots = document.getElementsByClassName("image-index");
  if (n > x.length) {slideIndex = 1}    
  if (n < 1) {slideIndex = x.length} ;
  for (i = 0; i < x.length; i++) {
     x[i].style.display = "none";  
  }
  for (i = 0; i < dots.length; i++) {
     dots[i].className = dots[i].className.replace(" w3-white", "");
  }
  x[slideIndex-1].style.display = "block";  
  dots[slideIndex-1].className += " w3-white";
}
	// -->
	</script>
</html>