- Автор темы
- #11
IRIDON, у мну такой же:
{* category navigation tree *}
<table width="100%">{section name=i loop=$categories_tree}
{if $categories_tree.categoryID != 1}
<tr>
<td valign="top">{if $categories_tree.level == 1}
<img src="images/arrow_category_small.gif" width="6" height="5">{/if} </td>
<td>
<table border=0 cellpadding=0 cellspacing=0><tr>
<td align="left">{section name=j loop=$categories_tree max=$categories_tree.level-1}
{/section}</td>
{if $categories_tree.level > 1}
<td><img src="images/point{if $categoryID == $categories_tree.categoryID}_v{/if}.gif" width="8" height="8">
</td>{/if}
{if $categoryID == $categories_tree.categoryID}
{* selected node => point category and don't make a link *}
<td><b><font class="faq">{$categories_tree.name}</font></b></td>
{else}
{* not selected node => make a link to a category *}
<td><a href="index.php?categoryID={$categories_tree.categoryID}"
{if $categories_tree.level > 1}
class="standardsmall"
{/if}>{$categories_tree.name}</a></td>
{/if}
</tr></table>
</td></tr>
{/if}
{/section}
</table>
нифига не встают ровно(((
{* category navigation tree *}
<table width="100%">{section name=i loop=$categories_tree}
{if $categories_tree.categoryID != 1}
<tr>
<td valign="top">{if $categories_tree.level == 1}
<img src="images/arrow_category_small.gif" width="6" height="5">{/if} </td>
<td>
<table border=0 cellpadding=0 cellspacing=0><tr>
<td align="left">{section name=j loop=$categories_tree max=$categories_tree.level-1}
{/section}</td>
{if $categories_tree.level > 1}
<td><img src="images/point{if $categoryID == $categories_tree.categoryID}_v{/if}.gif" width="8" height="8">
</td>{/if}
{if $categoryID == $categories_tree.categoryID}
{* selected node => point category and don't make a link *}
<td><b><font class="faq">{$categories_tree.name}</font></b></td>
{else}
{* not selected node => make a link to a category *}
<td><a href="index.php?categoryID={$categories_tree.categoryID}"
{if $categories_tree.level > 1}
class="standardsmall"
{/if}>{$categories_tree.name}</a></td>
{/if}
</tr></table>
</td></tr>
{/if}
{/section}
</table>
нифига не встают ровно(((