예제 #1
0
                        </div>
                    </div>
                </div>
            </div>
        <?php endif; ?>

        <div id="raiting_star" itemscope itemtype="http://schema.org/Product">
            <meta itemprop="name" content="<?php the_title() ?>">
            <div id="raiting_info" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
                <img src="<?php echo get_template_directory_uri() ?>/img/load.gif" />
                <h5>Рейтинг:
                    <meta itemprop="bestRating" content="10">
                    <meta itemprop="ratingCount" content="<?=getRatingCount()?>">
                    <span class="rating-value" itemprop="ratingValue"><?= getPostRating(); ?></span>
                    <span style="color: #ccc;">
                        (Голосов: <span class="votes-count"><?=getRatingCount()?></span>)
                    </span>
                    <span class="already-voted" style="display: none;">Вы уже голосовали!</span>
                </h5>
            </div>
            <div id="raiting">
                <div id="raiting_blank"></div>
                <div id="raiting_hover"></div>
                <div id="raiting_votes"></div>
            </div>
        </div>
        <? if(is_user_logged_in()): ?>
        <div id="rating_update">
            Голосов: <input type="text" id="vote_count">
            Рейтинг: <input type="text" id="rate_count">
            <button onclick="changeVotingResult()">Отправить</button>
예제 #2
0
                                            <a href="http://www.yelp.com/biz/joes-shanghai-flushing" target="_blank"><h3>Joe’s Shanghai</h3></a>
                                            <figure>136-21 37th Avenue</figure>
                                            <div class="info">
                                                <div class="type">
                                                    <i><img src="./img/restaurant.png" alt=""></i>
                                                    <span>Restaurant</span>
                                                </div>
                                                <div class="type">
                                                    <i><?php 
echo getRating('joes-shanghai-flushing');
?>
</i>
                                                </div>
                                                <div class="type">
                                                    <i><?php 
echo getRatingCount('joes-shanghai-flushing');
?>
</i>
                                                </div>
                                            </div>
                                        </div>
                                </div>
                            </div>
                                <!-- /.item-->
                                <!-- /.item-->
                            <!--/.col-sm-4-->
                        </div>
                        <!--/.row-->
                    </div>
                    <!--/.container-->
                    <div class="background opacity-10">
예제 #3
0
$sql = "SELECT *\r\n                         FROM " . AUCTION_USER_STORE_TABLE . "\r\n                         WHERE FK_user_id =" . $auction_offer_row['user_id'];
if (!($result = $db->sql_query($sql))) {
    message_die(GENERAL_ERROR, 'Could not query user-store information', '', __LINE__, __FILE__, $sql);
}
// if
$store_row = $db->sql_fetchrow($result);
if ($store_row['pk_auction_store_id'] > 0) {
    $template->assign_block_vars('store', array('L_USER_STORE' => $lang['auction_user_store'], 'U_USER_STORE' => append_sid("auction_store.php?mode=info&" . POST_USERS_URL . "=" . $auction_offer_row['user_id'] . "")));
}
// Create comment field if allowed
if ($auction_config_data['auction_allow_comment']) {
    // display additional comments
    if ($auction_offer_row['auction_offer_comment'] != "") {
        $template->assign_block_vars('auction_offer_comment', array('L_AUCTION_OFFER_COMMENT' => $lang['auction_offer_comment'], 'AUCTION_OFFER_COMMENT_TIME' => create_date($board_config['default_dateformat'], $auction_offer_row['auction_offer_comment_time'], $board_config['board_timezone']), 'AUCTION_OFFER_COMMENT' => $auction_offer_row['auction_offer_comment']));
    }
}
// Drop message that offer is over
if ($auction_offer_row['auction_offer_time_stop'] < time()) {
    $template->assign_block_vars('auction_offer_over', array('L_AUCTION_OFFER_OVER' => $lang['auction_offer_over']));
}
// relist-option
//if ( $auction_offer_row['auction_offer_time_stop'] < time() && $auction_offer_row['auction_offer_state'] <> 2 )
if (($auction_offer_row['FK_auction_offer_user_id'] == $userdata['user_id'] or getRole() == 'administrator' or getRole() == 'moderator' or $userdata['user_level'] == ADMIN) && $auction_offer_row['auction_offer_time_stop'] < time() && $auction_offer_row['auction_offer_state'] != 2) {
    $template->assign_block_vars('auction_offer_options', array('L_AUCTION_OFFER_RELIST' => $lang['auction_offer_relist'], 'U_AUCTION_OFFER_RELIST' => append_sid("auction_offer.php?mode=add&" . POST_AUCTION_OFFER_URL . "=" . $auction_offer_id)));
}
$template->set_filenames(array('body' => 'auction_view_offer_body.tpl'));
$template->assign_vars(array('TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), 'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.{$phpEx}?mode=viewprofile&amp;" . POST_USERS_URL . "={$newest_uid}") . '">', $newest_user, '</a>'), 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], 'L_AUCTION_OFFER_QUICK_VIEW_ID' => $lang['auction_offer_quick_view_id'], 'AUCTION_OFFER_ID' => $auction_offer_row['PK_auction_offer_id'], 'AUCTION_OFFER_TITLE' => $auction_offer_row['auction_offer_title'], 'AUCTION_OFFER_OFFERER_RATINGS' => getRatingCount($auction_offer_row['user_id']), 'AUCTION_OFFER_OFFERER_URL' => append_sid("profile.{$phpEx}?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $auction_offer_row['user_id']), 'AUCTION_OFFER_OFFERER' => $auction_offer_row['username'], 'AUCTION_OFFER_OFFERER_RATING_URL' => append_sid("auction_rating.{$phpEx}?mode=view&" . POST_USERS_URL . "=" . $auction_offer_row['user_id'] . ""), 'L_AUCTION_OFFER_OFFERER_RATING' => $lang['auction_user_rating'], 'L_AUCTION_OFFER_BID_HISTORY' => $lang['auction_offer_bid_history'], 'AUCTION_OFFER_TEXT' => $message, 'AUCTION_OFFER_TIME_START' => $auction_offer_time_start, 'AUCTION_OFFER_TIME_STOP' => $auction_offer_time_stop, 'AUCTION_OFFER_TIME_REMAINING' => $auction_time_remaining, 'AUCTION_OFFER_PRICE_START' => $auction_offer_row['auction_offer_price_start'] . " " . $auction_config_data['currency'], 'AUCTION_OFFER_VIEWS' => $auction_offer_row['auction_offer_views'], 'AUCTION_OFFER_BIDS_TOTAL' => count($auction_corresponding_bidder_matches), 'AUCTION_OFFER_LAST_BID_PRICE' => $auction_offer_bid_max . " " . $auction_config_data['currency'], 'ACUTION_ROOM_YOUR_NAME' => $userdata['username'], 'AUCTION_OFFER_BIDDER' => $auction_corresponding_bidder, 'AUCTION_OFFER_TIME_MESSAGE' => $auction_offer_time_message, 'AUCTION_OFFER_DELETE_IMAGE' => $auction_offer_delete_image, 'AUCTION_OFFER_ADD_TO_WATCHLIST_IMAGE' => $auction_offer_add_to_watchlist_image, 'AUCTION_OFFER_PICTURE' => $offer_picture_url, 'AUCTION_OFFER_MOVE_IMAGE' => $auction_offer_move_image, 'AUCTION_OFFER_EDIT_IMAGE' => $auction_offer_edit_image, 'AUCTION_OFFER_SPECIAL_IMAGE' => $auction_offer_special_image, 'AUCTION_OFFER_SHIPPING_PRICE' => $auction_offer_row['auction_offer_shipping_price'] . " " . $auction_config_data['currency'], 'AUCTION_CURRENT_BID' => $auction_offer_max_bidder_price > 0 ? $auction_offer_max_bidder_price . " " . $auction_config_data['currency'] : $auction_offer_row['auction_offer_price_start'] . " " . $auction_config_data['currency'], 'AUCTION_MINIMUM_BID' => $auction_offer_max_bidder_price > 0 ? $auction_offer_max_bidder_price + $auction_offer_row['auction_offer_bid_increase'] . " " . $auction_config_data['currency'] : $auction_offer_row['auction_offer_price_start'] . " " . $auction_config_data['currency'], 'AUCTION_SEND_PM' => append_sid("privmsg.{$phpEx}?mode=post&" . POST_USERS_URL . "=" . $auction_offer_row['user_id']), 'AUCTION_SEND_EMAIL' => $board_config['board_email_form'] ? append_sid("profile.{$phpEx}?mode=email&amp;" . POST_USERS_URL . '=' . $auction_offer_row['user_id']) : 'mailto:' . $sellerrow[0]['user_email'], 'L_AUCTION_TIME_REMAINING' => $lang['auction_time_remaining'], 'L_AUCTION_MINIMUM_BID' => $lang['auction_minimum_bid'], 'L_AUCTION_CURRENT_BID' => $lang['auction_current_bid'], 'L_AUCTION_SEND_MAIL' => $lang['auction_send_mail'], 'L_AUCTION_SEND_PM' => $lang['auction_send_pm'], 'L_AUCTION_VIEW_OTHER_ITEMS' => $lang['auction_view_other_items'], 'S_AUCTION_VIEW_OTHER_ITEMS' => append_sid("auction_offer.php?mode=search_user&" . POST_USERS_URL . "=" . $auction_offer_row['user_id'] . ""), 'L_AUCTION_OFFER_SHIPPING_PRICE' => $lang['auction_offer_shipping_price'], 'L_AUCTION_OFFER_TIME_STATUS' => $lang['auction_offer_time_status'], 'L_AUCTION_OFFER_OFFERER' => $lang['auction_offer_offerer'], 'L_AUCTION_OFFER_TEXT' => $lang['auction_offer_text'], 'L_AUCTION_OFFER_TIME_START' => $lang['auction_offer_time_start'], 'L_AUCTION_OFFER_TIME_STOP' => $lang['auction_offer_time_stop'], 'L_AUCTION_OFFER_PRICE_START' => $lang['auction_offer_price_start'], 'L_AUCTION_OFFER_VIEWS' => $lang['auction_offer_views'], 'L_AUCTION_OFFER_STATE' => $lang['auction_offer_state'], 'L_AUCTION_YOUR_BID' => $lang['auction_your_bid'], 'L_AUCTION_OFFER_BIDS_TOTAL' => $lang['auction_offer_bid_total'], 'L_AUCTION_OFFER_SELLERS_LOCATION' => $lang['auction_offer_sellers_location'], 'L_AUCTION_OFFER_ACCEPTED_PAYMENTS' => $lang['auction_offer_accepted_payments'], 'AUCTION_OFFER_SELLERS_LOCATION' => $auction_offer_row['auction_offer_sellers_location'], 'AUCTION_OFFER_ACCEPTED_PAYMENTS' => $auction_offer_row['auction_offer_accepted_payments'], 'L_AUCTION_OFFER_LAST_BID_PRICE' => $lang['auction_offer_last_bid_price'], 'PROFILE_IMG' => $profile_img, 'PROFILE' => $profile, 'SEARCH_IMG' => $search_img, 'SEARCH' => $search, 'PM_IMG' => $pm_img, 'PM' => $pm, 'EMAIL_IMG' => $email_img, 'EMAIL' => $email, 'WWW_IMG' => $www_img, 'WWW' => $www, 'ICQ_IMG' => $icq_img, 'ICQ' => $icq, 'AIM_IMG' => $aim_img, 'AIM' => $aim, 'MSN_IMG' => $msn_img, 'MSN' => $msn, 'YIM_IMG' => $yim_img, 'YIM' => $yim, 'U_AUCTION_OFFER_FEATURE_LINK' => $auction_offer_feature_link, 'U_AUCTION_OFFER_MOVE_LINK' => $auction_offer_move_link, 'VOTE_LEFT' => $images['vote_left'], 'VOTE_RIGHT' => $images['vote_right'], 'AUCTION_VOTE_RIGHT' => $images['auction_vote_right'], 'AUCTION_VOTE' => $images['auction_vote'], 'S_AUCTION_YOUR_BID_ACTION' => append_sid("auction_offer.{$phpEx}?mode=bid_confirm&" . POST_AUCTION_OFFER_URL . "=" . $auction_offer_id)));
// Generate the page
$template->pparse('body');
include $phpbb_root_path . 'auction/auction_footer.' . $phpEx;
include $phpbb_root_path . 'includes/page_tail.' . $phpEx;