" class="appartment_item ">
    <div class="offer">
        <div align="left" class="offer-photo">
            <div style="position: relative;">
                <div class="apartment_count_img"><img src="<?php 
    echo Yii::app()->baseUrl;
    ?>
/images/photo_count.png"><b><?php 
    if (isset($countImagesArr[$lastEstateObject->id])) {
        echo $countImagesArr[$lastEstateObject->id];
    }
    ?>
</b></div>

                <div class="apartment_type"><?php 
    echo Apartment::getNameByType($lastEstateObject->type);
    ?>
</div>

                <?php 
    $res = Images::getMainThumb(150, 100, $lastEstateObject->images);
    $img = CHtml::image($res['thumbUrl'], $item->getStrByLang('title'), array('title' => $lastEstateObject->getStrByLang('title'), 'class' => 'apartment_type_img'));
    echo CHtml::link($img, $lastEstateObject->getUrl(), array('title' => $lastEstateObject->getStrByLang('title')));
    ?>
            </div>
        </div>
        <div class="offer-text">
            <div class="apartment-title">
                <?php 
    $title = CHtml::encode($lastEstateObject->getStrByLang('title'));
    if ($lastEstateObject->rating && !isset($booking)) {
				<?php 
    if (array_key_exists($item->id, $countImagesArr) && $countImagesArr[$item->id] > 1) {
        ?>
					<div class="apartment_count_img"><img src="<?php 
        echo Yii::app()->baseUrl;
        ?>
/images/photo_count.png"><b><?php 
        echo $countImagesArr[$item->id];
        ?>
</b></div>
				<?php 
    }
    ?>

				<div class="apartment_type"><?php 
    echo Apartment::getNameByType($item->type);
    ?>
</div>

				<?php 
    $res = Images::getMainThumb(150, 100, $item->images);
    $img = CHtml::image($res['thumbUrl'], $item->getStrByLang('title'), array('title' => $item->getStrByLang('title'), 'class' => 'apartment_type_img'));
    echo CHtml::link($img, $item->getUrl(), array('title' => $item->getStrByLang('title')));
    ?>

                </div>
			</div>
			<div class="offer-text">
				<div class="apartment-title">
						<?php 
    $title = CHtml::encode($item->getStrByLang('title'));
Beispiel #3
0
}
?>

<div>
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td width="320px" valign="top">
				<?php 
$res = Images::getMainThumb(300, 200, $model->images);
echo CHtml::image($res['thumbUrl'], $model->getStrByLang('title'), array('title' => $model->getStrByLang('title')));
?>
			</td>
			<td valign="top">
				<?php 
echo '<div>';
echo '<strong>' . tt('Type', 'apartments') . '</strong>: ' . Apartment::getNameByType($model->type);
echo '</div>';
?>
				<?php 
if (param('useShowUserInfo')) {
    if (issetModule('tariffPlans') && issetModule('paidservices')) {
        if (!Yii::app()->user->isGuest && TariffPlans::checkAllowShowPhone()) {
            echo '<div>';
            echo '<strong>' . tt('Owner phone', 'apartments') . '</strong>: <img src="' . Yii::app()->controller->createUrl('/apartments/main/generatephone', array('id' => $model->id, 'width' => 180)) . '" style="vertical-align: text-top;"/>';
            echo '</div>';
        }
    } elseif (isset($model->user->phone) && $model->user->phone) {
        echo '<div>';
        echo '<strong>' . tt('Owner phone', 'apartments') . '</strong>: <img src="' . Yii::app()->controller->createUrl('/apartments/main/generatephone', array('id' => $model->id, 'width' => 180)) . '" style="vertical-align: text-top;"/>';
        echo '</div>';
    }
Beispiel #4
0
<div class="gmap-marker">
	<div align="center" class="gmap-marker-adlink">
		<?php 
echo CHtml::link('<strong>' . tt('ID', 'apartments') . ': ' . $model->id . '</strong>, ' . Apartment::getNameByType($model->type) . ', ' . CHtml::encode($model->getStrByLang('title')), $model->getUrl());
?>
	</div>
	<?php 
$res = Images::getMainThumb(150, 100, $model->images);
?>
				<div align="center" class="gmap-marker-img">
					<?php 
echo CHtml::image($res['thumbUrl'], $model->getStrByLang('title'), array('title' => $model->getStrByLang('title')));
?>
				</div>
			<?php 
?>
	<div align="center" class="gmap-marker-adress">
		<?php 
echo CHtml::encode($model->getStrByLang('address'));
?>
	</div>
</div>
<?php 
if (is_array($ads) && count($ads) > 0) {
    $i = 0;
    foreach ($ads as $item) {
        if ($i == 4) {
            return;
        }
        echo '<div class="similarhr-ads-adv">';
        echo '<a href="#card-object" role="button" data-toggle="modal" class="image">';
        $res = Images::getMainThumb(297, 198, $item->images);
        echo CHtml::image($res['thumbUrl'], '', array('title' => $item->{'title_' . Yii::app()->language}, 'width' => 297, 'height' => 198));
        echo '<span>' . Apartment::getNameByType($item->type) . ' ' . $item->bt_getPriceMod() . '</span></a>';
        echo '<div class="similarhr-ads-desc">
                   		 <a href="#card-object" role="button" data-toggle="modal">' . truncateText(CHtml::encode($item->getStrByLang('title')), 6) . '</a>
                   			 <ul>
                        		<li>м. Савёловская</li>
                        		<li>ул. Раздельная, д.12</li>
                   			 </ul>
                	</div>
           ';
        echo '</div>';
        $i++;
    }
}
?>

Beispiel #6
0
				</div>
				<?php 
}
?>

        <?php 
if (param('useShowUserInfo')) {
    echo '<div class="apartment-user-info' . ($data->is_special_offer ? ' top50' : '') . '">';
    $this->widget('zii.widgets.jui.CJuiTabs', array('tabs' => array(tc('Listing provided by') => $this->renderPartial('//../modules/apartments/views/_user_info', array('data' => $data), true)), 'htmlOptions' => array('class' => 'info-tabs')));
    echo '</div>';
}
?>

		<div class="viewapartment-main-photo">
			<div class="apartment_type"><?php 
echo Apartment::getNameByType($data->type);
?>
</div>
			<?php 
$img = null;
$res = Images::getMainThumb(300, 200, $data->images);
$img = CHtml::image($res['thumbUrl'], $res['comment']);
if ($res['link']) {
    echo CHtml::link($img, $res['link'], array('rel' => 'prettyPhoto[img-gallery]', 'title' => $res['comment']));
} else {
    echo $img;
}
if (isFree()) {
    $var01 = 5;
    $var1 = User::model()->randomStringNonNumeric(3);
    $var2 = User::model()->randomStringNonNumeric(4);
Beispiel #7
0
  
  
  	<div class="priceblock">
  	<div class="price">
			<?php 
if ($model->is_price_poa) {
    echo tt('is_price_poa', 'apartments');
} else {
    echo $model->ObjgetPrettyPrice();
}
?>
	</div>
    
    <div class="name">
			<?php 
echo Apartment::getNameByType($model->type) . ',&nbsp;';
echo utf8_ucfirst($model->objType->name);
if ($model->num_of_rooms) {
    echo ',&nbsp;';
    echo Yii::t('module_apartments', '{n} bedroom|{n} bedrooms|{n} bedrooms', array($model->num_of_rooms));
}
if (issetModule('location') && param('useLocation', 1)) {
    echo ' ';
    if ($model->locCountry || $model->locRegion || $model->locCity) {
        echo " ";
    }
    if ($model->locCountry) {
        echo $model->locCountry->getStrByLang('name');
    }
    if ($model->locRegion) {
        if ($model->locCountry) {