Ejemplo n.º 1
0
            break;
        case 'PRODUCT_LIST_NAME':
            $lc_text = 'Loại phòng';
            $lc_align = '';
            break;
        case 'PRODUCT_LIST_PRICE':
            $lc_text = 'Giá';
            $lc_align = 'center';
            break;
        case 'PRODUCT_LIST_BUY_NOW':
            $lc_text = 'Đặt phòng';
            $lc_align = 'center';
            break;
    }
    if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' && $column_list[$col] != 'PRODUCT_LIST_IMAGE') {
        $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col + 1, $lc_text);
    }
    $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' ');
}
//  echo "test   :".$room_number."dddddddddd". $listing2['1'] ;
if ($listing_split->number_of_rows > 0) {
    $rows = 0;
    $listing_query = tep_db_query($listing_split->sql_query);
    while ($listing = tep_db_fetch_array($listing_query)) {
        $rows++;
        $room_type_id = $listing['room_type_id'];
        //if(getroomtype($listing['room_type_id'],$listing2[$room_type_id])>=(int)$room_number){
        if (testAllDay($room_type_id, $room_number, $dayto, $daygo) == 1) {
            if ($rows / 2 == floor($rows / 2)) {
                $list_box_contents[] = array('params' => 'class="productListing-even"');
            } else {
Ejemplo n.º 2
0
             break;
         case 'PRODUCT_LIST_QUANTITY':
             $lc_text = TABLE_HEADING_QUANTITY;
             break;
         case 'PRODUCT_LIST_WEIGHT':
             $lc_text = TABLE_HEADING_WEIGHT;
             break;
         case 'PRODUCT_LIST_IMAGE':
             $lc_text = TABLE_HEADING_IMAGE;
             break;
         case 'PRODUCT_LIST_BUY_NOW':
             $lc_text = TABLE_HEADING_BUY_NOW;
             break;
     }
     if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' && $column_list[$col] != 'PRODUCT_LIST_IMAGE' && PRODUCT_LIST_ALLOW_SORT == 'true') {
         $sorting_text .= tep_create_sort_heading($sort_col . $sort_order, $col + 1, $lc_text);
     }
 }
 if (tep_not_null($sorting_text) && $show_filterlist_string == true) {
     echo '<div class="sortHeading">' . (tep_not_null($filterlist_authors_string) ? $filterlist_authors_string : '') . TEXT_SORT_PRODUCTS_SHORT . ' &nbsp; &nbsp; ' . $sorting_text . ($sort_col > 0 ? '<a href="#" onmouseover="this.href=\'' . tep_href_link(PHP_SELF, tep_get_all_get_params(array('page', 'info', 'sort')) . 'sort=') . '\';" title="' . TEXT_RESET_SORTING_TEXT . '">' . TEXT_RESET_SORTING . '</a>' : '');
     echo '<div style="padding-top: 4px;">' . TEXT_FILTER_PRODUCTS_SHORT . ' &nbsp; &nbsp; ';
     $specials_types_query = tep_db_query("select specials_types_name, specials_types_path from " . TABLE_SPECIALS_TYPES . " where specials_types_id in ('" . implode("', '", $active_specials_types_array) . "') and specials_types_path in ('new', 'sales', 'bestsellers') and language_id = '" . (int) DEFAULT_LANGUAGE_ID . "' order by sort_order limit 3");
     while ($specials_types = tep_db_fetch_array($specials_types_query)) {
         echo '<a href="#" onmouseover="this.href=\'' . tep_href_link(PHP_SELF, tep_get_all_get_params(array('page', 'info', 'view')) . 'view=' . $specials_types['specials_types_path']) . '\';"' . ($HTTP_GET_VARS['view'] == $specials_types['specials_types_path'] ? ' class="active"' : '') . '>' . $specials_types['specials_types_name'] . '</a>';
     }
     if (tep_not_null($HTTP_GET_VARS['view'])) {
         echo '<a href="' . tep_href_link(PHP_SELF, tep_get_all_get_params(array('page', 'info', 'view'))) . '">' . TEXT_FILTER_PRODUCTS_RESET . '</a>';
     }
     echo '</div>' . "\n";
     echo '</div>' . "\n";
 }
Ejemplo n.º 3
0
                break;
            case 'PRODUCT_LIST_WEIGHT':
                $lc_text = OSCOM::getDef('table_heading_weight');
                break;
            case 'PRODUCT_LIST_IMAGE':
                $lc_text = OSCOM::getDef('table_heading_image');
                break;
            case 'PRODUCT_LIST_BUY_NOW':
                $lc_text = OSCOM::getDef('table_heading_buy_now');
                break;
            case 'PRODUCT_LIST_ID':
                $lc_text = OSCOM::getDef('table_heading_latest_added');
                break;
        }
        if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' && $column_list[$col] != 'PRODUCT_LIST_IMAGE') {
            $lc_text = tep_create_sort_heading($_GET['sort'], $col + 1, $lc_text);
            echo '        <li>' . $lc_text . '</li>';
        }
    }
    ?>
        </ul>
      </div>

    <?php 
    if (defined('MODULE_HEADER_TAGS_GRID_LIST_VIEW_STATUS') && MODULE_HEADER_TAGS_GRID_LIST_VIEW_STATUS == 'True' && strpos(MODULE_HEADER_TAGS_GRID_LIST_VIEW_PAGES, basename($PHP_SELF)) !== false) {
        ?>
      <strong><?php 
        echo OSCOM::getDef('text_view');
        ?>
</strong>
      <div class="btn-group">
                        echo $column_list . $column_class;
                        ?>
" <?php 
                        if ($display_class == 'list') {
                            ?>
style="width:<?php 
                            echo $column_width;
                            ?>
%;"<?php 
                        }
                        ?>
>
						<div class="column_inner">
						<?php 
                        if ($list_config['configuration_key'] != 'PRODUCT_' . $listtype . '_IMAGE' && $list_config['configuration_key'] != 'PRODUCT_' . $listtype . '_BUY_NOW' && $list_config['configuration_key'] != 'PRODUCT_' . $listtype . '_COMPARE' && PRODUCT_LIST_HEADING != 'static' && $listing_type != 'specials_listing' && $listing_type != 'products_new_listing' && $listing_type != 'search_results') {
                            echo tep_create_sort_heading($_GET['sort'], $column_list, $lc_text);
                        } elseif ($list_config['configuration_key'] == 'PRODUCT_LIST_COMPARE' && PRODUCT_COMPARE_HEADING_LINK == 'true' && PRODUCT_COMPARE == 'true') {
                            $category_info_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int) $compare_category . "' and language_id = '" . (int) $languages_id . "'");
                            $category_info = tep_db_fetch_array($category_info_query);
                            $compare_category = end(explode('_', $_GET['cPath']));
                            ?>
                                <span class="static"><a href="<?php 
                            echo tep_href_link(FILENAME_COMPARE_PRINT, 'cc=' . $compare_category);
                            ?>
" <?php 
                            if (PRODUCT_COMPARE_VIEW == 'popup') {
                                ?>
onClick="window.open('<?php 
                                echo tep_href_link(FILENAME_COMPARE_PRINT, 'cc=' . $compare_category, 'NONSSL');
                                ?>
', '<?php