-
Notifications
You must be signed in to change notification settings - Fork 23
/
soft.php
76 lines (73 loc) · 2.94 KB
/
soft.php
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
<?php
require_once(dirname(__FILE__).'/include/config.inc.php');
//初始化参数检测正确性
$cid = empty($cid) ? 11 : intval($cid);
?>
<!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=utf-8" />
<?php echo GetHeader(1,$cid); ?>
<link href="templates/default/style/webstyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="templates/default/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/default/js/loadimage.js"></script>
<script type="text/javascript" src="templates/default/js/top.js"></script>
<script type="text/javascript">
$(function(){
$(".softlist li img").LoadImage({width:50,height:50});
});
</script>
</head>
<body>
<!-- header-->
<?php require_once('header.php'); ?>
<!-- /header-->
<!-- banner-->
<div class="subBanner"> <img src="templates/default/images/banner-ir.png" /> </div>
<!-- /banner-->
<!-- notice-->
<div class="subnotice"><strong>网站公告:</strong><?php echo Info(1); ?></div>
<!-- /notice-->
<!-- mainbody-->
<div class="subBody">
<div class="subTitle"> <span class="catname"><?php echo GetCatName($cid); ?></span> <span class="fr">您当前所在位置:<?php echo GetPosStr($cid); ?></span>
<div class="cl"></div>
</div>
<div class="OneOfTwo">
<div class="subCont">
<ul class="softlist">
<?php
$dopage->GetPage("SELECT * FROM `#@__soft` WHERE (classid=$cid OR parentstr LIKE '%,$cid,%') AND delstate='' AND checkinfo=true ORDER BY orderid DESC",8);
while($row = $dosql->GetArray())
{
if($row['picurl'] != '') $picurl = $row['picurl'];
else $picurl = 'templates/default/images/nofoundpic.gif';
if($row['linkurl']=='' and $cfg_isreurl!='Y') $gourl = 'softshow.php?cid='.$row['classid'].'&id='.$row['id'];
else if($cfg_isreurl=='Y') $gourl = 'softshow-'.$row['classid'].'-'.$row['id'].'-1.html';
else $gourl = $row['linkurl'];
?>
<li>
<div class="cont">
<div class="preview"><a href="<?php echo $gourl; ?>" class="img"><img src="<?php echo $picurl; ?>" /></a></div>
<p class="cont_area"><a href="<?php echo $gourl; ?>" class="title" style="color:<?php echo $row['colorval']; ?>;font-weight:<?php echo $row['boldval']; ?>;"><?php echo $row['title']; ?></a> <span class="size"><?php echo $row['softsize']; ?><?php echo $row['unit']; ?></span> <span class="desc"><?php echo ReStrLen($row['description'],90); ?></span></p>
</div>
<a href="<?php echo $row['dlurl']; ?>" target="_blank" class="dl_btn">下载</a>
<div class="cl"></div>
</li>
<?php
}
?>
</ul>
<?php echo $dopage->GetList(); ?> </div>
</div>
<div class="TwoOfTwo">
<?php require_once('lefter.php'); ?>
</div>
<div class="cl"></div>
</div>
<!-- /mainbody-->
<!-- footer-->
<?php require_once('footer.php'); ?>
<!-- /footer-->
</body>
</html>