['class' => 'r1', 'name' => LUMBER], 2 => ['class' => 'r2', 'name' => CLAY], 3 => ['class' => 'r3', 'name' => IRON], 4 => ['class' => 'r4', 'name' => CROP], ]; $merchantAvail = (int)$market->merchantAvail(); $totalMerchants = (int)$market->merchant; ?>

resarray['f'.$id];?>

:
userinfo['alliance'] !== 0):?>
'.NOT_ENOUGH_RESOURCES.'

'; elseif (isset($_GET['e2'])) echo '

'.INVALID_OFFER.'

'; elseif (isset($_GET['e3'])) echo '

'.NOT_ENOUGH_MERCHANTS.'

'; ?>

: /

/>

onmarket) > 0):?> onmarket as $offer): $offerId = (int)$offer['id']; $gtype = (int)$offer['gtype']; $wtype = (int)$offer['wtype']; $ratio = $offer['gamt'] > 0 ? round($offer['wamt'] / $offer['gamt'], 1) : 0; $ratioClass = $ratio <= 1 ? 'red' : ($ratio < 2 ? 'orange' : 'green'); $delLink = $session->access != BANNED ? "build.php?id=".(int)$id."&t=2&a=5&del=".$offerId : "banned.php"; ?>
 
<?php echo DELETE; ?> <?php echo $res[$gtype]['name'];?> <?php echo $res[$wtype]['name'];?>