Réorganisation navigation
This commit is contained in:
parent
59b13e6e4c
commit
84b35adcfa
5 changed files with 11 additions and 17 deletions
|
|
@ -7,20 +7,17 @@
|
|||
{{* filtrer selon la catégorie *}}
|
||||
{{if $_GET.cat_key == null}}
|
||||
{{:assign selected_category=$module.config.stock_cat_key}}
|
||||
{{if $module.config.stock_cat_key != null}}
|
||||
{{:assign cat_key=$selected_category|quote_sql}}
|
||||
{{/if}}
|
||||
{{elseif $_GET.cat_key == -1}}
|
||||
{{:assign selected_category=null}}
|
||||
{{:save key="config" stock_cat_key=null}}
|
||||
{{else}}
|
||||
{{:assign selected_category=$_GET.cat_key}}
|
||||
{{:assign cat_key=$selected_category|quote_sql}}
|
||||
{{:save key="config" stock_cat_key=$selected_category}}
|
||||
{{/if}}
|
||||
|
||||
{{* condition de filtrage *}}
|
||||
{{if $selected_category != null}}
|
||||
{{:assign cat_key=$selected_category|quote_sql}}
|
||||
{{:assign cat_condition="$$.category = %s"|args:$cat_key}}
|
||||
{{else}}
|
||||
{{:assign cat_condition="1"}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue