12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- {% for item in list %}
- {% if loop.first %}
- <div class="thin">
- {% if discount %}
- <h3 style="text-align: center; color: lime;">All prices currently {{ min(100, max(0, discount)) }}% off — Hurry, sale ends soon — While stocks last!</h3>
- {% endif %}
- {% if admin %}
- <div class="pad box">
- <div class="thin">NB: Bonus Shop discounts are set in the <a href="/tools.php?action=site_options">Site Options</a>.</div>
- </div>
- {% endif %}
- <table>
- <thead>
- <tr class="colhead">
- <td>Description</td>
- <td width="60px">Points</td>
- <td width="120px">Checkout</td>
- </tr>
- </thead>
- <tbody>
- {% endif %}
- {% if item.MinClass <= class %}
- <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
- <td>{{ item.Title }}</td>
- <td style="text-align:right">{{ item.Price|number_format }}</td>
- <td>
- {% if points >= item.Price %}
- <a id="bonusconfirm" href="bonus.php?action=purchase&label={{ item.Label
- }}&auth={{ auth }}" onclick="{{ item.JS_on_click }}(event, '{{ item.Title }}', {{ item.JS_next_function }}, this);">Purchase</a>
- {% else %}
- <span style="font-style: italic">Too Expensive</span>
-
- {% endif %}
- {% endif %}
- </td>
- </tr>
- {% if loop.last %}
- </tbody>
- </table>
- <br />
- </div>
- {% endif %}
- {% endfor %}
|