<?PHP
session_start();
include("db/dbconnect.php");
include("function/function.php");
@chklogin($_SESSION['username']);
$itemid = $_GET['itemid'];
$sql = "select * from allitems where ID = \"$itemid\"";
$query = mysql_query($sql) or die("error=$sql");
$num = mysql_num_rows($query);
$row = mysql_fetch_array($query);
?>
<!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=ISO-8859-1" />
<title><?php echo $row['itemname'];?></title>
<!--link to css style sheet afterusersignin.css-->
<link rel="stylesheet" type="text/css" href="inc/afterusersignin.css" media="all" />
<link rel="stylesheet" media="screen" type="text/css" href="inc/zoomimage.css" />
<script type="text/javascript" src="js/jquery-1.2.1.pack.js"></script>
<script type="text/javascript" src="js/jquery-1.4.3.js"></script>
<script type="text/javascript" src="js/eye.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/zoomimage.js"></script>
<script type="text/javascript">
function lookup(inputString) {
if(inputString.length == 0) {
// Hide the suggestion box.
$('#suggestions').hide();
} else {
$.post("suggestions.php", {queryString: ""+inputString+""}, function(data){
if(data.length >0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}
});
}
} // lookup
function fill(thisValue) {
$('#inputString').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#submitBid').click(function() {
var enterbidVal = $('#enterbid').val();
$.ajax({
type: 'GET',
url: 'enterbid_save.php',
data: 'enterbid=' + enterbidVal,
dataType: 'html',
beforeSend: function() {
$('#itemcontentcenterright3').html('<img src="loading.gif" alt="loading..." />');
if(!enterbidVal[0]) {
$('#itemcontentcenterright3').html('<p>Please enter a bid.</p>');
return false;
}
},
success:
function response(req){
$('itemcontentcenterright3').innerHTML= req.responseText;
}
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("a.in").mouseover(function(){
$("div#box").fadeIn("fast");
});
$("div#box").click(function(event){
$("div#box").hide();
});
});
</script>
<script type="text/javascript">
function showUser(str1){
var str1 = "<?= $itemid ?>";
if (str1=="")
{
document.getElementById("box").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("box").innerHTML=xmlhttp.responseText;
}
}
var strURL="db.php?q="+str1;
xmlhttp.open("GET",strURL,true);
xmlhttp.send();
}
</script>
<script type="text/javascript">
$(document).ready(function(){
$("div#topsearch3").hide();
$("a#advance").click(function(){
$("div#topsearch3").fadeIn("slow");
});
});
</script>
<script type="text/javascript">
function time(str2){
var str2 = "<?= $itemid ?>";
if (str2=="")
{
document.getElementById("itemcontentcenterright3").innerHTML="empty";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("itemcontentcenterright3").innerHTML=xmlhttp.responseText;
}
}
var strURL="time.php?id="+str2;
xmlhttp.open("GET",strURL,true);
xmlhttp.send();
}
</script>
</head>
<body>
<?php
$sqldate = "select * from allitems where ID = \"$itemid\"";
$querydate = mysql_query($sqldate) or die("error=$sqldate");
$rowdate = mysql_fetch_array($querydate);
$enddate=$rowdate['enddate'];
?>
<script type="text/javascript">
var dateString = "<?= $enddate ?>"; // MM DD YYYY, HH:mm:ss
var myDate = new Date(dateString);
dateFuture = new Date(dateString);
function GetCount(){
dateNow = new Date(); //grab current date
amount = dateFuture.getTime() - dateNow.getTime(); //calc milliseconds between dates
delete dateNow;
// time is already past
if(amount < 0){
document.getElementById('itemcontentcenterright3').innerHTML="Now!";
$("div#itemcontentcenterright4").hide();
time();
}
// date is still good
else{
days=0;hours=0;mins=0;secs=0;out="";
amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs
days=Math.floor(amount/86400);//days
amount=amount%86400;
hours=Math.floor(amount/3600);//hours
amount=amount%3600;
mins=Math.floor(amount/60);//minutes
amount=amount%60;
secs=Math.floor(amount);//seconds
if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
if(days != 0 || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
if(days != 0 || hours != 0 || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
out += secs +" seconds";
document.getElementById('itemcontentcenterright3').innerHTML=out;
setTimeout("GetCount()", 1000);
}
}
window.onload=function(){GetCount();}//call when everything has loaded
//-->
</script>
<!--Big table - control all-->
<div id="bigtable">
<!--Top Logo-->
<div id="toplogo">
<a href="afterusersignin.php"><img src="img/balogo.jpg" alt="logo" width="151" height="114" /></a>
<!--Content Left-->
<!--Left Menu-->
<?php
$sqlc = "select * from categories";
$queryc = mysql_query($sqlc) or die("error=$sqlc");
$numc = mysql_num_rows($queryc);
for($i=1; $i<=$numc; $i++)
{
$rowc = mysql_fetch_array($queryc);
?>
<div id="leftmenu">
• <a href="afterusersignin_categoriespage.php?categories=<?php echo $rowc['categories'];?>"><?php echo $rowc['categories'];?></a>
</div>
<?php
}
?>
<div id="leftmenulogo1">
<!--Reference paypal logo: http://www.cocoscandle.com/Images/Paypal%20Logo.jpg-->
<img src="img/plogo.jpg" alt="paypal" width="165" height="78" />
</div>
</div>
<!--Member Signin-->
<!--Top Signin -->
<div id="topaftersignin1">
Hello! <span class="usersession"><?php echo $_SESSION['username']?></span>
</div>
<div id="topaftersignin2">
<a href="signout.php">Sign out</a> ¦
<a href="myaccount.php">My account</a> ¦
<a href="afterusersignin_contactus.php">Contact us</a> ¦
<a href="#">Help</a> </div>
<!--Content Right-->
<div id="rightcontent">
<!--Big table-->
<div id="allitemstable">
<!--Search-->
<div id="coversearch">
<div id="topsearch">
<form action="afterusersignin_search.php" method="post">
<input name="search" type="text" size="30" maxle
没有合适的资源?快使用搜索试试~ 我知道了~
PHP商城 实现买卖 mysql
共158个文件
jpg:60个
php:56个
css:12个
需积分: 9 11 下载量 43 浏览量
2014-02-09
17:21:07
上传
评论 1
收藏 2.33MB RAR 举报
温馨提示
基于B/S的网上竞拍系统 PHP MYSQL Apatch 实现商品买卖
资源推荐
资源详情
资源评论
收起资源包目录
PHP商城 实现买卖 mysql (158个子文件)
afterusersignin.css 12KB
style.css 9KB
admin.css 3KB
zoomimage.css 3KB
aboutus.css 2KB
usersellitems.css 2KB
contactus.css 1KB
forgetpassword.css 1010B
allitems.css 964B
userregister.css 803B
myaccount.css 729B
warning.css 723B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
email_icon.gif 6KB
example.html 2KB
img 0B
a2.jpg 123KB
item.jpg 121KB
balogo.jpg 88KB
DESP-articleLarge2.jpg 85KB
004.jpg 84KB
001.jpg 75KB
005.jpg 69KB
003.jpg 57KB
003.jpg 57KB
004.jpg 55KB
0f393f0b79e149ad862c8d427a554c94.jpg 52KB
0f393f0b79e149ad862c8d427a554c94.jpg 52KB
a1.jpg 50KB
a1.jpg 50KB
001.jpg 50KB
003.jpg 48KB
005.jpg 48KB
002.jpg 46KB
005.jpg 43KB
004.jpg 40KB
001.jpg 39KB
warning.jpg 38KB
004.jpg 38KB
001.jpg 38KB
005.jpg 37KB
004.jpg 35KB
001.jpg 35KB
003.jpg 29KB
002.jpg 29KB
005.jpg 29KB
003.jpg 27KB
002.jpg 27KB
005.jpg 25KB
003.jpg 25KB
001.jpg 24KB
002.jpg 23KB
003.jpg 21KB
002.jpg 21KB
005.jpg 21KB
002.jpg 21KB
002.jpg 20KB
004.jpg 19KB
003.jpg 19KB
001.jpg 19KB
002.jpg 18KB
004.jpg 17KB
001.jpg 17KB
004.jpg 16KB
004.jpg 16KB
003.jpg 14KB
003.jpg 13KB
002.jpg 13KB
004.jpg 13KB
005.jpg 12KB
plogo.jpg 12KB
005.jpg 12KB
001.jpg 11KB
005.jpg 10KB
002.jpg 8KB
001.jpg 6KB
jquery-1.4.3.js 176KB
jquery-1.4.3.js 176KB
jquery.js 122KB
jquery.validate.js 36KB
jquery-1.2.1.pack.js 27KB
zoomimage.js 24KB
jquery.tablesorter.min.js 12KB
utils.js 7KB
runonload.js 2KB
eye.js 604B
afterusersignin_itempage.php 15KB
usersellitems_edit.php 15KB
userselladditem.php 14KB
itempage.php 12KB
afterusersignin.php 11KB
usersellitems.php 9KB
afterusersignin_search.php 9KB
afterusersignin_search2.php 8KB
共 158 条
- 1
- 2
资源评论
yang6732000
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功