Exemplo n.º 1
0
function display_static_by_area($estateareas, $o)
{
    $CI =& get_instance();
    $count = 0;
    foreach ($estateareas as $row) {
        if (count_static_by_area($o->estatetype->name_none, $o->estatedistrict->name_none, $row->url) >= 10) {
            $count++;
        }
    }
    return $count;
}
Exemplo n.º 2
0
                <div class="timkiembds2">
                    <input type="submit" value=""/>
                </div>
            </form>
        </div>
    </div>
    <?php 
if (display_static_by_area($this->estateareas, $o) > 0) {
    ?>
    <div class="boxnoibat">
        <span class="title-top-box">Thống kê theo diện tích</span>
        <?php 
    foreach ($this->estateareas as $row) {
        ?>
            <?php 
        if (count_static_by_area($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-dien-tich/' . $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>