示例#1
0
 public function actionGetAllBidbyId()
 {
     $bid = new Model_Bid();
     $id = $_POST['id'];
     /*if (!$bid->getAllBidbyId($id))
       {
           App::redirect('/goods/notfound');
       }*/
     $data = $bid->getAllBidbyId($id);
     echo json_encode($data);
 }
示例#2
0
 /**
  * this function shows us our all bids 
  * 
  */
 public function actionMyBids()
 {
     $bids = Model_Bid::myBid($this->user->getID());
     if (!$bids) {
         $bids = [];
     }
     $countLots = $this->user->getQuantityLots();
     $countBids = $this->user->getQuantityBids();
     if ($countLots == "") {
         $countLots = 0;
     }
     if ($countBids == "") {
         $countBids = 0;
     }
     $this->view->lots = $countLots;
     $this->view->countBids = $countBids;
     $this->view->bids = $bids;
     $this->view->user = $this->name;
     $this->view->render('mybids');
     $this->view->display();
 }