Jump to content

affaiche ou non de la colonne de gauche


Recommended Posts

bonjour

 

voila mon souci

 

losque j'affiche "mes avoirs" fichier tpl: order_slip.tpl, je n'ai pas ma colonne de gauche , je n'ai qu'au centre mes avaoirs

 

par contre lorsque j'affiche "mes retours produits" , fichier tpl: order-follow , j'ai ma page retour et en dessous ma colonne de gauche

 

je ne vois pas ou je peux faire disparaitre la colonne de gauche suivant ce que l'on affiche

 

voici les 2 fichiers

 

<script type="text/javascript">

<!--

var baseDir = '{$base_dir_ssl}';

-->

</script>

<div class="block-center" id="block-history">

{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Return Merchandise Authorization (RMA)'}{/capture}

<h1>{l s='Return Merchandise Authorization (RMA)'}</h1>

{if isset($errorQuantity) && $errorQuantity}<p class="error">{l s='You do not have enough products to request another merchandise return.'}</p>{/if}

{if isset($errorMsg) && $errorMsg}<p class="error">{l s='Please provide an explanation for your RMA.'}</p>{/if}

{if isset($errorDetail1) && $errorDetail1}<p class="error">{l s='Please check at least one product you would like to return.'}</p>{/if}

{if isset($errorDetail2) && $errorDetail2}<p class="error">{l s='Please provide a quantity for the product you checked.'}</p>{/if}

{if isset($errorNotReturnable) && $errorNotReturnable}<p class="error">{l s='This order cannot be returned.'}</p>{/if}

<p>{l s='Here are the merchandise returns you have made'}.</p>

{if $ordersReturn && count($ordersReturn)}

<table id="order-list" class="std">

 <thead>

  <tr>

<th class="first_item">{l s='Return'}</th>

<th class="item">{l s='Order'}</th>

<th class="item">{l s='Package status'}</th>

<th class="item">{l s='Date issued'}</th>

<th class="last_item">{l s='Return slip'}</th>

  </tr>

 </thead>

 <tbody>

 {foreach from=$ordersReturn item=return name=myLoop}

  <tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">

<td class="bold"><a class="color-myaccount" href="javascript:showOrder(0, {$return.id_order_return|intval}, '{$link->getPageLink('order-return.php')}');">{l s='#'}{$return.id_order_return|string_format:"%06d"}</a></td>

<td class="history_method"><a class="color-myaccount" href="javascript:showOrder(1, {$return.id_order|intval}, '{$link->getPageLink('order-detail.php')}');">{l s='#'}{$return.id_order|string_format:"%06d"}</a></td>

<td class="history_method"><span class="bold">{$return.state_name|escape:'htmlall':'UTF-8'}</span></td>

<td class="bold">{dateFormat date=$return.date_add full=0}</td>

<td class="history_invoice">

{if $return.state == 2}

	 <a href="{$base_dir}pdf-order-return.php?id_order_return={$return.id_order_return|intval}" title="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}"><img src="{$img_dir}icon/pdf.gif" alt="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}" class="icon" /></a>

	 <a href="{$base_dir}pdf-order-return.php?id_order_return={$return.id_order_return|intval}" title="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}">{l s='Print out'}</a>

{else}

	 --

{/if}

</td>

  </tr>

 {/foreach}

 </tbody>

</table>

<div id="block-order-detail" class="hidden"> </div>

{else}

 <p class="warning">{l s='You have no return merchandise authorizations.'}</p>

{/if}

<ul class="footer_links">

<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account'}</a></li>

<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home'}</a></li>

</ul>

</div>

 

et mes avoirs

<script type="text/javascript">

<!--

var baseDir = '{$base_dir_ssl}';

-->

</script>

<div class="block-center" id="block-order-slip">

{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Credit slips'}{/capture}

<h1>{l s='Credit slips'}</h1>

<p>{l s='Credit slips you have received after cancelled orders'}.</p>

<div class="block-center" id="block-history">

{if $ordersSlip && count($ordersSlip)}

<table id="order-list" class="std">

 <thead>

  <tr>

<th class="first_item">{l s='Credit slip'}</th>

<th class="item">{l s='Order'}</th>

<th class="item">{l s='Date issued'}</th>

<th class="last_item">{l s='View credit slip'}</th>

  </tr>

 </thead>

 <tbody>

 {foreach from=$ordersSlip item=slip name=myLoop}

  <tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">

<td class="bold"><span class="color-myaccount">{l s='#'}{$slip.id_order_slip|string_format:"%06d"}</span></td>

<td class="history_method"><a class="color-myaccount" href="javascript:showOrder(1, {$slip.id_order|intval}, 'order-detail');">{l s='#'}{$slip.id_order|string_format:"%06d"}</a></td>

<td class="bold">{dateFormat date=$slip.date_add full=0}</td>

<td class="history_invoice">

	 <a href="{$base_dir}pdf-order-slip.php?id_order_slip={$slip.id_order_slip|intval}" title="{l s='Credit slip'} {l s='#'}{$slip.id_order_slip|string_format:"%06d"}"><img src="{$img_dir}icon/pdf.gif" alt="{l s='Order slip'} {l s='#'}{$slip.id_order_slip|string_format:"%06d"}" class="icon" /></a>

	 <a href="{$base_dir}pdf-order-slip.php?id_order_slip={$slip.id_order_slip|intval}" title="{l s='Credit slip'} {l s='#'}{$slip.id_order_slip|string_format:"%06d"}">{l s='PDF'}</a>

</td>

  </tr>

 {/foreach}

 </tbody>

</table>

<div id="block-order-detail" class="hidden"> </div>

{else}

 <p class="warning">{l s='You have not received any credit slips.'}</p>

{/if}

</div>

<ul class="footer_links">

<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account'}</a></li>

<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home'}</a></li>

</ul>

</div>

Edited by DevNet
Intégration du code dans la balise CODE. (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...