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

📄 show_second.php

📁 LOVESTUdio多校园交易系统 VER 4.0基于3.0开发
💻 PHP
字号:
<?php
require_once('libs/session.inc');
require_once('libs/config.inc');
require_once('libs/dbmanager.inc');
require_once('libs/function.inc');
$conn = DBManager::getConnection(); 
if($_GET[secid] == ""){
die("错误的页面地址输入...");
}
?>
<?php
if($_COOKIE['showsecond'] == ""){
setcookie("showsecond",$_GET[secid],time()+1800);
$addhit = $conn->query("UPDATE ".$tablepre."second SET `secondhit`=`secondhit`+1 WHERE secondid=".$_GET[secid]);
}
else{
if($_COOKIE['showsecond'] !== $_GET[secid]){
setcookie("showsecond",$_GET[secid],time()+1800);
$addhit = $conn->query("UPDATE ".$tablepre."second SET `secondhit`=`secondhit`+1 WHERE secondid=".$_GET[secid]);
     }

}
$result = $conn->query("SELECT * FROM ".$tablepre."second WHERE secondid=".$_GET[secid]);
$arr = $result->fetch_assoc();
?>
<!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><?php echo $arr[secondname]; ?></title>
<link rel="stylesheet" type="text/css" href="skin/style.css" />
</head>
<script language="javascript" type="text/javascript" src="js/menu.js"></script>
<body>
<?php require_once('pagetag/page_top.html'); ?>
<table width="964" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
<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" height="250" width="944">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="16%" align="center">默认图片</Td>
<td width="73%"></td>
<td width="11%"></td>
</tr>
<tr>
<td>
<a href="upload/image/<?php echo $arr[secondimg]; ?>" target="_blank">
<img border="1" src="upload/image/<?php echo $arr[secondimg]; ?>" width="150" height="150" />
</a>
</td>
<td>
<table width="100%" border="1" bordercolor="#F5EFEA" cellpadding="4" cellspacing="0">

<tr>
<td width="13%" align="right">二手标题:</td>
<td width="87%"><?php echo $arr[secondname]; ?></td>
</tr>
<tr>
<td align="right">二手价格:</td><td class="red"><?php echo $arr[secondprice]; ?>元</td>
</tr>
<tr>
<td align="right">价格类型:</td><td class="red"><?php selectpricetype($arr[secondyijia]); ?></td>
</tr>
<tr>
<td align="right">所在学校:</td><td><?php echo checklei($arr[secondschool],$tablepre.school,schoolid,schoolname); ?></td>
</tr>
<tr>
<td align="right">联系地址:</td><td><?php echo $arr[secondaddress]; ?></td>
</tr>
<tr>
<td align="right">联系电话:</td><td><?php echo $arr[secondtel]; ?></td>
</tr>
</table>
</td>
<td align="center">已被浏览<br><font color="#0000FF"><?php echo $arr[secondhit]; ?></font>次</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td colspan="3">二手描述:</td>
</tr>
<tr>
<td colspan="3" background="skin/line1.gif" height="1"></td>
</tr>
<tr>
<td colspan="3">
<br />
<?php echo stripslashes($arr[secondmaosu]); ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</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>
<?php
require_once('pagetag/bottommation.php'); 
$conn->close();
?>
</body>
</html>

⌨️ 快捷键说明

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