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

<tr>
<td class="label" >是否显示版本</td><td><input type='radio' value='yes' name='related_soft[is_version]' <%{if  $out.block_data.block_setting.related_soft.is_version=='yes'}%> checked=true <%{/if}%> >是 &nbsp; <input type='radio' value='no' name='related_soft[is_version]'  <%{if $out.block_data.block_setting.related_soft.is_version=='no'}%> checked=true <%{/if}%>> 否 &nbsp; <input type='radio' value='auto' name='related_soft[is_version]'  <%{if $out.block_data.block_setting.related_soft.is_version=='auto'||!$out.block_data.block_setting.related_soft.is_version}%> checked=true <%{/if}%>  > 自动 </td>
</tr>

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

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

