📄 header.htm
字号:
<!--<?php
print <<<EOT
--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$subject $cate $db_shopname $db_bbstitle - powered by phpshops.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=$charset" />
<meta name="description" content="$db_descrip" />
<meta name="keywords" content="$db_keywords" />
<base href="$db_weburl/" />
<link href="$imgpath/$stylepath/style.css" rel="stylesheet" type="text/css" />
<script language=JavaScript>
var agt = navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_gecko = (navigator.product == "Gecko");
var tagdb = new Array();
var imgpath = '$imgpath';
function $(id){
return document.getElementById(id);
}
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}
function IsElement(id){
return $(id)!=null ? true : false;
}
</script>
</head>
<body>
<div class="bodyWrap">
<div id="header">
<!--
EOT;
if($db_headnt && !$_COOKIE['syshide']){print <<<EOT
-->
<div id="headnt" style="width:100%;text-align:center;background-color:#EC6500;height:30px;padding-top:8px;margin:0"> $db_headnt <a style="cursor:pointer;" onclick="closesys();">关闭</a></div>
<script language="JavaScript">
function closesys() {
closediv();
var date = new Date();
date.setTime(date.getTime()+86400000);
document.cookie="syshide=1;expires=" + date.toGMTString() + " path=/";
}
function closediv() {
if (parseInt($('headnt').offsetHeight) - Math.abs(parseInt($('headnt').style.marginTop))>3) {
$('headnt').style.marginTop = parseInt($('headnt').style.marginTop)-3 + 'px';
setTimeout("closediv()",20);
} else {
$('headnt').style.display = 'none';
}
}
</script>
<!--
EOT;
}print <<<EOT
-->
<div id="logo"><a href="index.php"><img src="$imgpath/logo.png" /></a></div>
<div id="toolbar">
<div id="loginbar">
<div>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<!--
EOT;
if(!$user_name){print <<<EOT
-->
请 <a href="$loginurl"><span>登录</span></a> 或 <a href="$regurl"><span>注册</span></a>
<!--
EOT;
}else{print <<<EOT
-->
$user_name 你好 ! <a href="$loginouturl"><span>[退出]</span></a>
<img src="$imgpath/$stylepath/header_msg_mail.gif" alt="站内信" align="absmiddle"><a href="usercp.php?userjob=msg"><span>站内信</span></a>($userdb[newmsg])
<a href="usercp.php?userjob=collect"><span>收藏夹</span></a>
<!--
EOT;
if($user_name == $manager || $_SYS['allowadmincp']){print <<<EOT
-->
<a href="admin.php" target="_blank"><span>系统设置</span></a>
<!--
EOT;
}}print <<<EOT
-->
$db_head
<div class="fr" style=" margin-top:.8em">
<a href="search.php?type=goods&step=2" class="anniuA"><span>我要买</span></a>
<a href="usercp.php?userjob=goods" class="anniuB"><span>我要卖</span></a>
<!--
EOT;
if($user_name){
if($userdb['sellerid']>0){print <<<EOT
-->
<a href="shop.php?uid=$userdb[uid]" class="anniuD" target="_blank"><span>我的商铺</span></a>
<!--
EOT;
}print<<<EOT
-->
<a href="usercp.php" class="anniuC"><span>我的交易</span></a>
<!--
EOT;
}print <<<EOT
-->
</div></td>
</tr>
</table>
</div>
</div>
</div>
<div class="c"></div>
<div id="searchBar">
<div id="searchTab">
<ul id="guide">
<li id="category_index" ><span><a href="index.php">首 页</a></span></li>
<!--
EOT;
foreach($_Category as $key => $val){
if($val['type']==0 && $val['ifmenu'] == '1'){
$val['name'] = strip_tags($val['name']);
print <<<EOT
-->
<li id="category_$val[cid]"><span><a href="category.php?cid=$key">$val[name]</a></span></li>
<!--
EOT;
}}print <<<EOT
-->
<li id="category_article" ><span><a href="article.php">资 讯</a></span></li>
</ul>
</div>
<div class="c"></div>
<form action="search.php" method="post" name="Sfrom">
<div id="SearchForm">
<input type="hidden" name="step" value="2" />
<input type="hidden" name="method" value="1" />
<select name="type" id="baobei" onchange="search_category(this.value);">
<option value="goods" selected="selected">搜索宝贝</option>
<option value="shop">搜索店铺</option>
</select>
<input id="q" name="keyword" />
<div style="display:inline" id="search_bar">
<select id="cat" name="cid" style="width:160px;">
<option value=""></option>
$Selcategory
</select>
</div>
<input type="submit" style="margin:0 .2em" value=" 搜 索 " />
<a href="search.php" target="_top">[ 高级搜索 ]</a> <a href="http://www.phpshops.com/help" target="_blank">[ 使用帮助 ] </a>
</div>
<div id="hot-search"><a class="fl">热门搜索:</a><ul id="taglist" style="float:left;height:14px;overflow:hidden;padding:0;margin:0"></ul>
<script language="JavaScript" src="data/cache/tagdb.js"></script>
</div>
</form>
</div>
</div>
<div class="c"></div>
<div id="main">
<script language="JavaScript" type="text/javascript">
var html = '';
if (IsElement("category_$basecid")) {
$("category_$basecid").className = 'active';
}
for (var i=0;i<tagdb.length;i++) {
if (i>0 && i%10==0) html += '</li><li>';
html += "<a href=\"search.php?type=goods&step=2&tag="+tagdb[i][0]+"\" target=\"_blank\">"+tagdb[i][0]+"</a>";
}
$('taglist').innerHTML = '<li>' + html + '</li>';
function roll(id,tag,step,delay) {
this.it = null;
this.init = function() {
if ($(id).scrollHeight > $(id).offsetHeight+this.maxHeight()) {
var its = this;
this.it = setTimeout(function(){its.scroll();},delay);
$(id).onmouseover = function(){clearTimeout(its.it);}
$(id).onmouseout = function(){its.it=setTimeout(function(){its.scroll();},200);}
}
}
this.scroll = function() {
if ($(id).getElementsByTagName(tag)[0].offsetHeight - $(id).scrollTop < step) {
this.pause();
} else {
$(id).scrollTop += step;
var its = this;
this.it = setTimeout(function(){its.scroll();},10);
}
}
this.pause = function() {
clearInterval(this.it);
$(id).appendChild($(id).getElementsByTagName(tag)[0]);
$(id).scrollTop = 0;
var its = this;
this.it = setTimeout(function(){its.scroll();},delay);
}
this.maxHeight = function() {
var h = 0;
var tags = $(id).getElementsByTagName(tag);
for (var i=0;i<tags.length;i++) {
if (tags[i].offsetHeight > h) h = tags[i].offsetHeight;
}
return h;
}
this.init();
}
var listnt = new roll('taglist','li',1,5000);
function search_category(v) {
try {
ajax.send('ajax.php?action=search'+v,'',function() {
$('search_bar').innerHTML = ajax.request.responseText;
});
} catch(e){}
}
</script>
<!--
EOT;
?>-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -