209 lines
3.5 KiB
Smarty
209 lines
3.5 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"/></td>
|
|
<td><img src="{$imgPath}/box/1-BOTTOM.png"/></td>
|
|
<td><img src="{$imgPath}/box/1-BACK.png"/></td>
|
|
<td><img src="{$imgPath}/box/1-FRONT.png"/></td>
|
|
<td><img src="{$imgPath}/box/1-LEFT.png"/></td>
|
|
<td><img src="{$imgPath}/box/1-RIGHT.png"/></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Cube-2</th>
|
|
<td><img src="{$imgPath}/box/2-TOP.png"/></td>
|
|
<td><img src="{$imgPath}/box/2-BOTTOM.png"/></td>
|
|
<td><img src="{$imgPath}/box/2-BACK.png"/></td>
|
|
<td><img src="{$imgPath}/box/2-FRONT.png"/></td>
|
|
<td><img src="{$imgPath}/box/2-LEFT.png"/></td>
|
|
<td><img src="{$imgPath}/box/2-RIGHT.png"/></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"/></td>
|
|
{/for}
|
|
</tr>
|
|
<tr>
|
|
<th>Back</th>
|
|
{for $i=1 to 5}
|
|
<td><img src="{$imgPath}/chocos/{$i}B.png"/></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"/></td>
|
|
{/for}
|
|
</tr>
|
|
<tr>
|
|
<th>Back</th>
|
|
{for $i=1 to 5}
|
|
<td><img src="{$imgPath}/chocos/{$i}B.png"/></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"/></td>
|
|
{/for}
|
|
</tr>
|
|
<tr>
|
|
<th>Back</th>
|
|
{for $i=1 to 5}
|
|
<td><img src="{$imgPath}/chocos/{$i}B.png"/></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"/></td>
|
|
{/for}
|
|
</tr>
|
|
<tr>
|
|
<th>Back</th>
|
|
{for $i=1 to 5}
|
|
<td><img src="{$imgPath}/chocos/{$i}B.png"/></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} |