示例#1
0
echo $golf_course->course_name;
?>
</span>
	</div>
	<div style="margin-top: 5px;">
		<label class="elgg-golfscore-label-tee">
			<div class="elgg-golfscore-icon-tee-<?php 
echo getTeeName($score->tee, $golf_course);
?>
">&nbsp;</div>
			<?php 
echo elgg_echo('golfscore:view:tee');
?>
		</label>
		<span class="elgg-golfscore-output-tee"><?php 
echo elgg_echo("golfscore:tee:" . getTeeName($score->tee, $golf_course));
?>
</span>
		<label class="elgg-golfscore-label-rating"><?php 
echo elgg_echo('golfscore:view:rating');
?>
</label>
		<span class="elgg-golfscore-output-rating"><?php 
echo $score->course_rating;
?>
</span>
		<label class="elgg-golfscore-label-slope"><?php 
echo elgg_echo('golfscore:view:slope');
?>
</label>
		<span><?php 
示例#2
0
            $score_total += $score_detail->score;
            if ($score_detail->hole <= 9) {
                $score_out += $score_detail->score;
            } else {
                $score_in += $score_detail->score;
            }
        }
    } else {
        $score_total = $score->total_score;
    }
}
?>
<div class="course_detail">
	<div class="score-element">
		<div id="__tee_color" class="elgg-golfscore-icon-tee-<?php 
echo getTeeName($tee, $golf_course);
?>
">&nbsp;</div>
		<!-- <label>
			<?php 
//echo elgg_echo('golfscore:add:tee');
?>
		</label> -->
		
		<?php 
echo elgg_view('input/dropdown', array('class' => 'elgg-golfscore-select-tee', 'name' => 'tee', 'onchange' => 'onSelectCourse();', 'id' => '__tee', 'value' => $tee, 'options_values' => array('gold' => elgg_echo('golfscore:tee:' . $golf_course->gold_tee_name), 'blue' => elgg_echo('golfscore:tee:' . $golf_course->blue_tee_name), 'white' => elgg_echo('golfscore:tee:' . $golf_course->white_tee_name), 'red' => elgg_echo('golfscore:tee:' . $golf_course->red_tee_name))));
?>
	</div>
	<div class="score-element">
		<!-- <label>
			<?php