#1 (permalink)  
Alt 08.12.2008, 20:52
Benutzer
 
Registriert seit: 21.11.2008
Beiträge: 56
Standard templates liegen "übereinander"

Hallo,
ich habe eine spezielle Suchabfrage in das Skript advanced_search_result.php eingefügt.
Als Ergebnis erhalte ich eine Seite, die mir zwar die gewünschten Suchergebnisse liefert, aber einige div-container sind doppelt teilweise dreifach (header, navigation, button_container, sidebar_box und copyright).

Die Variablen werden über ein Formular mit method=post ohne target an dieses Skript übergeben:
PHP-Code:
<?php
/* -----------------------------------------------------------------------------------------
   $Id: advanced_search_result.php 1141 2005-08-10 11:31:36Z novalis $   

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2005 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on: 
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(advanced_search_result.php,v 1.68 2003/05/14); www.oscommerce.com 
   (c) 2003     nextcommerce (advanced_search_result.php,v 1.17 2003/08/21); www.nextcommerce.org

   Released under the GNU General Public License 
   ---------------------------------------------------------------------------------------*/

include_once ('includes/application_top.php');
// create smarty elements
$smarty = new Smarty;
// include boxes
require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
// include needed functions
require_once (DIR_FS_INC.'xtc_parse_search_string.inc.php');
require_once (
DIR_FS_INC.'xtc_get_subcategories.inc.php');
require_once (
DIR_FS_INC.'xtc_get_currencies_values.inc.php');

/*
 * check search entry
 */

$error 0// reset error flag to false
$errorno 0;
$keyerror 0;





$select_str "SELECT distinct
                      Unterabfrage.*,

                      p.products_id,
                      p.products_price,
                      p.products_model,
                      p.products_quantity,
                      p.products_shippingtime,
                      p.products_fsk18,
                      p.products_image,
                      p.products_weight,
                      p.products_tax_class_id,
                      pd.products_name,
                      pd.products_short_description,
                      pd.products_description

FROM (
   SELECT products_gewinde.products_id, p.products_status, pd.language_id
   FROM products_gewinde, products_modelle_gewinde, products AS p , products_description AS pd


                          WHERE products_modelle_gewinde.Modell = '
$Modell'
                          AND products_gewinde.AA >= products_modelle_gewinde.A
                          AND products_gewinde.BB >= products_modelle_gewinde.B
                          AND products_gewinde.CC >= products_modelle_gewinde.C
                          AND products_gewinde.DD <= products_modelle_gewinde.D
) as Unterabfrage
INNER JOIN products AS p
ON    Unterabfrage.products_id=p.products_id
LEFT JOIN products_description AS pd ON (p.products_id = pd.products_id)"
;



 
$where_str " WHERE p.products_status = '1' "." AND pd.language_id = '".(int) $_SESSION['languages_id']."'";


    
//glue together
    
$listing_sql $select_str.$where_str;


    require (
DIR_WS_MODULES.FILENAME_PRODUCT_LISTING);
    
$smarty->assign('language'$_SESSION['language']);
$smarty->caching 0;
if (!
defined(RM))

$smarty->load_filter('output''note');
$smarty->display(CURRENT_TEMPLATE.'/index.html');
include (
'includes/application_bottom.php');

?>
Muss ich einen bestimmten Frame ansprechen?
Vielen Dank für die Hilfe im voraus. Bin Anfänger in Sachen XT.
MfG
Ines Hoppe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 08.12.2008, 21:07
Erfahrener Benutzer
 
Registriert seit: 08.03.2005
Ort: Mußtopp
Beiträge: 638
Standard

Es könnte ein fehlerhaftes product_listing.html sein in templates/dein_template/module/product_listing/. Vielleicht aber auch ne unsauber erstellte main_content.html in templates/dein_template/module/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
liegen, templates, übereinander

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
3.0.4 SP2.1 Templates downloaden VolkerTF Installation und Konfiguration 2 01.04.2007 15:44
Frage: Templates f?r 3.04 namor82 Template System 6 30.06.2006 10:06
xt:commerce KOMMPLETTE TEMPLATES ERSTELLEN & MEHR chaosnetz Modul Entwicklung 11 25.04.2006 15:38


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:50 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand