📄 index.php
字号:
<?php
require_once('libs/config.inc');
require_once('libs/dbmanager.inc');
require_once('libs/function.inc');
$conn = DBManager::getConnection();
?><!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>LOVESTUdio多校园网络店铺</title>
<link rel="stylesheet" type="text/css" href="skin/style.css" />
</head>
<script language="JavaScript" type="text/JavaScript">
var pic_index=1;
var max_index=2;
var inter=null;
inter=setInterval(next,5000);
function changeall() {
for (i=1;i<3;i++) {
eval("tb"+i).style.display="none";
eval("bt"+i).src="skin/mation/news_bt"+i+"1.gif";
}
}
function change(a) {
changeall();
pic_index=a;
eval("tb"+a).style.display="";
eval("bt"+a).src="skin/mation/news_bt"+a+"2.gif";
}
function next(){
pic_index++;
changeall();
if(pic_index>max_index){pic_index=1}
eval("tb"+pic_index).style.display="";
eval("bt"+pic_index).src="skin/mation/news_bt"+pic_index+"2.gif";
}
function prev(){
pic_index--;
changeall();
if(pic_index<1){pic_index=max_index}
eval("tb"+pic_index).style.display="";
eval("bt"+pic_index).src="skin/mation/news_bt"+pic_index+"2.gif";
}
</script>
<script>
function writeNewsImage(url, img) {
var str = '<a href='+url;
if (-1 < url.indexOf("(") || -1 < url.indexOf("javascript:") )
str+=' target=_self>';
else
str+=' target=_blank>';
str+='<img src='+img+' width=417 height=99 border=0 onmouseout="inter=setInterval(next,2500)" onmouseover="clearInterval(inter)" /></a>';
document.write(str);
}
function writeNewsTitle(url, des) {
var str = '<a href='+url;
if (-1 < url.indexOf("(") || -1 < url.indexOf("javascript:") )
str+=' target=_self ';
else
str+=' target=_blank ';
str += ' class=news0601 onmouseout="javascript:inter=setInterval(next,2500)" onmouseover="clearInterval(inter)" >';
str += des;
str += '</a>';
document.write(str);
}
</script>
<script language="javascript" type="text/javascript" src="js/menu.js"></script>
<body>
<?php require_once('pagetag/page_top.html'); ?>
<table width="964" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td width="203" valign="top">
<!-------------学校列表------------------->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="3" height="31" background="skin/sch_top.gif">学校列表</td>
</tr>
<tr>
<td width="1" class="line1"></td>
<td>
<?php require_once('pagetag/school_index.html'); ?>
</td>
<td width="1" class="line1"></td>
</tr>
<tr>
<td colspan="3" height="11" background="skin/sch_bot.gif"></td>
</tr>
</table>
<!-------------学校列表结束------------------->
</td>
<td width="5"></td>
<td width="520">
<!--------轮换消息--------------->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><img src="skin/smallpic/ta_tl.gif" /></td>
<td height="10" background="skin/smallpic/ta_t.gif"></td>
<td><img src="skin/smallpic/ta_tr.gif" /></td>
</tr>
<tr>
<td width="10" background="skin/smallpic/ta_l.gif">
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="skin/mation/news_bt12.gif" name="bt1" width="64" height="21" id="bt1" style="cursor:hand;" onMouseOver="javascript:clearInterval(inter);change(1)" onMouseOut="javascript:inter=setInterval(next,2500);" /> <img src="skin/mation/news_bt21.gif" name="bt2" width="64" height="21" id="bt2" style="cursor:hand;" onMouseOver="javascript:clearInterval(inter);change(2)" onMouseOut="javascript:inter=setInterval(next,2500);" />
</td><td align="right"><img src="skin/smallpic/17.gif" /> </td>
</tr>
<tr height="9">
<td colspan="2" background="skin/smallpic/16.gif" /></td>
</tr>
</table>
</td>
<td width="10" background="skin/smallpic/ta_r.gif" /></td>
</tr>
<tr>
<td width="10" background="skin/smallpic/ta_l.gif"></td>
<td height="282" width="475" align="center" onMouseOver="javascript:clearInterval(inter);">
<table id="tb1" width="100%" border="0" cellspacing="0" cellpadding="1" style="display:;">
<tr>
<td valign="top"><table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align='center'><?php require_once('pagetag/news_index.html'); ?></td>
</tr>
</table></td>
</tr>
</table>
<table id="tb2" width="100%" border="0" cellspacing="0" cellpadding="1" style="display:none;">
<tr>
<td valign="top"><table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><?php require_once('pagetag/ann_index.html'); ?></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="10" background="skin/smallpic/ta_r.gif"></td>
</tr>
<tr>
<td><img src="skin/smallpic/ta_bl.gif" /></td>
<td background="skin/smallpic/ta_b.gif"></td>
<td><img src="skin/smallpic/ta_br.gif" /></td>
</tr>
</table>
<!--------轮换消息结束--------------->
</td>
<td width="5"></td>
<td width="216" valign="top">
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td width="215">
<!--------用户登陆--------------->
<iframe id='userlogin' src="userlogin.php" frameBorder="0" width="100%" scrolling="no" height="130"></iframe>
<!--------用户登陆结束--------------->
</td>
</tr>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="55"><img src="skin/smallpic/14.gif" /></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="1" class="line1"></td>
<td width="218">
<?php require_once('pagetag/search.php'); ?>
</td>
<td width="1" class="line1"></td>
</tr>
<tr>
<td colspan="3"><img src="skin/smallpic/15.gif" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="149">
<table width="100%" height="149" cellpadding="0" cellspacing="0" background="skin/star_shopbak.gif">
<tr>
<td height="8"></td>
</tr>
<tr>
<td height="24" align="center"><img src="skin/s_b.gif" /></td>
</tr>
<tr>
<td valign="top" align="center"><?php require_once('pagetag/showtextstar.php'); ?></td>
</tr>
</table>
</td>
<td width="5"></td>
<td align="center">
<?php require_once('pagetag/showpicstar.php'); ?>
</td>
<td width="5"></td>
<td width="215" height="145" align="center" valign="middle">
<?php require_once('pagetag/flash_index.php'); ?>
</td>
</tr>
</table>
<!-----------------推荐商品、新开店铺---------------------->
<table align="center" width="964" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td width="100" height="150" background="skin/goods_l.gif">
</td>
<td>
<table width="864" cellpadding="0" cellspacing="0">
<tr>
<td height="16" align="right" background="skin/goods_top.gif" width="100%"><a href="goods_list.php?action=mode" target="_parent"><img src="skin/smallpic/18.gif" border="0" /></a> </td><td><img src="skin/goods_r.gif" /></td>
</tr>
<tr>
<td height="134">
<?php require_once('pagetag/showmodegoods.html'); ?>
</td><td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td colspan="2">
<table height="180" width="100%" border="1" bordercolor="#F5EFEA" cellpadding="4" cellspacing="0">
<tr height="25">
<td><img src="skin/mu3.gif"><img src="skin/smallpic/space.gif" width="260" height="1" />
<a href="goods_list.php?action=news" target="_parent"><img src="skin/smallpic/more1.gif" border="0" /></a></td><td><img src="skin/mu4.gif" /><img src="skin/smallpic/space.gif" width="260" height="1" />
<a href="goods_list.php?action=hot" target="_parent"><img src="skin/smallpic/more1.gif" border="0" /></a></td>
</tr>
<tr valign="middle">
<td width="50%"><?php require_once('pagetag/shownewgoods.html'); ?></td>
<td width="50%"><?php require_once('pagetag/showhotgoods.html'); ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td width="100" height="150" background="skin/shop_l.gif"></td>
<td>
<table width="864" cellpadding="0" cellspacing="0">
<tr>
<td height="16" valign="top" align="right" background="skin/shop_top.gif" width="100%"><a href="shop_list.php?action=news" target="_parent"><img src="skin/smallpic/18.gif" border="0" /></a> </td><td><img src="skin/shop_r.gif" /></td>
</tr>
<tr>
<td height="134"><?php require_once('pagetag/shownewshops.html'); ?></td><td></td>
</tr>
</table>
</td>
</tr>
</table>
<!-----------------推荐商品、新开店铺---------------------->
<!-----------------网站调查、店铺新闻、公告---------------------->
<table align="center" width="964" cellpadding="0" cellspacing="0">
<tr>
<Td height="5"></Td>
</tr>
<tr>
<td width="200" valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="10"><img src="skin/smallpic/ta_tl.gif" /></td>
<td background="skin/smallpic/ta_t.gif"></td>
<td><img src="skin/smallpic/ta_tr.gif" /></td>
</tr>
<tr>
<td background="skin/smallpic/ta_l.gif"></td>
<td valign="top" width="180">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="skin/mu0.gif" />
</td>
</tr>
</table>
<?php require_once('pagetag/sitevote.php'); ?>
</td>
<td background="skin/smallpic/ta_r.gif"></td>
</tr>
<tr>
<td><img src="skin/smallpic/ta_bl.gif" /></td>
<td background="skin/smallpic/ta_b.gif"></td>
<td><img src="skin/smallpic/ta_br.gif" /></td>
</tr>
</table>
</td>
<td width="5"></td>
<td width="759" valign="top">
<table height="270" width="100%" border="1" bordercolor="#F5EFEA" cellpadding="4" cellspacing="0">
<tr>
<td><img src="skin/mu1.gif" /></td>
<td><img src="skin/mu2.gif" /></td>
</tr>
<tr valign="top" height="230">
<td width="50%"><?php require_once('pagetag/shopnews.html'); ?></td><td width="50%"><?php require_once('pagetag/shopann.html'); ?></td>
</tr>
</table>
</td>
</tr>
</table>
<!-----------------网站调查、店铺新闻、公告---------------------->
<?php require_once('pagetag/bottommation.php'); ?>
<?php require_once('pagetag/index_bot.html'); ?><?php $conn->close();?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -