Производители и продавци

#
Производители и продавци

          <!-- Бренды /-->
                                 <?php
                                        $shop = new shop();
                                        $xsl_name = 'МагазинСписокПроизводителей';
                                        $param = array();
                                        $param['shop_id'] = 1;
                                        $shop->ShowProducersList($xsl_name, $param);
                                  ?>


Parse error: syntax error, unexpected T_VARIABLE in /home/templates/template1/template.htm on line 173


Где я дал маху?
И второй вопрос как заставить работать также продавцов
Skype:ferdinant1988 ICQ:311960596 E-mail: ferdinant@i.ua
#
Re: Производители и продавци
ferdinant писал(а):
Где я дал маху?
- приведите код вашего макета(с идентификатором 1) полностью.
ferdinant писал(а):
как заставить работать также продавцов
- что значит "так же"? См. метод ShowSaller
#
Re: Производители и продавци
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><!-- InstanceBegin template="/Templates/eng_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>

   <title><?php $kernel->show_title()?></title>
   <meta name="description" content="<?php $kernel->show_description()?>"></meta>
   <meta name="keywords" content="<?php $kernel->show_keywords()?>"></meta>
   <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
   <meta content="text/html; charset=<?php echo SITE_CODING?>" http-equiv="Content-Type"></meta>
   <?php $kernel->show_CSS()?>

   <link rel="stylesheet" type="text/css" href="/hostcmsfiles/style.css" />
   <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/news/rss/" />

   <!-- jQuery -->
   <script type="text/javascript" src="/hostcmsfiles/jquery/jquery.js"></script>
   <!-- validate -->
   <script type="text/javascript" src="/hostcmsfiles/jquery/jquery.validate.js"></script>
   <!-- LightBox -->
   <script type="text/javascript" src="/hostcmsfiles/jquery/lightbox/js/jquery.lightbox.js"></script>
   <link rel="stylesheet" type="text/css" href="/hostcmsfiles/jquery/lightbox/css/jquery.lightbox.css" media="screen" />
   
   <script type="text/javascript" src="/templates/template1/hostcms.js"></script>
   <script type="text/javascript" src="/hostcmsfiles/ajax/JsHttpRequest.js"></script>
   <script type="text/javascript" src="/hostcmsfiles/ajax/ajax.js"></script>
   <script type="text/javascript" src="/hostcmsfiles/main.js"></script>


   <script type="text/javascript">
   $(function() {
      $('#gallery a:has(img)').lightBox();

      //Предварительная загрузка изображений
      $.preLoadImages("/images/red_grad.gif",
            "/images/top_menu_l.gif",
            "/images/top_menu_r.gif");
   });
   </script>
<script type="text/javascript" src="http://www.eurekakids.net/js/jquery.ulslide.js"></script>
<!-- -->
<script src="/hostcmsfiles/jquery/menu.js" type="text/javascript"></script>
<script type="text/javascript" src="http://www.eurekakids.net/js/ajax_search_valid.jgz"></script>
<script type="text/javascript" src="http://www.eurekakids.net/js/validar_newslater.js"></script>
<script type="text/javascript" src="http://www.eurekakids.net/js/capa_captacio.jgz"></script>
<script type="text/javascript" src="http://www.eurekakids.net/js/listado_descrip.js"></script>
<script type="text/javascript">
function dspsubmenu_izq(nro)
{
   document.getElementById("submenuizq"+nro).style.display="block";
}
function dspnosubmenu_izq(nro)
{
   document.getElementById("submenuizq"+nro).style.display="none";   
}
</script>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
.vhcenter { display: table-cell;  text-align: center;  vertical-align: middle;  width:170px;  height: 140px }
.vhcenter * { vertical-align: middle; }
/* IE/Mac \*//*/
.vhcenter { display: block; line-height: 0.6; }
.vhcenter span { display: inline-block;  height: 100%; width: 1px; }
/*El siguiente código sólo se ejecutará en caso de que sea el navegador Internet Explorer*/
</style>
   <style type="text/css">      #emailLeadLayer #submitButton2 {background: url("http://imagenes.eurekakids.net/imagenes/capa_captacio/bot_eng.gif") no-repeat scroll 0 0 transparent;cursor: pointer;display: block;float: left;height: 47px; margin-top: 210px; position: relative; width: 162px;}      #emailLeadLayer #submitButton2:hover {background: url("http://imagenes.eurekakids.net/imagenes/capa_captacio/bot_eng_hover.gif") no-repeat scroll 0 0 transparent;}   </style>
<!--[if IE]>
<style> .vhcenter span { display: inline-block;  height: 100%; } </style>
<![endif]-->
<script type="text/javascript">
   $(function() {
      $('#slide1').ulslide({
         statusbar: true,
         width: 738,
         height: 253,
         //nextButton: '#slide1_next',
         //prevButton: '#slide1_prev',
         effect: {
            type: 'slide', // slide or fade
            axis: 'x',     // x, y
            distance: 1   // Distance between frames
         },
         //mousewheel: true,
         pager: '#slide1-pager a',
         duration: 500,
         autoslide: 3000//se edita desde start
      });
   });
</script>
<!-- InstanceEndEditable -->

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-140240-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</head>

<body >
<div id="contenedor">

   <div id="head">
      <?php
         $Structure = & singleton('Structure');
         $Structure->ShowStructure(1, 'ВерхнееМенюМарф');
      ?>

      <!-- Логотип -->
         <h1><a href="/" title="Toy Eurekakids"><img src="http://imagenes.eurekakids.net/imagenes/juguete_eng.gif" alt="Toy Eurekakids" width="264" height="72" /></a></h1>
      <!--Логотип конец-->

   <!-- Краткая корзина -->
   <?php
   if (class_exists('shop'))
   {
      $shop = & singleton('shop');
      // Идентификатор магазина
      $shop_id = 1;
      $shop->ShowCart($shop_id, false, "МагазинКорзинаКраткаяМарф");
   }
   ?>
          <!-- Меню каталога /-->
                                 <?php
                                       $shop = new shop();
                                       $ShopId = 1;
                                       $rez = array();
                                       $rez = $shop->GetItemPath($ShopId);
                                       $external_propertys = array();
                                       $external_propertys['ТекущаяГруппа'] = $rez['group'];
                                       $param = array();
                                       $param['current_group_id'] = 0;
                                       $param['items_on_page'] = 20;
                                       $param['xml_show_group_type'] = 'all';
                                       $xsl_catalog = 'МагазинГруппыТоваровМарф';
                                       $shop->ShowShop($ShopId, $xsl_catalog, $param, $external_propertys);
                                  ?>

      <!--<div id="solapa_aniversario">
         <ul>
            <li class="aniversariosel">
               <a href="/?action=seguimiento_listas&amp;idioma=eng&universo=juguete" title="Birth list"><span>Birth list</span></a>
            </li>
         </ul>
      </div>   -->         
      <div id="buscador">
      <?php
         $Structure = & singleton('Structure');
         $Structure->ShowStructure(2, 'ВерхнееМенюМарф2');
      ?>
         <form method="get" action="/search/" onsubmit="return sendForm();">   
            <div>
            <p>
               <input type="text" name="text" id="buscar" value="<?php echo isset($_GET['text']) ? htmlspecialchars($_GET['text']) : '' ?>" onkeyup="waitToSuggest('eng','toy','juguete', this);" />
               <input class="eureka" type="submit" value="Поиск"/>
               <div id="search_suggest" class=""></div>
            </p>
            </div>
         </form>
      </div>
   </div>
   <div id="cuerpo">

          <!-- Меню каталога /-->
                                 <?php
                                       $shop = new shop();
                                       $ShopId = 1;
                                       $rez = array();
                                       $rez = $shop->GetItemPath($ShopId);
                                       $external_propertys = array();
                                       $external_propertys['ТекущаяГруппа'] = $rez['group'];
                                       $param = array();
                                       $param['current_group_id'] = 0;
                                       $param['items_on_page'] = 20;
                                       $param['xml_show_group_type'] = 'all';
                                       $xsl_catalog = 'МагазинГруппыТоваровМарф2';
                                       $shop->ShowShop($ShopId, $xsl_catalog, $param, $external_propertys);
                                  ?>
      <!-- InstanceBeginEditable name="cuerpo" -->

<!-- Вызов шаблона для текущей страницы -->
<?php  
$kernel->show_current_template();
?>             

<!-- InstanceEndEditable -->
</div>
   <div id="footer">
      <div>


      <!--<ul>
         <li class="enlaces">
            <p>Quick links</p>
            <ul>
               <li><a href="/?action=seguimiento_pedidos&amp;idioma=eng&universo=juguete" title="Order Tracking">My account</a></li>
               <li><a href="/?action=envio_pedidos&amp;idioma=eng&universo=juguete" title="Shipping and Delivery">Shipping and Delivery</a></li>
               <li><a href="/?action=privacidad_seguridad&amp;idioma=eng&universo=juguete" title="Confidentiality and security">Confidentiality and security</a></li>
               <li><a href="/?action=formas_pago&amp;idioma=eng&universo=juguete" title="Payments">Payments</a></li>
               <li><a href="/?action=politica_devoluciones&amp;idioma=eng&universo=juguete" title="Returns">Returns</a></li>
            </ul>
         </li>
         <li class="sobre">
            <p><a href="/?action=sobre_eureka&amp;idioma=eng&universo=juguete" title="Sobre Eureka KIds">About Eureka Kids</a></p>
            <ul>
               <li><a href="/?action=conocenos&amp;idioma=eng&universo=juguete" title="Who are we?">Who are we?</a></li>
               <li><a href="/?action=nuestro_compromiso&amp;idioma=eng&universo=juguete" title="Our Promise">Our Promise</a></li>
               <li><a href="/?action=personas&amp;idioma=eng&universo=juguete" title="Our Team">Our Team</a></li>
            </ul>
         </li>
         <li class="garantias">
            <p><a href="/?action=nuestras_garantias&amp;idioma=eng&universo=juguete" title="Our guaranty">Our guaranty</a></p>
            <ul>
               <li><a href="/?action=politica_devoluciones&amp;idioma=eng&universo=juguete" title="Return policy">Return policy</a></li>
               <li><a href="/?action=envio_pedidos&amp;idioma=eng&universo=juguete" title="Order shipment">Order shipment</a></li>
               <li><a href="/?action=formas_pago&amp;idioma=eng&universo=juguete" title="Payment Methods">Payment Methods</a></li>
               <li><a href="/?action=privacidad_seguridad&amp;idioma=eng&universo=juguete" title="Security">Security</a></li>
            </ul>
         </li>
         <li class="atencion">
            <p><a href="/?action=atencion_cliente&amp;idioma=eng&universo=juguete" title="Customer Service">Customer Service</a></p>
            <ul>
               <li><a href="/?action=contacto&amp;idioma=eng&universo=juguete" title="Contact us">Contact us</a></li>
               <li><a href="/?action=reclamaciones&amp;idioma=eng&universo=juguete" title="Reclamations">Reclamations</a></li>
               <li><a href="/?action=nuestras_tiendas&amp;idioma=eng&universo=juguete" title="Our stores">Our stores</a></li>
            </ul>
         </li>
      </ul> --><div class="apuntate">

         <!--<p>
            Would you like to receive information about our promotions and new products?
         </p>
         <form method="get" action="/" id="newslater0" >         
         <input name="mail" id="mailn0" value="Your e-mail" type="text" onclick="borrarm1('mailn0');"/>
         <input class="siquiero" value="Sign me up!" type="button" onMouseDown="validarEmail('mailn0','newslater0','eng');" />
         <input name="action" type="hidden" value="add_newsletter" />
         <input type="hidden" name="idioma" value="eng" />         
         <input type="hidden" name="universo" value="juguete" />         
         </form>   -->      
      </div>
      </div>
      
   </div>
   <div id="subfooter">
      
      <div>
         <p class="copyright">
            Cидельников О.В. <br/>
      <?php
         $Structure = & singleton('Structure');
         $Structure->ShowStructure(1, 'НижнееМенюМакет12');
      ?>
         </p>
      </div>
   </div>
</div>
<div id="tracking"></div>
</body>
<!-- InstanceEnd --></html>
<!-- Cached 15th February 2012 21:24 -->
Skype:ferdinant1988 ICQ:311960596 E-mail: ferdinant@i.ua
#
Re: Производители и продавци
Забыл код с первого топика после <div id="cuerpo">
Skype:ferdinant1988 ICQ:311960596 E-mail: ferdinant@i.ua
#
Re: Производители и продавци
Как отсортировать продавцов в нужном мне порядке?
Skype:ferdinant1988 ICQ:311960596 E-mail: ferdinant@i.ua
#
Re: Производители и продавци
ferdinant, в коде ошибок нет. У вас по-прежнему возникает "Parse error: syntax error..."?ferdinant писал(а):
Как отсортировать продавцов в нужном мне порядке?
- смотря как вы их выводите.
#
Re: Производители и продавци
Первая проблема решена. Не знаю почему но через хром сохранялось и выводилась такая ошибка. Открыл применил в опере и все завелось. Спасибо. Вывод продавцов сделал через ShowShop
Skype:ferdinant1988 ICQ:311960596 E-mail: ferdinant@i.ua
#
Re: Производители и продавци
ferdinant писал(а):
Вывод продавцов сделал через ShowShop
- тогда только средствами XSLT можете отсортировать.
Авторизация