Example #1
0
		<tr class="even">
			<th>Amenities</th>
			<td><?php 
echo $amenities;
?>
</td>
		</tr>
	</tbody>
</table>

<table id="yw0" class="detail-view">
	<tbody>
		<tr class="odd">
			<th>Average Rating</th>
			<td><?php 
echo ProjectRatingApi::getRating($model->id);
?>
</td>
		</tr>
	</tbody>
</table>
<?php 
Yii::import('ext.jqPrettyPhoto');
$options = array('slideshow' => 5000, 'autoplay_slideshow' => false, 'show_title' => false);
jqPrettyPhoto::addPretty('.gallery_prettyphoto a', jqPrettyPhoto::PRETTY_GALLERY, jqPrettyPhoto::THEME_FACEBOOK, $options);
jqPrettyPhoto::addPretty('.details_prettyphoto a', jqPrettyPhoto::PRETTY_SINGLE, jqPrettyPhoto::THEME_FACEBOOK, $options);
?>
<div class="gallery_prettyphoto">
<?php 
if ($images) {
    echo '<h2>Images</h2>';
Example #2
0
 public function actionStarRatingAjax($userid, $id)
 {
     $ratingAjax = isset($_POST['rate']) ? $_POST['rate'] : 0;
     ProjectRatingApi::addRating($userid, $id, $ratingAjax);
     echo 'Your Rating is ' . $ratingAjax;
 }
Example #3
0
    	<div id="property_search_results">
        	<h1 class="property_search_results_top">' . $projectsCount . ' Projects Found <span class="right"></span> </h1>
            <div id="project-results">';
    foreach ($projects as $project) {
        if (isset($images[$project->id])) {
            $image = $images[$project->id];
        }
        ?>
			<div class="post project" style="cursor:pointer;" onClick="location.href='<?php 
        echo Yii::app()->createAbsoluteUrl('/project/' . $project->id);
        ?>
'">
            <?php 
        echo '<div class="left">';
        echo '<img src="' . $image . '" width="124" alt="" />';
        echo '<br /><a href="/project/' . $project->id . '">Rate : ' . ProjectRatingApi::getRating($project->id) . '</a>';
        echo '</div>
                    <div class="right" style="width:533px;">
                    	<h1><a href="#">' . $project->project_name . '</a></h1>';
        if ($project->total_price) {
            echo '<h3>Price Rs. ' . $project->total_price . '</h3>';
        } else {
            echo '<h3> </h3>';
        }
        echo '<p>' . substr($project->description, 0, 150) . ' ...<a href="#">more</a></p>
                        <div class="left bedrooms"><span>Rs. ' . $project->per_unit_price . '/ </span> Sq.Ft | ' . OwnershipTypesApi::getOwnershipTypeById($project->ownership_type_id) . '</div>
                        <div class="right"><a href="' . Yii::app()->createUrl('/project/' . $project->id) . '" class="btn-view-details"></a> </div>
                    </div>
                    <br class="clear" />
                </div>';
    }