2017-08-11 17:46:04 +02:00

209 lines
3.8 KiB
Smarty

<div class="leadin"></div>
{if $isThemeDirExist}
{if $simulatorType == 'doublecube'}
<div id="product-simulator-contenant" class="panel">
<div class="panel-heading">Contenant</div>
<div class="panel-body">
{if $id_simulator_theme}
<table class="table">
<thead>
<tr>
<th></th>
<th>TOP</th>
<th>BOTTOM</th>
<th>BACK</th>
<th>FRONT</th>
<th>LEFT</th>
<th>RIGHT</th>
</tr>
</thead>
<tbody>
<tr>
<th>Cube-1</th>
<td><img src="{$imgPath}/box/1-TOP.png" alt="1-TOP"/></td>
<td><img src="{$imgPath}/box/1-BOTTOM.png" alt="1-BOTTOM"/></td>
<td><img src="{$imgPath}/box/1-BACK.png" alt="1-BACK"/></td>
<td><img src="{$imgPath}/box/1-FRONT.png" alt="1-FRONT"/></td>
<td><img src="{$imgPath}/box/1-LEFT.png" alt="1-LEFT"/></td>
<td><img src="{$imgPath}/box/1-RIGHT.png" alt="1-RIGHT"/></td>
</tr>
<tr>
<th>Cube-2</th>
<td><img src="{$imgPath}/box/2-TOP.png" alt="1-TOP"/></td>
<td><img src="{$imgPath}/box/2-BOTTOM.png" alt="1-BOTTOM"/></td>
<td><img src="{$imgPath}/box/2-BACK.png" alt="1-BACK"/></td>
<td><img src="{$imgPath}/box/2-FRONT.png" alt="1-FRONT"/></td>
<td><img src="{$imgPath}/box/2-LEFT.png" alt="1-LEFT"/></td>
<td><img src="{$imgPath}/box/2-RIGHT.png" alt="1-RIGHT"/></td>
</tr>
</tbody>
</table>
{else}
<p>Aucun theme</p>
{/if}
</div>
</div>
<div id="product-simulator-chocolat" class="panel">
<div class="panel-heading">Chocolats</div>
<div class="panel-body">
{if $id_simulator_theme}
<table class="table">
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</thead>
<tbody>
<tr>
<th>Front</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}F.png" alt="{$i}F"/></td>
{/for}
</tr>
<tr>
<th>Back</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}B.png" alt="{$i}B"/></td>
{/for}
</tr>
</tbody>
</table>
{else}
<p>Aucun theme</p>
{/if}
</div>
</div>
{elseif $simulatorType == 'pochette'}
<div id="product-simulator-chocolat" class="panel">
<div class="panel-heading">Chocolats</div>
<div class="panel-body">
{if $id_simulator_theme}
<table class="table">
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</thead>
<tbody>
<tr>
<th>Front</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}F.png" alt="{$i}F"/></td>
{/for}
</tr>
<tr>
<th>Back</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}B.png" alt="{$i}B"/></td>
{/for}
</tr>
</tbody>
</table>
{else}
<p>Aucun theme</p>
{/if}
</div>
</div>
{elseif $simulatorType == 'pochette6'}
TODO
{elseif $simulatorType == 'sachet'}
<div id="product-simulator-chocolat" class="panel">
<div class="panel-heading">Chocolats</div>
<div class="panel-body">
{if $id_simulator_theme}
<table class="table">
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</thead>
<tbody>
<tr>
<th>Front</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}F.png" alt="{$i}F"/></td>
{/for}
</tr>
<tr>
<th>Back</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}B.png" alt="{$i}B"/></td>
{/for}
</tr>
</tbody>
</table>
{else}
<p>Aucun theme</p>
{/if}
</div>
</div>
{elseif $simulatorType == 'vrac'}
<div id="product-simulator-chocolat" class="panel">
<div class="panel-heading">Chocolats</div>
<div class="panel-body">
{if $id_simulator_theme}
<table class="table">
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
</tr>
</thead>
<tbody>
<tr>
<th>Front</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}F.png" alt="{$i}F"/></td>
{/for}
</tr>
<tr>
<th>Back</th>
{for $i=1 to 5}
<td><img src="{$imgPath}/chocos/{$i}B.png" alt="{$i}B"/></td>
{/for}
</tr>
</tbody>
</table>
{else}
<p>Aucun theme</p>
{/if}
</div>
</div>
{/if}
{else}
<div class="alert alert-danger" role="alert">
<strong>Error</strong> Le repertoire du theme n'existe pas ({$imgPath}).
</div>
{/if}