<?php
session_start();
session_unset();

//header( 'Location: http://oceancurrent.imos.org.au/index.htm' );
//die();

// todo contains absolute links !!
// todo this is added to every file. it need to be added to a custom  php.ini file
ini_set('include_path', './' . PATH_SEPARATOR . '../' . PATH_SEPARATOR . ini_get('include_path'));

$title = "";
include_once("include/header.php");

?>
<!--
<div class="alert alert-warning" role="alert">
	<strong>18th December 2024</strong>
	<p>
We're having data supply issues affecting some of our maps of sea surface temperature. It is being worked on, but we currently do not have an estimated time for resolution.
	</p>
</div>
-->

<!--<h3>Maps of satellite derived surface properties, SST, ocean colour and geostrophic currents</h3>-->
    <!--<div class="row" id="splashProductcontainer">-->
        <div id="carousel-div" class="nopadding col-md-6 carousel slide" data-ride="carousel" data-interval="3000">
			<ol class="carousel-indicators">
				<li data-target="#carousel-div" data-side-to="0" class="active"></li>
				<li data-target="#carousel-div" data-side-to="1"></li>
				<li data-target="#carousel-div" data-side-to="2"></li>
				<li data-target="#carousel-div" data-side-to="3"></li>
				<li data-target="#carousel-div" data-side-to="4"></li>
			</ol>
			<div class="carousel-inner" role="listbox">
				<div class="item active">
					<a href="product.php">
						<img class="img-responsive" src="SST_entry/latest.gif" title="Sea-Surface Temperature and Currents">
						<div class="carousel-caption">
							<h2>Sea Surface Temperature</h2>
						</div>
					</a>
				</div>
				<div class="item">
					<a href="product.php?product=oceancolour">
						<img class="img-responsive" src="chla_entry/latest.gif" title="Ocean Colour">
						<div class="carousel-caption">
							<h2>Ocean Colour</h2>
						</div>
					</a>
				</div>
				<div class="item">
					<a href="product.php?product=gsla&region=Au&rtype=SR">
						<img class="img-responsive" src="GSLA_entry/latest.gif" title="GSLA">
						<div class="carousel-caption">
							<h2>Adjusted Sea Level Anomaly</h2>
						</div>
					</a>
				</div>
				<div class="item">
					<a href="waves/waves3.php">
						<img class="img-responsive" src="waves_entry/latest.gif" title="Surface Waves">
						<div class="carousel-caption">
							<h2>Surface Waves</h2>
						</div>
					</a>
				</div>
				<div class="item">
					<a href="aatams.php">
						<img class="img-responsive" src="sealCTD_entry/latest.gif" title="SealCTD">
						<div class="carousel-caption">
							<h2>SealCTD</h2>
						</div>
					</a>
				</div>
			</div>
			<a class="left carousel-control" href="#carousel-div" role="button" data-slide="prev">
				<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
				<span class="sr-only">Previous</span>
			</a>
			<a class="right carousel-control" href="#carousel-div" role="button" data-slide="next">
				<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
				<span class="sr-only">Next</span>
			</a>
			
		</div>
<!--
        <div class="col-md-6 panel panel-default">
            <div class="splcontainer panel panel-default">
				<a href="product.php">
					<div class="bottom-left"><h2>Sea Surface Temperature</h2></div>
					<img class="img-responsive" src="SST_entry/latest.gif" title="Sea-Surface Temperature and Currents">
				</a>
            </div>
            <div class="splcontainer panel panel-default">
				<a href="product.php?product=oceancolour">
					<div class="bottom-left"><h2>Ocean Colour</h2></div>
					<img class="img-responsive" src="chla_entry/latest.gif" title="Ocean Colour">
				</a>
            </div>
			<div class="splcontainer panel panel-default">
				<a href="product.php?product=gsla&region=Au&rtype=SR">
					<div class="bottom-left"><h2>Adjusted Sea Level Anomaly</h2></div>
					<img class="img-responsive" src="GSLA_entry/latest.gif" title="GSLA">
				</a>
			</div>
			<div class="splcontainer panel panel-default">
				<a href="waves/waves.php">
					<div class="bottom-left"><h2>Waves</h2></div>
					<img class="img-responsive" src="waves_entry/latest.gif" title="Waves">
				</a>
			</div>
        </div>
-->
        <div class="col-md-4 panel panel-default">
			<div class="panel-body">
			<a href="news.php"><h3 id="newsheading">OceanCurrent News</h3></a>
			<?php $newsitemnumber=1; include("news1_v2.php"); ?>
			<?php $newsitemnumber=2; include("news1_v2.php"); ?>
			<?php $newsitemnumber=3; include("news1_v2.php"); ?>
				<div class="text-center">
					<p><a href="news.php">SEE ALL NEWS POSTS &gt</a></p>
				</div>
			</div>
<!--
			<?php
				$techfilename = $BASEDIR.'/technews.php';
				$fmtime = filemtime($techfilename);
				$fmage = time()-$fmtime;
				//if ($fmage < 30*86400) {
				if (true) {
					$server = $_SERVER["HTTP_HOST"];
					$url = "http://$server/$BASEDIR/technews.php";
					$dom = new DOMDocument;
					$dom->loadHTMLFile($url);
					$ndom = new DOMDocument;
					$ndom->formatOutput = true;
					$xpath = new DOMXPath($dom);
					$rootnodes = $xpath->query('/html/body/div/div/div/article[1]');
					$rootnode = $rootnodes->item(0);
					$xdom = new DOMDocument;
					$x = $xdom->importNode($rootnode,true);
					$xdom->appendChild($x);
					$xxpath = new DOMXPath($xdom);
					$nodes = $xxpath->query('/article/h3[1]');
					$ntitle = $nodes->item(0);
					$nodes = $xxpath->query('/article//p[1]');
					$text = $nodes->item(0);
					echo "<a href=\"technews.php\"><h3 id=\"newsheading\">Technical News</h3></a>";
					echo "<h4 id=\"news1title\" class=\"news1header\">",$ntitle->nodeValue,"</h4>\n";
					echo $text->nodeValue;
					echo "<div class=\"text-center\">";
					echo "<p><a href=\"technews.php\">SEE ALL TECHNICAL NEWS POSTS &gt</a></p>";
					echo "</div>";
				}
			?>
-->
        </div>
        <div class="col-md-2 panel panel-default">
			<h3/>
<!--
			<p><a href="http://rs-data3-mel.csiro.au/porttopub-swim-live/" class="btn btn-success btn-block" type="button">Port to Pub Swim</a></p>
			<p><a href="http://rs-data3-mel.csiro.au/rottnest-swim-live/" class="btn btn-success btn-block" type="button">Rottnest Swim</a></p>
-->
			<p><a href="eac.php" class="btn btn-success btn-block" type="button">EAC Mooring Array</a></p>
			<p><a href="https://mrs-data.csiro.au/myoceancurrent/sst" class="btn btn-primary btn-block" type="button">MyOceanCurrent</a></p>
			<p><a href="tides/index.htm" class="btn btn-primary btn-block" type="button">Tidal Currents</a></p>
			<!--<p><a href="daily.php" class="btn btn-primary btn-block" type="button">SST and Percentiles</a></p>-->
			<!--<p><a href="aatams.php" class="btn btn-primary btn-block" type="button">SealCTD</a></p>-->
			<!--<p><a href="GSLA_ts/SLA_WEqPac.png" class="btn btn-primary btn-block" type="button">Follow El Nino with SLA</a></p>-->
			<p><a href="elnino.php" class="btn btn-primary btn-block" type="button">Follow El Nino with SLA</a></p>
			<p><a href="animations.php" class="btn btn-primary btn-block" type="button">Animations</a></p>
			<p><a href="GE.php" class="btn btn-primary btn-block" type="button">Google Earth View</a></p>
			<p><a href="profiles/map.php?link=map/latest.html" class="btn btn-primary btn-block" type="button">Argo</a></p>
			<p><a href="timeseries/index.php" class="btn btn-primary btn-block" type="button">Current Meters</a></p>
			<p><a href="gliders/index.php" class="btn btn-primary btn-block" type="button">Gliders</a></p>

		</div>
    <!--</div>-->

<?php
include_once("include/footer.php");
?>

