forked from CenterForDigitalHumanities/DigiSig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
33 lines (31 loc) · 1.32 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class='header digisigHeader'>
<img class='digisigImg' src='<?php echo $basePath; ?>/digisig/images/digsig.jpg'/>
<div id="headerCredit" href="<?php echo $basePath; ?>/digisig/entity/thisentity"></div>
</div>
<?php
$logBtn = "";
$action = $_SERVER['PHP_SELF'];
if(!isset($_SESSION['userID']) || $_SESSION['userID'] === 1){
$logBtn = "<input class='login' type='button' value='log in' onclick='window.location=\"$basePath/digisig/include/login.php\"' />";
}
else
{
$email = "";
if(isset($_SESSION['user_email'])){
$email = $_SESSION['user_email'];
}
else{
$email = "NOT FOUND";
}
$logBtn = "<span class='login email' >User: ".$_SESSION['user_email']." </span><input class='login' type='button' value='log out' onclick='window.location=\"$basePath/digisig/logout.php\"' />";
}
echo '<form name ="navigate" action="'.$action.'" method="post" class="theheader">
<p class="navigation">
<input class="navigate" type="submit" name ="submit" value ="HOME"/>
<input class="navigate" type="submit" name ="submit" value ="ABOUT"/>
<input class="navigate" type="submit" name ="submit" value ="ADVANCED SEARCH"/>
<input class="navigate" type="submit" name ="submit" value ="CONTACT"/>
'.$logBtn.'
</p>
</form>';
?>