function display_static_by_price($estateprices, $o) { $CI =& get_instance(); $count = 0; foreach ($estateprices as $row) { if (count_static_by_price($o->estatetype->name_none, $o->estatedistrict->name_none, $row->url) >= 10) { $count++; } } return $count; }
unset($row); ?> </div> <?php } ?> <?php if (display_static_by_price($estatePrices, $o) > 0) { ?> <div class="boxnoibat"> <span class="title-top-box">Thống kê theo mức giá</span> <?php foreach ($estatePrices as $row) { ?> <?php if (count_static_by_price($o->estatetype->name_none, $o->estatedistrict->name_none, $row->url) >= 10) { ?> <div class="sreentinnoibat" style="width:312px; float:left; margin-bottom:3px;"> <div class="tinkhacnoibat"> <a style="height: auto;" href="<?php echo $base_url . 'thong-ke-theo-muc-gia/' . $o->estatetype->name_none . '/' . $o->estatedistrict->name_none . '/' . $row->url; ?> " title="<?php echo $o->title . ' ' . $row->label; ?> "> <p style="margin-left:10px; margin-top:9px; font-weight:normal;"><?php echo $o->estatetype->name . ' ' . $o->estatedistrict->name . ' ' . $row->label; ?> </p> </a>