/temp/compiled/goods.dwt.php
PHP | 427 lines | 369 code | 49 blank | 9 comment | 74 complexity | 28171a81eb676a51bb38a0b996bccd28 MD5 | raw file
Possible License(s): LGPL-2.1
- <!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">
- <head>
- <meta name="Generator" content="ECSHOP v2.7.0" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
- <meta name="Description" content="<?php echo $this->_var['description']; ?>" />
-
- <title><?php echo $this->_var['page_title']; ?></title>
-
- <link rel="shortcut icon" href="favicon.ico" />
- <link rel="icon" href="animated_favicon.gif" type="image/gif" />
- <link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
-
- <?php echo $this->smarty_insert_scripts(array('files'=>'common.js')); ?>
- <script type="text/javascript">
- function $(element) {
- return document.getElementById(element);
- }
- //??--????_v??????_h????
- function reg(str){
- var bt=$(str+"_b").getElementsByTagName("h2");
- for(var i=0;i<bt.length;i++){
- bt[i].subj=str;
- bt[i].pai=i;
- bt[i].style.cursor="pointer";
- bt[i].onclick=function(){
- $(this.subj+"_v").innerHTML=$(this.subj+"_h").getElementsByTagName("blockquote")[this.pai].innerHTML;
- for(var j=0;j<$(this.subj+"_b").getElementsByTagName("h2").length;j++){
- var _bt=$(this.subj+"_b").getElementsByTagName("h2")[j];
- var ison=j==this.pai;
- _bt.className=(ison?"":"h2bg");
- }
- }
- }
- $(str+"_h").className="none";
- $(str+"_v").innerHTML=$(str+"_h").getElementsByTagName("blockquote")[0].innerHTML;
- }
-
- </script>
- </head>
- <body>
- <?php echo $this->fetch('library/page_header.lbi'); ?>
- <?php echo $this->fetch('library/search_form.lbi'); ?>
- <?php echo $this->fetch('library/ur_here.lbi'); ?>
- <div class="block clearfix">
-
- <div id="areaLeft">
- <div id="goodsLtop">
- <div class="cartBox">
- <?php echo $this->fetch('library/cart.lbi'); ?>
- </div>
- <div class="Gaction clearfix">
- <a href="user.php"><?php echo $this->_var['lang']['label_login']; ?></a><a href="user.php?act=register"><?php echo $this->_var['lang']['label_regist']; ?></a>
- <a href="user.php?act=profile"><?php echo $this->_var['lang']['label_profile']; ?></a><a href="user.php?act=collection_list"><?php echo $this->_var['lang']['label_collection']; ?></a>
- </div>
- </div>
-
- <?php echo $this->fetch('library/category_tree.lbi'); ?>
-
- <?php echo $this->fetch('library/promotion_info.lbi'); ?>
-
- <?php echo $this->fetch('library/ad_position.lbi'); ?>
- <?php echo $this->fetch('library/history.lbi'); ?>
-
- <?php echo $this->fetch('library/goods_article.lbi'); ?>
-
- <?php echo $this->fetch('library/goods_attrlinked.lbi'); ?>
-
-
- </div>
-
-
- <div id="areaRight">
-
- <div id="goodsInfo">
- <span class="kokLtop"></span><span class="kokLbot"></span>
- <span class="kokRtop"></span><span class="kokRbot"></span>
- <div class="clearfix w740">
- <div style="background:#6633FF; height:0px; font-size:0px; overflow:hidden;">????</div>
-
- <div class="left">
- <?php if ($this->_var['pictures']): ?>
- <a href="javascript:;" onclick="window.open('gallery.php?id=<?php echo $this->_var['goods']['goods_id']; ?>'); return false;">
- <img src="<?php echo $this->_var['goods']['goods_img']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>"/>
- </a>
- <?php else: ?>
- <img src="<?php echo $this->_var['goods']['goods_img']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>"/>
- <?php endif; ?>
- <?php echo $this->fetch('library/goods_gallery.lbi'); ?>
- </div>
-
-
- <div class="right">
- <form action="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >
- <p>
- <span style="float:right; width:150px; height:18px;">
- <?php if ($this->_var['prev_good']): ?>
- <a href="<?php echo $this->_var['prev_good']['url']; ?>"><img alt="prev" src="themes/clothing/images/up.gif" /></a>
- <?php endif; ?>
- <?php if ($this->_var['next_good']): ?>
- <a href="<?php echo $this->_var['next_good']['url']; ?>"><img alt="next" src="themes/clothing/images/down.gif" /></a>
- <?php endif; ?>
- </span>
- <?php echo $this->_var['goods']['goods_style_name']; ?>
- </p>
- <?php if ($this->_var['promotion']): ?>
- <?php $_from = $this->_var['promotion']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['item']):
- ?>
- <?php echo $this->_var['lang']['activity']; ?>
- <?php if ($this->_var['item']['type'] == "snatch"): ?>
- <a href="snatch.php" title="<?php echo $this->_var['lang']['snatch']; ?>" style="font-weight:100; color:#006bcd; text-decoration:none;">[<?php echo $this->_var['lang']['snatch']; ?>]</a>
- <?php elseif ($this->_var['item']['type'] == "group_buy"): ?>
- <a href="group_buy.php" title="<?php echo $this->_var['lang']['group_buy']; ?>" style="font-weight:100; color:#006bcd; text-decoration:none;">[<?php echo $this->_var['lang']['group_buy']; ?>]</a>
- <?php elseif ($this->_var['item']['type'] == "auction"): ?>
- <a href="auction.php" title="<?php echo $this->_var['lang']['auction']; ?>" style="font-weight:100; color:#006bcd; text-decoration:none;">[<?php echo $this->_var['lang']['auction']; ?>]</a>
- <?php elseif ($this->_var['item']['type'] == "favourable"): ?>
- <a href="activity.php" title="<?php echo $this->_var['lang']['favourable']; ?>" style="font-weight:100; color:#006bcd; text-decoration:none;">[<?php echo $this->_var['lang']['favourable']; ?>]</a>
- <?php endif; ?>
- <a href="<?php echo $this->_var['item']['url']; ?>" title="<?php echo $this->_var['lang'][$this->_var['item']['type']]; ?> <?php echo $this->_var['item']['act_name']; ?><?php echo $this->_var['item']['time']; ?>" style="font-weight:100; color:#006bcd;"><?php echo $this->_var['item']['act_name']; ?></a><br />
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- <?php endif; ?>
-
- <?php if ($this->_var['cfg']['show_goodssn']): ?>
- <strong><?php echo $this->_var['lang']['goods_sn']; ?></strong><?php echo $this->_var['goods']['goods_sn']; ?><br />
- <?php endif; ?>
-
- <?php if ($this->_var['goods']['goods_number'] != "" && $this->_var['cfg']['show_goodsnumber']): ?>
- <?php if ($this->_var['goods']['goods_number'] == 0): ?>
- <strong><?php echo $this->_var['lang']['goods_number']; ?></strong> <font color='red'><?php echo $this->_var['lang']['stock_up']; ?></font><br />
- <?php else: ?>
- <strong><?php echo $this->_var['lang']['goods_number']; ?></strong> <?php echo $this->_var['goods']['goods_number']; ?> <?php echo $this->_var['goods']['measure_unit']; ?><br />
- <?php endif; ?>
- <?php endif; ?>
-
- <?php if ($this->_var['goods']['goods_brand'] != "" && $this->_var['cfg']['show_brand']): ?>
- <strong><?php echo $this->_var['lang']['goods_brand']; ?></strong><a href="<?php echo $this->_var['goods']['goods_brand_url']; ?>" ><?php echo $this->_var['goods']['goods_brand']; ?></a><br />
- <?php endif; ?>
-
- <?php if ($this->_var['cfg']['show_goodsweight']): ?>
- <strong><?php echo $this->_var['lang']['goods_weight']; ?></strong><?php echo $this->_var['goods']['goods_weight']; ?><br />
- <?php endif; ?>
-
- <?php if ($this->_var['cfg']['show_addtime']): ?>
- <strong><?php echo $this->_var['lang']['add_time']; ?></strong><?php echo $this->_var['goods']['add_time']; ?><br />
- <?php endif; ?>
-
-
- <strong><?php echo $this->_var['lang']['goods_click_count']; ?>?</strong><?php echo $this->_var['goods']['click_count']; ?><br />
-
- <?php if ($this->_var['cfg']['show_marketprice']): ?>
- <strong><?php echo $this->_var['lang']['market_price']; ?></strong><font class="price"><?php echo $this->_var['goods']['market_price']; ?></font><br />
- <?php endif; ?>
-
- <strong><?php echo $this->_var['lang']['shop_price']; ?></strong><font class="price" id="ECS_SHOPPRICE"><?php echo $this->_var['goods']['shop_price_formated']; ?></font><br />
- <?php $_from = $this->_var['rank_prices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'rank_price');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['rank_price']):
- ?>
- <strong><?php echo $this->_var['rank_price']['rank_name']; ?>?</strong><font class="price" id="ECS_RANKPRICE_<?php echo $this->_var['key']; ?>"><?php echo $this->_var['rank_price']['price']; ?></font><br />
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- <strong><?php echo $this->_var['lang']['goods_rank']; ?></strong> <img src="themes/clothing/images/stars<?php echo $this->_var['goods']['comment_rank']; ?>.gif" alt="comment rank <?php echo $this->_var['goods']['comment_rank']; ?>" /><br />
- <?php if ($this->_var['volume_price_list']): ?>
- <p style="padding:8px 0; overflow:hidden; zoom:1;">
- <font class="f1" style="font-size:12px;"><?php echo $this->_var['lang']['volume_price']; ?>?</font><br />
- <table width="95%" style="float:left; font-size:12px;" border="0" cellpadding="3" cellspacing="1" bgcolor="#aad6ff">
- <tr>
- <td align="center" bgcolor="#FFFFFF"><b><?php echo $this->_var['lang']['number_to']; ?></b></td>
- <td align="center" bgcolor="#FFFFFF"><b>????</b></td>
- </tr>
- <?php $_from = $this->_var['volume_price_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('price_key', 'price_list');if (count($_from)):
- foreach ($_from AS $this->_var['price_key'] => $this->_var['price_list']):
- ?>
- <tr>
- <td align="center" bgcolor="#FFFFFF" style="font-weight:normal;" ><?php echo $this->_var['price_list']['number']; ?></td>
- <td align="center" bgcolor="#FFFFFF" style="font-weight:normal;" ><?php echo $this->_var['price_list']['format_price']; ?></td>
- </tr>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- </table>
- </p>
- <?php endif; ?>
- <?php if ($this->_var['goods']['is_promote'] && $this->_var['goods']['gmt_end_time']): ?>
- <?php echo $this->smarty_insert_scripts(array('files'=>'lefttime.js')); ?>
- <strong><?php echo $this->_var['lang']['promote_price']; ?></strong><font class="price"><?php echo $this->_var['goods']['promote_price']; ?></font><br />
- <strong><?php echo $this->_var['lang']['residual_time']; ?></strong> <font class="f1" id="leftTime"><?php echo $this->_var['lang']['please_waiting']; ?></font><br />
- <?php endif; ?>
- <strong><?php echo $this->_var['lang']['amount']; ?>?</strong><font id="ECS_GOODS_AMOUNT" class="price"></font><br />
- <?php if ($this->_var['goods']['give_integral'] > 0): ?>
- <strong><?php echo $this->_var['lang']['goods_give_integral']; ?></strong><font class="f1"><?php echo $this->_var['goods']['give_integral']; ?> <?php echo $this->_var['points_name']; ?></font><br />
- <?php endif; ?>
-
- <?php if ($this->_var['goods']['bonus_money']): ?>
- <strong><?php echo $this->_var['lang']['goods_bonus']; ?></strong><font class="shop"><?php echo $this->_var['goods']['bonus_money']; ?></font><br />
- <?php endif; ?>
- <strong><?php echo $this->_var['lang']['number']; ?>?</strong>
- <input name="number" type="text" id="number" value="1" size="4" onBlur="changePrice()" class="border"/><br />
- <?php if ($this->_var['goods']['integral'] > 0): ?>
- <strong><?php echo $this->_var['lang']['goods_integral']; ?></strong><font class="f1"><?php echo $this->_var['goods']['integral']; ?> <?php echo $this->_var['points_name']; ?></font><br />
- <?php endif; ?>
-
-
- <?php $_from = $this->_var['specification']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('spec_key', 'spec');if (count($_from)):
- foreach ($_from AS $this->_var['spec_key'] => $this->_var['spec']):
- ?>
- <strong><?php echo $this->_var['spec']['name']; ?>?</strong><br />
-
- <?php if ($this->_var['spec']['attr_type'] == 1): ?>
- <?php if ($this->_var['cfg']['goodsattr_style'] == 1): ?>
- <?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['value']):
- ?>
- <label for="spec_value_<?php echo $this->_var['value']['id']; ?>">
- <input type="radio" name="spec_<?php echo $this->_var['spec_key']; ?>" value="<?php echo $this->_var['value']['id']; ?>" id="spec_value_<?php echo $this->_var['value']['id']; ?>" <?php if ($this->_var['key'] == 0): ?>checked<?php endif; ?> onClick="changePrice()" />
- <?php echo $this->_var['value']['label']; ?> [<?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?> <?php echo $this->_var['value']['format_price']; ?>] </label>
- <br />
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- <input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" />
- <?php else: ?>
- <select name="spec_<?php echo $this->_var['spec_key']; ?>" onChange="changePrice()">
- <?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['value']):
- ?>
- <option label="<?php echo $this->_var['value']['label']; ?>" value="<?php echo $this->_var['value']['id']; ?>"><?php echo $this->_var['value']['label']; ?> <?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?><?php if ($this->_var['value']['price'] != 0): ?><?php echo $this->_var['value']['format_price']; ?><?php endif; ?></option>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- </select>
- <input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" />
- <?php endif; ?>
- <?php else: ?>
- <?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['value']):
- ?>
- <label for="spec_value_<?php echo $this->_var['value']['id']; ?>">
- <input type="checkbox" name="spec_<?php echo $this->_var['spec_key']; ?>" value="<?php echo $this->_var['value']['id']; ?>" id="spec_value_<?php echo $this->_var['value']['id']; ?>" onClick="changePrice()" />
- <?php echo $this->_var['value']['label']; ?> [<?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?> <?php echo $this->_var['value']['format_price']; ?>] </label>
- <br />
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- <input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" />
- <?php endif; ?>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
-
-
- <div class="action">
- <a href="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)"><img src="themes/clothing/images/bnt_cart.gif" /></a> <a href="javascript:collect(<?php echo $this->_var['goods']['goods_id']; ?>)"><img src="themes/clothing/images/bnt_coll.gif" /></a>
- <?php if ($this->_var['affiliate']['on']): ?>
- <a href="user.php?act=affiliate&goodsid=<?php echo $this->_var['goods']['goods_id']; ?>"><img src="themes/clothing/images/bnt_tuijian.gif" /></a>
- <?php endif; ?>
- </div>
- </form>
- </div>
-
- </div>
- </div>
-
-
- <div class="goods_attr">
- <div class="attrTit clearfix" id="com_b">
- <h2><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['goods_brief']; ?></h2>
- <h2 class="h2bg"><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['goods_attr']; ?></h2>
- <h2 class="h2bg"><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['goods_tag']; ?></h2>
- <?php if ($this->_var['package_goods_list']): ?>
- <h2 class="h2bg" style="color:red;"><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['remark_package']; ?></h2>
- <?php endif; ?>
- </div>
- <div id="com_v" class="attr_content"></div>
- <div id="com_h">
- <blockquote>
- <?php echo $this->_var['goods']['goods_desc']; ?>
- </blockquote>
- <blockquote>
- <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">
- <?php $_from = $this->_var['properties']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'property_group');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['property_group']):
- ?>
- <tr>
- <th colspan="2" bgcolor="#FFFFFF"><?php echo htmlspecialchars($this->_var['key']); ?></th>
- </tr>
- <?php $_from = $this->_var['property_group']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'property');if (count($_from)):
- foreach ($_from AS $this->_var['property']):
- ?>
- <tr>
- <td bgcolor="#FFFFFF" align="left" width="30%" class="f1">[<?php echo htmlspecialchars($this->_var['property']['name']); ?>]</td>
- <td bgcolor="#FFFFFF" align="left" width="70%"><?php echo htmlspecialchars($this->_var['property']['value']); ?></td>
- </tr>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- </table>
- </blockquote>
- <blockquote>
- <?php echo $this->fetch('library/goods_tags.lbi'); ?>
- </blockquote>
- <?php if ($this->_var['package_goods_list']): ?>
- <blockquote>
- <?php $_from = $this->_var['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods');if (count($_from)):
- foreach ($_from AS $this->_var['package_goods']):
- ?>
- <strong><?php echo $this->_var['package_goods']['act_name']; ?></strong><br />
- <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">
- <tr>
- <td bgcolor="#FFFFFF">
- <?php $_from = $this->_var['package_goods']['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_list');if (count($_from)):
- foreach ($_from AS $this->_var['goods_list']):
- ?>
- <a href="goods.php?id=<?php echo $this->_var['goods_list']['goods_id']; ?>" target="_blank"><font class="f1"><?php echo $this->_var['goods_list']['goods_name']; ?></font></a> X <?php echo $this->_var['goods_list']['goods_number']; ?><br />
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- </td>
- <td bgcolor="#FFFFFF">
- <strong><?php echo $this->_var['lang']['old_price']; ?></strong><font class="market"><?php echo $this->_var['package_goods']['subtotal']; ?></font><br />
- <strong><?php echo $this->_var['lang']['package_price']; ?></strong><font class="shop"><?php echo $this->_var['package_goods']['package_price']; ?></font><br />
- <strong><?php echo $this->_var['lang']['then_old_price']; ?></strong><font class="shop"><?php echo $this->_var['package_goods']['saving']; ?></font><br />
- </td>
- <td bgcolor="#FFFFFF">
- <a href="javascript:addPackageToCart(<?php echo $this->_var['package_goods']['act_id']; ?>)" style="background:transparent"><img src="themes/clothing/images/bnt_buy_1.gif" alt="<?php echo $this->_var['lang']['add_to_cart']; ?>" /></a>
- </td>
- </tr>
- </table>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- </blockquote>
- <?php endif; ?>
- </div>
- <script type="text/javascript">
- <!--
- reg("com");
- //-->
- </script>
- </div>
-
-
- <div class="goods_attr">
- <div class="attrTit clearfix" id="coms_b">
- <h2><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['releate_goods']; ?></h2>
- <h2 class="h2bg"><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['accessories_releate']; ?></h2>
- <h2 class="h2bg"><span class="attL"></span><span class="attR"></span><?php echo $this->_var['lang']['shopping_and_other']; ?></h2>
- </div>
- <div id="coms_v" class="attr_content clearfix"></div>
- <div id="coms_h">
- <blockquote>
- <?php if ($this->_var['related_goods']): ?>
- <?php $_from = $this->_var['related_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'releated_goods_data');if (count($_from)):
- foreach ($_from AS $this->_var['releated_goods_data']):
- ?>
- <div class="General_goodsBox">
- <a href="<?php echo $this->_var['releated_goods_data']['url']; ?>"><img src="<?php echo $this->_var['releated_goods_data']['goods_thumb']; ?>" alt="<?php echo $this->_var['releated_goods_data']['goods_name']; ?>" /></a><br />
- <p><a href="<?php echo $this->_var['releated_goods_data']['url']; ?>" title="<?php echo $this->_var['releated_goods_data']['goods_name']; ?>"><?php echo $this->_var['releated_goods_data']['short_name']; ?></a></p>
- <?php if ($this->_var['releated_goods_data']['promote_price'] != 0): ?>
- <?php echo $this->_var['lang']['promote_price']; ?><font class="price"><?php echo $this->_var['releated_goods_data']['formated_promote_price']; ?></font>
- <?php else: ?>
- <?php echo $this->_var['lang']['shop_price']; ?><font class="price"><?php echo $this->_var['releated_goods_data']['shop_price']; ?></font>
- <?php endif; ?>
- </div>
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- <?php else: ?>
- ??<?php echo $this->_var['lang']['releate_goods']; ?>
- <?php endif; ?>
- </blockquote>
- <blockquote>
- <?php echo $this->fetch('library/goods_fittings.lbi'); ?>
- </blockquote>
- <blockquote>
- <?php echo $this->fetch('library/bought_goods.lbi'); ?>
- </blockquote>
- </div>
- <script type="text/javascript">
- <!--
- reg("coms");
- //-->
- </script>
- </div>
-
-
- <?php echo $this->fetch('library/comments.lbi'); ?>
-
- </div>
-
- </div>
- <?php echo $this->fetch('library/page_footer.lbi'); ?>
- </body>
- <script type="text/javascript">
- var goods_id = <?php echo $this->_var['goods_id']; ?>;
- var goodsattr_style = <?php echo empty($this->_var['cfg']['goodsattr_style']) ? '1' : $this->_var['cfg']['goodsattr_style']; ?>;
- var gmt_end_time = <?php echo empty($this->_var['promote_end_time']) ? '0' : $this->_var['promote_end_time']; ?>;
- <?php $_from = $this->_var['lang']['goods_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
- foreach ($_from AS $this->_var['key'] => $this->_var['item']):
- ?>
- var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
- <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
- var goodsId = <?php echo $this->_var['goods_id']; ?>;
- var now_time = <?php echo $this->_var['now_time']; ?>;
-
-
- onload = function(){
- changePrice();
- fixpng();
- try {onload_leftTime();}
- catch (e) {}
- }
-
- /**
- * ?????????????????????
- */
- function changePrice()
- {
- var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
- var qty = document.forms['ECS_FORMBUY'].elements['number'].value;
-
- Ajax.call('goods.php', 'act=price&id=' + goodsId + '&attr=' + attr + '&number=' + qty, changePriceResponse, 'GET', 'JSON');
- }
-
- /**
- * ???????
- */
- function changePriceResponse(res)
- {
- if (res.err_msg.length > 0)
- {
- alert(res.err_msg);
- }
- else
- {
- document.forms['ECS_FORMBUY'].elements['number'].value = res.qty;
-
- if (document.getElementById('ECS_GOODS_AMOUNT'))
- document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
- }
- }
-
- </script>
- </html>