mantaman
Well-Known Member
Имам един фаел който управлява динамична страница и ми вади няколко текста - проблема ми е че между отделните текстове ми прави много големи празни пространства (около 4 реда), а аз искам да са максимум през един защото много се разпъва съдържанието, ако някой знае как да го оправя да помага
<div class="productAuction AuctionBold">
<?php if ($products_reserve_price > $auction_current_bid) {
$one_time = AUCTION_RESERVE_NOT_MET . '<br />';
//echo 'me testing reserve';
if (AUCTION_INFO_DISPLAY_RESERVE_NOT_MET == '1') {
echo $one_time;
}
}
if ($previous_bids->RecordCount() > 0) {
echo CURRENT_BID_TEXT . $auction_current_bid_with_currency . '';
} else {
echo STARTING_BID_TEXT . $auction_current_bid_with_currency . '';
}
?>
</div>
<!--bof Product details list -->
<div class="productAuction biggerText">
<?php if ($customer_high_bidder == $_SESSION['customer_id']) { echo USER_CURRENT_HIGH_BIDDER; } ?></div>
<div class="productAuction biggerText">
<?php echo AUCTION_MINIMUM_INCREASE . ' ' . $bid_currency_minimum_increase; ?></div>
<!--eof Product details list -->
<div class="productAuction"><?php if (!$_SESSION['customer_id']) { ?>
<?php $_SESSION['navigation']->set_snapshot(); echo '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_AUCTION_LOG_IN, 'Sign In to Bid!') . '</a>'; ?>
<?php } ?>
</div>
<br class="clearBoth" />
<?php
if (CUSTOMERS_APPROVAL == '2' or TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '' or CUSTOMERS_APPROVAL == '3') {
//echo 'Login!!'; // Log in section do nothing
} else {
//echo 'Not Login!!'; // not login section
?>
<!-- if customer is loged in, show this else not -->
<?php if ($_SESSION['customer_id']) { ?>
<?php echo zen_draw_form('place_bid', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=place_bid'), 'post', 'onsubmit="return SubmitOrderButton();"') . zen_draw_hidden_field('action', 'place_bid'); ?>
<?php echo zen_draw_hidden_field('auction_price', $products_auction_price); ?>
<?php echo zen_draw_hidden_field('auction_current_bid', $auction_current_bid); ?>
<?php if ($customer_high_bidder != $_SESSION['customer_id']) { ?>
<div id="submitmain" align="center" class="productGeneral biggerText"><?php echo CURRENT_BID; ?>
<?php echo $auction_current_bid_with_currency; ?><br/>
<?php echo AUCTION_BID_AMOUNT; ?>
<?php echo zen_draw_input_field('auction_bid_amount', '', zen_set_field_length(TABLE_PRODUCTS_AUCTION, 'customers_bid', '5')); ?>
<?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_AUCTION_BID, BUTTON_SUBMIT_AUCTION_BID_ALT); ?></div>
<div id="pleasewait" class="buttonRow forward" style="display:none"><?php echo zen_image(DIR_WS_TEMPLATE_IMAGES .'pleasewait_2.gif', 'Please Wait') . '<br /><strong>Please wait your bid is processing</strong>';?></div>
<?php } ?>
<?php } ?>
<?php } // CUSTOMERS_APPROVAL == '3' ?>
<br class="clearBoth" />
<?php //if ($_SESSION['customer_id']) {
if (AUCTION_INFO_DISPLAY_PREVIOUS_BIDS == '1') {
if ($auction_info->RecordCount() >0) {
?>
<div><b><?php echo AUCTION_PREVIOUS_BIDS; ?></b></div>
<?php while (!$previous_bids->EOF) { ?>
<div><?php echo $currencies->display_price($previous_bids->fields['customers_bid'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])); ?> - <?php echo TEXT_AUCTION_BIDDER_ID ?> <?php echo $previous_bids->fields['customers_id']; ?></div>
<?php $previous_bids->MoveNext(); } ?>
<?php } } //} ?>
<br/>
<?php } ?>
<?php
if (($products_buynow_price > $auction_current_bid) && ($products_buynow_price > 0)) {
if (AUCTION_INFO_DISPLAY_BUY_NOW == '1') { ?>
<div class="productAuction biggerText"><?php echo BUY_NOW_PRICE; ?> <?php echo $currencies->display_price($products_buynow_price,
zen_get_tax_rate($product_info->fields['products_tax_class_id'])); ?>
<?php echo ((SHOW_PRODUCT_INFO_IN_CART_QTY == '1' and $_SESSION['cart']->in_cart($_GET['products_id'])) ? PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) : ' '); ?>
<?php
if ($products_qty_box_status == '0' or $products_quantity_order_max== '1') {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('price', $products_buynow_price) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_AUCTION_BUY_NOW, BUTTON_AUCTION_BUY_NOW_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_QUANTITY_TO_BUY_NOW . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br>' . zen_draw_hidden_field('price', $products_buynow_price) . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_AUCTION_BUY_NOW, BUTTON_AUCTION_BUY_NOW_ALT);
}
?><?php
echo zen_get_buy_now_button_auction($_GET['products_id'], $the_button);
?>
</div>
<?php } } ?></form>