<table width="100%" >
<tr><td class="label" >区块名称</td><td><input name='art_cat_box[block_name]' value='<%{$out.block_data.block_name}%>'></td>

<tr>
<td class="label" >提取顺序</td><td><select name='art_cat_box[order_type]'>
<option value='sort_order' <%{if $out.block_data.block_setting.art_cat_box.order_type=='sort_order'}%> selected=true<%{/if}%>  > 按分类排序号</option>
<option value='art_num' <%{if $out.block_data.block_setting.art_cat_box.order_type=='art_num'}%> selected=true<%{/if}%>  > 按分类下文章数量</option>
<option value='children_count' <%{if $out.block_data.block_setting.art_cat_box.order_type=='children_count'}%> selected=true<%{/if}%> > 按子分类数量</option>
</select>
&nbsp;&nbsp;
<select name='art_cat_box[order_sort]'>
<option value='DESC' <%{if $out.block_data.block_setting.art_cat_box.order_sort=='DESC'}%> selected=true<%{/if}%>>倒序</option>
<option value='ASC'  <%{if $out.block_data.block_setting.art_cat_box.order_sort=='ASC'}%> selected=true<%{/if}%> >顺序</option>
</select>
</td>
</tr>

<tr>
<td class="label" >显示分类下文章数量</td><td><input type='checkbox' value=1 <%{if $out.block_data.block_setting.art_cat_box.is_artnum}%> checked=true<%{/if}%>  name='art_cat_box[is_artnum]' ></td>
</tr>

<tr>
<td class="label" >显示顶级分类数量</td><td><input name='art_cat_box[p_num]' size=4 value='<%{if $out.block_data.block_setting.art_cat_box.p_num}%><%{$out.block_data.block_setting.art_cat_box.p_num}%><%{else}%>10<%{/if}%>'></td>
</tr>

<tr>
<td class="label" >显示子分类数量</td><td><input name='art_cat_box[c_num]' size=4 value='<%{if $out.block_data.block_setting.art_cat_box.c_num}%><%{$out.block_data.block_setting.art_cat_box.c_num}%><%{else}%>10<%{/if}%>'></td>
</tr>

<tr>
<td class="label" >分类名最大字节数</td><td> <input name='art_cat_box[name_length]' size=4   value='<%{ if $out.block_data.block_setting.art_cat_box.name_length}%><%{$out.block_data.block_setting.art_cat_box.name_length }%><%{else}%>50<%{/if}%>'></td>
</tr>

<script>
$(document).ready(function(){
	$("#block_form_id").submit(function(){
		if(!$("input[name='art_cat_box[block_name]']").val()){
			alert('请填写区块名称');
			$("input[name='art_cat_box[block_name]']")[0].focus();
			return false;
		}
	});			
		
});
</script>


