PageRenderTime 29ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/header.tpl.php

http://freshdns.googlecode.com/
PHP | 55 lines | 49 code | 6 blank | 0 comment | 3 complexity | ec3c212046b0808ef4d2fca2c32ac392 MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" dir="ltr">
 3<head>
 4    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 5    <title>FreshDNS</title>
 6	<script type="text/javascript" language="JavaScript1.2">var baseurl = '';</script>
 7	<script type="text/javascript" language="JavaScript1.2" src="./js/prototype.js"> </script>
 8	<script type="text/javascript" language="JavaScript1.2" src="./js/freshdns.js"> </script>
 9	<script type="text/javascript">
10	var liveSearchRoot = baseurl;
11	var liveSearchRootSubDir = "/";
12	<?
13	echo "var userlevel='".$_SESSION['level']."';\n";
14	echo "var myUserId='".$_SESSION['userId']."';\n";
15	?>
16	</script>
17	<link rel="stylesheet" href="./images/style.css" type="text/css" />
18</head>
19
20<body>
21
22<div id="query"></query>
23
24<div id="header">
25	<div id="logo"><img src="./images/logo.png" alt="FreshDNS" /></div>
26	
27	<div id="headingtext">
28		<div id="title">FreshDNS</div>
29	</div>
30</div>
31
32<div id="navbar">
33	<div id="letters">
34	<? if($login->isLoggedIn()){ ?>
35	<a href="javascript:list('[0-9]');">0-9</a> <a href="javascript:list('a');">A</a> <a href="javascript:list('b');">B</a> <a href="javascript:list('c');">C</a>
36	<a href="javascript:list('d');">D</a> <a href="javascript:list('e');">E</a> <a href="javascript:list('f');">F</a> <a href="javascript:list('g');">G</a> <a href="javascript:list('h');">H</a>
37	<a href="javascript:list('i');">I</a> <a href="javascript:list('j');">J</a> <a href="javascript:list('k');">K</a> <a href="javascript:list('l');">L</a> <a href="javascript:list('m');">M</a>
38	<a href="javascript:list('n');">N</a> <a href="javascript:list('o');">O</a> <a href="javascript:list('p');">P</a> <a href="javascript:list('q');">Q</a> <a href="javascript:list('r');">R</a>
39	<a href="javascript:list('s');">S</a> <a href="javascript:list('t');">T</a> <a href="javascript:list('u');">U</a> <a href="javascript:list('v');">V</a> <a href="javascript:list('w');">W</a>
40	<a href="javascript:list('x');">X</a> <a href="javascript:list('y');">Y</a> <a href="javascript:list('z');">Z</a> <a href="javascript:newDomain();">NEW</a> <a href="javascript:bulkNewDomain();">BULK</a>
41	<? if($_SESSION['level'] < 10) { ?>
42	<a href="javascript:editUser(<?=$_SESSION['userId']?>);">PROFILE</a> 
43	<? }else{ ?>
44	<a href="javascript:userAdmin();">USERS</a> 
45	<? } ?>
46	<a href="index.php?p=logout">LOGOUT</a>
47	<? }else{ echo "&nbsp;"; } ?></div>
48	<div id="search">
49	<? if($login->isLoggedIn()){ ?>
50	<form style="margin:0px;" name="searchform" method="get" action="index.php" id="searchform">
51	<input id="livesearch" name="q" type="text" onkeypress="liveSearchStart()" value="<?=$_GET['q']?>"></form>
52	<? } ?></div>
53</div>
54
55<div id="body">