function cols_menu($cols = false) { if ($cols === false) { return ""; } $list = ""; foreach ($cols as $k => $v) { if (get_purview($v['controller'] . '/index/' . $v['cid'])) { $bool_more = (bool) $v['more']; $list .= $bool_more ? "<li class='dropdown-submenu'>" : "<li>"; $list .= "<a id='c" . $v['cid'] . "'"; $list .= $bool_more ? "href='javascript:void(0)' class='dropdown-toggle' data-toggle='dropdown' data-target='#'" : " href='" . site_url($v['controller'] . '/index/' . $v['cid']); $list .= "' title='" . $v['ctitle'] . "'>"; $list .= $bool_more ? '<i class="fa fa-chevron-circle-right" title="' . $v['ctitle'] . '"> </i> ' : '<i class="fa fa-circle-o" title="' . $v['ctitle'] . '"> </i> '; $list .= '<span class="i-title">' . $v['ctitle'] . '</span>'; if ($v['cdepth'] == 0) { $list .= "<div class='wp-menu-arrow'><div></div></div>"; } $list .= '</a>'; if ($bool_more and is_array($v['more'])) { $list .= '<ul class="dropdown-menu">'; $list .= cols_menu($v['more']); $list .= '</ul>'; } $list .= '<li>'; } } return $list; }
' class="btn btn-danger"> <a href="#" data-dismiss="modal" aria-hidden="true" class="btn btn-danger"> <?php echo lang('close'); ?> </a> </div> </form> </div> <!-- end modal --> <?php include_once 'inc_ui_limit.php'; ?> <?php // 权限设定子目录添加 if (get_purview('columns/create')) { $back_url = urlencode(current_url()); $col_create_url = site_urlc('columns/create') . '&back_url=' . $back_url; ?> <!-- <div class="btn-group pull-right"> <a href="<?php echo $col_create_url; ?> " class='btn btn-primary'> <i class="icon-plus icon-white"></i> 子栏目 </a> </div> --> <?php } ?> <p></p>