카테고리 목록 출력 오류 디버깅

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6414 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2009-05-26 09:25:27 +00:00
parent d6f50b5b91
commit 791770013e

View file

@ -1,40 +1,49 @@
<!--%import("js/category.js")--> <!--%import("js/category.js")-->
{@ $_pDepth = 0;}
{@ $_pDepth = 0;}
<!--@if($colorset == "black" || $colorset == "white")--> <!--@if($colorset == "black" || $colorset == "white")-->
<!--%import("./css/widget.css")--> <!--%import("./css/widget.css")-->
<!--@end--> <!--@end-->
<div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->"> <div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->">
<div class="widgetTree"> <div class="widgetTree">
<a href="{getSiteUrl($widget_info->domain,'','mid',$widget_info->module_info->mid?$widget_info->module_info->mid:$layout_info->target_mid)}" class="all <!--@if(!$category)-->strong<!--@end-->"><!--@if($widget_info->total_title)-->{$widget_info->total_title}<!--@else-->{$widget_info->module_info->browser_title}<!--@end--></a> <span class="sum">({$widget_info->total_document_count})</span> <a href="{getSiteUrl($widget_info->domain,'','mid',$widget_info->module_info->mid?$widget_info->module_info->mid:$layout_info->target_mid)}" class="all <!--@if(!$category)-->strong<!--@end-->">
<ul> <!--@if($widget_info->total_title)-->
<!--@foreach($widget_info->category_list as $key => $val)--> {$widget_info->total_title}
<!--@if($_pDepth > $val->depth)--> <!--@else-->
<!--@for($i=$val->depth; $i<$_pDepth; $i++)--> {$widget_info->module_info->browser_title}
</ul> <!--@end-->
<!--@end--> </a> <span class="sum">({$widget_info->total_document_count})</span>
{@ $_pDepth = $val->depth} <ul>
<!--@end--> <!--@foreach($widget_info->category_list as $key => $val)-->
<!--@if($_pDepth > $val->depth)-->
<li class="<!--@if($val->last)-->nav_tree_last<!--@end--> <!--@if($val->expand)-->nav_tree_on<!--@else-->nav_tree_off<!--@end-->" id="category_parent_{$val->category_srl}"> <!--@for($i=$val->depth; $i<$_pDepth; $i++)-->
<!--@if($val->child_count)--> </ul>
<!--@if($val->expand)--> </li>
<button type="button" class="category_{$val->category_srl}">+</button> <!--@end-->
<!--@else--> {@ $_pDepth = $val->depth}
<button type="button" class="category_{$val->category_srl}">-</button> <!--@end-->
<!--@end--> <li class="<!--@if($val->last)-->nav_tree_last<!--@end--> <!--@if($val->expand)-->nav_tree_on<!--@else-->nav_tree_off<!--@end-->" id="category_parent_{$val->category_srl}">
<!--@end--> <!--@if($val->child_count)-->
<a href="{getSiteUrl($widget_info->domain, '','mid',$widget_info->module_info->mid, 'category',$val->category_srl)}" class="nav_tree_label <!--@if($val->selected)-->selected<!--@end-->">{$val->text}</a> <!--@if($val->expand)-->
<!--@if($val->document_count)--><span class="sum">({$val->document_count})</span><!--@end--> <button type="button" class="category_{$val->category_srl}">+</button>
<!--@else-->
<!--@if($val->child_count)--> <button type="button" class="category_{$val->category_srl}">-</button>
{@$_pDepth++} <!--@end-->
<ul> <!--@end-->
<!--@else--> <a href="{getSiteUrl($widget_info->domain, '','mid',$widget_info->module_info->mid, 'category',$val->category_srl)}" class="nav_tree_label <!--@if($val->selected)-->selected<!--@end-->">{$val->text}</a>
</li> <!--@if($val->document_count)-->
<!--@end--> <span class="sum">({$val->document_count})</span>
<!--@end--> <!--@end-->
<!--@for($i=0;$i<$_pDepth;$i++)--></ul></li><!--@end--> <!--@if($val->child_count)-->
</ul> {@$_pDepth++}
</div> <ul>
<!--@else-->
</li>
<!--@end-->
<!--@end-->
<!--@for($i=0;$i<$_pDepth;$i++)-->
</ul>
<!--@end-->
</ul>
</div>
</div> </div>