<table id="pro_type_table" cellpadding="0" cellspacing="1" border="0" style="width:500px" >
  <tr>
    <th>{#$lang.pro_att_name#}</th>
    <th>{#$lang.pro_att_value#})</th>
  	<th>{#$lang.pro_att_price#}</th>
	<th></th>
  </tr>
  {#if $need_arr eq 'arr'#}
  {#foreach item=praitem key=prakey from=$pra_array#}
  	{#foreach item=smitem key=smkey from=$praitem#}
    {#if $smitem.pra_id neq ''#}
  <tr id="pra_tr_{#$smitem.pra_id#}_sm{#$smkey#}" >
    <td class="tdcenter" ><input type="hidden" id="txt_pra_id_{#$prakey#}"  name="txt_pra_id_{#$prakey#}" value="{#$smitem.pra_id#}">
	<input type="hidden" id="txt_pra_name_{#$prakey#}" name="txt_pra_name_{#$prakey#}" value="{#$smitem.pra_name#}">
	<input type="hidden" id="txt_pra_input_type_{#$prakey#}" name="txt_pra_input_type_{#$prakey#}" value="{#$smitem.pra_input_type#}"><div  id="show_name_id_{#$prakey#}">{#$smitem.pra_name#}</div></td>
    <td class="keykey"><div id="show_val_id_{#$prakey#}">{#$smitem.show_value#}</div></td>
	<td class="keykey"><div id="show_pri_id_{#$prakey#}">{#$smitem.show_price_value#}</div></td>
	<td class="keykey">{#if $smitem.need_del eq 1#}<span  onclick="del_tr({#$smitem.pra_id#},{#$smkey#})" >(-)</span>{#else if $smitem.pra_type eq 1#}<span  onclick="add_tr({#$prakey#})" >(+)</span>{#/if#}</td>
  </tr>{#/if#}
 	{#/foreach#}
  {#/foreach#}
  {#else#}
  {#foreach item=praitem key=prakey from=$pra_array#}
   {#if $praitem.pra_id neq ''#}
  <tr id="pra_tr_{#$prakey#}" >
    <td class="tdcenter" ><input type="hidden" id="txt_pra_id_{#$prakey#}"  name="txt_pra_id_{#$prakey#}" value="{#$praitem.pra_id#}">
	<input type="hidden" id="txt_pra_name_{#$prakey#}" name="txt_pra_name_{#$prakey#}" value="{#$praitem.pra_name#}">
	<input type="hidden" id="txt_pra_input_type_{#$prakey#}" name="txt_pra_input_type_{#$prakey#}" value="{#$praitem.pra_input_type#}"><div  id="show_name_id_{#$prakey#}">{#$praitem.pra_name#}</div></td>
    <td class="keykey"><div id="show_val_id_{#$prakey#}">{#$praitem.show_value#}</div></td>
	<td class="keykey"><div id="show_pri_id_{#$prakey#}">{#$praitem.show_price_value#}</div></td>
	<td class="keykey">{#if $praitem.pra_type eq 1#}<span  onclick="add_tr({#$prakey#})" >(+)</span>{#/if#}</td>
  </tr>
  {#/if#}
  {#/foreach#}
  {#/if#}
</table>
