<select name="category_id" class="textCtrl" id="ctrl_category_id" autofocus="true">
<option value="0"> </option>
<xen:foreach loop="$categories" key="$categoryId" value="$_category">
<option value="{$categoryId}"
{xen:if '!{$_category.allow_items} or !{$_category.canCreateItem}', 'disabled="disabled"'}
{xen:if '{$_category.thread_node_id} == {$nodeId}', 'selected="selected"'}
>{xen:string repeat, ' ', $_category.depth}{$_category.category_name}</option>
</xen:foreach>
</select>