Example #1
0
 // show bid form
 $main_content .= '<form action="index.php" method="post">
     <input type="hidden" name="subtopic" value="houses" />
     <input type="hidden" name="action" value="bid" />
     <input type="hidden" name="house" value="' . $house->getID() . '" />
     <input type="hidden" name="do_bid" value="1" />
     <table border=0 cellspacing=1 cellpadding=4 width=100%>
         <tr bgcolor="' . $config['site']['vdarkborder'] . '" class=white>
             <td colspan="2" style="color:white;"><b>Bid at auction of house ' . $house->getName() . ' placed in ' . $towns_list[$house->getTown()] . '</b></td>
         </tr>
         <tr bgcolor="' . $config['site']['darkborder'] . '">
             <td><b>Owner:</b></td>
             <td><select name="bidder">';
 foreach (Visitor::getAccount()->getPlayers() as $accountPlayer) {
     $main_content .= '<option value="' . $accountPlayer->getID() . '"';
     if ($accountPlayer->getID() == $house->getHighestBidder()) {
         $main_content .= 'selected="selected"';
     }
     $main_content .= '>' . htmlspecialchars($accountPlayer->getName()) . '</option>';
 }
 $main_content .= '</select></td>
         </tr>
         <tr bgcolor="' . $config['site']['lightborder'] . '">
             <td width="200px"><b>Your maximum offer:</b></td>
             <td><input type="text" size="9" name="bid" value="' . ($houseBidded['house_id'] == $house->getID() ? $house->getBid() : $house->getLastBid() + 1) . '" /> gold coins</td>
         </tr>
         <tr bgcolor="' . $config['site']['darkborder'] . '">
             <td><b>Current bid:</b></td>
             <td>' . $house->getLastBid() . ' gold coins</td>
         </tr>
         <tr bgcolor="' . $config['site']['lightborder'] . '">