第二次提交
This commit is contained in:
68
template/pc/rainbow/article/listdd.html
Normal file
68
template/pc/rainbow/article/listdd.html
Normal file
@@ -0,0 +1,68 @@
|
||||
<head>
|
||||
<style>
|
||||
.shop-body {
|
||||
padding-top: 100px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.shop-body .img {
|
||||
float: left;
|
||||
margin-left: 260px;
|
||||
margin-top: -50px;
|
||||
}
|
||||
|
||||
.shop-body .title {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
margin-left: 500px;
|
||||
margin-top: -30px;
|
||||
height: 40px;
|
||||
width: 1050px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.shop-body .title_cha {
|
||||
float: right;
|
||||
height: 40px;
|
||||
width: 100px;
|
||||
margin-top: -25px;
|
||||
letter-spacing: 6px;
|
||||
}
|
||||
|
||||
.shop-body .content {
|
||||
margin-left: 500px;
|
||||
margin-top: 10px;
|
||||
width: 1050px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<include file="public/header"/>
|
||||
|
||||
<tpshop sql="select * from `__PREFIX__article_cat` where cat_id = 2 order by sort_order asc" key="k" item='v'>
|
||||
<dl>
|
||||
|
||||
<!--<dt>{$v[cat_name]}</dt>-->
|
||||
<tpshop sql="select * from `__PREFIX__article` where cat_id = $v[cat_id] and is_open=1 limit 5" key="k2"
|
||||
item='v2'>
|
||||
<!--<dd ><img src="{$v2[thumb]}"></dd>-->
|
||||
<div class="shop-body">
|
||||
<dd class="img"><img style="max-width:100%;max-height:100%;" src="{$v2[thumb]}"></dd>
|
||||
<dd class="title"><a href="{:U('Home/Article/detail',array('article_id'=>$v2[article_id]))}">{$v2[title]}</a>
|
||||
<dd class="title_cha">{$v2[keywords]}</dd>
|
||||
<dd class="content"><a href="{:U('Home/Article/detail',array('article_id'=>$v2[article_id]))}">{$v2[description]}</a>
|
||||
</dd>
|
||||
</div>
|
||||
</tpshop>
|
||||
|
||||
</dl>
|
||||
</tpshop>
|
||||
<include file="public/footer"/>
|
||||
|
||||
</body>
|
Reference in New Issue
Block a user