コード例 #1
0
ファイル: index.php プロジェクト: abdouh/pets
            <div class="row" style="margin:0 0 16px 0;">
                <ul class="breadcrumbs">
                    <?php 
if ($settings['pet_id'] > 0 || $settings['cat_id'] > 0) {
    echo '<li><a href="' . READ_ONLY . '">الرئيسية</a></li>';
    if ($settings['type'] > 0) {
        $list = Lists::ads_types();
        $cat1 = $settings['type'] == '5' ? '' : ads::get_cat_name($settings['cat_id']);
        $cat2 = $settings['type'] == '5' ? ads::get_cat_name($settings['cat_id']) : '';
        echo "<li>{$cat1} " . $list[$settings['type'] - 1]['text'] . " {$cat2}</li>";
    }
    if ($settings['pet_id'] < 351 && $settings['pet_id'] > 0) {
        if ($settings['type'] != 5) {
            echo '<li>' . ads::get_pet_name($settings['pet_id']) . '</li>';
        } else {
            $list = Lists::ads_pets($settings['cat_id'], $settings['type']);
            echo '<li>' . $list[$settings['pet_id'] - 1]['text'] . '</li>';
        }
    } else {
        if ($settings['cat_id'] > 2) {
            echo '<li>' . ads::get_cat_name($settings['cat_id']) . '</li>';
        }
    }
} else {
    if ($search > 0) {
        echo '<li><a href="' . READ_ONLY . '">الرئيسية</a></li>';
        if ($search == 2) {
            echo '<li><a href="' . READ_ONLY . '/?search_for=2">العيادات</a></li>';
        } else {
            echo '<li><a href="' . READ_ONLY . '/?search_for=1">الاعلانات</a></li>';
        }
コード例 #2
0
ファイル: view_ad.php プロジェクト: abdouh/pets
        echo READ_ONLY;
        ?>
/?pt=<?php 
        echo $ad['pet_id'];
        ?>
&ty=<?php 
        echo $ad['type'];
        ?>
&c=<?php 
        echo $ad['cat_id'];
        ?>
"><?php 
        if ($ad['type'] != 5) {
            echo ads::get_pet_name($ad['pet_id']);
        } else {
            $list = Lists::ads_pets($ad['cat_id'], $ad['type']);
            echo $list[$ad['pet_id'] - 1]['text'];
        }
        ?>
</a></li>
                        <?php 
    } else {
        ?>
                            <li><a href="<?php 
        echo READ_ONLY;
        ?>
/?c=<?php 
        echo $ad['cat_id'];
        ?>
"><?php 
        echo ads::get_cat_name($ad['cat_id']);