} else {
        echo '拍卖进行中';
    }
    ?>
</td>
										<td>
										<?php 
    if (time() > element('deadline', $domainItem)) {
        if (1 == element('status', $domainItem)) {
            echo '流拍';
        } else {
            if (element('price2', $domainItem)) {
                if ($rank == 1) {
                    echo '<span class="m_color"><strong>中标</strong></span>';
                } elseif ($rank == 2 || $rank == 3) {
                    echo '<span class="m_color"><strong>+ ' . getUserPrice($domainItem, $rank, element('price2', $domainItem)) . '</strong></span>';
                }
            }
        }
    }
    ?>
										</td>										
									</tr>
									<?php 
}
?>
								</tbody>
							</table>
							<?php 
echo $pagelinks;
?>
            } elseif ($count == 2 && element('uid', $bidItem) == element('uid2', $bidReport)) {
                if ($status != DOMAIN_SELL_FAILED) {
                    echo '+' . getUserPrice($domain, $count, $finalPrice);
                }
                ?>
										<span class="lbl error_bg" title="<?php 
                echo '出价时间:' . date('Y-m-d H:i', element('pubdate', $bidItem));
                ?>
">¥ <?php 
                echo element('price', $bidItem);
                ?>
</span>
										<?php 
            } elseif ($count == 3 && element('uid', $bidItem) == element('uid3', $bidReport)) {
                if ($status != DOMAIN_SELL_FAILED) {
                    echo '+' . getUserPrice($domain, $count, $finalPrice);
                }
                ?>
										<span class="lbl neutral_bg" title="<?php 
                echo '出价时间:' . date('Y-m-d H:i', element('pubdate', $bidItem));
                ?>
">¥ <?php 
                echo element('price', $bidItem);
                ?>
</span>
										<?php 
            } else {
                ?>
										<span class="right" title="<?php 
                echo '出价时间:' . date('Y-m-d H:i', element('pubdate', $bidItem));
                ?>
 function addInitDomainOrder($domainArray, $bidReportArray)
 {
     $time = time();
     $data = array(array('uid' => element('uid', $domainArray), 'did' => element('did', $domainArray), 'price' => -getTotalPrize($domainArray, element('price2', $bidReportArray)), 'status' => DOMAIN_ORDER_UNPAID, 'otype' => DOMAIN_ORDER_TYPE_SENDPRIZE, 'utype' => DOMAIN_ORDER_UTYPE_SELLER, 'update' => $time, 'createdate' => $time), array('uid' => element('uid1', $bidReportArray), 'did' => element('did', $domainArray), 'price' => 0, 'status' => DOMAIN_ORDER_NONE, 'otype' => DOMAIN_ORDER_TYPE_NONE, 'utype' => DOMAIN_ORDER_UTYPE_BUYER, 'update' => $time, 'createdate' => $time), array('uid' => element('uid2', $bidReportArray), 'did' => element('did', $domainArray), 'price' => getUserPrice($domainArray, 2, element('price2', $bidReportArray)), 'status' => DOMAIN_ORDER_UNRECEIVED, 'otype' => DOMAIN_ORDER_TYPE_GETPRIZE2, 'utype' => DOMAIN_ORDER_UTYPE_PRIZE2, 'update' => $time, 'createdate' => $time), array('uid' => element('uid3', $bidReportArray), 'did' => element('did', $domainArray), 'price' => getUserPrice($domainArray, 3, element('price2', $bidReportArray)), 'status' => DOMAIN_ORDER_UNRECEIVED, 'otype' => DOMAIN_ORDER_TYPE_GETPRIZE3, 'utype' => DOMAIN_ORDER_UTYPE_PRIZE3, 'update' => $time, 'createdate' => $time));
     $this->db->insert_batch($this->table, $data);
 }