' . constant($game->sprache("TEXT61")) . '<br> ' . constant($game->sprache("TEXT66")) . '<br><br> ' . constant($game->sprache("TEXT52")) . ' </td> <td align="left" valign="top" width="150"> [' . ($ship['fleet_id'] > 0 ? '<a href="' . parse_link('a=ship_fleets_display&' . (!empty($ship['planet_id']) ? 'p' : 'm') . 'fleet_details=' . $ship['fleet_id']) . '">' . $ship['fleet_name'] . '</a>' : '<a href="' . parse_link('a=spacedock') . '">' . $ship['planet_name'] . '</a>') . ']<br><br> <b>' . $ship['name'] . '</b><br> <b><a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateShipInfoText($SHIP_TORSO[$ship['race']][$ship['ship_torso']]) . '\', CAPTION, \'' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '</a></b><br> <b>' . $RACE_DATA[$ship['race']][0] . '</b><br><br> <b>' . $ship['ship_name'] . '</b><br> <b>' . $ship['ship_ncc'] . '</b><br> <b>' . date('d/m/y H:i:s', $ship['construction_time']) . '</b><br><br> <b>' . (!empty($ship['last_refit_time']) ? date('d/m/y H:i:s', $ship['last_refit_time']) : constant($game->sprache("TEXT58"))) . '</b><br> <b>(' . $ship['hitpoints'] . '</b> / <b>' . $ship['value_5'] . ')</b> + <b><span style="color: yellow">' . $buff_value_5 . '</span></b><br> <b>' . $ship['value_4'] . ' + <span style="color: yellow">' . $buff_value_4 . '</span></b><br><br>
function Show_Bidding_Detail() { global $db; global $game, $ACTUAL_TICK, $NEXT_TICK, $SHIPIMAGE_PATH, $SHIP_TORSO, $ship_components, $ship_ranks, $ship_rank_bonus; $_REQUEST['id'] = (int) $_REQUEST['id']; if ($_REQUEST['id'] < 0) { return 0; } $sql = 'SELECT s.*,u.user_name,u.num_auctions,COUNT(b.id) AS num_bids FROM (ship_trade s) LEFT JOIN (user u) ON u.user_id=s.user LEFT JOIN (bidding b) ON b.trade_id=s.id WHERE s.id= "' . $_REQUEST['id'] . '" GROUP BY s.id LIMIT 1 '; if (($tradedata = $db->queryrow($sql)) === false) { message(DATABASE_ERROR, 'Internal database error'); } // Check if the auction is still present if (empty($tradedata)) { message(NOTICE, constant($game->sprache("TEXT48"))); } /* 11/04/08 - AC: It's unnecessary SELECTing the ship with ALSO flag untouchable set to true because ship's ID is unique. */ $sql = 'SELECT s.*,t.*,u.user_race AS owner_race FROM (ships s) LEFT JOIN (ship_templates t) ON t.id=s.template_id LEFT JOIN (user u) ON u.user_id=t.owner WHERE s.ship_id="' . $tradedata['ship_id'] . '"'; if (($ship = $db->queryrow($sql)) === false) { message(DATABASE_ERROR, 'Cannot retrieve auctioned ship data'); } // Check if the ship is still present if (empty($ship)) { message(NOTICE, constant($game->sprache("TEXT249"))); } /* $ship=$db->queryrow('SELECT s.*,t.*,u.user_race AS owner_race FROM (ships s) LEFT JOIN (ship_templates t) ON t.id=s.template_id LEFT JOIN (user u) ON u.user_id=t.owner WHERE s.ship_id="'.$tradedata['ship_id'].'" AND s.ship_untouchable=1 LIMIT 1');*/ /* 28/02/08 - AC: Hmmm, it seems that $own_only is not used here... */ $own_only = false; $game->out('<center><span class="sub_caption">' . constant($game->sprache("TEXT63")) . ' ' . HelpPopup($own_only == true ? 'trade_viewownauctiondetail' : 'trade_viewauctiondetail') . ' :</span></center><br>'); $game->out('<center><table border=0 cellpadding=2 cellspacing=2 width=570 class="style_outer">'); $game->out('<tr><td width=570> <center><span class="sub_caption">' . $tradedata['header'] . '</span><br><br> <center><span class="text_large">' . constant($game->sprache("TEXT64")) . ': <a href="' . parse_link('a=stats&a2=viewplayer&id=' . $tradedata['user']) . '"><span style="font-family:Arial,serif;font-size:11pt">' . $tradedata['user_name'] . '</span></a> (' . $tradedata['num_auctions'] . ')</span><br><br> <table border=0 cellspacing=1 cellpadding=1 class="style_inner"> <tr valign=top> <td width=400 align=left> <span class="sub_caption2">' . constant($game->sprache("TEXT31")) . '</span><br> ' . $tradedata['description'] . ' </td></tr></table><br> '); // Schiffsdaten ausgeben: $rank_nr = 1; if ($ship['experience'] >= $ship_ranks[0]) { $rank_nr = 1; } if ($ship['experience'] >= $ship_ranks[1]) { $rank_nr = 2; } if ($ship['experience'] >= $ship_ranks[2]) { $rank_nr = 3; } if ($ship['experience'] >= $ship_ranks[3]) { $rank_nr = 4; } if ($ship['experience'] >= $ship_ranks[4]) { $rank_nr = 5; } if ($ship['experience'] >= $ship_ranks[5]) { $rank_nr = 6; } if ($ship['experience'] >= $ship_ranks[6]) { $rank_nr = 7; } if ($ship['experience'] >= $ship_ranks[7]) { $rank_nr = 8; } if ($ship['experience'] >= $ship_ranks[8]) { $rank_nr = 9; } if ($ship['experience'] >= $ship_ranks[9]) { $rank_nr = 10; } /* 22/01/09 - AC: Orb doesn't have crew */ if ($ship['ship_torso'] != SHIP_TYPE_ORB) { $crew = round(100 / ($ship['max_unit_1'] + $ship['max_unit_2'] + $ship['max_unit_3'] + $ship['max_unit_4'] + $ship['unit_5'] + $ship['unit_6']) * ($ship['unit_1'] + $ship['unit_2'] + $ship['unit_3'] + $ship['unit_4'] + $ship['unit_5'] + $ship['unit_6'])) . '%'; } else { $crew = constant($game->sprache("TEXT275")); } if ($tradedata['show_data'] == 0) { $game->out('<table border=0 cellspacing=1 cellpadding=1 class="style_inner"> <tr valign=top> <td width=400 align=left> <span class="sub_caption2">' . constant($game->sprache("TEXT28")) . '</span><br> <u>' . constant($game->sprache("TEXT65")) . '</u> ' . $ship['ship_name'] . '<br> ' . (($ship['ship_ncc'] |= '') ? '<u>' . constant($game->sprache("TEXT267")) . '</u> ' . $ship['ship_ncc'] . '<br>' : '') . ' <u>' . constant($game->sprache("TEXT268")) . '</u> ' . date('d.m.y H:i:s', $ship['construction_time']) . '<br> <u>' . constant($game->sprache("TEXT70")) . '</u> ' . $ship['name'] . '<br> <u>' . constant($game->sprache("TEXT66")) . '</u> <a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateShipInfoText($SHIP_TORSO[$ship['race']][$ship['ship_torso']]) . '\', CAPTION, \'' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '</a> (' . ($ship['ship_torso'] + 1) . ')<br> <u>' . constant($game->sprache("TEXT67")) . '</u> ' . 100 / $ship['value_5'] * $ship['hitpoints'] . '%<br> <u>' . constant($game->sprache("TEXT68")) . '</u> ' . $crew . '<br> <i>' . constant($game->sprache("TEXT69")) . '</i> </td></tr></table>'); } else { if ($tradedata['show_data'] == 1) { $game->out('<table border=0 cellspacing=1 cellpadding=1 class="style_inner"> <tr valign=top> <td width=400 align=left> <span class="sub_caption2">' . constant($game->sprache("TEXT28")) . '</span><br> <table border=0 cellspacing=1 cellpadding=1> <tr> <td width=150 align=left> <img src=' . FIXED_GFX_PATH . 'ship' . $ship['race'] . '_' . $ship['ship_torso'] . '.jpg> </td> <td width=10></td> <td width=240 align=left valign=top> <b><u>' . constant($game->sprache("TEXT65")) . '</u> ' . $ship['ship_name'] . '</b><br> ' . (($ship['ship_ncc'] |= '') ? '<b><u>' . constant($game->sprache("TEXT267")) . '</u> ' . $ship['ship_ncc'] . '</b><br>' : '') . ' <b><u>' . constant($game->sprache("TEXT268")) . '</u> ' . date('d.m.y H:i:s', $ship['construction_time']) . '</b><br> <b><u>' . constant($game->sprache("TEXT70")) . '</u> ' . $ship['name'] . '<br></b> <b><u>' . constant($game->sprache("TEXT66")) . '</u> <a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateShipInfoText($SHIP_TORSO[$ship['race']][$ship['ship_torso']]) . '\', CAPTION, \'' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '</a> (' . ($ship['ship_torso'] + 1) . ')<br> <u>' . constant($game->sprache("TEXT68")) . '</u> ' . $crew . '<br> <u>' . constant($game->sprache("TEXT67")) . '</u> ' . $ship['hitpoints'] . '/' . $ship['value_5'] . '<br> <u>' . constant($game->sprache("TEXT13")) . '</u> ' . $ship['value_1'] . ' + <span style="color: yellow">' . round($ship['value_1'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT14")) . '</u> ' . $ship['value_2'] . ' + <span style="color: yellow">' . round($ship['value_2'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT15")) . '</u> ' . $ship['value_3'] . ' + <span style="color: yellow">' . round($ship['value_3'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT16")) . '</u> ' . $ship['value_4'] . '<br> <u>' . constant($game->sprache("TEXT18")) . '</u> ' . $ship['value_6'] . ' + <span style="color: yellow">' . round($ship['value_6'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT19")) . '</u> ' . $ship['value_7'] . ' + <span style="color: yellow">' . round($ship['value_7'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT20")) . '</u> ' . $ship['value_8'] . ' + <span style="color: yellow">' . round($ship['value_8'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT21")) . '</u> <span style="color: yellow">' . $ship['experience'] . '</span></b> <img src="' . $game->GFX_PATH . 'rank_' . $rank_nr . '.jpg" width="47" height="12"><br> <u>' . constant($game->sprache("TEXT22")) . '</u> ' . $ship['value_10'] . '<br> <u>' . constant($game->sprache("TEXT23")) . '</u> ' . $ship['value_11'] . '<br> <u>' . constant($game->sprache("TEXT24")) . '</u> ' . $ship['value_12'] . '<br> <u>' . constant($game->sprache("TEXT25")) . '</u> ' . $ship['value_14'] . '<br> <u>' . constant($game->sprache("TEXT26")) . '</u> ' . $ship['value_13'] . '<br> </td> </tr></table> </td></tr></table>'); } else { if ($tradedata['show_data'] == 2) { $game->out('<table border=0 cellspacing=1 cellpadding=1 class="style_inner"> <tr valign=top> <td width=400 align=left> <span class="sub_caption2">' . constant($game->sprache("TEXT28")) . '</span><br> <table border=0 cellspacing=1 cellpadding=1> <tr> <td width=195 align=left valign=top> <u>' . constant($game->sprache("TEXT65")) . '</u> ' . $ship['ship_name'] . '<br> ' . (($ship['ship_ncc'] |= '') ? '<u>' . constant($game->sprache("TEXT267")) . '</u> ' . $ship['ship_ncc'] . '<br>' : '') . ' <u>' . constant($game->sprache("TEXT268")) . '</u> ' . date('d.m.y H:i:s', $ship['construction_time']) . '<br> <u>' . constant($game->sprache("TEXT70")) . '</u> ' . $ship['name'] . '<br> <u>' . constant($game->sprache("TEXT66")) . '</u> <a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateShipInfoText($SHIP_TORSO[$ship['race']][$ship['ship_torso']]) . '\', CAPTION, \'' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '</a> (' . ($ship['ship_torso'] + 1) . ')<br> <u>' . constant($game->sprache("TEXT67")) . '</u> ' . $ship['value_5'] . '/' . $ship['hitpoints'] . '<br> <u>' . constant($game->sprache("TEXT13")) . '</u> ' . $ship['value_1'] . ' + <span style="color: yellow">' . round($ship['value_1'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT14")) . '</u> ' . $ship['value_2'] . ' + <span style="color: yellow">' . round($ship['value_2'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT15")) . '</u> ' . $ship['value_3'] . ' + <span style="color: yellow">' . round($ship['value_3'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT16")) . '</u> ' . $ship['value_4'] . '<br> <u>' . constant($game->sprache("TEXT18")) . '</u> ' . $ship['value_6'] . ' + <span style="color: yellow">' . round($ship['value_6'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT19")) . '</u> ' . $ship['value_7'] . ' + <span style="color: yellow">' . round($ship['value_7'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT20")) . '</u> ' . $ship['value_8'] . ' + <span style="color: yellow">' . round($ship['value_8'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span><br> <u>' . constant($game->sprache("TEXT21")) . '</u> <span style="color: yellow">' . $ship['experience'] . '</span></b> <img src="' . $game->GFX_PATH . 'rank_' . $rank_nr . '.jpg" width="47" height="12"><br> <u>' . constant($game->sprache("TEXT22")) . '</u> ' . $ship['value_10'] . '<br> <u>' . constant($game->sprache("TEXT23")) . '</u> ' . $ship['value_11'] . '<br> <u>' . constant($game->sprache("TEXT24")) . '</u> ' . $ship['value_12'] . '<br> <u>' . constant($game->sprache("TEXT25")) . '</u> ' . $ship['value_14'] . '<br> <u>' . constant($game->sprache("TEXT26")) . '</u> ' . $ship['value_13'] . '<br> </td> <td width=10></td> <td width=195 align=left valign=top><b><u>' . constant($game->sprache("TEXT27")) . '</b></u><br>'); for ($t = 0; $t < 10; $t++) { if ($ship['component_' . ($t + 1)] >= 0) { /* 06/03/08 - AC: The index "$game->player['race']" was wrong, replaced with "$ship['race']" */ $game->out('- <a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateCompInfoText($ship_components[$ship['race']][$t][$ship['component_' . ($t + 1)]]) . '\', CAPTION, \'' . $ship_components[$ship['race']][$t][$ship['component_' . ($t + 1)]]['name'] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $ship_components[$ship['race']][$t][$ship['component_' . ($t + 1)]]['name'] . '</a><br>'); } else { $game->out(constant($game->sprache("TEXT33"))); } } $game->out('<br> <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . $ship['unit_1'] . '/' . $ship['max_unit_1'] . '<br> <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . $ship['unit_2'] . '/' . $ship['max_unit_2'] . '<br> <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . $ship['unit_3'] . '/' . $ship['max_unit_3'] . '<br> <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . $ship['unit_4'] . '/' . $ship['max_unit_4'] . '<br> <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . $ship['unit_5'] . '<br> <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . $ship['unit_6'] . ' </td> </tr></table> <center><img src=' . FIXED_GFX_PATH . 'ship' . $ship['race'] . '_' . $ship['ship_torso'] . '.jpg></center> </td></tr></table>'); } } } // The bid price + summary: $min_bieten = -1; // -1 means that there was NO bid yet if ($tradedata['num_bids'] == 1) { $min_bieten = 1; } if ($tradedata['num_bids'] < 2) { $min_resources[0] = $tradedata['resource_1']; $min_resources[1] = $tradedata['resource_2']; $min_resources[2] = $tradedata['resource_3']; $min_resources[3] = $tradedata['unit_1']; $min_resources[4] = $tradedata['unit_2']; $min_resources[5] = $tradedata['unit_3']; $min_resources[6] = $tradedata['unit_4']; $min_resources[7] = $tradedata['unit_5']; $min_resources[8] = $tradedata['unit_6']; $actual_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'], 0, '.', '.'); if ($tradedata['num_bids'] != 0) { $min_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + $tradedata['add_resource_1'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + $tradedata['add_resource_2'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + $tradedata['add_resource_3'], 0, '.', '.'); $min_resources[0] = $tradedata['resource_1'] + $tradedata['add_resource_1']; $min_resources[1] = $tradedata['resource_2'] + $tradedata['add_resource_2']; $min_resources[2] = $tradedata['resource_3'] + $tradedata['add_resource_3']; $min_resources[3] = $tradedata['unit_1'] + $tradedata['add_unit_1']; $min_resources[4] = $tradedata['unit_2'] + $tradedata['add_unit_2']; $min_resources[5] = $tradedata['unit_3'] + $tradedata['add_unit_3']; $min_resources[6] = $tradedata['unit_4'] + $tradedata['add_unit_4']; $min_resources[7] = $tradedata['unit_5'] + $tradedata['add_unit_5']; $min_resources[8] = $tradedata['unit_6'] + $tradedata['add_unit_6']; $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + $tradedata['add_unit_1'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + $tradedata['add_unit_2'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + $tradedata['add_unit_3'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + $tradedata['add_unit_4'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + $tradedata['add_unit_5'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + $tradedata['add_unit_6'], 0, '.', '.'); } else { $min_price = $actual_price; } } else { $prelast_bid = $db->queryrow('SELECT * FROM bidding WHERE trade_id = "' . $tradedata['id'] . '" ORDER BY max_bid DESC LIMIT 1,1'); // Um zu testen, ob ein Gleichstand besteht, dann wird ja nicht max_bid +1 $last_bid = $db->queryrow('SELECT * FROM bidding WHERE trade_id = "' . $tradedata['id'] . '" ORDER BY max_bid DESC LIMIT 1'); if ($last_bid['max_bid'] != $prelast_bid['max_bid']) { $min_bieten = $prelast_bid['max_bid'] + 1 + 1; // +1 for the current offer, again +1 for the next $min_resources[0] = $tradedata['resource_1'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_resource_1']; $min_resources[1] = $tradedata['resource_2'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_resource_2']; $min_resources[2] = $tradedata['resource_3'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_resource_3']; $min_resources[3] = $tradedata['unit_1'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_1']; $min_resources[4] = $tradedata['unit_2'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_2']; $min_resources[5] = $tradedata['unit_3'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_3']; $min_resources[6] = $tradedata['unit_4'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_4']; $min_resources[7] = $tradedata['unit_5'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_5']; $min_resources[8] = $tradedata['unit_6'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_6']; $actual_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_4'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_5'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_6'], 0, '.', '.'); $min_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_resource_1'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_resource_2'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_resource_3'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_1'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_2'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_3'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_4'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_5'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + ($prelast_bid['max_bid'] + 2) * $tradedata['add_unit_6'], 0, '.', '.'); } else { $min_bieten = $prelast_bid['max_bid'] + 1; // +1 for the next bid, because was "directly stand" $min_resources[0] = $tradedata['resource_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_1']; $min_resources[1] = $tradedata['resource_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_2']; $min_resources[2] = $tradedata['resource_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_3']; $min_resources[3] = $tradedata['unit_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_1']; $min_resources[4] = $tradedata['unit_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_2']; $min_resources[5] = $tradedata['unit_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_3']; $min_resources[6] = $tradedata['unit_4'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_4']; $min_resources[7] = $tradedata['unit_5'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_5']; $min_resources[8] = $tradedata['unit_6'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_6']; $actual_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + $prelast_bid['max_bid'] * $tradedata['add_resource_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + $prelast_bid['max_bid'] * $tradedata['add_resource_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + $prelast_bid['max_bid'] * $tradedata['add_resource_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + $prelast_bid['max_bid'] * $tradedata['add_unit_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + $prelast_bid['max_bid'] * $tradedata['add_unit_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + $prelast_bid['max_bid'] * $tradedata['add_unit_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + $prelast_bid['max_bid'] * $tradedata['add_unit_4'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + $prelast_bid['max_bid'] * $tradedata['add_unit_5'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + $prelast_bid['max_bid'] * $tradedata['add_unit_6'], 0, '.', '.'); $min_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_1'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_2'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_3'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_1'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_2'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_3'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_4'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_5'], 0, '.', '.'); $min_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_6'], 0, '.', '.'); } } // If the auction is still running: if (60 * TICK_DURATION * ($tradedata['end_time'] - $ACTUAL_TICK) + $NEXT_TICK > 0) { $game->set_autorefresh(60 * TICK_DURATION * ($tradedata['end_time'] - $ACTUAL_TICK) + $NEXT_TICK); $game->out('<br><table border=0 cellspacing=1 cellpadding=1 class="style_inner"> <tr><td width=400 align=left> <span class="sub_caption2">' . constant($game->sprache("TEXT71")) . '</span><br> ' . constant($game->sprache("TEXT71a")) . ' <b id="timer3" title="time1_' . (60 * TICK_DURATION * ($tradedata['end_time'] - $ACTUAL_TICK) + $NEXT_TICK) . '_type1_1">&nsbp;</b><br> ' . constant($game->sprache("TEXT71b")) . ': <img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'], 0, '.', '.') . ' <br>' . constant($game->sprache("TEXT71c")) . ': <img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['add_resource_1'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['add_resource_2'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['add_resource_3'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['add_unit_1'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['add_unit_2'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['add_unit_3'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['add_unit_4'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['add_unit_5'], 0, '.', '.') . ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['add_unit_6'], 0, '.', '.') . ' <br><br> ' . constant($game->sprache("TEXT71d")) . $tradedata['num_bids'] . '<br>'); if ($min_bieten == -1) { // Seller? if ($tradedata['user'] == $game->player['user_id']) { $game->out(constant($game->sprache("TEXT72")) . ' (' . $min_price . ')<br> <form method="post" action="' . parse_link('a=trade&view=cancel_bid&id=' . $_REQUEST['id']) . '"> <input type="submit" name="stornieren" class="Button_nosize" value="' . constant($game->sprache("TEXT73")) . '" width=150 onClick="return confirm(\'' . constant($game->sprache("TEXT74")) . '\')"> </form> <i>' . constant($game->sprache("TEXT75")) . '</i>'); } else { $game->out(constant($game->sprache("TEXT72")) . ' (' . $min_price . ')<br> <form method="post" action="' . parse_link('a=trade&view=submit_bid&do_bid=1&id=' . $_REQUEST['id']) . '"> <input type="submit" name="bid_form" class="Button_nosize" value="' . constant($game->sprache("TEXT76")) . '" width=150 onClick="return confirm(\'' . constant($game->sprache("TEXT77")) . '\')"> </form> <i>' . constant($game->sprache("TEXT78")) . ' (' . $min_price . ')</i>'); } } else { $player_bid = $db->queryrow('SELECT * FROM bidding WHERE trade_id = "' . $tradedata['id'] . '" AND user="******"'); if (!empty($player_bid['trade_id'])) { if ($player_bid['max_bid'] > 0) { $own_bid = '<br><b>' . constant($game->sprache("TEXT79")) . ' ' . $player_bid['max_bid'] . ' ('; } else { $own_bid = '<br><b>' . constant($game->sprache("TEXT80")) . ' ('; } $own_bid .= '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + $player_bid['max_bid'] * $tradedata['add_resource_1'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + $player_bid['max_bid'] * $tradedata['add_resource_2'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + $player_bid['max_bid'] * $tradedata['add_resource_3'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + $player_bid['max_bid'] * $tradedata['add_unit_1'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + $player_bid['max_bid'] * $tradedata['add_unit_2'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + $player_bid['max_bid'] * $tradedata['add_unit_3'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + $player_bid['max_bid'] * $tradedata['add_unit_4'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + $player_bid['max_bid'] * $tradedata['add_unit_5'], 0, '.', '.'); $own_bid .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + $player_bid['max_bid'] * $tradedata['add_unit_6'], 0, '.', '.'); if ($player_bid['max_bid'] > 0) { $own_bid .= ') ' . constant($game->sprache("TEXT81")) . '</b><br><br>'; } else { $own_bid .= ').</b><br><br>'; } } else { $own_bid = '- no bid -'; } $hbieter = $db->queryrow('SELECT b.*,u.user_id,u.user_name FROM (bidding b) LEFT JOIN (user u) ON u.user_id=b.user WHERE b.trade_id = "' . $tradedata['id'] . '" ORDER BY b.max_bid DESC, b.id ASC LIMIT 1'); $game->out($own_bid . constant($game->sprache("TEXT83")) . ($min_bieten - 1 == 0 ? constant($game->sprache("TEXT84")) : $min_bieten - 1) . ' (' . $actual_price . ')<br> ' . constant($game->sprache("TEXT85")) . ' <a href="' . parse_link('a=stats&a2=viewplayer&id=' . $hbieter['user_id']) . '">' . $hbieter['user_name'] . '</a><br> ' . constant($game->sprache("TEXT86")) . $min_bieten . ' (' . $min_price . ')<br> <script language="JavaScript"> function UpdateValues() { var maxbid=document.maxbidform.max_bid.value; document.getElementById( "res_1" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_resource_1'] . ')+' . $tradedata['resource_1'] . '; document.getElementById( "res_2" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_resource_2'] . ')+' . $tradedata['resource_2'] . '; document.getElementById( "res_3" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_resource_3'] . ')+' . $tradedata['resource_3'] . '; document.getElementById( "res_4" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_unit_1'] . ')+' . $tradedata['unit_1'] . '; document.getElementById( "res_5" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_unit_2'] . ')+' . $tradedata['unit_2'] . '; document.getElementById( "res_6" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_unit_3'] . ')+' . $tradedata['unit_3'] . '; document.getElementById( "res_7" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_unit_4'] . ')+' . $tradedata['unit_4'] . '; document.getElementById( "res_8" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_unit_5'] . ')+' . $tradedata['unit_5'] . '; document.getElementById( "res_9" ).firstChild.nodeValue = maxbid*(' . $tradedata['add_unit_6'] . ')+' . $tradedata['unit_6'] . '; window.setTimeout( \'UpdateValues()\', 500 ); } </script>'); // Seller? if ($tradedata['user'] == $game->player['user_id']) { // If it the Seller, then show a bid: $liste = $db->query('SELECT b.*,u.user_id,u.user_name FROM (bidding b) LEFT JOIN (user u) ON u.user_id=b.user WHERE b.trade_id = "' . $tradedata['id'] . '" ORDER BY b.max_bid DESC, b.id ASC'); $game->out(constant($game->sprache("TEXT87")) . ' <table border=0 cellpadding=1 cellspacing=1><tr><td width=100></td><td width=150></td></tr>'); $nr = 0; while (($item = $db->fetchrow($liste)) == true) { $game->out('<tr><td><a href="' . parse_link('a=stats&a2=viewplayer&id=' . $item['user_id']) . '">' . $item['user_name'] . '</a></td><td>'); if ($nr > 0) { if ($item['max_bid'] > 0) { $bid_txt = $item['max_bid'] . ' ('; } else { $own_bid = constant($game->sprache("TEXT88")) . ' ('; } $bid_txt .= '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + $item['max_bid'] * $tradedata['add_resource_1'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + $item['max_bid'] * $tradedata['add_resource_2'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + $item['max_bid'] * $tradedata['add_resource_3'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + $item['max_bid'] * $tradedata['add_unit_1'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + $item['max_bid'] * $tradedata['add_unit_2'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + $item['max_bid'] * $tradedata['add_unit_3'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + $item['max_bid'] * $tradedata['add_unit_4'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + $item['max_bid'] * $tradedata['add_unit_5'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + $item['max_bid'] * $tradedata['add_unit_6'], 0, '.', '.'); $bid_txt .= ')</td></tr>'; } else { /* 17/03/08 - AC: prelast_bid WHAT?? */ if (!isset($prelast_bid)) { $prelast_bid['max_bid'] = 0; $bid_txt = ''; } if ($item['max_bid'] > 0) { $bid_txt = $prelast_bid['max_bid'] + 1 . ' ('; } else { $own_bid = constant($game->sprache("TEXT88")) . ' ('; } $bid_txt .= '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_1'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_2'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_3'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_1'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_2'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_3'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_4'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_5'], 0, '.', '.'); $bid_txt .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_6'], 0, '.', '.'); $bid_txt .= ')</td></tr>'; } $game->out($bid_txt); $nr++; } $game->out('</table>'); } else { $game->out('<form method="post" action="' . parse_link('a=trade&view=submit_bid&do_bid=1&id=' . $_REQUEST['id']) . '" name="maxbidform"> ' . constant($game->sprache("TEXT89")) . '<input type="text" name="max_bid" value="' . $min_bieten . '" class="Field_nosize" size="5" maxlength="6" style="width: 75px;" onFocus="UpdateValues();"> (<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"><b id="res_1">' . number_format($min_resources[0], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"><b id="res_2">' . number_format($min_resources[1], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"><b id="res_3">' . number_format($min_resources[2], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"><b id="res_4">' . number_format($min_resources[3], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"><b id="res_5">' . number_format($min_resources[4], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"><b id="res_6">' . number_format($min_resources[5], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"><b id="res_7">' . number_format($min_resources[6], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"><b id="res_8">' . number_format($min_resources[7], 0, '.', '.') . '</b> <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"><b id="res_9">' . number_format($min_resources[8], 0, '.', '.') . '</b>)<br> <input type="submit" name="register" class="Button_nosize" value="' . constant($game->sprache("TEXT90")) . '" width=150 onClick="return confirm(\'' . constant($game->sprache("TEXT91")) . '\')"> </form>'); } } } else { $game->out('<br><table border=0 cellspacing=1 cellpadding=1 class="style_inner"> <td width=400 align=left> <span class="sub_caption2">' . constant($game->sprache("TEXT71")) . '</span><br> <b>' . constant($game->sprache("TEXT92")) . ' ' . Zeit(-1 * (TICK_DURATION * ($tradedata['end_time'] - $ACTUAL_TICK))) . ' ' . constant($game->sprache("TEXT93")) . '<br>'); if ($tradedata['num_bids'] < 1) { $game->out(constant($game->sprache("TEXT94"))); } else { $hbieter = $db->queryrow('SELECT b.*,u.user_id,u.user_name FROM (bidding b) LEFT JOIN (user u) ON u.user_id=b.user WHERE b.trade_id = "' . $tradedata['id'] . '" ORDER BY b.max_bid DESC, b.id ASC LIMIT 1'); $game->out('<u>' . constant($game->sprache("TEXT95")) . '</u></span> <a href="' . parse_link('a=stats&a2=viewplayer&id=' . $hbieter['user_id']) . '"><b>' . $hbieter['user_name'] . '</a><br>'); if ($tradedata['num_bids'] < 2) { $actual_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'], 0, '.', '.'); } else { $prelast_bid = $db->queryrow('SELECT * FROM bidding WHERE trade_id = "' . $tradedata['id'] . '" ORDER BY max_bid DESC LIMIT 1,1'); // Um zu testen, ob ein Gleichstand besteht, dann wird ja nicht max_bid +1 $last_bid = $db->queryrow('SELECT * FROM bidding WHERE trade_id = "' . $tradedata['id'] . '" ORDER BY max_bid DESC LIMIT 1'); if ($last_bid['max_bid'] != $prelast_bid['max_bid']) { $actual_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_resource_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_4'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_5'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + ($prelast_bid['max_bid'] + 1) * $tradedata['add_unit_6'], 0, '.', '.'); } else { $actual_price = '<img src="' . $game->GFX_PATH . 'menu_metal_small.gif"> ' . number_format($tradedata['resource_1'] + $prelast_bid['max_bid'] * $tradedata['add_resource_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_mineral_small.gif"> ' . number_format($tradedata['resource_2'] + $prelast_bid['max_bid'] * $tradedata['add_resource_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_latinum_small.gif"> ' . number_format($tradedata['resource_3'] + $prelast_bid['max_bid'] * $tradedata['add_resource_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit1_small.gif"> ' . number_format($tradedata['unit_1'] + $prelast_bid['max_bid'] * $tradedata['add_unit_1'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit2_small.gif"> ' . number_format($tradedata['unit_2'] + $prelast_bid['max_bid'] * $tradedata['add_unit_2'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit3_small.gif"> ' . number_format($tradedata['unit_3'] + $prelast_bid['max_bid'] * $tradedata['add_unit_3'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit4_small.gif"> ' . number_format($tradedata['unit_4'] + $prelast_bid['max_bid'] * $tradedata['add_unit_4'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit5_small.gif"> ' . number_format($tradedata['unit_5'] + $prelast_bid['max_bid'] * $tradedata['add_unit_5'], 0, '.', '.'); $actual_price .= ' <img src="' . $game->GFX_PATH . 'menu_unit6_small.gif"> ' . number_format($tradedata['unit_6'] + $prelast_bid['max_bid'] * $tradedata['add_unit_6'], 0, '.', '.'); } } $game->out('<u>' . constant($game->sprache("TEXT96")) . '</u> ' . $actual_price . '</span><br>'); if ($tradedata['user'] == $game->player['user_id'] || $hbieter['user_id'] == $game->player['user_id']) { $game->out(constant($game->sprache("TEXT97"))); } } // Es wurden Gebote abgegeben } // End of: wenn die Auktion vorbei ist $game->out('</td></tr>'); $game->out('</table></td></tr></table>'); }
function Ship_Details() { global $db, $game, $SHIP_TORSO, $RACE_DATA, $ship_rank_bonus, $ship_ranks, $ship_components; $sql = 'SELECT s.*, st.*, f.fleet_name, f.planet_id, f.move_id, p.planet_name FROM (ships s) INNER JOIN (ship_templates st) ON st.id = s.template_id LEFT JOIN (ship_fleets f) ON f.fleet_id = s.fleet_id LEFT JOIN (planets p) ON p.planet_id = -s.fleet_id WHERE s.ship_id = ' . $_REQUEST['id']; if (($ship = $db->queryrow($sql)) === false) { message(DATABASE_ERROR, 'Could not query ship data'); } if (empty($ship['ship_id'])) { message(NOTICE, constant($game->sprache("TEXT55"))); } if ($ship['user_id'] != $game->player['user_id']) { message(NOTICE, constant($game->sprache("TEXT55"))); } // Schiffsdaten ausgeben: $rank_nr = 1; if ($ship['experience'] >= $ship_ranks[0]) { $rank_nr = 1; } if ($ship['experience'] >= $ship_ranks[1]) { $rank_nr = 2; } if ($ship['experience'] >= $ship_ranks[2]) { $rank_nr = 3; } if ($ship['experience'] >= $ship_ranks[3]) { $rank_nr = 4; } if ($ship['experience'] >= $ship_ranks[4]) { $rank_nr = 5; } if ($ship['experience'] >= $ship_ranks[5]) { $rank_nr = 6; } if ($ship['experience'] >= $ship_ranks[6]) { $rank_nr = 7; } if ($ship['experience'] >= $ship_ranks[7]) { $rank_nr = 8; } if ($ship['experience'] >= $ship_ranks[8]) { $rank_nr = 9; } if ($ship['experience'] >= $ship_ranks[9]) { $rank_nr = 10; } $game->out(' <table width="450" align="center" border="0" cellpadding="2" cellspacing="2" class="style_outer"> <tr> <td><span class="sub_caption2">' . constant($game->sprache("TEXT56")) . ' (' . $ship['name'] . ')</span><br> <table width="450" align="center" cellpadding="0" cellspacing="0" border="0" class="style_inner"> <tr> <td align="left" valign="top" width="120"> ' . ($ship['fleet_id'] > 0 ? constant($game->sprache("TEXT57")) : constant($game->sprache("TEXT58"))) . '<br><br> ' . constant($game->sprache("TEXT59")) . '<br> ' . constant($game->sprache("TEXT60")) . '<br> ' . constant($game->sprache("TEXT61")) . '<br><br> ' . constant($game->sprache("TEXT6")) . '<br> ' . constant($game->sprache("TEXT62")) . '<br> ' . constant($game->sprache("TEXT63")) . '<br><br> ' . constant($game->sprache("TEXT73")) . '<br> ' . constant($game->sprache("TEXT64")) . '<br> ' . constant($game->sprache("TEXT44")) . '<br><br> ' . constant($game->sprache("TEXT49")) . '<br><br> ' . constant($game->sprache("TEXT41")) . '<br> ' . constant($game->sprache("TEXT42")) . '<br> ' . constant($game->sprache("TEXT43")) . '<br><br> ' . constant($game->sprache("TEXT46")) . '<br> ' . constant($game->sprache("TEXT47")) . '<br> ' . constant($game->sprache("TEXT48")) . '<br><br> ' . constant($game->sprache("TEXT50")) . '<br> ' . constant($game->sprache("TEXT51")) . '<br> ' . constant($game->sprache("TEXT52")) . '<br><br> ' . constant($game->sprache("TEXT65")) . '<br><br> ' . constant($game->sprache("TEXT10")) . ' </td> <td align="left" valign="top" width="160"> [' . ($ship['fleet_id'] > 0 ? '<a href="' . parse_link('a=ship_fleets_display&' . (!empty($ship['planet_id']) ? 'p' : 'm') . 'fleet_details=' . $ship['fleet_id']) . '">' . $ship['fleet_name'] . '</a>' : '<a href="' . parse_link('a=spacedock') . '">' . $ship['planet_name'] . '</a>') . ']<br><br> <b>' . $ship['name'] . '</b><br> <b><a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateShipInfoText($SHIP_TORSO[$ship['race']][$ship['ship_torso']]) . '\', CAPTION, \'' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $SHIP_TORSO[$ship['race']][$ship['ship_torso']][29] . '</a></b><br> <b>' . $RACE_DATA[$ship['race']][0] . '</b><br><br> <b>' . $ship['ship_name'] . '</b><br> <b>' . $ship['ship_ncc'] . '</b><br> <b>' . date('d/m/y H:i:s', $ship['construction_time']) . '</b><br><br> <b>' . (!empty($ship['last_refit_time']) ? date('d/m/y H:i:s', $ship['last_refit_time']) : constant($game->sprache("TEXT74"))) . '</b><br> <b>' . $ship['hitpoints'] . '</b> / <b>' . $ship['value_5'] . '</b><br> <b>' . $ship['value_4'] . '</b><br><br> <b><span style="color: yellow">' . $ship['experience'] . '</span></b> <img src="' . $game->GFX_PATH . 'rank_' . $rank_nr . '.jpg" width="47" height="12"><br><br> <b>' . $ship['value_1'] . ' + <span style="color: yellow">' . round($ship['value_1'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span></b><br> <b>' . $ship['value_2'] . ' + <span style="color: yellow">' . round($ship['value_2'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span></b><br> <b>' . $ship['value_3'] . ' + <span style="color: yellow">' . round($ship['value_3'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span></b><br><br> <b>' . $ship['value_6'] . ' + <span style="color: yellow">' . round($ship['value_6'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span></b><br> <b>' . $ship['value_7'] . ' + <span style="color: yellow">' . round($ship['value_7'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span></b><br> <b>' . $ship['value_8'] . ' + <span style="color: yellow">' . round($ship['value_8'] * $ship_rank_bonus[$rank_nr - 1], 0) . '</span></b><br><br> <b>' . $ship['value_10'] . '</b><br> <b>' . $ship['value_11'] . '</b><br> <b>' . $ship['value_12'] . '</b><br><br> <b>' . $ship['value_14'] . '</b> / <b>' . $ship['value_13'] . '</b><br><br> <img src=' . $game->GFX_PATH . 'menu_unit1_small.gif>' . $ship['unit_1'] . ' <img src=' . $game->GFX_PATH . 'menu_unit2_small.gif>' . $ship['unit_2'] . ' <img src=' . $game->GFX_PATH . 'menu_unit3_small.gif>' . $ship['unit_3'] . ' <img src=' . $game->GFX_PATH . 'menu_unit4_small.gif>' . $ship['unit_4'] . ' <img src=' . $game->GFX_PATH . 'menu_unit5_small.gif>' . $ship['unit_5'] . ' <img src=' . $game->GFX_PATH . 'menu_unit6_small.gif>' . $ship['unit_6'] . ' </td> <td align="center>" valign="top" width="170"><img src="' . FIXED_GFX_PATH . 'ship' . $ship['race'] . '_' . $ship['ship_torso'] . '.jpg"><br><br> '); for ($t = 0; $t < 10; $t++) { if ($ship['component_' . ($t + 1)] >= 0) { $game->out('- <a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateCompInfoText($ship_components[$ship['race']][$t][$ship['component_' . ($t + 1)]]) . '\', CAPTION, \'' . $ship_components[$ship['race']][$t][$ship['component_' . ($t + 1)]]['name'] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $ship_components[$ship['race']][$t][$ship['component_' . ($t + 1)]]['name'] . '</a><br>'); } else { $game->out(constant($game->sprache("TEXT66"))); } } $game->out(' </td> </tr> </table> </td> </tr> </table> '); }
function Show_Torso() { global $db; global $game; global $SHIP_TORSO, $SHIP_TORSO_DATA, $UNIT_DESCRIPTION, $UNIT_DATA, $UNIT_NAME, $NEXT_TICK, $ACTUAL_TICK; $ship_class = array(constant($game->sprache("TEXT33")), constant($game->sprache("TEXT34")), constant($game->sprache("TEXT35")), constant($game->sprache("TEXT36")), constant($game->sprache("TEXT36")), constant($game->sprache("TEXT37")), constant($game->sprache("TEXT37")), constant($game->sprache("TEXT38")), constant($game->sprache("TEXT38")), constant($game->sprache("TEXT39")), constant($game->sprache("TEXT39")), constant($game->sprache("TEXT40")), constant($game->sprache("TEXT41"))); $game->out(' <table border=0 cellpadding=2 cellspacing=2 width=475 class="style_outer"><tr><td align="center"> <span class="sub_caption">' . constant($game->sprache("TEXT1")) . ':</span> <br><span class="sub_caption2">(1/3) ' . constant($game->sprache("TEXT42")) . '</span><br> <br><table border=0 cellpadding=2 cellspacing=2 width=475 class="style_inner"><tr><td> <form method="post" action="' . parse_link('a=ship_template&view=create') . '">'); $game->out('<table border=0 cellpadding=2 cellspacing=2><tr><td> </td><td align="left" width=150><b>' . constant($game->sprache("TEXT43")) . '</b></td><td width=100><b>' . constant($game->sprache("TEXT44")) . '</b></td><td width=50 align="center"><b>' . constant($game->sprache("TEXT45")) . '</b></td><td width=75 align="center"><b>' . constant($game->sprache("TEXT46")) . '</b></td><td width=75 align="center"><b>' . constant($game->sprache("TEXT47")) . '</b></td><td width=50 align="center"><b>' . constant($game->sprache("TEXT48")) . '</b></td></tr>'); for ($t = 0; $t < count($SHIP_TORSO[$game->player['user_race']]); $t++) { //Funktion Rumpfklassen ausblenden //by Mojo1987 if ($game->player['user_race'] == 0) { if ($t == 12) { break; } } if ($game->player['user_race'] == 1) { if ($t == 3) { $t = 4; } if ($t == 8) { $t = 9; } if ($t == 12) { break; } } if ($game->player['user_race'] == 2) { if ($t == 3) { $t = 4; } if ($t == 6) { $t = 7; } if ($t == 8) { $t = 9; } if ($t == 10) { $t = 11; } if ($t == 12) { break; } } if ($game->player['user_race'] == 3) { if ($t == 3) { $t = 4; } if ($t == 5) { $t = 7; } if ($t == 8) { $t = 9; } if ($t == 10) { break; } } if ($game->player['user_race'] == 4) { if ($t == 3) { $t = 4; } if ($t == 6) { $t = 9; } if ($t == 10) { $t = 11; } if ($t == 12) { break; } } if ($game->player['user_race'] == 5) { if ($t == 3) { $t = 4; } if ($t == 5) { $t = 7; } if ($t == 8) { $t = 12; } } if ($game->player['user_race'] == 8) { if ($t == 0) { $t = 1; } if ($t == 3) { $t = 4; } if ($t == 5) { $t = 7; } if ($t == 8) { $t = 9; } if ($t == 10) { $t = 11; } } if ($game->player['user_race'] == 9) { if ($t == 3) { $t = 5; } if ($t == 6) { $t = 7; } if ($t == 8) { $t = 9; } if ($t == 10) { break; } } if ($game->player['user_race'] == 10) { if ($t == 3) { $t = 4; } if ($t == 5) { $t = 7; } if ($t == 8) { $t = 9; } if ($t == 10) { $t = 12; } } if ($game->player['user_race'] == 11) { if ($t == 4) { $t = 5; } if ($t == 6) { $t = 9; } if ($t == 10) { break; } } $te = $t + 1; //Ausgabe Variable f�r den Rumpf //Funktion Ende $game->out(' <tr><td>' . (GlobalTorsoReq($t) <= $game->player['user_points'] ? '<input type="radio" name="ship_torso" value="' . $t . '">' : '<input type="radio" name="ship_torso" value="-1" disabled="disabled">') . '</td><td><a href="javascript:void(0);" onmouseover="return overlib(\'' . CreateShipInfoText($SHIP_TORSO[$game->player['user_race']][$t]) . '\', CAPTION, \'' . $SHIP_TORSO[$game->player['user_race']][$t][29] . '\', WIDTH, 400, ' . OVERLIB_STANDARD . ');" onmouseout="return nd();">' . $SHIP_TORSO[$game->player['user_race']][$t][29] . '</a> </td><td>' . $ship_class[$t] . '</td><td align="center">' . $te . '</td><td align="center">' . (GlobalTorsoReq($t) <= $game->player['user_points'] ? '<span style="color: #00FF00;"><b>' . GlobalTorsoReq($t) . '</b></span>' : '<span style="color: #FF0000;"><b>' . GlobalTorsoReq($t) . '</b></span>') . '</td><td align="center">' . ($game->planet['planet_points'] < LocalTorsoReq($t) ? '<span style="color: #FF0000;"><b>' . LocalTorsoReq($t) . '</b></span>' : '<span style="color: #00FF00;"><b>' . LocalTorsoReq($t) . '</b></span>') . '</td><td align="center">' . (GlobalTorsoReq($t) <= $game->player['user_points'] && $game->planet['planet_points'] >= LocalTorsoReq($t) ? '<span style="color: #00FF00;"><b>' . constant($game->sprache("TEXT49")) . '</b></span>' : '<span style="color: #FF0000;"><b>' . constant($game->sprache("TEXT50")) . '</b></span>') . '</td></tr> '); } $game->out('</table></select> <center><br> <input class="button_nosize" type="submit" name="step1" value="(1/3) ' . constant($game->sprache("TEXT51")) . '" disabled> <input class="button_nosize" type="submit" name="step2" value="(2/3) ' . constant($game->sprache("TEXT52")) . '"></center> </form></td></tr></table></td></tr></table>'); }