Location: PHPKode > projects > MyPHPBib > top.inc.php
<?php

    if ( ereg ( "MSIE" , $_SERVER['HTTP_USER_AGENT'] ))
    {
	    echo "<script language=\"JavaScript1.2\">\n";
    }
    else
    {
		echo "<script language=\"JavaScript1.2\" type=\"application/x-javascript\">\n";
    }
    ?>
    function validateSearchForm(form) 
    { 
    	var str = form.term.value; 
    	if (form.term.value == "") 
    	{ 
    		alert("Please enter a search term."); 
    		form.term.focus(); 
    		return false; 
    	} 
    	return true;
     }  
    </script>



<div id="header">
	<table border="0" width="100%">
	<tr>
	<td>

	<!--<div id="dbtitle">-->
	<p id="dbtitle">
	<?php echo $config['title']; ?>
	</p>
	<!--</div>-->

	</td>
	<td>
	<table id="search" border="0" width="100%">
	<tr>
	<td align="right">
	<?php 
	
	if ($user->IsLoggedIn())
	{
		echo "<b>", $user->GetFullUserName(), "</b>&nbsp;";
		echo "|&nbsp;<a href=\"logout.php\" title=\"Logout out\">Logout</a>&nbsp;";
	}
	else
	{
		echo "&nbsp;<a href=\"login.php\" title=\"Login\">Login</a>";	
	} 
	//echo "&nbsp;|&nbsp;Help";
	
	?>
	</td>
	</tr>
	<tr>
	<td align="right">

		<!-- Quick search form -->
		<form name="form1" method="post" action="bib_search.php" onsubmit="return validateSearchForm(this)">
		<input name="term" type="text" id="term" size="20" />
		<select name="operation" id="operation">
		<option value="author" selected="selected">Author</option>
		<option value="title_abstract">Keywords</option>		
		</select>
		<input type="submit" name="Submit" value="Go" />
		</form>

	</td>
	</tr>
	</table>
	</td>
	</tr>
	</table>
</div>

<div id="navbar">
<?php 
	echo "&nbsp;<a href=\"index.php\" title=\"Home page\">Home</a>&nbsp;";
	echo "|&nbsp;<a href=\"bib_browse.php\" title=\"Browse list of references\">Browse</a>&nbsp;";
	echo "|&nbsp;<a href=\"bib_search.php\" title=\"Search database\">Search</a>&nbsp;";

	if ($user->IsLoggedIn())
	{
		echo "|&nbsp;<a href=\"bib_add.php\" title=\"Add a reference\">Add</a>&nbsp;";
		echo "|&nbsp;<a href=\"bib_import.php\" title=\"Import from Endnote, Reference manager, etc.\">Import</a>&nbsp;";
		echo "|&nbsp;<a href=\"bib_pubmed_import.php\" title=\"Fetch reference from PubMed\">PubMed</a>&nbsp;";
		//echo "|&nbsp;<a href=\"\">Upload</a>&nbsp;";

		echo "|&nbsp;<a href=\"login_change.php\" title =\"Change your password\">My password</a>&nbsp;";

		if ($user->IsAdministrator())
		{
			echo "|&nbsp;<a href=\"login_adduser.php\" title=\"Add a new user\">Add user</a>&nbsp;";
		}

	}

	

?>
</div>
<div id = "big">

<?php

?>
Return current item: MyPHPBib