Edit File: manage.tpl
{capture name="mainbox"} <form action="{""|fn_url}" method="post" name="manage_membership_form"> {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 $membership} <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> <th width="5%"><a class="{$ajax_class}{if $search.sort_by == "membership_id"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=membership_id&sort_order={$search.sort_order}" rev="pagination_contents">{__("id")}</a></th> <th width="5%"><a class="{$ajax_class}{if $search.sort_by == "order_id"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=order_id&sort_order={$search.sort_order}" rev="pagination_contents">{__("order_id")}</a></th> <th width="15%"><a class="{$ajax_class}{if $search.sort_by == "card_no"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=card_no&sort_order={$search.sort_order}" rev="pagination_contents">{__("membership_card_no")}</a></th> <th width="10%"><a class="{$ajax_class}{if $search.sort_by == "type"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=type&sort_order={$search.sort_order}" rev="pagination_contents">{__("membership_card_type")}</a></th> <th width="10%"><a class="{$ajax_class}{if $search.sort_by == "start"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=start&sort_order={$search.sort_order}" rev="pagination_contents">{__("membership_start")}</a></th> <th width="10%"><a class="{$ajax_class}{if $search.sort_by == "end"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=end&sort_order={$search.sort_order}" rev="pagination_contents">{__("membership_end")}</a></th> <th width="20%"><a class="{$ajax_class}{if $search.sort_by == "name"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=name&sort_order={$search.sort_order}" rev="pagination_contents">{__("membership_user")}</a></th> <th width="20%"><a class="{$ajax_class}{if $search.sort_by == "email"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=email&sort_order={$search.sort_order}" rev="pagination_contents">{__("membership_email")}</a></th> <th>{hook name="membership:manage_head"}{/hook}</th> <th width="5%"> </th> <th width="10%"><a class="{$ajax_class}{if $search.sort_by == "status"} sort-link-{$search.sort_order}{/if}" href="{$c_url}&sort_by=status&sort_order={$search.sort_order}" rev="pagination_contents">{__("status")}</a></th> </tr> {foreach from=$membership item="m"} <tr class="cm-row-status-{$m.status|lower}"> <td class="left"> <input type="checkbox" name="membership_ids[]" value="{$m.membership_id}" class="checkbox cm-item cm-item-status-{$m.status|lower}" /></td> <td><a href="{$index_script}?dispatch=membership.update&membership_id={$m.membership_id}">{$m.membership_id}</a></td> <td> {if $m.order_id}<a href="{$index_script}?dispatch=orders.details&order_id={$m.order_id}">{$m.order_id}</a>{else} {/if} </td> <td><a href="{$index_script}?dispatch=membership.update&membership_id={$m.membership_id}">{$m.card_no}</a></td> <td>{$m.type|fn_tns_membership_get_membership_title}</td> <td>{$m.start|date_format:"`$settings.Appearance.date_format`"}</td> <td>{$m.end|date_format:"`$settings.Appearance.date_format`"}</td> <td>{$m.name}<br />{$m.phone}</td> <td><a href="mailto:{$m.email}">{$m.email}</a></td> <td>{hook name="membership:manage_body"}{/hook}</td> <td class="nowrap"> <div class="hidden-tools"> {capture name="tools_list"} {hook name="membership:list_extra_links"} <li>{btn type="list" text=__("edit") href="membership.update?membership_id=`$m.membership_id`"}</li> {if !$hide_inputs_if_shared_product} <li>{btn type="list" text=__("delete") class="cm-confirm" href="membership.delete?membership_id=`$m.membership_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=$m.membership_id status=$m.status hidden=true object_id_name="membership_id" table="membership"} </td> </tr> {foreachelse} <tr class="no-items"> <td colspan="8"><p>{__("no_data")}</p></td> </tr> {/foreach} </table> {else} <p class="no-items">{__("no_data")}</p> {/if} {capture name="buttons"} {capture name="tools_list"} {hook name="membership:action_buttons"} {if $membership} {*<li class="divider"></li>*} {*<li>{btn type="list" text=__("export_selected") dispatch="dispatch[membership.export_range]" form="manage_membership_form"}</li>*} <li>{btn type="delete_selected" dispatch="dispatch[membership.m_delete]" form="manage_membership_form"}</li> {/if} {/hook} {/capture} {dropdown content=$smarty.capture.tools_list} {if $membership} {include file="buttons/save.tpl" but_name="dispatch[membership.m_update]" but_role="submit-link" but_target_form="manage_membership_form"} {/if} {/capture} {capture name="adv_buttons"} {hook name="membership:manage_tools"} {include file="common/tools.tpl" tool_href="membership.add" prefix="top" title=__("add_membership") 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="membership.manage" view_type="membership"} {include file="addons/tns_membership/views/membership/components/membership_search_form.tpl" dispatch="membership.manage"} {/capture} {include file="common/mainbox.tpl" title=__("membership") 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_membership"}
Back to File Manager