亲宝软件园·资讯

展开

rows style Views rows style模板重写代码

人气:0
想了解Views rows style模板重写代码的相关内容吗,在本文为您仔细讲解rows style的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:rows,style,下面大家一起来学习吧。

以下是代码例子。

复制代码 代码如下:

<?php
$nid = $row->nid;
$country = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_node.tid = term_data.tid WHERE term_data.vid = %d AND term_node.nid = %d', 1, $nid));
$investment = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_node.tid = term_data.tid WHERE term_data.vid = %d AND term_node.nid = %d', 2, $nid));
?>
<div class="article-l">
<?php echo $fields['title']->content ?>
<div class="left-content">
<?php echo $fields['body']->content ?>
</div>
</div>
<div class="article-r">
<div class="right-content">
<?php echo $fields['body_1']->content ?>
</div>
<div class="article-link">
<?php echo instanter_country_code($country) ?> <?php echo $fields['created']->content ?> <?php echo instanter_investment_code($investment) ?>
<?php echo $fields['view_node']->content ?>
</div>
</div>
<div class="clear-both"></div>

加载全部内容

相关教程
猜你喜欢
用户评论