<?php // The ID of the taxonomy vocabulary for which you'd like to create a nested list $vid = 10; $depth = 0; $num_at_depth = 0; $tree = taxonomy_get_tree($vid); print "<ul class="menu">\n<li>"; foreach ($tree as $term) { $diffdepth=0; if ($term->depth > $depth) { print "\n<ul>\n<li>"; $depth = $term->depth; $num_at_depth = 0; } if ($term->depth < $depth) { $diffdepth= $depth -$term->depth; while ($diffdepth > 0){ print "</li>\n</ul>\n"; $diffdepth -- ; } $depth = $term->depth; } if (($term->depth == $depth) && ($num_at_depth > 0)) { print "</li>\n<li>"; } print l($term->name, 'taxonomy/term/' . $term->tid); $num_at_depth ++; } print "</li>\n</ul>\n"; ?>
相关推荐
Risk Taxonomy Risk Taxonomy Risk Taxonomy
2019+A PUF taxonomy.pdf
Laravel开发-laravel-taxonomy Laravel模型分类法
encompassing and richer multi-level face recognition taxonomy, facilitating the organization and categorization of available and emerging face recognition solutions; thistaxonomy may also guide ...
Laravel开发-taxonomy Laravel 5.x的分类库
python库。 资源全名:taxonomy-connector-1.11.1.tar.gz
We propose a taxonomy of botnet structures, based on their utility to the botmaster. We propose key metrics to measure their utility for various activities (e.g., spam, ddos). Using these performance ...
资源来自pypi官网。 资源全名:taxonomy_ranks-0.0.7.tar.gz
python库。 资源全名:taxonomy-0.7.0-cp38-cp38-manylinux1_x86_64.whl
资源分类:Python库 所属语言:Python 资源全名:rcsb.utils.taxonomy-0.24.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
Visual-and-Language Navigation A Survey and Taxonomy.zip
Human computation- a survey and taxonomy of a growing field
Data quality is a vital topic for business analytics in order to gain accurate insight and make correct decisions in many data-intensive industries. Albeit systematic approaches to categorize, detect,...
Shallow and Deep Networks Intrusion Detection System: A Taxonomy and Survey Elike Hodo
TaxonID_Taxonomy.pl
SAE J3016:2021 Taxonomy and Definitions for Terms Related to Dri
Taxonomy-Images-源码.rar
This paper gives the main definitions relating to dependability, a generic concept including as special case such attributes as reliability, availability, safety, integrity, maintainability, etc....
它需要访问由GenBank ftp://ftp.ncbi.nih.gov/pub/taxonomy/gi_taxid_nucl.dmp.gz维护的(很大)映射文件,这些映射表是制表gid taxid count制表符分隔列表,例如输入行160338813 160输出为160338813 436308 160 ...