home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
discus_admin_1357211388
/
template
/
ui
/
admtree.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
25KB
|
644 lines
# FILE: admtree.tmpl
# DESCRIPTION: Actual generator of the tree view
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
<!--BEGIN-->
<#sub icon( $expanded, $param, $lastel, $force, $noexpanded )#>
<#if $noexpanded == 1#>
<#if $lastel == 0#>e<#else#>f<#endif#>\
<#else#>
<#if $browser->{ieX} || $force == 1#>
<#if $lastel == 0#>
<#if $param =~ match(Sublist)#>
<#if $expanded#>b<#else#>a<#endif#>\
<#else#>
e\
<#endif#>
<#else#>
<#if $param =~ match(Sublist)#>
<#if $expanded#>d<#else#>c<#endif#>\
<#else#>
f\
<#endif#>
<#endif#>
<#else#>
<#if $lastel == 0#>e<#else#>f<#endif#>\
<#endif#>
<#endif#>
<#endsub#>
<#if $part eq "head"#>
<style>
<!--
body { font-family: $color->{face}; line-spacing: 0 }
<#if $browser->{nsX}#>
.o { color: $GLOBAL_OPTIONS{COLOR_text} }
.f { color: $GLOBAL_OPTIONS{COLOR_text} }
<#endif#>
<#if $browser->{ieX}#>
img.navicon { height: 50; width: 46; border: 0 }
.o { color: $GLOBAL_OPTIONS{COLOR_text}; display: block; }
<#if $display_all_default == 1#>
.f { color: $GLOBAL_OPTIONS{COLOR_text}; display: block; }
<#else#>
.f { color: $GLOBAL_OPTIONS{COLOR_text}; display: none; }
<#endif#>
<#endif#>
-->
</style>
<script language="JavaScript1.2">
<!--
<#if $browser->{ieX}#>
function loader () {
treea = new Image();
treea.src = "$icon_url/tree_a.gif";
treeb = new Image();
treeb.src = "$icon_url/tree_b.gif";
treec = new Image();
treec.src = "$icon_url/tree_c.gif";
treed = new Image();
treed.src = "$icon_url/tree_d.gif";
}
function ex(el, lst) {
wel = eval("ch" + el);
iel = eval("i" + el);
wel.style.display = ( iel.src == treed.src || iel.src == treeb.src ) ? "none" : "block";
iel.src = ( wel.style.display == "block" ) ? ( lst == 1 ? treed.src : treeb.src ) : ( lst == 1 ? treec.src : treea.src );
return false;
}
<#else#>
function loader() {
}
<#endif#>
<#if $browser->{mozilla} >= 4.0 && $general->{force_nojs} != 1#>
function p(icons, page, islast, lasticon, pageicon, iconurl, texturl, target, name, islastpost, postnum, linkedtext, unlinkedtext) {
var out = '';
var imgsrc1 = '<img src="$general->{icon_url}/tree_';
var imgsrc2 = '.gif" border=0 height=16 width=20 align=top>';
var imgsrc3 = '<img name="i' + page + '" src="$general->{icon_url}/tree_';
for (var j = 0; j < icons.length; j = j + 1) {
k = icons.substring(j, 1+j);
out = out + imgsrc1 + k + imgsrc2;
}
if (typeof postnum == "undefined") {
<#if $browser->{ieX} && $display_all_default == 0#>
if (page) {
out = out + '<a href="#" onClick="return ex(' + page + ',';
if (islast) {
out = out + islast + ');">';
} else {
out = out + '0);">';
}
out = out + imgsrc3 + lasticon + imgsrc2;
out = out + '</a>';
} else {
out = out + imgsrc1 + lasticon + imgsrc2;
}
<#else#>
out = out + imgsrc1 + lasticon + imgsrc2;
<#endif#>
<#if $general->{icon_click_url}#>
out = out + '<a href="$general->{icon_click_url}' + $iconurl + '">';
<#endif#>
if (pageicon.length == 1) {
out = out + imgsrc1 + pageicon + imgsrc2;
} else {
out = out + '<img src="' + pageicon + '" border=0 align=top>';
}
<#if $general->{icon_click_url}#>
out = out + '</a>';
<#endif#>
if (texturl != "") {
out = out + '<a href="' + texturl + '"';
<#if $general->{new_window}#>
out = out + ' target="_blank"';
<#else#>
if (target != "") {
out = out + ' target="' + target + '"';
}
<#endif#>
<#if $general->{screen} == 0#>
out = out + '>' + name + '</a>';
<#else#>
out = out + '><b>' + name + '</b></a>';
<#endif#>
} else {
out = out + name;
}
} else {
if (islast != "*") {
out = out + imgsrc1;
if (islast == "1") {
out = out + "j";
} else {
out = out + "i";
}
out = out + imgsrc2;
}
out = out + imgsrc1;
if (islastpost == "0") {
out = out + "e";
} else {
out = out + "f";
}
out = out + imgsrc2 + imgsrc1 + "l" + imgsrc2 + '<font size=1>';
if (linkedtext != "" && texturl != "") {
out = out + '<a href="' + texturl + '#POST' + postnum;
<#if $general->{new_window}#>
out = out + '" target="_blank';
<#endif#>
out = out + '">' + linkedtext + '</a>';
}
out = out + ' - ' + unlinkedtext + '</font>';
}
document.write(out + '<BR>\n');
return true;
}
function pr(text) {
document.writeln(text);
return true;
}
<#endif#>
// -->
</script>
<#endif#>
<#if $part eq "body"#>
<#if $browser->{mozilla} >= 4 && $general->{force_nojs} != 1#>
<#if $browser->{ieX}#>
<!-- IE Tree -->
<#skipto "JS_tree_IE"#>
<#else#>
<!-- Non-IE Tree -->
<#skipto "JS_tree_NS"#>
<#endif#>
<#endif#>
<!-- Non-JavaScript Tree -->
###########################################################################################
# NON-JAVASCRIPT TREE, FOR OLD BROWSERS (BELOW VERSION 4.0 OF NETSCAPE AND IE)
#
# This takes longer to load and is generally less functional than the JavaScript version
###########################################################################################
<img src="$general->{icon_url}/tree_g.gif" height=16 width=20 align=top>$title<br>
<#foreach $topic_tree (@topic_tree)#>
<#if $general->{screen} == 0#>
<#if $general->{expand_url} ne ""#>
<a href="$general->{expand_url}<#if $topic_tree->{expanded} == 1#>?x=c<#else#>?x=e<#endif#>&st=$topic_tree->{page}">\
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "0")#>.gif" align=top alt="$L{TREE_VIEW_EXPAND_COLLAPSE}">\
</a>\
<#else#>
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "1")#>.gif" align=top alt="">\
<#endif#>
<#else#>
<#if $general->{cache} ne ""#>
<a href="$general->{expand_url}<#if $topic_tree->{expanded} == 1#>?x=c<#else#>?x=e<#endif#>&st=$topic_tree->{page}&scache=$general->{cache}">\
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "0")#>.gif" align=top alt="$L{TREE_VIEW_EXPAND_COLLAPSE}">\
</a>\
<#else#>
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "1")#>.gif" align=top alt="">\
<#endif#>
<#endif#>
<img src="$general->{icon_url}/\
<#if $topic_tree->{icon} ne ""#>$topic_tree->{icon}<#else#>tree_g<#endif#>.gif" height=16 width=20 align=top>\
<#if $general->{link_to_page}#>
<a href="\
<#if $secure->{$topic_tree->{topic}}#>
$DCONF->{authorize_reader}?file=/$topic_tree->{topic}/$topic_tree->{page}.$ext{#if $noqm == 0#}&lm=$topic_tree->{lastmod}{#endif#}\
<#else#>
$general->{message_url}/$topic_tree->{topic}/$topic_tree->{page}.$ext{#if $noqm == 0#}?$topic_tree->{lastmod}{#endif#}\
<#endif#>
<#if $general->{new_window}#>
" target="_blank\
<#endif#>
">\
<#if $general->{screen} == 1#>
<b><#maxchar 60/... "$topic_tree->{name}"#></b></a><br>
<#else#>
<#maxchar 60/... "$topic_tree->{name}"#></a><br>
<#endif#>
<#else#>
<#maxchar 60/... "$topic_tree->{name}"#><br>
<#endif#>
<#if $topic_tree->{expanded} == 1#>
<#if $topic_tree->{subtree} ne ""#>
<#reference array @subtopic_tree from $topic_tree->{subtree}#>
<#endif#>
<#foreach $subtopic (@subtopic_tree)#>
<#if $subtopic->{topic} == $topic_tree->{topic}#>
<#define $flag = "0"#>
<#if $subtopic->{datatype} eq "mp"#>
<#if $topic_tree->{_is_last_element}#>
<img src="$general->{icon_url}/tree_j.gif" height=16 width=20 border=0 align=top>\
<#else#>
<img src="$general->{icon_url}/tree_i.gif" height=16 width=20 border=0 align=top>\
<#endif#>
<#if $subtopic->{level} > 0#>
<#define $i = 1#>
<#while ($i < $subtopic->{level})#>
<#if $disp_icon[$i] == 0#>
<img src="$general->{icon_url}/tree_j.gif" height=16 width=20 border=0 align=top>\
<#else#>
<img src="$general->{icon_url}/tree_i.gif" height=16 width=20 border=0 align=top>\
<#endif#>
<#math: $i += 1#>
<#/while#>
<img src="$general->{icon_url}/tree_{#if $subtopic->{last_of_parent}#}j{#else#}i{#endif#}.gif" height=16 width=20 align=top>\
<#endif#>
<img src="$general->{icon_url}/tree_{#if $subtopic->{is_last_post}#}f{#else#}e{#endif#}.gif" height=16 width=20 align=top>\
<img src="$general->{icon_url}/tree_l.gif" height=16 width=20 align=top>\
<font size=1>\
<#if $subtopic->{linked_text} ne ""#>
<a href="\
<#if $secure->{$subtopic->{topic}}#>
$DCONF->{authorize_reader}?file=/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}&lm=$subtopic->{lastmod}{#endif#}\
<#else#>
$general->{message_url}/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}?$subtopic->{lastmod}{#endif#}#POST$subtopic->{postnum}\
<#endif#>
"{#if $general->{new_window}#} target="_blank"{#endif#}>\
<#maxchar 20 "<#javascript_prepare "<#unescape "$subtopic->{linked_text}"#>"#>"#></a>\
<#endif#>
-\
<#if $GLOBAL_OPTIONS->{nm_show_dates}#>
<#date $subtopic->{posttime} format "$L{REALSHORTDATE}"#>-\
<#endif#>
<#maxchar 50/... "<#javascript_prepare "<#unescape "$subtopic->{unlinked_text}"#>"#>"#></font><br>
<#else#>
<#if $subtopic->{page} == $subtopic->{topic}#>
<#next#>
<#endif#>
<#if $topic_tree->{_is_last_element}#>
<img src="$general->{icon_url}/tree_j.gif" height=16 width=20 border=0 align=top>\
<#else#>
<img src="$general->{icon_url}/tree_i.gif" height=16 width=20 border=0 align=top>\
<#endif#>
<#define $i = 1#>
<#while ($i < $subtopic->{level})#>
<#if $disp_icon[$i] == 0#>
<img src="$general->{icon_url}/tree_j.gif" height=16 width=20 border=0 align=top>\
<#else#>
<img src="$general->{icon_url}/tree_i.gif" height=16 width=20 border=0 align=top>\
<#endif#>
<#math: $i += 1#>
<#/while#>
<img src="$general->{icon_url}/tree_{#if $subtopic->{last_of_parent}#}f{#else#}e{#endif#}.gif" height=16 width=20 align=top>\
<#if $subtopic->{last_of_parent}#>
<#define $disp_icon[$subtopic->{level}] = "0"#>
<#else#>
<#define $disp_icon[$subtopic->{level}] = "1"#>
<#endif#>
<img src="$general->{icon_url}/<#program sub "" &tree_icon_chooser($subtopic->{icon}, $subtopic->{param}, $subtopic->{islink}, 0)#>.gif" height=16 width=20 border=0 align=top>\
<#if $general->{link_to_page}#>
<#if $subtopic->{islink}#>
<a href="$subtopic->{url}" target="$subtopic->{target}">\
<#else#>
<a href="\
<#if $secure->{$subtopic->{topic}}#>
$DCONF->{authorize_reader}?file=/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}&lm=$subtopic->{lastmod}{#endif#}\
<#else#>
$general->{message_url}/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}?$subtopic->{lastmod}{#endif#}\
<#endif#>
<#if $general->{new_window}#>
" target="_blank\
<#endif#>
">\
<#endif#>
<#if $general->{screen} == 1#>
<b><#maxchar 60/... "$subtopic->{name}"#></b></a><br>
<#else#>
<#maxchar 60/... "$subtopic->{name}"#></a><br>
<#endif#>
<#else#>
<#maxchar 60/... "$subtopic->{name}"#><br>
<#endif#>
<#endif#>
<#endif#>
<#endloop#>
<#endif#>
<#endloop#>
<#skipto "End"#>
<#endif#>
<#label "JS_Tree_IE"#>
<#if $part eq "body"#>
<div id="main" class="o">
<img src="$general->{icon_url}/tree_g.gif" {#if $browser->{nsX}#}height=16 width=20{#endif#} align=top>$title<br>
<#define $level = "1"#>
<#foreach $topic_tree (@topic_tree)#>
<#if $general->{screen} == 0#>
<#if $general->{expand_url} ne ""#>
<a href="$general->{expand_url}<#if $topic_tree->{expanded} == 1#>?x=c<#else#>?x=e<#endif#>&st=$topic_tree->{page}">\
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "0")#>.gif" align=top alt="$L{TREE_VIEW_EXPAND_COLLAPSE}">\
</a>\
<#else#>
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "1")#>.gif" align=top alt="">\
<#endif#>
<#else#>
<#if $general->{cache} ne ""#>
<a href="$general->{expand_url}<#if $topic_tree->{expanded} == 1#>?x=c<#else#>?x=e<#endif#>&st=$topic_tree->{page}&scache=$general->{cache}">\
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "0")#>.gif" align=top alt="$L{TREE_VIEW_EXPAND_COLLAPSE}">\
</a>\
<#else#>
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "1")#>.gif" align=top alt="">\
<#endif#>
<#endif#>
<img src="$general->{icon_url}/\
<#if $topic_tree->{icon} ne ""#>$topic_tree->{icon}<#else#>tree_g<#endif#>\
.gif" align=top>\
<#if $general->{link_to_page}#>
<a href="\
<#if $secure->{$topic_tree->{topic}}#>
$DCONF->{authorize_reader}?file=/$topic_tree->{topic}/$topic_tree->{page}.$ext{#if $noqm == 0#}&lm=$topic_tree->{lastmod}{#endif#}\
<#else#>
$general->{message_url}/$topic_tree->{topic}/$topic_tree->{page}.$ext{#if $noqm == 0#}?$topic_tree->{lastmod}{#endif#}\
<#endif#>
<#if $general->{new_window}#>
" target="_blank\
<#endif#>
">\
<#if $general->{screen} == 1#>
<b><#maxchar 60/... "$topic_tree->{name}"#></b></a><br>
<#else#>
<#maxchar 60/... "$topic_tree->{name}"#></a><br>
<#endif#>
<#else#>
<#maxchar 60/... "$topic_tree->{name}"#><br>
<#endif#>
<#if $topic_tree->{expanded} == 1#>
<#if $topic_tree->{subtree} ne ""#>
<#reference array @subtopic_tree from $topic_tree->{subtree}#>
<#endif#>
<script language="JavaScript">
<#foreach $subtopic (@subtopic_tree)#>
<#if $subtopic->{topic} == $topic_tree->{topic}#>
<#if $subtopic->{datatype} eq "mp"#>
p(\
<#if $topic_tree->{_is_last_element}#>
'j\
<#else#>
'i\
<#endif#>
<#if $subtopic->{level} > 0#>
<#define $i = 1#>
<#while ($i < $subtopic->{level})#>
<#if $disp_icon[$i] == 0#>
j\
<#else#>
i\
<#endif#>
<#math: $i += 1#>
<#/while#>
','','$subtopic->{last_of_parent}','','','',\
<#else#>
','','*','','','',\
<#endif#>
<#if $secure->{$topic_tree->{topic}}#>
'$DCONF->{authorize_reader}?file=/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}&lm=$subtopic->{lastmod}{#endif#}'\
<#else#>
'$general->{message_url}/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}?$subtopic->{lastmod}{#endif#}'\
<#endif#>
,'','','$subtopic->{is_last_post}','$subtopic->{postnum}',\
'<#maxchar 20 "<#javascript_prepare "<#unescape "$subtopic->{linked_text}"#>"#>"#>',\
<#if $GLOBAL_OPTIONS->{nm_show_dates}#>
'<#date $subtopic->{posttime} format "$L{REALSHORTDATE}"#> - <#maxchar 50/... "<#javascript_prepare "<#unescape "$subtopic->{unlinked_text}"#>"#>"#>');
<#else#>
'<#maxchar 50/... "<#javascript_prepare "<#unescape "$subtopic->{unlinked_text}"#>"#>"#>');
<#endif#>
<#else#>
<#if $subtopic->{page} == $subtopic->{topic}#>
<#next#>
<#endif#>
<#if $divlevel > $subtopic->{level}#>
<#define $minus = $divlevel#>
<#math: $minus -= $subtopic->{level}#>
<#math: $divlevel -= $minus#>
pr('<#repeated $minus "</div>"#>');
<#endif#>
p(\
<#if $topic_tree->{_is_last_element}#>
'j\
<#else#>
'i\
<#endif#>
<#define $i = 1#>
<#while ($i < $subtopic->{level})#>
<#if $disp_icon[$i] == 0#>
j\
<#else#>
i\
<#endif#>
<#math: $i += 1#>
<#/while#>
',\
<#if $subtopic->{param} =~ match(Sublist) && $subtopic->{subs} > 1#>'$subtopic->{page}', '$subtopic->{last_of_parent}', \
<#if $subtopic->{param} !~ match(Sublist)#>'', '', \
<#if $subtopic->{param} =~ match(Sublist) && $subtopic->{subs} <= 1#>
'$subtopic->{page}', '$subtopic->{last_of_parent}', \
'<#&icon("$subtopic->{expanded}", "$subtopic->{param}", "$subtopic->{last_of_parent}", "0", "1")#>', \
<#else#>
'<#&icon("$subtopic->{expanded}", "$subtopic->{param}", "$subtopic->{last_of_parent}", "0", "$display_all_default")#>', \
<#endif#>
<#if $subtopic->{last_of_parent}#>
<#define $disp_icon[$subtopic->{level}] = "0"#>
<#else#>
<#define $disp_icon[$subtopic->{level}] = "1"#>
<#endif#>
'<#program sub "" &tree_icon_chooser($subtopic->{icon}, $subtopic->{param}, $subtopic->{islink}, 1)#>', \
<#if $general->{icon_click_url}#>
'$subtopic->{topic}/$subtopic->{page}',\
<#else#>
'',\
<#endif#>
<#if $general->{link_to_page}#>
<#if $subtopic->{islink}#>
'<#javascript_prepare "$subtopic->{url}"#>', '$subtopic->{target}', \
<#else#>
<#if $secure->{$topic_tree->{topic}}#>
'$DCONF->{authorize_reader}?file=/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}&lm=$subtopic->{lastmod}{#endif#}',\
<#else#>
'$general->{message_url}/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}?$subtopic->{lastmod}{#endif#}',\
<#endif#>
'',\
<#endif#>
'<#maxchar 60/... "<#javascript_prepare "$subtopic->{name}"#>"#>');
<#else#>
'', '', '<#maxchar 60/... "<#javascript_prepare "$subtopic->{name}"#>"#>');
<#endif#>
<#if $subtopic->{param} =~ match(Sublist)#>
<#if $subtopic->{expanded}#>
pr('<div ID="ch$subtopic->{page}" class="o">');
<#else#>
pr('<div ID="ch$subtopic->{page}" class="f">');
<#endif#>
<#define $divlevel = $subtopic->{level}#>
<#math: $divlevel += 1#>
<#endif#>
<#endif#>
<#endif#>
<#endloop#>
<#if $divlevel > 0#>
pr('<#repeated $divlevel "</div>"#>');
<#endif#>
</script>
<#endif#>
<#endloop#>
<#skipto "End"#>
<#endif#>
<#label "JS_Tree_NS"#>
<#if $part eq "body"#>
<div id="main" class="o">
<img src="$general->{icon_url}/tree_g.gif" {#if $browser->{nsX}#}height=16 width=20{#endif#} align=top>$title<br>
<#define $level = "1"#>
<#foreach $topic_tree (@topic_tree)#>
<#if $general->{screen} == 0#>
<#if $general->{expand_url} ne ""#>
<a href="$general->{expand_url}<#if $topic_tree->{expanded} == 1#>?x=c<#else#>?x=e<#endif#>&st=$topic_tree->{page}">\
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "1", "0")#>.gif" align=top alt="$L{TREE_VIEW_EXPAND_COLLAPSE}">\
</a>\
<#else#>
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "1")#>.gif" align=top alt="">\
<#endif#>
<#else#>
<#if $general->{cache} ne ""#>
<a href="$general->{expand_url}<#if $topic_tree->{expanded} == 1#>?x=c<#else#>?x=e<#endif#>&st=$topic_tree->{page}&scache=$general->{cache}">\
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "1", "0")#>.gif" align=top alt="$L{TREE_VIEW_EXPAND_COLLAPSE}">\
</a>\
<#else#>
<img height=16 width=20 border=0 src="$general->{icon_url}/tree_<#&icon("$topic_tree->{expanded}", "$topic_tree->{param}", "$topic_tree->{_is_last_element}", "0", "1")#>.gif" align=top alt="">\
<#endif#>
<#endif#>
<img src="$general->{icon_url}/\
<#if $topic_tree->{icon} ne ""#>$topic_tree->{icon}<#else#>tree_g<#endif#>\
.gif" {#if $browser->{nsX}#}height=16 width=20{#endif#} align=top>\
<#if $general->{link_to_page}#>
<a href="\
<#if $secure->{$topic_tree->{topic}}#>
$DCONF->{authorize_reader}?file=/$topic_tree->{topic}/$topic_tree->{page}.$ext{#if $noqm == 0#}&lm=$topic_tree->{lastmod}{#endif#}\
<#else#>
$general->{message_url}/$topic_tree->{topic}/$topic_tree->{page}.$ext{#if $noqm == 0#}?$topic_tree->{lastmod}{#endif#}\
<#endif#>
<#if $general->{new_window}#>
" target="_blank\
<#endif#>
">\
<#if $general->{screen} == 1#>
<b><#maxchar 60/... "$topic_tree->{name}"#></b></a><br>
<#else#>
<#maxchar 60/... "$topic_tree->{name}"#></a><br>
<#endif#>
<#else#>
<#maxchar 60/... "$topic_tree->{name}"#><br>
<#endif#>
<#if $topic_tree->{expanded} == 1#>
<#if $topic_tree->{subtree} ne ""#>
<#reference array @subtopic_tree from $topic_tree->{subtree}#>
<#endif#>
<script language="JavaScript">
<#foreach $subtopic (@subtopic_tree)#>
<#if $subtopic->{topic} == $topic_tree->{topic}#>
<#if $subtopic->{datatype} eq "mp"#>
p('\
<#if $topic_tree->{_is_last_element}#>j<#else#>i<#endif#>\
<#if $subtopic->{level} > 0#>
<#define $i = 1#>
<#while ($i < $subtopic->{level})#>
<#if $disp_icon[$i] == 0#>
j\
<#else#>
i\
<#endif#>
<#math: $i += 1#>
<#/while#>
','','$subtopic->{last_of_parent}','','','',\
<#else#>
','','*','','','',\
<#endif#>
<#if $secure->{$topic_tree->{topic}}#>
'$DCONF->{authorize_reader}?file=/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}&lm=$subtopic->{lastmod}{#endif#}'\
<#else#>
'$general->{message_url}/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}?$subtopic->{lastmod}{#endif#}'\
<#endif#>
,'','','$subtopic->{is_last_post}','$subtopic->{postnum}',\
'<#maxchar 20 "<#javascript_prepare "<#unescape "$subtopic->{linked_text}"#>"#>"#>',\
<#if $GLOBAL_OPTIONS->{nm_show_dates}#>
'<#date $subtopic->{posttime} format "$L{REALSHORTDATE}"#> - <#maxchar 50/... "<#javascript_prepare "<#unescape "$subtopic->{unlinked_text}"#>"#>"#>');
<#else#>
'<#maxchar 50/... "<#javascript_prepare "<#unescape "$subtopic->{unlinked_text}"#>"#>"#>');
<#endif#>
<#else#>
<#if $subtopic->{page} == $subtopic->{topic}#>
<#next#>
<#endif#>
p('<#if $topic_tree->{_is_last_element}#>j<#else#>i<#endif#>\
<#define $i = 1#>
<#while ($i < $subtopic->{level})#>
<#if $disp_icon[$i] == 0#>
j\
<#else#>
i\
<#endif#>
<#math: $i += 1#>
<#/while#>
',\
<#if $subtopic->{param} =~ match(Sublist)#>'$subtopic->{page}', '$subtopic->{last_of_parent}', \
<#if $subtopic->{param} !~ match(Sublist)#>'', '', \
'<#&icon("$subtopic->{expanded}", "$subtopic->{param}", "$subtopic->{last_of_parent}", "0", "1")#>', \
<#if $subtopic->{last_of_parent}#>
<#define $disp_icon[$subtopic->{level}] = "0"#>
<#else#>
<#define $disp_icon[$subtopic->{level}] = "1"#>
<#endif#>
'<#program sub "" &tree_icon_chooser($subtopic->{icon}, $subtopic->{param}, $subtopic->{islink}, 1)#>', \
<#if $general->{icon_click_url}#>
'$subtopic->{topic}/$subtopic->{page}',\
<#else#>
'',\
<#endif#>
<#if $general->{link_to_page}#>
<#if $subtopic->{islink}#>
'<#javascript_prepare "$subtopic->{url}"#>', '$subtopic->{target}', \
<#else#>
<#if $secure->{$topic_tree->{topic}}#>
'$DCONF->{authorize_reader}?file=/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}&lm=$subtopic->{lastmod}{#endif#}'\
<#else#>
'$general->{message_url}/$subtopic->{topic}/$subtopic->{page}.$ext{#if $noqm == 0#}?$subtopic->{lastmod}{#endif#}'\
<#endif#>
,'',\
<#endif#>
'<#maxchar 60/... "<#javascript_prepare "$subtopic->{name}"#>"#>');
<#else#>
'', '', '<#maxchar 60/... "<#javascript_prepare "$subtopic->{name}"#>"#>');
<#endif#>
<#endif#>
<#endif#>
<#endloop#>
</script>
<#endif#>
<#endloop#>
<#endif#>
<#label "End"#>
<!--END-->