
<ul style="margin:0px;">
  <?php foreach($sortobj as $value){$sort_char=$model->getsort($channel_id,$value->sort_id)->count();?>
  <li><span id="img_<?=$channel_id."_".$value->sort_id?>" style="background:url(<?=BASEURI?><?php if($sort_char>0){?>/public/admin/joolma/images/gif_icon/tree_close.gif<?php }else{?>/public/admin/joolma/images/gif_icon/tree_open.gif<?php }?>) no-repeat center left;<?php if($sort_char>0){?>cursor:pointer;" onclick="sort_menu(<?=$channel_id?>,<?=$value->sort_id?>,'<?=$channel_id."_".$value->sort_id?>')"<?php } else{?>"<?php }?>>&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="javascript:update_html_sort(<?=$channel_id.",".$value->sort_id?>)">
    <?=$value->sort_name?>
    </a></li>
  <li id="<?=$channel_id."_".$value->sort_id?>" style="display:none;"><img src="<?=BASEURL?>public/admin/joolma/images/loading_1.gif"><?=$this->lang->line('loading')?></li>
  <?php }?>
</ul>
