Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/list_all_products.tpl
<p class="info_box" style="font-size:11px;">Legends: <img src="images/icons/new_arrival.png" title="New arraival" align="absmiddle" /> New Arrival <img src="images/icons/rosette.png" title="Clearence" align="absmiddle" /> Clearence <img src="images/icons/star.png" title="Featured" align="absmiddle"  /> Featured <img src="images/icons/medal_gold_3.png" title="Special" align="absmiddle" /> Special <img src="images/icons/online.png" title="Online" align="absmiddle" /> Online<br />
</p>

{if $msg==""}{else}
<div id="msg_small">&nbsp;{$msg}</div><br />
{/if}

<table width="700" border="0" cellpadding="5" cellspacing="1" bgcolor="#D9ECFF" id="irForm">
  <tr class="section_header">
  	<td width="120" align="center"><strong>Name</strong></td>
    <td align="center"><strong>Description</strong></td>
    <td width="60" align="center"><strong>Price</strong></td>
    <td align="center"><strong>Image</strong></td>
    <td width="190" align="center"><strong>Actions</strong></td>
  </tr>
  {section name=all_product_list loop=$all_product_list}
  <tr>
    <td valign="top" bgcolor="#FFFFFF">{$all_product_list[all_product_list].product_name}</td>
    <td valign="top" bgcolor="#FFFFFF">{$all_product_list[all_product_list].product_description|truncate:100:"..."}</td>
    <td valign="top" bgcolor="#FFFFFF">$ {$all_product_list[all_product_list].product_price}</td>
    <td valign="top" bgcolor="#FFFFFF">{section name=product_images loop=$product_images}
{if $product_images[product_images].product_id == $all_product_list[all_product_list].product_id}
<img src="../product_images/{$product_images[product_images].image_filename}" width="100" />{/if}
{/section}</td>
    <td valign="top" bgcolor="#FFFFFF" align="center"><a href="javascript:deleteProduct('{$all_product_list[all_product_list].product_id}');"><img src="images/icons/delete.png" title="Delete" /></a>&nbsp;&nbsp;<a href="edit_product.php?product_id={$all_product_list[all_product_list].product_id}"><img src="images/icons/pencil.png" title="Edit" /></a>
    
    {if $all_product_list[all_product_list].is_special=="yes"}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'undo_special');"><img src="images/icons/medal_gold_3.png" title="Undo as special" /></a>{else}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'set_special');"><img src="images/icons/medal_gold_3_gray.png" title="Set as special" /></a>
    {/if}
    {if $all_product_list[all_product_list].is_featured=="yes"}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'undo_featured');"><img src="images/icons/star.png" title="Undo as featured" /></a>{else}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'set_featured');"><img src="images/icons/star_gray.png" title="Set as featured" /></a>
    {/if}
    
    {if $all_product_list[all_product_list].is_clearence=="yes"}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'undo_clearence');"><img src="images/icons/rosette.png" title="Undo as clearence" /></a>{else}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'set_clearence');"><img src="images/icons/rosette_gray.png" title="Set as clearence" /></a>
    {/if}
    
    {if $all_product_list[all_product_list].is_new=="yes"}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'undo_new');"><img src="images/icons/new_arrival.png" title="Undo as new arraival" /></a>{else}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'set_new');"><img src="images/icons/new_arrival_gray.png" title="Set as new arraival" /></a>
    {/if}
    
    {if $all_product_list[all_product_list].product_status=="online"}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'offline');"><img src="images/icons/online.png" title="Set as offline" /></a>{else}&nbsp;&nbsp;<a href="javascript:updateProductStatus('{$all_product_list[all_product_list].product_id}', 'online');"><img src="images/icons/online_gray.png" title="Set as online" /></a>
    {/if}
    
 </td>
  </tr>
  {/section}
</table>


Return current item: Simple PHP Shopping cart - asaancart