<table width="680px" border="0" cellspacing="0" cellpadding="0">
<tpl> if $ProductClassArray[0].pc_id neq '' </tpl>
		<tpl> section name=listclass loop=$ProductClassArray </tpl>
		<tr class="area_ajax_list_title_main">
			<td height="30" align="center" valign="middle" width="25%" ><input name="sort[<tpl> $ProductClassArray[listclass].pc_id </tpl>]" type="text" style="border:1px solid #CCCCCC" value="<tpl> $ProductClassArray[listclass].pc_sort </tpl>" size="5" maxlength="5" /></td>
			<td width="30%" height="30" align="left" valign="middle">
			<tpl> $line </tpl>
			<tpl> if $ProductClassArray[listclass].is_parent eq '1' </tpl>
				<a id="img_<tpl> $ProductClassArray[listclass].pc_id </tpl>" onclick="ajax_get_child_class('<tpl> $ProductClassArray[listclass].pc_id </tpl>','<tpl> $deep </tpl>');" href="javascript:;"><img style="cursor:pointer" src="../templates/system_new/images/jia.gif" width="10" height="10" /></a> 
			<tpl> /if </tpl>
			<tpl> if $ProductClassArray[listclass].is_highlight eq '1' </tpl>
				<span style="color:#FF0000" id="highlight_span_<tpl> $ProductClassArray[listclass].pc_id </tpl>"><tpl> $ProductClassArray[listclass].pc_name </tpl></span>　
			<tpl> else </tpl>
				<span id="highlight_span_<tpl> $ProductClassArray[listclass].pc_id </tpl>"><tpl> $ProductClassArray[listclass].pc_name </tpl></span>
			<tpl> /if </tpl>
			</td>
			<td width="30%" height="30" align="left" valign="middle">
				<a href="javascript:;" onclick="ajax_modi('<tpl> $ProductClassArray[listclass].pc_id </tpl>');" title="<tpl> $langCedit </tpl>" class="edit_a_pic"></a>  
				<a href="javascript:;" onclick="ui_del('<tpl> $ProductClassArray[listclass].pc_id </tpl>');" title="<tpl> $langCdele </tpl>" class="del_a_pic"></a> 
				<tpl> if $ProductClassArray[listclass].is_highlight eq '0' </tpl>
					<a href="javascript:;" onclick="set_highlight('<tpl> $ProductClassArray[listclass].pc_id </tpl>',$('#set_type_'+<tpl> $ProductClassArray[listclass].pc_id </tpl>).val())"><span id="highlight_text_<tpl> $ProductClassArray[listclass].pc_id </tpl>" title="<tpl> $langSysPClassSetBright </tpl>" class="highlight_a_pic"></span></a>	</div>
					<input type="hidden" name="set_type_<tpl> $ProductClassArray[listclass].pc_id </tpl>" id="set_type_<tpl> $ProductClassArray[listclass].pc_id </tpl>" value="1" />
				<tpl> else </tpl>
					<a href="javascript:;" onclick="set_highlight('<tpl> $ProductClassArray[listclass].pc_id </tpl>',$('#set_type_'+<tpl> $ProductClassArray[listclass].pc_id </tpl>).val())"><span id="highlight_text_<tpl> $ProductClassArray[listclass].pc_id </tpl>" title="<tpl> $langSysPClassCancelBright </tpl>" class="nohighlight_a_pic"></span></a>
					<input type="hidden" name="set_type_<tpl> $ProductClassArray[listclass].pc_id </tpl>" id="set_type_<tpl> $ProductClassArray[listclass].pc_id </tpl>" value="0" />
				<tpl> /if </tpl>
			</td>
			<td width="15%"></td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<div style="display:none" id="div_<tpl> $ProductClassArray[listclass].pc_id </tpl>"></div>
			</td>
		</tr>
		<input type="hidden" name="id[<tpl> $ProductClassArray[listclass].pc_id </tpl>]" value="<tpl> $ProductClassArray[listclass].pc_id </tpl>" />
	<tpl> /section </tpl>
<tpl> else  </tpl>
	<tr class="area_ajax_list_title_main">
		<td height="30" colspan="4" align="center"><tpl> $langCNull  </tpl></td>
	</tr>
<tpl> /if  </tpl>
</table>
<script>
function set_highlight(id,type){
	$.ajax({
			url: "pclass.manage.php",
			data: "action=set_highlight&id="+id+"&type="+type,
			type:'post',
			dataType:"json",
			beforeSubmit:  showLoading(showSaveText),
			success: function(msg){
				hideLoading();
				if(msg.type == '1'){
					if(type == '1'){/* 设置高亮 */
						$("#set_type_"+id).val(0);
						$("#highlight_span_"+id).css('color','#FF0000');
						$("#highlight_text_"+id).attr('title','<tpl> $langSysPClassCancelBright </tpl>');
						$("#highlight_text_"+id).removeClass('highlight_a_pic');
						$("#highlight_text_"+id).addClass('nohighlight_a_pic');
					}else{/* 取消高亮 */
						$("#set_type_"+id).val(1);
						$("#highlight_span_"+id).css('color','#666666');
						$("#highlight_text_"+id).attr('title','<tpl> $langSysPClassSetBright </tpl>');
						$("#highlight_text_"+id).removeClass('nohighlight_a_pic');
						$("#highlight_text_"+id).addClass('highlight_a_pic');
					}
				}
			}
		});
	return false;
}
</script>
