本文整理汇总了PHP中zmf::starCss方法的典型用法代码示例。如果您正苦于以下问题:PHP zmf::starCss方法的具体用法?PHP zmf::starCss怎么用?PHP zmf::starCss使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类zmf
的用法示例。
在下文中一共展示了zmf::starCss方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
">
<div class="media-left">
<?php
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'uname' => $_uname, 'type' => 'a'));
?>
<br/>
<?php
echo CHtml::link($data['favor'], 'javascript:;', array('title' => '此点评对我有帮助', 'class' => 'btn btn-xs btn-' . ($_favored ? 'success' : 'default') . ' btn-block', 'action' => 'favor', 'action-data' => $data['id'], 'action-type' => $type, 'id' => 'favor-' . $type . '-' . $data['id']));
?>
</div>
<div class="media-body poi-tips-body">
<p class="title"><?php
if ($from == 'poipost') {
} else {
if ($data['poiTitle']) {
echo '<span class="pull-left">' . CHtml::link($data['poiTitle'], array('position/view', 'id' => $data['logid'])) . '</span>' . zmf::starCss($data['score']);
}
}
?>
</p>
<p class="author"><?php
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'uname' => $_uname, 'type' => 'l', 'lcss' => ''));
?>
</p>
<div class="content-detail hidden">
<?php
echo zmf::text(array(), $data['content']);
?>
</div>
<div class="content-substr">
<div class="toggle-area">
示例2:
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">
<div class="media poi-info">
<div class="media-body" style="width: 100%;">
<h1><?php
echo CHtml::decode($_title);
?>
</h1>
<p><?php
echo CHtml::decode($_address);
?>
</p>
<p><?php
echo zmf::starCss($info['score']);
?>
<span class="pull-right poi-btn"></span></p>
<div class="clearfix"></div>
<?php
if ($info['title_en'] != '' && $_titleEn) {
echo '<p><span class="color-bold">英文名:</span>' . CHtml::encode($info['title_en']) . '</p>';
}
?>
<?php
if ($info['title_local'] != '' && $_titleLocal) {
echo '<p><span class="color-bold">当地名:</span>' . CHtml::encode($info['title_local']) . '</p>';
}
?>
<?php
if ($info['address_en'] != '' && $_addEn) {
示例3: elseif
$_address = '';
if ($data['address_cn'] != '') {
$_address = $data['address_cn'];
} elseif ($data['address_en'] != '') {
$_address = $data['address_en'];
} else {
$_address = $data['address_local'];
}
$faceimg = Attachments::faceImg($data, 170);
$url = array('position/view', 'id' => $data['id']);
?>
<div class="media poi-list"><?php
$this->renderPartial('/common/_faceimg', array('img' => $faceimg, 'title' => $_title, 'id' => $data['id'], 'acss' => 'media-object lazy', 'lcss' => 'media-left', 'classify' => $data['classify'], 'width' => 170, 'url' => $url));
?>
<div class="media-body"><h4 class="media-heading"><?php
echo CHtml::link(CHtml::encode($_title), array('position/view', 'id' => $data['id']));
?>
</h4><p class="color-grey"><?php
echo $_secondTitle;
?>
</p><p class="color-grey"><?php
echo CHtml::encode($_address);
if ($data['lat'] && $data['long']) {
echo CHtml::link('(地图)', array('position/map', 'id' => $data['id']), array('title' => $_title . '的地图'));
}
?>
</p><p><?php
echo zmf::starCss($data['score']);
echo CHtml::link($data['scorer'] . ' 点评', array('position/view', 'id' => $data['id']), array('class' => 'poi-list-a')) . CHtml::link($data['attach'] . ' 图片', array('position/view', 'id' => $data['id']), array('class' => 'poi-list-a'));
?>
</p></div></div>