PageRenderTime 32ms CodeModel.GetById 2ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/themes/default/goods.dwt

https://bitbucket.org/luxi78/fengyu
Unknown | 639 lines | 606 code | 33 blank | 0 comment | 0 complexity | 064328d322ee7848d33e2a8dc26e1ef9 MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2<html xmlns="http://www.w3.org/1999/xhtml">
  3<head>
  4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5<meta name="Keywords" content="{$keywords}" />
  6<meta name="Description" content="{$description}" />
  7<!-- TemplateBeginEditable name="doctitle" -->
  8<title>{$page_title}</title>
  9<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
 10<link rel="shortcut icon" href="favicon.ico" />
 11<link rel="icon" href="animated_favicon.gif" type="image/gif" />
 12<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
 13{* ?????? *}
 14{insert_scripts files='common.js'}
 15<script type="text/javascript">
 16function $(element) {
 17  return document.getElementById(element);
 18}
 19//??--????_v??????_h????
 20function reg(str){
 21  var bt=$(str+"_b").getElementsByTagName("h2");
 22  for(var i=0;i<bt.length;i++){
 23    bt[i].subj=str;
 24    bt[i].pai=i;
 25    bt[i].style.cursor="pointer";
 26    bt[i].onclick=function(){
 27      $(this.subj+"_v").innerHTML=$(this.subj+"_h").getElementsByTagName("blockquote")[this.pai].innerHTML;
 28      for(var j=0;j<$(this.subj+"_b").getElementsByTagName("h2").length;j++){
 29        var _bt=$(this.subj+"_b").getElementsByTagName("h2")[j];
 30        var ison=j==this.pai;
 31        _bt.className=(ison?"":"h2bg");
 32      }
 33    }
 34  }
 35  $(str+"_h").className="none";
 36  $(str+"_v").innerHTML=$(str+"_h").getElementsByTagName("blockquote")[0].innerHTML;
 37}
 38
 39</script>
 40</head>
 41<body>
 42<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
 43<!--???? start-->
 44<div class="block box">
 45 <div id="ur_here">
 46  <!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
 47 </div>
 48</div>
 49<!--???? end-->
 50<div class="blank"></div>
 51<div class="block clearfix">
 52  <!--left start-->
 53  <div class="AreaL">
 54    <!-- TemplateBeginEditable name="????" -->
 55<!-- #BeginLibraryItem "/library/cart.lbi" -->
 56
 57{insert_scripts files='transport.js'}
 58<div class="cart" id="ECS_CARTINFO">
 59 {insert name='cart_info'}
 60</div>
 61<div class="blank5"></div>
 62
 63 <!-- #EndLibraryItem -->
 64<!-- #BeginLibraryItem "/library/category_tree.lbi" -->
 65
 66<div class="box">
 67 <div class="box_1">
 68  <div id="category_tree">
 69    <!--{foreach from=$categories item=cat}-->
 70     <dl>
 71     <dt><a href="{$cat.url}">{$cat.name|escape:html}</a></dt>
 72     <!--{foreach from=$cat.children item=child}-->
 73     <dd><a href="{$child.url}">{$child.name|escape:html}</a></dd>
 74     <!--{/foreach}-->
 75     </dl>
 76    <!--{/foreach}-->
 77  </div>
 78 </div>
 79</div>
 80<div class="blank5"></div>
 81
 82 <!-- #EndLibraryItem -->
 83<!-- #BeginLibraryItem "/library/goods_related.lbi" -->
 84
 85<!-- {if $related_goods} -->
 86<div class="box">
 87     <div class="box_1">
 88      <h3><span>{$lang.releate_goods}</span></h3>
 89      <div class="boxCenterList clearfix">
 90      <!--{foreach from=$related_goods item=goods}-->
 91        <ul class="clearfix">
 92          <li class="goodsimg"><a href="{$goods.url}"><img src="{$goods.goods_thumb}" alt="{$goods.goods_name}" class="B_blue" /></a></li>
 93          <li>
 94        <a href="{$goods.url}" title="{$goods.goods_name}">{$goods.short_name}</a><br />
 95        <!-- {if $goods.promote_price neq 0} -->
 96        {$lang.promote_price}<font class="f1">{$goods.formated_promote_price}</font>
 97        <!-- {else} -->
 98        {$lang.shop_price}<font class="f1">{$goods.shop_price}</font>
 99        <!-- {/if} -->
100          </li>
101        </ul>
102        <!--{/foreach}-->
103      </div>
104     </div>
105    </div>
106<div class="blank5"></div>
107<!-- {/if} -->
108
109 <!-- #EndLibraryItem -->
110<!-- #BeginLibraryItem "/library/goods_fittings.lbi" -->
111
112<!-- {if $fittings} -->
113<div class="box">
114 <div class="box_1">
115  <h3><span>{$lang.accessories_releate}</span></h3>
116  <div class="boxCenterList clearfix">
117    <!--{foreach from=$fittings item=goods}-->
118    <ul class="clearfix">
119      <li class="goodsimg">
120      <a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" alt="{$goods.name|escape:html}" class="B_blue" /></a>
121      </li>
122      <li>
123      <a href="{$goods.url}" target="_blank" title="{$goods.goods_name|escape:html}">{$goods.short_name|escape:html}</a><br />
124      {$lang.fittings_price}<font class="f1">{$goods.fittings_price}</font><br />
125      </li>
126    </ul>
127    <!--{/foreach}-->
128  </div>
129 </div>
130</div>
131<div class="blank5"></div>
132<!-- {/if} -->
133
134
135 <!-- #EndLibraryItem -->
136<!-- #BeginLibraryItem "/library/goods_article.lbi" -->
137
138<!-- {if $goods_article_list} -->
139<div class="box">
140 <div class="box_1">
141  <h3><span>{$lang.article_releate}</span></h3>
142  <div class="boxCenterList RelaArticle">
143    <!-- {foreach from=$goods_article_list item=article} ???? -->
144    <a href="{$article.url}" title="{$article.title|escape:html}">{$article.short_title|escape:html}</a><br />
145    <!--{/foreach}-->
146  </div>
147 </div>
148</div>
149<div class="blank5"></div>
150<!-- {/if} -->
151 <!-- #EndLibraryItem -->
152<!-- #BeginLibraryItem "/library/goods_attrlinked.lbi" -->
153
154<!-- ??????????? {foreach from=$attribute_linked item=linked}-->
155<!-- {if $linked.goods} -->
156<div class="box">
157 <div class="box_1">
158  <h3><span>{$linked.title}</span></h3>
159  <div class="boxCenterList RelaArticle">
160  <!-- {foreach from=$linked.goods item=goods} -->
161  <a href="{$goods.url}" title="{$goods.goods_name|escape:html}">{$goods.short_name|escape:html}</a><br />
162  <!-- {/foreach} -->
163  </div>
164 </div>
165</div>
166<div class="blank5"></div>
167<!-- {/if} -->
168<!-- ????????? {/foreach}-->
169 <!-- #EndLibraryItem -->
170<!-- TemplateEndEditable -->
171<!-- TemplateBeginEditable name="????????200px?" -->
172<!-- TemplateEndEditable -->
173    <!--AD end-->
174    <!-- #BeginLibraryItem "/library/history.lbi" --><!-- #EndLibraryItem -->
175  </div>
176  <!--left end-->
177  <!--right start-->
178  <div class="AreaR">
179   <!--????start-->
180   <div id="goodsInfo" class="clearfix">
181     <!--??????? start-->
182     <div class="imgInfo">
183     <!-- {if $pictures}-->
184     <a href="javascript:;" onclick="window.open('gallery.php?id={$goods.goods_id}'); return false;">
185      <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}"/>
186     </a>
187         <!-- {else} -->
188         <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}"/>
189         <!-- {/if}-->
190     <div class="blank5"></div>
191     <!--?? START-->
192     <!-- #BeginLibraryItem "/library/goods_gallery.lbi" --><!-- #EndLibraryItem -->
193     <!--?? END-->
194         <div class="blank5"></div>
195         <!-- TemplateBeginEditable name="?????????230px?" -->
196     <!-- TemplateEndEditable -->
197     </div>
198     <!--??????? end-->
199     <div class="textInfo">
200     <form action="javascript:addToCart({$goods.goods_id})" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >
201		 <div class="clearfix">
202      <p class="f_l">{$goods.goods_style_name}</p>
203      <p class="f_r">
204      {if $prev_good}
205      <a href="{$prev_good.url}"><img alt="prev" src="./images/up.gif" /></a>
206      {/if}
207      {if $next_good}
208      <a href="{$next_good.url}"><img alt="next" src="./images/down.gif" /></a>
209      {/if}
210      </p>
211			</div>
212      <ul>
213       <!-- {if $promotion} -->
214      <li class="padd">
215      <!-- {foreach from=$promotion item=item key=key} ????-->
216      {$lang.activity}
217      <!-- {if $item.type eq "snatch"} -->
218      <a href="snatch.php" title="{$lang.snatch}" style="font-weight:100; color:#006bcd; text-decoration:none;">[{$lang.snatch}]</a>
219      <!-- {elseif $item.type eq "group_buy"} -->
220      <a href="group_buy.php" title="{$lang.group_buy}" style="font-weight:100; color:#006bcd; text-decoration:none;">[{$lang.group_buy}]</a>
221      <!-- {elseif $item.type eq "auction"} -->
222      <a href="auction.php" title="{$lang.auction}" style="font-weight:100; color:#006bcd; text-decoration:none;">[{$lang.auction}]</a>
223      <!-- {elseif $item.type eq "favourable"} -->
224      <a href="activity.php" title="{$lang.favourable}" style="font-weight:100; color:#006bcd; text-decoration:none;">[{$lang.favourable}]</a>
225      <!-- {/if} -->
226      <a href="{$item.url}" title="{$lang.$item.type} {$item.act_name}{$item.time}" style="font-weight:100; color:#006bcd;">{$item.act_name}</a><br />
227      <!-- {/foreach} -->
228      </li>
229      <!-- {/if} -->
230      <li class="clearfix">
231       <dd>
232       <!-- {if $cfg.show_goodssn} ??????-->
233       <strong>{$lang.goods_sn}</strong>{$goods.goods_sn}
234       <!-- {/if} -->
235       </dd>
236       <dd class="ddR">
237       <!-- {if $goods.goods_number neq "" and $cfg.show_goodsnumber} ????-->
238        <!-- {if $goods.goods_number eq 0} -->
239          <strong>{$lang.goods_number}</strong>
240          <font color='red'>{$lang.stock_up}</font>
241        <!-- {else} -->
242          <strong>{$lang.goods_number}</strong>
243          {$goods.goods_number} {$goods.measure_unit}
244        <!-- {/if} -->
245      <!-- {/if} -->
246       </dd>
247      </li>
248      <li class="clearfix">
249       <dd>
250       <!-- {if $goods.goods_brand neq "" and $cfg.show_brand} ??????-->
251       <strong>{$lang.goods_brand}</strong><a href="{$goods.goods_brand_url}" >{$goods.goods_brand}</a>
252       <!--{/if}-->
253       </dd>
254       <dd class="ddR">
255       <!-- {if $cfg.show_goodsweight} ????-->
256       <strong>{$lang.goods_weight}</strong>{$goods.goods_weight}
257       <!-- {/if} -->
258       </dd>
259      </li>
260      <li class="clearfix">
261       <dd>
262       <!-- {if $cfg.show_addtime} ????-->
263      <strong>{$lang.add_time}</strong>{$goods.add_time}
264      <!-- {/if} -->
265       </dd>
266       <dd class="ddR">
267       <!--???-->
268       <strong>{$lang.goods_click_count}?</strong>{$goods.click_count}
269       </dd>
270      </li>
271      <li class="clearfix">
272       <dd class="ddL">
273       <!-- {if $cfg.show_marketprice} ????-->
274       <strong>{$lang.market_price}</strong><font class="market">{$goods.market_price}</font><br />
275       <!-- {/if} -->
276       <!--????-->
277       <strong>{$lang.shop_price}</strong><font class="shop" id="ECS_SHOPPRICE">{$goods.shop_price_formated}</font><br />
278       <!-- {foreach from=$rank_prices item=rank_price key=key} ?????????-->
279       <strong>{$rank_price.rank_name}?</strong><font class="shop" id="ECS_RANKPRICE_{$key}">{$rank_price.price}</font><br />
280       <!--{/foreach}-->
281       </dd>
282       <dd style="width:48%; padding-left:7px;">
283       <strong>{$lang.goods_rank}</strong>
284      <img src="images/stars{$goods.comment_rank}.gif" alt="comment rank {$goods.comment_rank}" />
285       </dd>
286      </li>
287
288      <!--{if $volume_price_list } -->
289      <li class="padd">
290       <font class="f1">{$lang.volume_price}?</font><br />
291			 <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#aad6ff">
292				<tr>
293					<td align="center" bgcolor="#FFFFFF"><strong>{$lang.number_to}</strong></td>
294					<td align="center" bgcolor="#FFFFFF"><strong>????</strong></td>
295				</tr>
296				<!-- {foreach from=$volume_price_list item=price_list key=price_key} -->
297				<tr>
298					<td align="center" bgcolor="#FFFFFF" class="shop">{$price_list.number}</td>
299					<td align="center" bgcolor="#FFFFFF" class="shop">{$price_list.format_price}</td>
300				</tr>
301				<!-- {/foreach} -->
302	     </table>
303      </li>
304      <!--{/if}-->
305
306      <!--{if $goods.is_promote and $goods.gmt_end_time } ??-->
307      {insert_scripts files='lefttime.js'}
308      <li class="padd loop" style="margin-bottom:5px; border-bottom:1px dashed #ccc;">
309      <strong>{$lang.promote_price}</strong><font class="shop">{$goods.promote_price}</font><br />
310      <strong>{$lang.residual_time}</strong>
311      <font class="f4" id="leftTime">{$lang.please_waiting}</font><br />
312      </li>
313      <!--{/if}-->
314      <li class="clearfix">
315       <dd>
316       <strong>{$lang.amount}?</strong><font id="ECS_GOODS_AMOUNT" class="shop"></font>
317       </dd>
318       <dd class="ddR">
319       <!-- {if $goods.give_integral > 0} ?????????-->
320        <strong>{$lang.goods_give_integral}</strong><font class="f4">{$goods.give_integral} {$points_name}</font>
321        <!-- {/if} -->
322       </dd>
323      </li>
324      <!-- {if $goods.bonus_money} ??-->
325      <li class="padd loop" style="margin-bottom:5px; border-bottom:1px dashed #ccc;">
326      <strong>{$lang.goods_bonus}</strong><font class="shop">{$goods.bonus_money}</font><br />
327      </li>
328      <!-- {/if} -->
329      <li class="clearfix">
330       <dd>
331       <strong>{$lang.number}?</strong>
332        <input name="number" type="text" id="number" value="1" size="4" onblur="changePrice()" style="border:1px solid #ccc; "/>
333       </dd>
334       <dd class="ddR">
335       <!-- {if $goods.integral > 0} ??????????-->
336       <strong>{$lang.goods_integral}</strong><font class="f4">{$goods.integral} {$points_name}</font>
337       <!-- {/if} -->
338       </dd>
339      </li>
340      <!-- {* ?????????? *} -->
341      <!-- {foreach from=$specification item=spec key=spec_key} -->
342      <li class="padd loop">
343      <strong>{$spec.name}:</strong><br />
344        <!-- {* ??????????? *} -->
345                    <!-- {if $spec.attr_type eq 1} -->
346                      <!-- {if $cfg.goodsattr_style eq 1} -->
347                        <!-- {foreach from=$spec.values item=value key=key} -->
348                        <label for="spec_value_{$value.id}">
349                        <input type="radio" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" {if $key eq 0}checked{/if} onclick="changePrice()" />
350                        {$value.label} [{if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if} {$value.format_price|abs}] </label><br />
351                        <!-- {/foreach} -->
352                        <input type="hidden" name="spec_list" value="{$key}" />
353                        <!-- {else} -->
354                        <select name="spec_{$spec_key}" onchange="changePrice()">
355                          <!-- {foreach from=$spec.values item=value key=key} -->
356                          <option label="{$value.label}" value="{$value.id}">{$value.label} {if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if}{if $value.price neq 0}{$value.format_price}{/if}</option>
357                          <!-- {/foreach} -->
358                        </select>
359                        <input type="hidden" name="spec_list" value="{$key}" />
360                      <!-- {/if} -->
361                    <!-- {else} -->
362                      <!-- {foreach from=$spec.values item=value key=key} -->
363                      <label for="spec_value_{$value.id}">
364                      <input type="checkbox" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" onclick="changePrice()" />
365                      {$value.label} [{if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if} {$value.format_price|abs}] </label><br />
366                      <!-- {/foreach} -->
367                      <input type="hidden" name="spec_list" value="{$key}" />
368                    <!-- {/if} -->
369      </li>
370      <!-- {/foreach} -->
371      <!-- {* ???????? *} -->
372      <li class="padd">
373      <a href="javascript:addToCart({$goods.goods_id})"><img src="images/bnt_cat.gif" /></a>
374      <a href="javascript:collect({$goods.goods_id})"><img src="images/bnt_colles.gif" /></a>
375      <!-- {if $affiliate.on} -->
376      <a href="user.php?act=affiliate&goodsid={$goods.goods_id}" style="position:relative;left:10px; bottom:15px;">?????????</a>
377      <!-- {/if} -->
378      </li>
379      </ul>
380      </form>
381     </div>
382   </div>
383   <div class="blank"></div>
384   <!--????end-->
385   <!--????????? START-->
386     <div class="box">
387     <div class="box_1">
388      <h3 style="padding:0 5px;">
389        <div id="com_b" class="history clearfix">
390        <h2>{$lang.goods_brief}</h2>
391        <h2 class="h2bg">{$lang.goods_attr}</h2>
392        <!-- {if $package_goods_list} -->
393        <h2 class="h2bg" style="color:red;">{$lang.remark_package}</h2>
394        <!-- {/if} -->
395        </div>
396      </h3>
397      <div id="com_v" class="boxCenterList RelaArticle"></div>
398      <div id="com_h">
399       <blockquote>
400        {$goods.goods_desc}
401       </blockquote>
402
403     <blockquote>
404      <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">
405        <!-- {foreach from=$properties item=property_group key=key} -->
406        <tr>
407          <th colspan="2" bgcolor="#FFFFFF">{$key|escape}</th>
408        </tr>
409        <!-- {foreach from=$property_group item=property} -->
410        <tr>
411          <td bgcolor="#FFFFFF" align="left" width="30%" class="f1">[{$property.name|escape:html}]</td>
412          <td bgcolor="#FFFFFF" align="left" width="70%">{$property.value|escape:html}</td>
413        </tr>
414        <!-- {/foreach}-->
415        <!-- {/foreach}-->
416      </table>
417     </blockquote>
418
419     <!-- {if $package_goods_list} -->
420     <blockquote>
421       <!-- {foreach from=$package_goods_list item=package_goods} -->
422			  <strong>{$package_goods.act_name}</strong><br />
423        <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">
424				<tr>
425					<td bgcolor="#FFFFFF">
426					<!-- {foreach from=$package_goods.goods_list item=goods_list} -->
427					<a href="goods.php?id={$goods_list.goods_id}" target="_blank"><font class="f1">{$goods_list.goods_name}</font></a> &nbsp;&nbsp;X {$goods_list.goods_number}<br />
428					<!-- {/foreach} -->
429					</td>
430					<td bgcolor="#FFFFFF">
431					<strong>{$lang.old_price}</strong><font class="market">{$package_goods.subtotal}</font><br />
432          <strong>{$lang.package_price}</strong><font class="shop">{$package_goods.package_price}</font><br />
433          <strong>{$lang.then_old_price}</strong><font class="shop">{$package_goods.saving}</font><br />
434					</td>
435					<td bgcolor="#FFFFFF">
436					<a href="javascript:addPackageToCart({$package_goods.act_id})" style="background:transparent"><img src="images/bnt_buy_1.gif" alt="{$lang.add_to_cart}" /></a>
437					</td>
438				</tr>
439	    </table>
440       <!-- {/foreach} -->
441     </blockquote>
442     <!-- {/if} -->
443
444      </div>
445     </div>
446    </div>
447    <script type="text/javascript">
448    <!--
449    reg("com");
450    //-->
451    </script>
452  <div class="blank"></div>
453  <!--????????? END-->
454  <!-- TemplateBeginEditable name="???????" -->
455<!-- #BeginLibraryItem "/library/goods_tags.lbi" -->
456
457
458     <div class="box">
459     <div class="box_1">
460      <h3><span class="text">{$lang.goods_tag}</span></h3>
461      <div class="boxCenterList clearfix ie6">
462       <form name="tagForm" action="javascript:;" onSubmit="return submitTag(this)" id="tagForm">
463        <p id="ECS_TAGS" style="margin-bottom:5px;">
464          <!-- ??{foreach from=$tags item=tag}-->
465          <a href="search.php?keywords={$tag.tag_words|escape:url}" style="color:#006ace; text-decoration:none; margin-right:5px;">{$tag.tag_words|escape:html}[{$tag.tag_count}]</a>
466          <!-- ????{/foreach} -->
467        </p>
468        <p>
469          <input type="text" name="tag" id="tag" class="B_input" size="35" />
470          <input type="submit" value="? ?" class="bnt_blue" style="border:none;" />
471          <input type="hidden" name="goods_id" value="{$goods.goods_id}"  />
472        </p>
473                <script type="text/javascript">
474                //<![CDATA[
475                {literal}
476                /**
477                 * ???????????
478                 */
479                function submitTag(frm)
480                {
481                  try
482                  {
483                    var tag = frm.elements['tag'].value;
484                    var idx = frm.elements['goods_id'].value;
485
486                    if (tag.length > 0 && parseInt(idx) > 0)
487                    {
488                      Ajax.call('user.php?act=add_tag', "id=" + idx + "&tag=" + tag, submitTagResponse, "POST", "JSON");
489                    }
490                  }
491                  catch (e) { alert(e); }
492
493                  return false;
494                }
495
496                function submitTagResponse(result)
497                {
498                  var div = document.getElementById('ECS_TAGS');
499
500                  if (result.error > 0)
501                  {
502                    alert(result.message);
503                  }
504                  else
505                  {
506                    try
507                    {
508                      div.innerHTML = '';
509                      var tags = result.content;
510
511                      for (i = 0; i < tags.length; i++)
512                      {
513                        div.innerHTML += '<a href="search.php?keywords='+tags[i].word+'">' +tags[i].word + '[' + tags[i].count + ']<\/a>&nbsp;&nbsp; ';
514                      }
515                    }
516                    catch (e) { alert(e); }
517                  }
518                }
519                {/literal}
520                //]]>
521                </script>
522              </form>
523      </div>
524     </div>
525    </div>
526    <div class="blank5"></div>
527
528 <!-- #EndLibraryItem -->
529<!-- #BeginLibraryItem "/library/bought_goods.lbi" -->
530
531  <!-- {if $fittings} -->
532     <div class="box">
533     <div class="box_1">
534      <h3><span class="text">{$lang.shopping_and_other}</span></h3>
535      <div class="boxCenterList clearfix ie6">
536       <!-- {foreach from=$fittings item=goods} -->
537        <div class="goodsItem">
538         <a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}"  class="goodsimg" alt="{$goods.name|escape:html}" /></a><br />
539         <p><a href="{$goods.url}" target="_blank" title="{$goods.name|escape:html}">{$goods.short_name|escape:html}</a></p>
540         {$lang.fittings_price}<font class="f1">{$goods.fittings_price}</font>
541        </div>
542        <!-- {/foreach} -->
543      </div>
544     </div>
545    </div>
546    <div class="blank5"></div>
547    <!-- {/if} -->
548 <!-- #EndLibraryItem -->
549<!-- #BeginLibraryItem "/library/comments.lbi" -->
550
551{insert_scripts files='transport.js,utils.js'}
552<div id="ECS_COMMENT"> {* ECSHOP ????????comments_list.lbi???????????? *}{insert name='comments' type=$type id=$id}</div>
553
554 <!-- #EndLibraryItem -->
555<!-- TemplateEndEditable -->
556  </div>
557  <!--right end-->
558</div>
559<div class="blank5"></div>
560<!--??-->
561<div class="block">
562  <div class="box">
563   <div class="helpTitBg clearfix">
564    <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
565   </div>
566  </div>
567</div>
568<div class="blank"></div>
569<!--??-->
570<!--???? start-->
571<!--{if $img_links  or $txt_links }-->
572<div id="bottomNav" class="box">
573 <div class="box_1">
574  <div class="links clearfix">
575    <!--???????????{foreach from=$img_links item=link}-->
576    <a href="{$link.url}" target="_blank" title="{$link.name}"><img src="{$link.logo}" alt="{$link.name}" border="0" /></a>
577    <!--???????????{/foreach}-->
578    <!-- {if $txt_links} -->
579    <!--???????????{foreach from=$txt_links item=link}-->
580    [<a href="{$link.url}" target="_blank" title="{$link.name}">{$link.name}</a>]
581    <!--???????????{/foreach}-->
582    <!-- {/if} -->
583  </div>
584 </div>
585</div>
586<!--{/if}-->
587<!--???? end-->
588<div class="blank"></div>
589<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
590</body>
591<script type="text/javascript">
592var goods_id = {$goods_id};
593var goodsattr_style = {$cfg.goodsattr_style|default:1};
594var gmt_end_time = {$promote_end_time|default:0};
595{foreach from=$lang.goods_js item=item key=key}
596var {$key} = "{$item}";
597{/foreach}
598var goodsId = {$goods_id};
599var now_time = {$now_time};
600
601<!-- {literal} -->
602onload = function(){
603  changePrice();
604  fixpng();
605  try { onload_leftTime(); }
606  catch (e) {}
607}
608
609/**
610 * ?????????????????????
611 */
612function changePrice()
613{
614  var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
615  var qty = document.forms['ECS_FORMBUY'].elements['number'].value;
616
617  Ajax.call('goods.php', 'act=price&id=' + goodsId + '&attr=' + attr + '&number=' + qty, changePriceResponse, 'GET', 'JSON');
618}
619
620/**
621 * ???????
622 */
623function changePriceResponse(res)
624{
625  if (res.err_msg.length > 0)
626  {
627    alert(res.err_msg);
628  }
629  else
630  {
631    document.forms['ECS_FORMBUY'].elements['number'].value = res.qty;
632
633    if (document.getElementById('ECS_GOODS_AMOUNT'))
634      document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
635  }
636}
637<!-- {/literal} -->
638</script>
639</html>