本文整理汇总了PHP中CommonController::getListingsFolderPath方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonController::getListingsFolderPath方法的具体用法?PHP CommonController::getListingsFolderPath怎么用?PHP CommonController::getListingsFolderPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonController
的用法示例。
在下文中一共展示了CommonController::getListingsFolderPath方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ucFirst
<h1><?php
echo ucFirst($incoming . $statusLabel);
?>
Booking Request</h1><br />
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-body">
<?php
if (mysql_num_rows($resultBookingInfo)) {
while ($row = mysql_fetch_array($resultBookingInfo)) {
?>
<div class="listing-item">
<div class="item-pic">
<img src="<?php
echo $commonController->resize_image(!empty($row['logo']) ? $commonController->getListingsFolderPath($row['logo']) : 'images/common/no-listing-image.png', 210);
?>
" alt="<?php
echo $row['name'];
?>
" alt="" />
</div>
<div class="listing-info">
<div class="listing-info-blank">
<?php
echo stripslashes($row['message']);
?>
<br />
Status : <?php
echo $status[$row['status']];
?>
示例2:
}
?>
<label for="facility_type[]" class="error"></label>
</div>
<div class="clearfix"></div>
<br />
<div class="form-group">
<label>Logo</label>
<?php
if (!empty($data['image'])) {
?>
<div class="clear"></div>
<a class="fancybox" href="<?php
echo SITE_URL . (!empty($data['image']) ? $commonController->getListingsFolderPath($data['image']) : 'images/common/no-member-image.png');
?>
">
<img src="<?php
echo $commonController->resize_image($commonController->getListingsFolderPath($data['image']), 200);
?>
" alt="<?php
echo $data['name'];
?>
" />
</a>
<div class="clear"></div>
<?php
}
?>
示例3: while
if (mysql_num_rows($resultSearch)) {
$index = 0;
while ($row = mysql_fetch_assoc($resultSearch)) {
$mapResult[$index] = $row;
$mapResult[$index]['encoded_id'] = base64_encode($row['id']);
$dataDeal['select'] = 'd.name as deal_name, d.value as discount ';
$dataDeal['table'] = 'deals d';
$dataDeal['where'] = array('d.id = ' . $row['deals'], 'd.status = 1');
$dataDeal['limit'] = '0,1';
$resultDeal = $commonController->getTableData($dataDeal);
if (mysql_num_rows($resultDeal)) {
$rowDeal = mysql_fetch_array($resultDeal);
$mapResult[$index]['discount'] = $rowDeal['discount'];
$mapResult[$index]['deal_name'] = $rowDeal['deal_name'];
}
$mapResult[$index]['logo'] = $commonController->resize_image(!empty($row['logo']) ? $commonController->getListingsFolderPath($row['logo']) : 'images/common/no-listing-image.png', 200);
$dataAccommodation['table'] = 'accommodations a LEFT JOIN establishments_accommodations ea ON ea.accommodation_id = a.id';
$dataAccommodation['where'] = array('ea.establishment_id = ' . $row['id']);
$dataAccommodation['order'] = 'a.name ASC';
$resultAccommodation = $commonController->getTableData($dataAccommodation);
if (mysql_num_rows($resultAccommodation)) {
while ($rowAccommodation = mysql_fetch_array($resultAccommodation)) {
$accommodationName[] = $rowAccommodation['name'];
}
if (!empty($accommodationName)) {
$mapResult[$index]['accommodation'] = implode(", ", $accommodationName);
}
}
$roomsResult = $commonController->getTableData(array('select' => 'MIN(rate) as min_rate', 'table' => 'establishment_rooms', 'where' => array('establishment_id=' . $row['id'], 'status=1'), 'groupBy' => 'establishment_id'));
if (mysql_num_rows($roomsResult)) {
$rowRooms = mysql_fetch_array($roomsResult);
示例4:
?>
" class="share-ml"> </a></li>
</ul>
</div>
</div>
<div class="product-detail">
<div class="product-slider detail-tabs-content" id="photoGallery">
<?php
if (!empty($existingGallery) && count($existingGallery['path']) > 0) {
?>
<ul id="image-gallery" class="gallery list-unstyled cS-hidden">
<?php
for ($index = 0; $index < count($existingGallery['path']); $index++) {
?>
<li data-thumb="<?php
echo $commonController->resize_image($commonController->getListingsFolderPath($existingGallery['path'][$index]), 50);
?>
">
<img src="<?php
echo $commonController->resize_image($commonController->getListingsFolderPath($existingGallery['path'][$index]), 500);
?>
" />
</li>
<?php
}
?>
</ul>
<?php
}
?>
</div>