<!DOCTYPE html>
<html>
<head>
<title>Heritage and Learning: Guided Tours</title>


<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript" src="jscolor.js"></script>
<link href="bootstrap.css" rel="stylesheet" type="text/css" media="screen" />
 <script src="bootstrap.js"></script>
 <script src="fcbklistselection.js"></script>
<script>
function sub(){
$.post('theTour.php',{"findTour":$('#findTour').val()});
}
</script>

         
</head>

<body>
<div id="menubar" class="navbar">
<div class="navbar-inner">
<ul class="nav pull-right">
<li><a href="../cave/caveNav.html"><img class="im_but"  src="img/explore.svg" alt=""/></a></li>
<li><a href="../tour/hal2.html"><img  class="im_but" src="img/maze.svg" alt=""/></a></li>
<li><a href="../story/home.html"><img class="im_but"  src="img/book.svg" alt=""/></a></li>
</ul>
<ul class="nav pull-left">
<li><a class="brand" href="../homepage.html" ><img id="homelink" src="img/heading.svg" alt=""/></a></li>
</ul>
</div>
</div>


    <div class="row-fluid">
	  <div class="span12">
	  <div class="row-fluid">
		  <div id="button" class="span3">
		  <ul>
				      <li><a href="hal2.html">Home</a></li>
				      <li><a href="guided.php">Enter Guided Tours</a></li>
				      <li><a href="create.html">Create Guided Tours</a></li>
				      <li><a href="help.html">Help</a></li>
		  </ul>
		  </div>

		  <div class="span9">
		  <div class="container">
		 <h2>Enter Guided Tours</h2>
		    <p>This page will allow you to enter a guided tour for the information pertaining to rock art that we have on our system. These tours
		    have been created by the developer for educational purposes.</p><br/>
		    <ul  id="guided">
		    <?php 

		    foreach(glob("toursFolder/*xml") as $filename)
		    {
		      $doc = new DOMDocument();
		      $doc->load($filename);
		      $titles = $doc->getElementsByTagName( "title" );
		      $title = $titles->item(0)->nodeValue; 
		      $imgs = $doc->getElementsByTagName( "image" );
		      $img = $imgs->item(0)->nodeValue; 
		      echo "<li>$title : &emsp; <a href=\"theTour.php?findTour=".$title."\" id=\"findTour\"><img class='imgclass' src='".$img."'></a></li><br/>";
		    }
		    ?> 
		  </ul>
		  </div> 
		  </div>
	  </div>
	  </div>
    </div>

	

	
</body>
</html>
