⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header.inc

📁 一个用php+mysql做的图书馆管理系统
💻 INC
字号:
<?php
/**************************************************************************************

    Simple Library System
    Copyright (C) 2002 John Mark Matthews

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    
    For further information, contact:
    	John Matthews
    	jmatthews@exostrategy.com

***************************************************************************************/

function head($title="") {
	global $lib_config;
	if($title=="") $title = $lib_config["deftitle"];

	header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
	header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
	header ("Pragma: no-cache"); // HTTP/1.0
	echo "
	<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
	<html>
	<head>
	<title>".$title."</title>
	<LINK REL='StyleSheet' HREF='./style.css' TYPE='text/css'>
	</HEAD>
	<BODY marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' >
	<script language='JavaScript'>
		if (!document.layers&&!document.all) event='test'
		function showtip(current,e,text){

			if (document.all){
				thetitle=text.split('<br>')
				if (thetitle.length>1){
				thetitles=''
				for (i=0;i<thetitle.length;i++)
					thetitles+=thetitle[i]
				current.title=thetitles
			}
			else
				current.title=text
		}

		else if (document.layers){
			document.tooltip.document.write('<layer bgColor=\"white\" style=\"border:1px solid black;font-size:12px;\">'+text+'</layer>')
			document.tooltip.document.close()
			document.tooltip.left=e.pageX+5
			document.tooltip.top=e.pageY+5
			document.tooltip.visibility='show'
		}
		}
		function hidetip(){
			if (document.layers)
			document.tooltip.visibility='hidden'
		}
	</script>
	<div id=\"tooltip\" style=\"position:absolute;visibility:hidden\"></div>
	";
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -