[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/standard/templates/content/datatype/view/ -> ezmultiprice.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  {def $multiprice = $attribute.content
   3       $price_list = $multiprice.inc_vat_price_list
   4       $currency_list = $multiprice.currency_list
   5       $currency = false()}
   6  
   7      {if $multiprice.has_discount}
   8          {def $discount_price_list = $multiprice.discount_inc_vat_price_list
   9               $price = false()}
  10          <table cellspacing="10">
  11              <tr>
  12                  <th>Currency</th>
  13                  <th>Price</th>
  14                  <th>Your price</th>
  15                  <th>Your save</th>
  16              </tr>
  17  
  18              {foreach $discount_price_list as $pos => $discount_price}
  19                  {set price = $price_list[$pos]
  20                       currency = $currency_list[$price.currency_code]}
  21                  <tr>
  22                      <td>{$price.currency_code}</td>
  23                      <td><strike>{$price.value|l10n( 'currency', $currency.locale, '' )}</strike></td>
  24                      <td>{$discount_price.value|l10n( 'currency', $currency.locale, '' )}</td>
  25                      <td>{sub($price.value, $discount_price.value)|l10n( 'currency', $currency.locale, '' )} ( {$multiprice.discount_percent} % )</td>
  26                  </tr>
  27              {/foreach}
  28          </table>
  29      {else}
  30          {'Price'|i18n( 'design/standard/content/datatype' )}: <br />
  31          {def $price_value = ''}
  32          {foreach $price_list as $price}
  33              {set currency = $currency_list[$price.currency_code]}
  34              {if gt($price.value, 0)}
  35                  {set price_value = $price.value|l10n( 'currency', $currency.locale, $currency.symbol )}
  36              {else}
  37                  {set price_value = 'N/A'|i18n( 'design/standard/content/datatype' )}
  38              {/if}
  39              {if eq( $price.type, 2 )}
  40                  {* Auto price *}
  41                  <i>{$price_value}</i><p>
  42              {else}
  43                  {* Custom price *}
  44                  {$price_value}<p>
  45              {/if}
  46          {/foreach}
  47          {undef $price_value}
  48      {/if}
  49  {undef}


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7