<{if $matchhole["holemax"]-$matchhole["holemin"]<=10}> <{foreach item=item key=key from=$pkgroup name=pk_group}> <{for $i=$matchhole["holemin"];$i<=$matchhole["holemax"];$i++}> <{if $matchhole["holemax"]-$matchhole["holemin"]<=10}> <{else}> <{/if}> <{/for}> <{for $i=1;$i<=$matchhole["holemax"]-$matchhole["holemin"]+1;$i++}> <{/for}> <{foreach item=pitem key=pkey from=$pkgroup[$key] name=pk_player}> <{foreach item=mitem key=mkey from=$pkgroup[$key][$pkey] name=player}> <{if $smarty.foreach.pk_player.iteration==1}> <{for $i=$matchhole["holemin"];$i<=$matchhole["holemax"];$i++}> <{/for}> <{if $smarty.foreach.player.iteration==1}> <{if $pkHoleScoreSet['act']==1}> <{/if}> <{if $pkHoleScoreSet['act']==0}> <{/if}> <{/if}> <{/if}> <{if $smarty.foreach.pk_player.iteration==2}> <{for $i=$matchhole["holemin"];$i<=$matchhole["holemax"];$i++}> <{/for}> <{if $smarty.foreach.player.iteration==1}> <{if $pkHoleScoreSet['act']==1}> <{/if}> <{if $pkHoleScoreSet['act']==0}> <{/if}> <{/if}> <{/if}> <{if $smarty.foreach.pk_player.iteration==1}> <{if $smarty.foreach.player.iteration==2}> <{if $pkHoleScoreSet['act']==1}> <{for $i=$matchhole["holemin"];$i<=$matchhole["holemax"];$i++}> <{/for}> <{/if}> <{/if}> <{/if}> <{if $smarty.foreach.pk_player.iteration==2}> <{if $smarty.foreach.player.iteration==2}> <{if $pkHoleScoreSet['act']==1}> <{for $i=$matchhole["holemin"];$i<=$matchhole["holemax"];$i++}> <{/for}> <{/if}> <{/if}> <{/if}> <{/foreach}> <{/foreach}> <{/foreach}>
<{else}> <{/if}>
<{$pkTeamName['tm_name'][0]}><{$up1}> <{$team1}>
<{$up2}> <{$pkTeamName['tm_name'][1]}> <{$team2}>
Match <{$key}> HOLE<{$i}><{$i}>
PAR<{$pars['par'][$i-1]}> <{if $pkHoleScoreSet['act']==1}> 总成绩 <{/if}>
<{$pkPlayerName[$mitem]['name']}><{$startHole[$mitem]}> ><{$perscore[$mitem][$i]['score']}>
<{$pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)]['sumholescore']}>
>
<{$pkTeamScore[$key]['winTd']}><{if $pkTeamScore[$key]['winTd']=="AS" || $pkTeamScore[$key]['winTd']==""}> <{else}>WINS<{/if}>
<{$pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)]['sumholescore']}><{if $pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)]['sumholescore']==""}> <{else}>UP<{/if}>
>
<{$pkTeamScore[$key]['winTd']}> <{if $pkTeamScore[$key]['winTd']=="AS" || $pkTeamScore[$key]['winTd']==""}> <{else}>UP<{/if}>
<{$pkPlayerName[$mitem]['name']}> ><{$perscore[$mitem][$i]['score']}>
<{$pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)]['sumholescore']}>
<{$pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)]['sumholescore']}><{if $pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)]['sumholescore']==""}> <{else}>UP<{/if}>
SCORE <{$pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)][$i]['holescore']}>
SCORE <{$pkTeamScore[$key][($smarty.foreach.pk_player.iteration-1)][$i]['holescore']}>