-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
54 lines (49 loc) · 1.8 KB
/
header.php
File metadata and controls
54 lines (49 loc) · 1.8 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
session_start();
?>
<html>
<head>
<title>ChefRef</title>
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script>
<script language="javascript">
function toggleDiv(divid){
if(document.getElementById(divid).style.display == 'none'){
document.getElementById(divid).style.display = 'block';
}else{
document.getElementById(divid).style.display = 'none';
}
}
function HideLabel(txtField){
if(txtField.name=='query'){
if(txtField.value=='Search for dishes ...')
txtField.value = '';
else
txtField.select();
}
}
</script>
</head>
<body>
<div id="header">
<?php
if (isset($_SESSION["logged"])) {
//echo "<a href='index.php'><img src='images/icon.png' /></a>";
//echo "<a href='cookbook.php' data-icon='star'>My Cookbook</a>";
echo "<a href='index.php'> <img src='images/title.png' /></a>";
echo "<a href='logout.php' class='right' style='line-height: 49px;'>Logout </a>";
echo "<a href='cookbook.php' class='right' style='line-height: 49px;'>Cookbook | </a>";
} else {
echo "<a href='index.php'><img src='images/icon.png' /></a>";
echo "<a href='index.php'><img src='images/title.png' /></a>";
echo "<a href='login.php' class='right' style='line-height: 49px;'>LOGIN </a>";
}
?>
</div>
<div id="bodywrapper">