{if $type=='catalog'} <div class="leftside01 mandatory">{$language.lblProductCategory}</div>
<div class="rightside01 fixing_right top-spc">
    <div class="div-city">
    <ul class="levl-03 categorytree">
      {foreach item="categoryTree" from=$resCategoryTree}     
      {assign var="categoryName" value=$categoryTree.1}      
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showPath(this,0)" name="productCategoryID" onchange="setSelected('category')" class="categoryTree" options=$categoryTree.0|cat:"->"|cat:"&nbsp;"|cat:$categoryName value=$resProductcategory|default:''}</li>
      {/foreach}
    </ul>
   </div> 
</div>
  {else if $type=='product'}
      <div class="leftside01 mandatory clearfix">{$language.lblProducts}</div>
   <div class="rightside01 fixing_right top-spc"> 
        <div>{$language.lblProductIDTitle} {form->textbox name="searchName" onblur="refreshListItems()" onkeyup="refreshListItems()" class="text-box" style="width:30%"} 
            {$language.lblCategory}            
                {form->select name="searchCategory" onchange="refreshListItems()" class="AjxSrch" caption="->{$language.lblSelect}" style="width:20%" options=$resCategories} 
                <a href="javascript:void(0);" class="action-link" onclick="resetAll();">{$language.lblListAll}</a>
                <span id="ListLoader" class="hide">&nbsp;<img src="{$view_images}/loader.gif" /></span>
      </div> 
       <div class="clearfix"></div>
      <br>
      <div class="div-city" id="AjxRfrshDiv" style="width:67%">
    <ul class="levl-03 categorytree">
      {foreach item="product" from=$resProducts}   
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showCategory(this)" name="productID" onchange="setSelected('product')" class="productTree" options=$product.0|cat:"->"|cat:"&nbsp;"|cat:$product.1 value=$resProducts}</li>
      {/foreach}
    </ul>
   </div>   
</div> 
  {else if $type=='prodCatalog'}  
     <div class="leftside01">{$language.lblProductCategory}</div>
   <div class="rightside01 fixing_right top-spc">
    <div class="div-city">
    <ul class="levl-03 categorytree">
      {foreach item="catalog" from=$resCategory}
   
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showPath(this,'{$productID}')" name="prodCategoryID" options=$catalog.productCategoryID|cat:"->"|cat:"&nbsp;"|cat:$catalog.productCategoryName}</li>
      {/foreach}
    </ul>
   </div> 
</div> 
   {else if $type=='page'}  
     <div class="leftside01">{$language.lblPage}</div>
   <div class="rightside01 fixing_right top-spc">
   <div>{$language.lblPageTitle} {form->textbox name="searchName" onblur="refreshListItems()" onkeyup="refreshListItems()" class="text-box" style="width:30%"} 
       <a href="javascript:void(0);" class="action-link" onclick="resetAll();">{$language.lblListAll}</a>
       <span id="ListLoader" class="hide">&nbsp;<img src="{$view_images}/loader.gif" /></span>
              </div> 
       <div class="clearfix"></div>
      <br>
      <div class="div-city" id="AjxRfrshDiv" style="width:67%">
    <ul class="levl-03 categorytree">
      {foreach item="page" from=$resPages}         
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showPath(this)" onchange="setSelected('page')" name="pageID" class="pageTree" options=$page.0|cat:"->"|cat:"&nbsp;"|cat:$page.1 value=$resPages}</li>
      {/foreach}
    </ul>
   </div> 
</div>   
   {else if $type=='menu'}  
       <div class="leftside01">{$language.lblMenuItem}</div>
   <div class="rightside01 fixing_right top-spc">
    <div class="div-city">
        {if $resMenuList}
            {foreach from=$resMenuList item="menuList"} 
                {if !empty($menuList[2]) && is_array($menuList[2])}			 
                <h5> <strong>{$menuList[1]}</strong></h5>
                    <ul class="levl-03 categorytree" >
                               {* define the function *}  
                        {function name=menuItems level=0}
                          {foreach from=$data item="entry"} 
                            <li data-level="{$level}" style="width:97%;{if $level>1}padding-left: 20px!important;{/if}">
                           {form->hidden name="menuorder_{$entry.menuItemID}" value="{$entry.orderID}"}                                         
							{form->hidden name="modulekey_{$entry.menuItemID}" value="{$entry.moduleKey}"} 
                            {assign var="menuItemName" value=$entry.menuItemName}
                             {if $entry.moduleKey!='seperator' && $entry.moduleKey!='url' && $entry.moduleKey!='text'}
                            {form->radio tabindex="3" onchange="setSelected('menu')" onclick="showPath(this,0)" class="menuTree" name="menuItemID" options=$entry.menuItemID|cat:"->"|cat:"&nbsp;"|cat:$menuItemName}
                            {else if $entry.moduleKey=='text'}
                                <span><strong>{$menuItemName}</strong></span>
                              {/if}
                             {if isset($entry['children']) && is_array($entry['children']) && !empty($entry['children'])}
                               <ul> 
                                 {call name=menuItems data=$entry['children'] level=$level+1}  <!--menu function calling-->
                               </ul>                          
                            {else}
                                 {if (is_array($entry)) && (is_numeric($entry['menuItemID']))} </li> {/if}
                            {/if}
                          {/foreach}  
                        {/function}
                        {call menuItems data=$menuList[2]} <!--menu function calling-->
                    </ul>					
                {/if}
                {/foreach}  
                {/if}         	
   </div>
   </div> 
 {else if $type=='blog'}  
     <div class="leftside01">{$language.lblMenuBlog}</div>
   <div class="rightside01 fixing_right top-spc">
    <div>{$language.lblBlogTitle} {form->textbox name="searchName" onblur="refreshListItems()" onkeyup="refreshListItems()" class="text-box" style="width:30%"} 
            {$language.lblCategory}            
                {form->select name="searchCategory" onchange="refreshListItems()" class="AjxSrch" caption="->{$language.lblSelect}" style="width:20%" options=$resCategories} 
                <a href="javascript:void(0);" class="action-link" onclick="resetAll();">{$language.lblListAll}</a>
                <span id="ListLoader" class="hide">&nbsp;<img src="{$view_images}/loader.gif" /></span>
      </div> 
       <div class="clearfix"></div>
      <br>
   <div class="div-city" id="AjxRfrshDiv" style="width:67%">
    <ul class="levl-03 categorytree">
      {foreach item="blog" from=$resBlogs}         
      <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
          {form->radio tabindex="3" onclick="showPath(this)" onchange="setSelected('blog')" name="blogID" class="blogTree" options=$blog.0|cat:"->"|cat:"&nbsp;"|cat:$blog.1 value=$resBlogs}</li>
      {/foreach}
    </ul>

   </div> 
  
</div> 
  {else if $type=='blogCategory'}    
      <div class="leftside01">{$language.lblCategory}</div>											
    <div class="rightside01 fixing_right top-spc">
      <div class="div-city">
            <ul class="levl-03 categorytree clearfix">
              {foreach item="categoryTree" from=$resCategories}
              {if $categoryTree.2=='Inactive'}
              {assign var="categoryName" value="<span class='inactive'>"|cat:$categoryTree.1|cat:"</span>"}              
              {else}
              {assign var="categoryName" value=$categoryTree.1} 
              {/if}
              <li class="clearfix" style="width:97%;margin-bottom: 4px;"> 
                  {form->radio onclick="showPath(this)" tabindex="3" onchange="setSelected('blogCategory')" name="blogCategoryID" class="blogCategoryTree" options=$categoryTree.0|cat:"->"|cat:"&nbsp;"|cat:$categoryName value=$resBlogcategory|default:''}</li>
              {/foreach}
            </ul>

       </div> 
       </div>
{/if}