$id = input('id') ? intval(input('id')) : $cate[0]['id'];
<aside>
<div class="menu-left scrollbar-none" id="sidebar">
<ul>
{volist name='cate' id='v'}
<a href="/m_cate?id={$v.id}">
<li {if $pid == $v['id']} class="active" {/if}>
{$v['name']}
</li>
</a>
{/volist}
</ul>
</div>
</aside>
{if condition="!empty($cate_c)" }
<section class="menu-right padding-all j-content">
{volist name="cate_c" id="v"}
<h5>{$v['name']}</h5>
{if !empty($v['next'])}
<ul>
{volist name="$v['next']" id="vv"}
<li class="w-3">
<a href="m_details?id={$vv.id}"></a>
<img src="http://xyhzp.jnpxjyw.com/{$vv['image']}" />
<span>{$vv['name']}</span>
</li>
{/volist}
</ul>
{/if}
{/volist}
</section>
{else/}
<section class="menu-right padding-all j-content">
{if empty($newtwo['cate_name'])}
{else/}
<h5>{$newtwo['cate_name']}</h5>
{/if}
<ul>
{volist name="newtwo" id="ve"}
{volist name="ve" id="vee"}
<li class="w-3">
<a href="m_details?id={$vee.id}"></a>
<img src="http://xyhzp.jnpxjyw.com/{$vee['image']}" />
<span>{$vee['name']}</span>
</li>
{/volist}
{/volist}
</ul>
</section>
{/if}