Edit File: manage.tpl
{capture name="mainbox"} <form action="{""|fn_url}" method="post" name="manage_products_form"> <input type="hidden" name="category_id" value="{$search.cid}" /> {include file="common/pagination.tpl" save_current_page=true save_current_url=true div_id=$smarty.request.content_id} {assign var="c_url" value=$config.current_url|fn_query_remove:"sort_by":"sort_order"} {assign var="rev" value=$smarty.request.content_id|default:"pagination_contents"} {assign var="c_icon" value="<i class=\"exicon-`$search.sort_order_rev`\"></i>"} {assign var="c_dummy" value="<i class=\"exicon-dummy\"></i>"} {if $products} <table width="100%" class="table table-middle"> <thead> <tr> <th class="left"> {include file="common/check_items.tpl" check_statuses=''|fn_get_default_status_filters:true} </th> {if $search.cid && $search.subcats != "Y"} <th class="nowrap"><a class="cm-ajax" href="{"`$c_url`&sort_by=position&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("position_short")}{if $search.sort_by == "position"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a></th> {/if} <th width="5%"><span>{__("image")}</span></th> <th width="20%"><span>{__("product")}</span></th> <th width="25%"><a class="cm-ajax" href="{"`$c_url`&sort_by=product&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("name")}{if $search.sort_by == "product"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a> / <a class="{$ajax_class}" href="{"`$c_url`&sort_by=code&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("sku")}{if $search.sort_by == "code"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a></th> <th width="15%"><a class="cm-ajax" href="{"`$c_url`&sort_by=price&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("price")} ({$currencies.$primary_currency.symbol nofilter}){if $search.sort_by == "price"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a></th> <th width="15%"><a class="cm-ajax" href="{"`$c_url`&sort_by=list_price&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("list_price")} ({$currencies.$primary_currency.symbol nofilter}){if $search.sort_by == "list_price"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a></th> <th>{hook name="audios:manage_head"}{/hook}</th> <th width="5%"> </th> <th width="10%" class="right"><a class="cm-ajax" href="{"`$c_url`&sort_by=status&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("status")}{if $search.sort_by == "status"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a></th> </tr> </thead> {foreach from=$products item=product} {if "ULTIMATE"|fn_allowed_for} {if $runtime.company_id && $product.is_shared_product == "Y" && $product.company_id != $runtime.company_id} {assign var="hide_inputs_if_shared_product" value="cm-hide-inputs"} {assign var="no_hide_input_if_shared_product" value="cm-no-hide-input"} {else} {assign var="hide_inputs_if_shared_product" value=""} {assign var="no_hide_input_if_shared_product" value=""} {/if} {if !$runtime.company_id && $product.is_shared_product == "Y"} {assign var="show_update_for_all" value=true} {else} {assign var="show_update_for_all" value=false} {/if} {/if} <tr class="cm-row-status-{$product.status|lower} {$hide_inputs_if_shared_product}"> <td class="left"> <input type="checkbox" name="product_ids[]" value="{$product.product_id}" class="checkbox cm-item cm-item-status-{$product.status|lower}" /></td> {if $search.cid && $search.subcats != "Y"} <td> <input type="text" name="products_data[{$product.product_id}][position]" size="3" value="{$product.position}" class="input-micro" /></td> {/if} <td> {include file="common/image.tpl" image=$product.main_pair.icon|default:$product.main_pair.detailed image_id=$product.main_pair.image_id image_width=50 href="audios.update?product_id=`$product.product_id`"|fn_url} </td> <td> <a href="{"products.update?product_id=`$product.parent_product_id`"|fn_url}">{$product.parent_product}</a> </td> <td> <input type="hidden" name="products_data[{$product.product_id}][product]" value="{$product.product}" {if $no_hide_input_if_shared_product} class="{$no_hide_input_if_shared_product}"{/if} /> <a class="row-status" href="{"audios.update?product_id=`$product.product_id`"|fn_url}">{$product.product|truncate:40 nofilter}</a> <div class="product-code"> <span class="product-code-label row-status">{__("sku")} </span> <input type="text" name="products_data[{$product.product_id}][product_code]" size="15" maxlength="32" value="{$product.product_code}" class="input-hidden span2" /> </div> {include file="views/companies/components/company_name.tpl" object=$product} </td> <td{if $no_hide_input_if_shared_product} class="{$no_hide_input_if_shared_product}"{/if}> {include file="buttons/update_for_all.tpl" display=$show_update_for_all object_id="price_`$product.product_id`" name="update_all_vendors[price][`$product.product_id`]"} <input type="text" name="products_data[{$product.product_id}][price]" size="6" value="{$product.price|fn_format_price:$primary_currency:null:false}" class="input-mini input-hidden"/> </td> <td> <input type="text" name="products_data[{$product.product_id}][list_price]" size="6" value="{$product.list_price}" class="input-mini input-hidden" /></td> <td>{hook name="audios:manage_body"}{/hook}</td> <td class="nowrap"> <div class="hidden-tools"> {capture name="tools_list"} {hook name="audios:list_extra_links"} <li>{btn type="list" text=__("edit") href="audios.update?product_id=`$product.product_id`"}</li> {if !$hide_inputs_if_shared_product} <li>{btn type="list" text=__("delete") class="cm-confirm" href="audios.delete?product_id=`$product.product_id`"}</li> {/if} {/hook} {/capture} {dropdown content=$smarty.capture.tools_list} </div> </td> <td class="right nowrap"> {include file="common/select_popup.tpl" popup_additional_class="dropleft" id=$product.product_id status=$product.status hidden=true object_id_name="product_id" table="products"} </td> </tr> {/foreach} </table> {else} <p class="no-items">{__("no_data")}</p> {/if} {capture name="buttons"} {capture name="tools_list"} {hook name="audios:action_buttons"} {if $products} <li class="divider"></li> <li>{btn type="list" text=__("export_selected") dispatch="dispatch[audios.export_range]" form="manage_products_form"}</li> <li>{btn type="delete_selected" dispatch="dispatch[audios.m_delete]" form="manage_products_form"}</li> {/if} {/hook} {/capture} {dropdown content=$smarty.capture.tools_list} {if $products} {include file="buttons/save.tpl" but_name="dispatch[audios.m_update]" but_role="submit-link" but_target_form="manage_products_form"} {/if} {/capture} {capture name="adv_buttons"} {hook name="audios:manage_tools"} {include file="common/tools.tpl" tool_href="audios.add?product_type=A" prefix="top" title=__("add_product") hide_tools=true icon="icon-plus"} {/hook} {/capture} <div class="clearfix"> {include file="common/pagination.tpl" div_id=$smarty.request.content_id} </div> </form> {/capture} {capture name="sidebar"} {include file="common/saved_search.tpl" dispatch="audios.manage" view_type="products"} {include file="addons/tns/views/audios/components/products_search_form.tpl" dispatch="audios.manage"} {/capture} {include file="common/mainbox.tpl" title=__("audios") content=$smarty.capture.mainbox title_extra=$smarty.capture.title_extra adv_buttons=$smarty.capture.adv_buttons select_languages=true buttons=$smarty.capture.buttons sidebar=$smarty.capture.sidebar content_id="manage_products"}
Back to File Manager