-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader_index.php
More file actions
53 lines (47 loc) · 1.66 KB
/
header_index.php
File metadata and controls
53 lines (47 loc) · 1.66 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
<?php
session_start();
?>
<html>
<head>
<title>CODECHEFS</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">
<a href="index.php"><img src="images/icon.png" /></a>
<img src="images/title.png" />
<?php
if (isset($_SESSION["logged"])) {
//echo "<a href='cookbook.php' data-icon='star'>My Cookbook</a>";
echo "<a href='logout.php' class='right' style='line-height: 49px;'>LOGOUT </a>";
} else {
echo "<a href='login.php' class='right' style='line-height: 49px;'>LOGIN </a>";
}
?>
</div>
<div id="bodywrapper2" style="background: url('images/mainbg.jpg');">
<div id="bodywrapper" style="background: url('images/background2.jpg') repeat-x center top;">