Repository navigation
Expand file tree
/
Copy pathcompany.php
More file actions
50 lines (50 loc) · 1.46 KB
/
Copy pathcompany.php
File metadata and controls
50 lines (50 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require 'functions.php';
$Id = $_GET["id"];
if ($Id == "") {
header('HTTP/1.1 404 Not Found');
header("location: /404.html");
$Id = 6;
}
require 'doctype.php';
?>
<html>
<head>
<?php include 'layout/head.php'; ?>
<?php
$DBlink = openMysql();
getShopInfo(queryShopById($DBlink, $Id));
$cmd = sprintf("update shop set visits = visits+1 where Id=%s", $Id);
mysql_query($cmd, $DBlink) or die("Inc failed:".mysql_error());
mysql_close($DBlink);
?>
<title><?=$shopname;?> - 装修风,免费送50元话费</title>
</head>
<body>
<?php include 'layout/header.php' ?>
<div id="subtitle">
<div class="container">
<div class="sixteen columns">
<h1 style="font-size:24px;"><?=$shopname;?></h1>
</div>
</div>
</div>
<br />
<div class="container">
<?php include 'company/right.php' ?>
<?php include 'company/left.php' ?>
</div>
<?php include 'layout/footer.php' ?>
<div id="popup-reserve-mask" class="popup-reserve-mask"></div>
<?php include 'company/reserve.php' ?>
</body>
<?php include 'layout/scripts.php' ?>
<script type='text/javascript'>
var jsonData = {
'name' : "<?=$shopname;?>",
'id' : <?=$Id;?>
};
</script>
<script type='text/javascript' src="/js/reservebox.js"></script>
<script type='text/javascript' src="/js/company.js"></script>
</html>