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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<?php require_once('../webadmin/configure.php'); $result0 = mysql_query("SELECT * FROM home "); $row0 = mysql_fetch_array($result0,MYSQL_ASSOC); $result = mysql_query("SELECT * FROM sys_menu WHERE mpage = 'index' "); $row = mysql_fetch_array($result,MYSQL_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 name="chinaz-site-verification" content="6a224742-2ff4-4dd3-b082-71f3a10855d0" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title><?=$row0{'metatitlesc'};?></title> <meta name="keywords" content="<?=$row0{'metakeywordsc'};?>" /> <meta name="description" content="<?=$row0{'metadescsc'};?>" /> <link rel="stylesheet" type="text/css" href="../css/style.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript" src="../js/jquery.cycle.all.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.banner').cycle({ fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc... }); }); </script>
</head> <body> <div id="container"> <!-- Header --> <?php require_once('header.php');?> <!-- Main Content --> <div id="body"> <div id="body_content-index"> <div class="banner"><?php // slideshow $result3 = mysql_query("SELECT * FROM h_slideshow WHERE hsstatus = '1' ORDER BY hssort ASC "); while ($row3 = mysql_fetch_array($result3,MYSQL_ASSOC)){ echo "<a href='".$row3{'hslinksc'}."'><img src='../slideshow/".$row3{'hsimgsc'}."' width='900' height='350' /></a>"; }?></div> <div id="h-table"><table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="h-news"><?php // Home News $result3 = mysql_query("SELECT * FROM h_news WHERE hnewsstatus = '1' ORDER BY hnewssort ASC "); $row3 = mysql_fetch_array($result3,MYSQL_ASSOC); echo $row3{'hnewsdate'}.' '. $row3{'hnewstitlesc'}.'... <a href="'.$row3{'hnewslinksc'}.'">[更多]</a>';?></td> </tr> <tr> <td><?php // Home adv $result3 = mysql_query("SELECT * FROM h_adv WHERE hadvstatus = '1' ORDER BY hadvsort ASC "); $a=1; while ($row3 = mysql_fetch_array($result3,MYSQL_ASSOC)){ if ($a == '3') { $class = "advlist2"; } else { $class = "advlist"; } echo '<div class="'.$class.'" align="left"><a href="'.$row3{'hadvlinksc'}.'"><img src="../adv/'.$row3{'hadvimgsc'}.'" width="280" height="150" /></a><br /> <b>'.$row3{'hadvtitlesc'}.'</b><div style="float:right;display:inline;"><a href="'.$row3{'hadvlinksc'}.'">[更多]</a></div></div>'; $a++; }?></td> </tr> <tr> <td class="h-isolist"><?php // Home Brand $result3 = mysql_query("SELECT * FROM h_brand WHERE hbrandstatus = '1' ORDER BY hbrandsort ASC "); while ($row3 = mysql_fetch_array($result3,MYSQL_ASSOC)){ echo "<a href='".$row3{'hbrandlinksc'}."'><img src='../brand/".$row3{'hbrandimgsc'}."' /></a>"; }?></td> </tr> </table></div> </div> </div> <!-- Footer --> <?php require_once('footer.php');?> </div> </body> </html>
|