Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/edit_list_attribute_set_values_old.tpl
<div id="product_attribute_box">
{section name=product_attributes loop=$product_attributes}
{$product_attributes[product_attributes].attribute_id},{$product_attributes[product_attributes].attribute_value}<br />
{/section}
<input type="hidden" name="set_id" value="{$attribute_set_id}" />



{section name=all_attribute_set_id loop=$all_attribute_set_id}
{assign var=set_selected value=''}dd
{$all_attribute_set_id[all_attribute_set_id].attribute_name}: <select id="attribute_{$all_attribute_set_id[all_attribute_set_id].attribute_id}" name="attribute_{$all_attribute_set_id[all_attribute_set_id].attribute_id}">{section name=all_attribute_set_value loop=$all_attribute_set_value}
  
    {if $all_attribute_set_id[all_attribute_set_id].attribute_id == $all_attribute_set_value[all_attribute_set_value].attribute_id}
  	
    {section name=product_attributes loop=$product_attributes}
    {if $product_attributes[product_attributes].attribute_id==$all_attribute_set_value[all_attribute_set_value].attribute_id}
    {assign var=set_selected value='selected'}
        <option value="{$all_attribute_set_value[all_attribute_set_value].attribute_value}" {$set_selected}> {$all_attribute_set_id[all_attribute_set_id].attribute_id}, {$all_attribute_set_value[all_attribute_set_value].attribute_id} = {$all_attribute_set_value[all_attribute_set_value].attribute_value}</option>   
	{/if}
    {/section}	
        
    <option value="{$all_attribute_set_value[all_attribute_set_value].attribute_value}" {$set_selected}> {$all_attribute_set_id[all_attribute_set_id].attribute_id}, {$all_attribute_set_value[all_attribute_set_value].attribute_id} = {$all_attribute_set_value[all_attribute_set_value].attribute_value}</option>   

    

	
         	
    {/if}
    
{/section}
</select>
<br />

{/section}
</div>
Return current item: Simple PHP Shopping cart - asaancart