人人商城

tabs.html 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <style type='text/css'>
  2. .goods-list a {
  3. position: relative;
  4. }
  5. .goods-list span {
  6. float:right;margin-right:20px;
  7. }
  8. </style>
  9. {php $totals = m('goods')->getTotals()}
  10. {ifp 'goods'}
  11. <div class='menu-header'>商品管理</div>
  12. <ul class='goods-list'>
  13. <li {if $_GPC['goodsfrom'] == 'sale'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'sale'))}">出售中<span>{$totals['sale']}</span></a></li>
  14. <li {if $_GPC['goodsfrom'] == 'out'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'out'))}">已售罄<span class='text-danger'>{$totals['out']}</span></a></li>
  15. <li {if $_GPC['goodsfrom'] == 'stock'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'stock'))}">仓库中<span>{$totals['stock']}</span></a></li>
  16. <li {if $_GPC['goodsfrom'] == 'cycle'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'cycle'))}">回收站<span class='text-default'>{$totals['cycle']}</span></a></li>
  17. {if p('merch')}
  18. <li {if $_GPC['goodsfrom'] == 'verify'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'verify'))}">待审核<span class='text-default'>{$totals['verify']}</span></a></li>
  19. {/if}
  20. {ifp 'goods.category'}<li {if $_W['action'] == 'goods.category'} class="active" {/if}><a href="{php echo webUrl('goods/category')}">商品分类</a></li>{/if}
  21. {ifp 'goods.group'}<li {if $_GPC['r'] == 'goods.group' || $_GPC['r'] == 'goods.group.edit'}class="active" {/if}><a href="{php echo webUrl('goods/group')}">商品组</a></li>{/if}
  22. <li {if $_W['action'] == 'goods.label'} class="active" {/if}><a href="{php echo webUrl('goods/label')}">标签管理</a></li>
  23. </ul>
  24. {/if}
  25. {if com('virtual')}
  26. {ifp 'goods.virtual.temp|goods.virtual.category|goods.virtual.data'}
  27. <div class='menu-header'>虚拟卡密</div>
  28. <ul>
  29. {ifp 'goods.virtual.temp'}<li {if $_W['action'] == 'goods.virtual.temp' ||$_W['action'] == 'goods.virtual.data'} class="active" {/if}><a href="{php echo webUrl('goods/virtual/temp')}">虚拟卡密</a></li>{/if}
  30. {ifp 'goods.virtual.category'}<li {if $_W['action'] == 'goods.virtual.category'} class="active" {/if}><a href="{php echo webUrl('goods/virtual/category')}">卡密分类</a></li> {/if}
  31. {ifp 'goods.virtual.set'}<li {if $_W['action'] == 'goods.virtual.set'} class="active" {/if}><a href="{php echo webUrl('goods/virtual/set')}">设置</a></li> {/if}
  32. </ul>
  33. {/if}
  34. {/if}