// additional services
if (count($this->add_services_items)>0) {
echo "<div id='box_services_rechts'>\n";
echo " <fieldset>\n";
echo " <legend>".JText::_('TB On Top')."</legend>\n";
// $typ_id = $this->add_services_items[0]->srv_type;
$typ_id = $this->add_services_items[0]->type;
// $typ_id = NULL;
$index = 0;
$service_index = 0;
echo "<div class='tb_services_start' id='tb_services0'>".$this->add_services_items[0]->type."</div>\n";
foreach ($this->add_services_items as $record) {
if ( $typ_id != $record->type ) {
$service_index++;
echo "<div class='tb_services' id='tb_services".$service_index."'>".$record->type."</div>\n";
}
if ( $record->checked ) {
$checked = "checked='checked'";
} else {
$checked = '';
}
echo " <input type='".$record->category."' id='cb".$service_index.$index."' name='".$record->category.$service_index."' value='".$record->name."' ".$checked."> ".$record->name." (".number_format($record->rate, 0, ',', '.')." ".$this->currency.")<br />\n";
echo " <input type='hidden' name='value_".$record->category.$service_index."' value='".$record->pro_rata." ".number_format($record->rate, 0, ',', '.')." ".$this->currency."'>\n";
echo " <input type='hidden' name='wert_".$record->category.$service_index."' value='".$pax/$pax*$record->rate."'>\n";
$typ_id = $record->type;
$index++;
$_SESSION['paypal']=$rate_total+$record->rate;
}
}
...... this last line ( $_SESSION['paypal']=$rate_total+$record->rate; ) is giving the result but of the wrong radio button.