Beispiel #1
0
 function display()
 {
     $lists = array();
     $lists['parent'] = BidsHelperHtml::selectCategory('parent', array('name' => 'parent'));
     //var_dump($lists);exit;
     $this->assign('lists', $lists);
     parent::display();
 }
Beispiel #2
0
    function display() {
        $app = JFactory::getApplication();
        // Get the page/component configuration
        $params = $app->getParams();
        $database = JFactory::getDBO();

        $searchType = $params->get("user_type");
        $this->assign("search_type", $searchType);


        if ($params->get('show_page_title', 1)) {

            $page_title = $this->escape($params->get('page_title'));
            if ($page_title == "") {
                $page_title = JText::_("COM_BIDS_SEARCH_USERS");
            }
            $this->assign("page_title", $page_title);
        }

        $extra_field_list = $params->get('extra_fields', array());

        $lists['country']["label"] = "Country";
        $lists['country']["html"] = BidsHelperHtml::selectCountry("country");

        JHTML::_('behavior.calendar');

        $profileMode = BidsHelperTools::getProfileMode();
        if('component'==$profileMode) {
            $fields = CustomFieldsFactory::getSearchableFieldsList('user_profile');
            $lists['custom_fields'] = JHtml::_('customfields.displaysearchhtml',$fields);
            //$this->assign('customFilters', $customFilters);
        }

        $lists["city"]["label"] = JText::_("COM_BIDS_CITY");
        $lists["city"]["html"] = '<input type="text" name="city" />';
        $lists["name"]["label"] = JText::_('COM_BIDS_NAME');
        $lists["name"]["html"] = '<input type="text" name="name" />';

        $this->assign('lists', $lists);

        $this->assign("search_fields", $extra_field_list);

        parent::display('elements/search/t_search_users.tpl');
    }
Beispiel #3
0
    function display($tmpl) {

        $model = $this->getModel('suggestions');

        $userProfile = BidsHelperTools::getUserProfileObject();

        $filter_bidtype = $model->getState('filters.filter_bidtype');
        $lists['filter_bidtype'] = JHTML::_('listauctions.selectBidType', $filter_bidtype );
        $sfilters['bid_type'] = $filter_bidtype;

        $gallery = BidsHelperGallery::getGalleryPlugin();

        $suggestions = $model->get('suggestions');
        $rownr = 0;
        foreach($suggestions as &$s) {
            $s->rownr = ++$rownr;
            $s->links = JHTML::_('auctiondetails.createLinks',$s);
            BidsHelperAuction::renderAuctionTiming($s);
            $s->countdownHtml = JHTML::_('auctiondetails.countdownHtml',$s);

            $gallery->clearImages();
            $gallery->addImageList(explode(',', $s->pictures));
            $s->thumbnail = $gallery->getThumbImage();
        }

        JHTML::script(JURI::root().'components/com_bids/js/jquery/jquery.js');
        JHTML::script(JURI::root().'components/com_bids/js/jquery/jquery.noconflict.js');

        BidsHelperHtml::loadCountdownJS();

        JHTML::script( JURI::root().'components/com_bids/js/startup.js' );

        $this->assign('auction_rows', $suggestions);
        $this->assign('pagination', $model->get('pagination') );
        $this->assign('lists', $lists);
        $this->assign('sfilters', $sfilters);
        $this->assign('userProfile',$userProfile);

        parent::display($tmpl);
    }
Beispiel #4
0
    function saveMessage() {

        $my = JFactory::getUser();
        $cfg = BidsHelperTools::getConfig();

        $auctionid = JRequest::getInt("id");
        $comment = JRequest::getString('message', '');
        $id_msg = JRequest::getInt('idmsg', 0);
        $bidder_id= JRequest::getInt('bidder_id', null);

        $auctionmodel = $this->getModel('auction');

        if (!$auctionmodel->load($auctionid)) {
            $this->setRedirect( 'index/php?option=com_bids', JText::_('COM_BIDS_DOES_NOT_EXIST'));
            return;
        }

        $auction = $auctionmodel->get('auction');

        $redirect_link = JHtml::_('auctiondetails.auctionDetailsURL',$auction, false) . '#messages';

        if (!$cfg->bid_opt_allow_messages) {
            $this->setRedirect($redirect_link, JText::_('COM_BIDS_MESSAGING_WAS_DISALLOWED'));
            return;
        }

        if (!$my->id && $cfg->bid_opt_enable_captcha) {
            // if code not good halt
            if (!BidsHelperHtml::verify_captcha()) {
                $this->setRedirect($redirect_link, JText::_('COM_BIDS_MESSAGE_ERROR_CAPTCHA'));
                return;
            }
        }

        //only seller and buyer can send messages
        if ($auction->close_offer) {
            if ( ($auction->userid!=$my->id) && !in_array($my->id,$auction->winnerIds) ) {
                //allow messages between Winner and auctioneer
                $this->setRedirect($redirect_link, JText::_('COM_BIDS_AUCTION_IS_CLOSED'));
                return;
            }
        }

        if ($auction->published != 1) {
            $this->setRedirect($redirect_link, JText::_('COM_BIDS_DOES_NOT_EXIST'));
            return;
        }

        $comment = str_replace("\n", '<br>', $comment);
        $auction->sendNewMessage($comment, $id_msg, $bidder_id);

        $this->setRedirect($redirect_link, JText::_('COM_BIDS_MESSAGE_SUCCESS'));
    }
Beispiel #5
0
 static function selectAuctionType($auction, $isAdmin = false)
 {
     if (!$auction->published || $isAdmin) {
         return BidsHelperHtml::selectAuctionType($auction->auction_type);
     }
     switch ($auction->auction_type) {
         case AUCTION_TYPE_PUBLIC:
             $text = JText::_('COM_BIDS_PUBLIC_LABEL');
             break;
         case AUCTION_TYPE_PRIVATE:
             $text = JText::_('COM_BIDS_PRIVATE_LABEL');
             break;
         case AUCTION_TYPE_BIN_ONLY:
             $text = JText::_('COM_BIDS_BIN_ONLY_LABEL');
             break;
     }
     return "<span id='bid_auction_type'>" . $text . "</span>";
 }
Beispiel #6
0
    function display($tmpl) {

        jimport('joomla.html.parameter');

        $cfg = BidsHelperTools::getConfig();

        $model = $this->getModel('auctions');
        $items = $model->get('auctions');

        $lists=array();

		$gallery = BidsHelperGallery::getGalleryPlugin();

        $i=0;
        foreach($items as $k=>&$item) {

            $item->rownr = ++$i;
            $item->params = new JParameter($item->params);

            $gallery->clearImages();
            $gallery->addImageList(explode(',',$item->pictures));
            $item->thumbnail = $gallery->getThumbImage();

            $item->start_date_text = JHTML::_('auctiondetails.startDateHtml', $item);

            $item->description = JFilterOutput::cleanText($item->description);
            $item->shortdescription = JFilterOutput::cleanText($item->shortdescription);

            $item->tagIds = $item->tagIds ? explode(',', $item->tagIds) : array();
            $item->tagNames = $item->tagNames ? explode(',', $item->tagNames) : array();

            $item->links = JHTML::_('auctiondetails.createLinks',$item);
            if (!isset($item->favorite))
                $item->favorite = false;
            $item->del_from_watchlist = (bool) $item->favorite;
            $item->add_from_watchlist = !$item->del_from_watchlist;

            if ($cfg->bid_opt_multiple_shipping) {
                $p = JTable::getInstance('bidshipzone');
                $item->shipping_zones = $p->getPriceList($item->id);
            }

            BidsHelperAuction::renderAuctionTiming($item);
            $item->countdownHtml = JHTML::_('auctiondetails.countdownHtml',$item);

            if ( BidsHelperDateTime::getTimeStamp($item->end_date) <= time() ) {
                $item->expired = true;
            } else {
                $item->expired = false;
            }

            $item->start_date_text = JHTML::_('auctiondetails.startDateHtml', $item);
            $item->end_date_text = JHTML::_('auctiondetails.endDateHtml', $item);

            BidsHelperAuction::setAuctionStatus($item);

            if ($item->params->get('max_price', '1') == 0 || $item->auction_type == AUCTION_TYPE_PRIVATE) {
                $item->highest_bid = null;
            }

            $lists['bidderPaypalButton'][$item->id] = isset($item->wonBids) ? JHTML::_('auctiondetails.bidderPaypalButton',$item) : null;
        }

        $this->assign('positions', array());

        $filter_type = $model->getState('filters.filter_type');
        $filter_bidtype = $model->getState('filters.filter_bidtype');
        $filter_archive = $model->getState('filters.filter_archive');
        $filter_order = $model->getState('filters.filter_order');
        $filter_order_Dir = $model->getState('filters.filter_order_Dir');
        $pagination = $model->get('pagination');

        $lists['archive'] = JHTML::_('listauctions.selectMyFilter', $model->getState('filters.filter_archive'));
        $lists['filter_bidtype'] = JHTML::_('listauctions.selectBidType', $model->getState('filters.filter_bidtype') );
        $lists['orders'] = JHTML::_('listauctions.selectOrder',$filter_order);
        $lists['filter_order_asc'] = JHTML::_('listauctions.selectOrderDir', $filter_order_Dir);
        $lists['filter_cats'] = JHTML::_('listAuctions.selectCategory', $model->getState('filters.cat'));
        $lists['inputKeyword'] = JHTML::_('listAuctions.inputKeyword', $model->getState('filters.keyword'));
        $filters = $model->getFilters();
        $lists['inputsHiddenFilters'] = JHTML::_('listAuctions.inputsHiddenFilters', $filters );
        $lists['htmlLabelFilters'] = JHTML::_('listAuctions.htmlLabelFilters', $filters, false );
        $lists['resetFilters'] = JHTML::_('listAuctions.linkResetFilters', $model->getState('behavior'));

        $this->assign('lists', $lists);

        $uri = JFactory::getURI();
        $this->assign("action", JRoute::_(JFilterOutput::ampReplace($uri->toString())));
        $this->assign("auction_rows", $items);

        $this->assign("filter_type", $filter_type);
        $this->assign("filter_bidtype", $filter_bidtype);
        $this->assign("filter_order_Dir", $filter_order_Dir);
        $this->assign("reverseorder_Dir", $filter_order_Dir=='ASC' ? 'ASC' : 'DESC' );
        $this->assign("filter_order", $filter_order);
        $this->assign("filter_archive", $filter_archive);
        $this->assign("pagination", $pagination);

        JHTML::script( JURI::root().'components/com_bids/js/jquery/jquery.js' );
        JHTML::script( JURI::root().'components/com_bids/js/jquery/jquery.noconflict.js' );

        JHTML::script( JURI::root().'components/com_bids/js/ratings.js' );
        JHTML::script( JURI::root().'components/com_bids/js/startup.js' );

        JHTML::_('behavior.modal');
        JHTML::_('behavior.tooltip');

        BidsHelperHtml::loadCountdownJS();

        parent::display($tmpl);
    }
Beispiel #7
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $db = JFactory::getDBO();
     $my = JFactory::getUser();
     $where = array();
     $context = 'com_bids.jbidsdminview.offers.';
     $keyword = $app->getUserStateFromRequest($context . 'keyword', 'keyword', '', 'string');
     $category = $app->getUserStateFromRequest($context . 'category', 'category', '', 'string');
     $filter_authorid = $app->getUserStateFromRequest($context . 'filter_authorid', 'filter_authorid', '', 'string');
     $filter_bidtype = $app->getUserStateFromRequest($context . 'filter_bidtype', 'filter_bidtype', 0, 'int');
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'start_date', 'cmd');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', 'DESC', 'word');
     $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'int');
     $limitstart = $app->getUserStateFromRequest($context . 'limitstart', 'limitstart', 0, 'int');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     if (!$filter_order) {
         $filter_order = 'a.title';
     }
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     $order = ' ORDER BY ' . $filter_order . ' ' . $filter_order_Dir . '';
     if ($keyword) {
         $where[] = " a.title LIKE '%" . $db->escape($keyword) . "%' OR a.shortdescription LIKE '%" . $db->escape($keyword) . "%' OR a.description LIKE '%" . $db->escape($keyword) . "%' ";
     }
     if ($filter_authorid) {
         $where[] = " u.username LIKE '%" . $db->escape($filter_authorid) . "%' ";
     }
     if ($category) {
         $where[] = 'a.cat=' . $db->quote($category);
     }
     switch ($filter_bidtype) {
         case 1:
             $where[] = " a.published=1 AND a.close_offer=0 AND a.close_by_admin=0 AND a.end_date>=UTC_TIMESTAMP() ";
             break;
         case 2:
             $where[] = " a.published=1 AND a.close_offer=0 AND a.close_by_admin=0 AND a.end_date<UTC_TIMESTAMP() ";
             break;
         case 3:
             $where[] = " a.published=1 AND a.close_offer=1 AND a.close_by_admin=0 ";
             break;
         case 4:
             $where[] = " a.published=0 AND a.close_by_admin=0 ";
             break;
         case 5:
             $where[] = " a.close_by_admin=1 ";
             break;
     }
     // Build the where clause of the content record query
     $where = count($where) ? ' WHERE ' . implode(' AND ', $where) : '';
     // Get the total number of records
     $query = 'SELECT COUNT(1)' . ' FROM #__bid_auctions AS a' . ' LEFT JOIN #__categories AS cc ON cc.id = a.cat ' . $where;
     $db->setQuery($query);
     $total = $db->loadResult();
     // Create the pagination object
     jimport('joomla.html.pagination');
     $pageNav = new JPagination($total, $limitstart, $limit);
     // Get the auctions
     $query = 'SELECT a.*, cc.title AS name,
              u.username AS username, count(bids.id) as nr_bids, max(bids.bid_price) as min_bid,
              COUNT(DISTINCT bids.userid) as nr_bidders,
              COUNT(DISTINCT pix.id ) as nr_pix,
              1-MIN(msg.wasread) AS newmessages
              FROM #__bid_auctions AS a
              LEFT JOIN `#__bids` AS bids ON `bids`.`auction_id`=`a`.`id`
              LEFT JOIN #__users AS bu ON bu.id = bids.userid
              LEFT JOIN #__categories AS cc ON cc.id = a.cat
              LEFT JOIN #__users AS u ON u.id = a.userid
              LEFT JOIN #__bid_pictures AS pix ON pix.auction_id = a.id
              LEFT JOIN #__bid_messages AS msg ON msg.auction_id = a.id AND msg.userid2 = \'' . $my->id . '\' ' . $where . ' GROUP BY a.id ' . $order;
     $db->setQuery($query, $pageNav->limitstart, $pageNav->limit);
     $rows = $db->loadObjectList();
     $filters = array();
     $filters['keyword'] = '<input type="text" name="keyword" value="' . $keyword . '" />';
     $filters['filter_authorid'] = '<input type="text" name="filter_authorid" value="' . $filter_authorid . '" />';
     $filters['category'] = BidsHelperHtml::selectCategory('category', array('name' => 'category', 'select' => $category));
     $closeid[] = JHTML::_('select.option', '0', JText::_('COM_BIDS_ALL_OFFERS'));
     $closeid[] = JHTML::_('select.option', '1', JText::_('COM_BIDS_ACTIVE'));
     $closeid[] = JHTML::_('select.option', '2', JText::_('COM_BIDS_NR_EXPIRED'));
     $closeid[] = JHTML::_('select.option', '3', JText::_('COM_BIDS_CLOSED'));
     $closeid[] = JHTML::_('select.option', '4', "Cancelled (Unpublished)");
     $closeid[] = JHTML::_('select.option', '5', "Blocked  (Unpublished)");
     $lists['filter_bidtype'] = JHTML::_('select.genericlist', $closeid, 'filter_bidtype', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', $filter_bidtype);
     JHTML::_('behavior.tooltip');
     $this->assignRef('lists', $lists);
     $this->assignRef('filters', $filters);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     parent::display($tpl);
 }
<?php
	// no direct access
	defined( '_JEXEC' ) or die( 'Restricted access' );

	$catshow = $params->get('searchcategory');
	$themeselect = $params->get('theme');
	JHTML::stylesheet($themeselect.".css",'modules/mod_auctionsearch/tmpl/'.$themeselect.'/');

    JLoader::register('BidConfig',JPATH_ROOT.DS.'components'.DS.'com_bids'.DS.'options.php');
    JLoader::register('BidsHelper',JPATH_ROOT.DS.'components'.DS.'com_bids'.DS.'helpers'.DS.'bids.php');
    BidsHelper::LoadHelperClasses();

    $arr = array();
    $arr['name'] = 'cat';
    $lists['cats'] = BidsHelperHtml::selectCategory($arr);

    $lang = JFactory::getLanguage();
    $lang->load('com_bids');

    JHtml::stylesheet(JUri::root().'/modules/mod_auctionsearch/assets/css/mod_bids_search.css');
?>

<div>
	<form action="<?php echo JRoute::_('index.php'); ?>" method="post" name="searchauctionForm" >
		<input type="hidden" name="option" value="com_bids" />
		<input type="hidden" name="task" value="listauctions" />
		<input type="hidden" name="indesc" value="1" />
		<span>
			<span class="mod_auction_search_field mod_auction_search_inner">
                <input type="text" name="keyword" style="height: 20px;" />&nbsp;
                <input name="go" type="submit" class="mod_auction_button_BINq" value="<?php echo JText::_('COM_BIDS_SEARCH'); ?>"/>
Beispiel #9
0
    function display($tpl=null) {

        $mainframe = JFactory::getApplication();
        $database = JFactory::getDBO();
        $my = JFactory::getUser();
        $cfg = BidsHelperTools::getConfig();

        $model = $this->getModel();
        $auction = $model->get('auction');

        $document = JFactory::getDocument();
        $document->setTitle($auction->title);
        $document->setMetaData('description', strip_tags($auction->shortdescription));
        $document->setMetaData('abstract', strip_tags($auction->description));
        foreach($auction->tagNames as $tag) {
            $document->setMetaData('keywords', $tag);
        }

        $jsQuantity = 'var has_quantity = ' . ( ($cfg->bid_opt_quantity_enabled && $auction->nr_items > 1) ?
                'true' : 'false' ) . ';';
        $document->addScriptDeclaration($jsQuantity);

        $links_path = JHtml::_('auctiondetails.auctionDetailsURL',$auction);

        $pathway = $mainframe->getPathway();
        $pathway->addItem($auction->title, $links_path);

        /* PLUGINS */
        $database->setQuery("select * from #__bid_pricing where enabled=1 order by ordering");
        $pp = $database->loadObjectList();
        $pricing_plugins = array();
        foreach ($pp as $p) {
            $pricing_plugins[$p->itemname] = $p;
        }
        $this->assign('pricing_plugins', $pricing_plugins);

        $auction->countdownHtml = JHTML::_('auctiondetails.countdownHtml',$auction);

        $auctioneer = JFactory::getUser($auction->userid);
        $profile = BidsHelperTools::getUserProfileObject($auctioneer->id);

        $this->assign('auctioneer', $auctioneer);
        $this->assign('auctioneer_details', $profile);

        $document = JFactory::getDocument();
        $js = 'var must_accept_term = '.((strip_tags($cfg->terms_and_conditions))?"true;":"false;");
        $this->assign('terms_and_conditions',(strip_tags($cfg->terms_and_conditions))?1:0);
        $document->addScriptDeclaration($js);
        $document->addScriptDeclaration('var auction_currency=\''.$auction->currency.'\';');

        /* PLUGINS */
        if ($cfg->bid_opt_enable_captcha) {
            $this->assign("cs", BidsHelperHtml::init_captcha());
        }

        $u = JTable::getInstance('biduser');
        $ratings = $u->getRatingsList($auctioneer->id);

        $list = array();

        $list['auctionWatchlist'] = JHTML::_('auctiondetails.follow',$auction);
        $list['auctionReport'] = JHTML::_('auctiondetails.report',$auction);
        $list['auctionChooseWinner'] = JHTML::_('auctiondetails.chooseWinner',$auction);
        $list['auctionRate'] = JHTML::_('auctiondetails.rate',$auction);
        $list['auctionFbLikeButton'] = JHTML::_('auctionDetails.fbLikeButton',$auction);
        $list['userRated'] = JHTML::_('auctionDetails.selectUserRated',$auction);
        $list['ratingsDetails'] = JHTML::_('auctionDetails.linkRatingsDetails',$auction,$ratings);

        $modelAuctions = JModelLegacy::getInstance('auctions','bidsModel');
        $otherAuctions = $modelAuctions->getOtherAuctionsList($auction->userid,$auction->id,4);

        $gallery = BidsHelperGallery::getGalleryPlugin();
        foreach($otherAuctions as &$oa) {
            BidsHelperAuction::renderAuctionTiming($oa);

            $gallery->clearImages();
            $gallery->addImageList($oa->imagelist);

            $oa->thumbnail = $oa->get('thumbnail');
            $oa->countdownHtml = JHTML::_('auctiondetails.countdownHtml',$oa);
        }
        $list['other_items'] = $otherAuctions;
        $list['tagLinks'] = JHtml::_('auctiondetails.taglinks',$auction);

        $list['ratings'] = BidsHelperHtml::getRatingsSelect();

        if(AUCTION_TYPE_BIN_ONLY==$auction->auction_type && $auction->quantity > 1) {

            $itemsPurchased = 0;

            foreach($auction->wonBids as $wb) {
                if($wb->userid==$my->id) {
                    $itemsPurchased += $wb->quantity;
                }
            }

            $list['myPurchasedItems'] = $itemsPurchased;
        }

        $userProfile = BidsHelperTools::getUserProfileObject();

	    $gallery->writeJS();

        $sellerProfile = BidsHelperTools::getUserProfileObject($auction->userid);

        $list['bidderPaypalButton'] = JHTML::_('auctiondetails.bidderPaypalButton',$auction);

        $auction->payment_name = $auction->payment_method;
        $auction->thumbnail = $auction->get('thumbnail');
        $auction->gallery = $auction->get('gallery');
        $auction->links = JHTML::_('auctiondetails.createLinks',$auction);
        $auction->username = $sellerProfile->username;
        $auction->paypalemail = isset($sellerProfile->paypalemail) ? $sellerProfile->paypalemail : null;
        $auction->start_date_text = JHTML::_('auctiondetails.startDateHtml', $auction);
        $auction->end_date_text = JHTML::_('auctiondetails.endDateHtml', $auction);

        $auction->minIncrement = $model->getMinIncrement();
        $auction->minAcceptedPrice = $model->getMinAcceptedPrice();
        $auction->isMyAuction = $model->ownsAuction($my->id);

        $mybids = $model->getUserBids($my->id);
        $auction->myBid = reset($mybids);

        $auction->my_proxy_bid = $auction->myBid ? $auction->myBid->max_proxy_price : 0;
        $auction->mybid = $auction->myBid ? $auction->myBid->bid_price : 0;

        $auction->winner_list = $auction->wonBids;
        $auction->winBid = 0;

        if($auction->highestBid && $auction->highestBid->accept) {
            $auction->winBid = $auction->highestBid->bid_price;
        }

        $auction->highestBidder = $auction->highestBid ? $auction->highestBid->username : '';
        $auction->highestBidderId = $auction->highestBid ? $auction->highestBid->userid : 0;

        if(!$auction->highestBid) {
            $auction->highestBid = new stdClass();
            $auction->highestBid->bid_price = 0;
        }
        $auction->highestBid->bid_price =
                (
                    $auction->isMyAuction ||
                    (!empty($auction->params['max_price']) && $auction->auction_type!=AUCTION_TYPE_PRIVATE)
                ) ?
                ($auction->highestBid ? $auction->highestBid->bid_price : 0) : 'private';


        $auction->iAmWinner = $model->isWinner($my->id);

        $suggestions = isset($auction->suggestions) ? $auction->suggestions : null;

        JHTML::script(JURI::root().'components/com_bids/js/jquery/jquery.js');
        JHTML::script(JURI::root().'components/com_bids/js/jquery/jquery.noconflict.js');
        JHTML::script(JURI::root().'components/com_bids/js/auctions.js');
        JHTML::script(JURI::root().'components/com_bids/js/startup.js');
        JHTML::_('behavior.modal');

        BidsHelperHtml::loadCountdownJS();

        $this->assign('auction', $auction);
        $this->assign('userProfile',$userProfile);
        $this->assign('message_list', $model->getAuctionMessages($auction->id));
        $this->assign('bid_list', $auction->bids );
        $this->assign('bid_history', $auction->bids_history );
        $this->assign('positions', array());
        $this->assign('suggestions', $suggestions);
        $this->assign('lists', $list);

        parent::display($tpl);
    }