Merge pull request #7 from esensar/Phping

Fix header
pull/8/head
esensar 2016-05-22 17:16:55 +02:00
commit 1025479699
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
Movie Database Movie Database
</TITLE> </TITLE>
</HEAD> </HEAD>
<BODY <?php echo ($_SERVER['REQUEST_URI'] == "/index.php") ? ' onload="onLoad()"' : null?>> <BODY <?php echo ($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == "") ? ' onload="onLoad()"' : null?>>
<div class="top"> <div class="top">
<a class="logoLink" href="index.php"> <a class="logoLink" href="index.php">
<div class="fullLogo"> <div class="fullLogo">
@ -42,7 +42,7 @@
<ul class="headerBar"> <ul class="headerBar">
<li class="headerItem"> <li class="headerItem">
<a <?php echo ($_SERVER['REQUEST_URI'] == "/index.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="index.php"> <a <?php echo ($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == "") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="index.php">
Home Home
</a> </a>
</li> </li>
@ -75,7 +75,7 @@
</li> </li>
<?php endif;?> <?php endif;?>
<?php if($_SERVER['REQUEST_URI'] == "/index.php"): ?> <?php if($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == ""): ?>
<li class="headerItem"> <li class="headerItem">
<select id="filter" name="filter" onchange="onFilter(this.value)"> <select id="filter" name="filter" onchange="onFilter(this.value)">
<option value="all">Sve novosti</option> <option value="all">Sve novosti</option>