Esempio n. 1
0
 function ItemShowArticle2($bidding = false)
 {
     if (count($this->Article) == 0) {
         print "競売物無し(No auction)<br />\n";
         return false;
     } else {
         $Now = time();
         // ソートされている色を変える(可変変数)
         if ($this->sort) {
             ${"Style_" . $this->sort} = ' class="a0"';
         }
         $exp = '<tr><td class="td9"><a href="?menu=' . $this->QUERY . '&sort=no"' . $Style_no . '>No</a></td>' . '<td class="td9"><a href="?menu=' . $this->QUERY . '&sort=time"' . $Style_time . '>残り</td>' . '<td class="td9"><a href="?menu=' . $this->QUERY . '&sort=price"' . $Style_price . '>価格</a>' . '<br /><a href="?menu=' . $this->QUERY . '&sort=rprice"' . $Style_rprice . '>(昇)</a></td>' . '<td class="td9">Item</td>' . '<td class="td9"><a href="?menu=' . $this->QUERY . '&sort=bid"' . $Style_bid . '>Bids</a></td>' . '<td class="td9">入札者</td><td class="td9">出品者</td></tr>' . "\n";
         print "総出品数:" . $this->ItemAmount() . "\n";
         print '<table style="width:725px;text-align:center" cellpadding="0" cellspacing="0" border="0">' . "\n";
         print $exp;
         foreach ($this->Article as $Article) {
             // 競売番号
             print "<tr><td rowspan=\"2\" class=\"td7\">";
             print $Article["No"];
             // 終了時刻
             print "</td><td class=\"td7\">";
             print AuctionLeftTime($Now, $Article["end"]);
             // 現在入札価格
             print "</td><td class=\"td7\">";
             print MoneyFormat($Article["price"]);
             // アイテム
             print '</td><td class="td7" style="text-align:left">';
             $item = LoadItemData($Article["item"]);
             print ShowItemDetail($item, $Article["amount"], 1);
             // 合計入札数
             print "</td><td class=\"td7\">";
             print $Article["TotalBid"];
             // 入札者
             print "</td><td class=\"td7\">";
             if (!$Article["bidder"]) {
                 $bidder = "-";
             } else {
                 $bidder = $this->LoadUserName($Article["bidder"]);
             }
             print $bidder;
             // 出品者
             print "</td><td class=\"td8\">";
             $exhibitor = $this->LoadUserName($Article["exhibitor"]);
             print $exhibitor;
             // コメント
             print "</td></tr><tr>";
             print "<td colspan=\"6\" class=\"td8\" style=\"text-align:left\">";
             print '<form action="?menu=auction" method="post">';
             // 入札フォーム
             if ($bidding) {
                 print '<a style="margin:0 10px" href="#" onClick="Element.toggle(\'Bid' . $Article["No"] . '\');return false;">入札</a>';
                 print '<span style="display:none" id="Bid' . $Article["No"] . '">';
                 print '&nbsp;<input type="text" name="BidPrice" style="width:80px" class="text" value="' . BottomPrice($Article["price"]) . '">';
                 print '<input type="submit" value="Bid" class="btn">';
                 print '<input type="hidden" name="ArticleNo" value="' . $Article["No"] . '">';
                 print '</span>';
             }
             print $Article["comment"] ? $Article["comment"] : "&nbsp;";
             print "</form>";
             print "</td></tr>\n";
             print "</td></tr>\n";
         }
         print $exp;
         print "</table>\n";
         return true;
     }
 }
Esempio n. 2
0
 function ItemShowArticle2($bidding = false)
 {
     if (count($this->Article) == 0) {
         print "无拍卖物(No auction)<br />\n";
         return false;
     } else {
         $Now = time();
         if ($this->sort) {
             ${"Style_" . $this->sort} = ' class="a0"';
         }
         $exp = '<tr><td class="td9"><a href="?menu=' . $this->QUERY . '&sort=no"' . $Style_no . '>No</a></td>' . '<td class="td9"><a href="?menu=' . $this->QUERY . '&sort=time"' . $Style_time . '>其余</td>' . '<td class="td9"><a href="?menu=' . $this->QUERY . '&sort=price"' . $Style_price . '>价格</a>' . '<br /><a href="?menu=' . $this->QUERY . '&sort=rprice"' . $Style_rprice . '>(登)</a></td>' . '<td class="td9">Item</td>' . '<td class="td9"><a href="?menu=' . $this->QUERY . '&sort=bid"' . $Style_bid . '>Bids</a></td>' . '<td class="td9">投标人</td><td class="td9">参展人</td></tr>' . "\n";
         print "所列项目总数:" . $this->ItemAmount() . "\n";
         print '<table style="width:725px;text-align:center" cellpadding="0" cellspacing="0" border="0">' . "\n";
         print $exp;
         foreach ($this->Article as $Article) {
             // 競売番号
             print "<tr><td rowspan=\"2\" class=\"td7\">";
             print $Article["No"];
             // 終了時刻
             print "</td><td class=\"td7\">";
             print AuctionLeftTime($Now, $Article["end"]);
             // 現在竞标价格
             print "</td><td class=\"td7\">";
             print MoneyFormat($Article["price"]);
             // アイテム
             print '</td><td class="td7" style="text-align:left">';
             $item = LoadItemData($Article["item"]);
             print ShowItemDetail($item, $Article["amount"], 1);
             // 合計竞标数
             print "</td><td class=\"td7\">";
             print $Article["TotalBid"];
             // 投标人
             print "</td><td class=\"td7\">";
             if (!$Article["bidder"]) {
                 $bidder = "-";
             } else {
                 $bidder = $this->LoadUserName($Article["bidder"]);
             }
             print $bidder;
             // 参展人
             print "</td><td class=\"td8\">";
             $exhibitor = $this->LoadUserName($Article["exhibitor"]);
             print $exhibitor;
             // コメント
             print "</td></tr><tr>";
             print "<td colspan=\"6\" class=\"td8\" style=\"text-align:left\">";
             print '<form action="?menu=auction" method="post">';
             // 竞标フォーム
             if ($bidding) {
                 print '<strong>我要竞标:</strong>';
                 print '<span id="Bid' . $Article["No"] . '">';
                 print ' <input type="text" name="BidPrice" style="width:80px" class="text" value="' . BottomPrice($Article["price"]) . '">';
                 print '<input type="submit" value="出价" class="btn">';
                 print '<input type="hidden" name="ArticleNo" value="' . $Article["No"] . '">';
                 print '</span>';
             }
             print $Article["comment"] ? $Article["comment"] : " ";
             print "</form>";
             print "</td></tr>\n";
             print "</td></tr>\n";
         }
         print $exp;
         print "</table>\n";
         return true;
     }
 }