<?php require_once 'include.php'; $id = $_REQUEST['id']; $proInfo = getProById($id); $proImgs = getAllImgByProId($id); print_r($proImgs); ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>商品介绍</title> <link type="text/css" rel="stylesheet" href="styles/reset.css"> <link type="text/css" rel="stylesheet" href="styles/main.css"> <link type="text/css" rel="stylesheet" media="all" href="styles/jquery.jqzoom.css"/> <script src="scripts/jquery-1.6.js" type="text/javascript"></script> <script src="scripts/jquery.jqzoom-core.js" type="text/javascript"></script> <!--[if IE 6]> <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script> <script type="text/javascript" src="js/ie6Fixpng.js"></script> <![endif]--> <script type="text/javascript"> $(document).ready(function() { $('.jqzoom').jqzoom({ zoomType: 'standard', lens:true, preloadImages: false, alwaysOn:false, title:false, zoomWidth:410,
$loginFlag = $_SESSION['id']; } elseif (autoLogin()) { $sql = "select * from tuhao_user where auto_token='{$_COOKIE['autoToken']}'"; $data = fetchOne($sql); $username = $data['username']; $loginFlag = $data['id']; $id = $data['id']; } else { $username = ''; $loginFlag = 0; $id = 0; } $pro_id = isset($_GET['pro_id']) ? $_GET['pro_id'] : ''; $pro_name = isset($_GET['pro_name']) ? $_GET['pro_name'] : ''; if ($pro_id != '') { $goods = getProById($pro_id); $src = getImgByProId($pro_id); //print_r($src); $sql = "select id from tuhao_user where username='******'receiver']}'"; $sql1 = "select id from tuhao_user where username='******'username']}'"; $receiver = fetchOne($sql); $user = fetchOne($sql1); $receiver_id = $receiver['id']; $user_id = $user['id']; $goods['reg_time'] = date('Y.m.d', $goods['reg_time']); $goods['src'] = $src; $goods['receiver_id'] = $receiver_id; if ($goods['receiver_id'] == '') { $goods['receiver_id'] = 0; } $goods['user_id'] = $user_id;