LiNeR70
Создатель
- Регистрация
- 17 Окт 2011
- Сообщения
- 13
- Реакции
- 1
- Автор темы
- #1
Добрый вечер форумчане
два дня борюсь с одной бедой, все добить не могу, есть в этом сайте возможность продавать купоны с любой стоимость (например на суши) , именно с этим пунктом и косяк. точнее сам то по себе он отлично работает, но почему то половина страницы из контейнера выезжает, с указанной стоимостью такого не происходит, не могу докопаться до истины, помогите
вот ссылка на то как это выглядит:
Для просмотра ссылки Войдиили Зарегистрируйся
и картинка этого же безобразия
как это выглядит со стоимостью и корректно : Для просмотра ссылки Войдиили Зарегистрируйся
что делать, у меня фантазия начинает кончаться уже т__т
вот кусок скрипта с этим контейнером
направьте на путь истинный!
з.ы. ни в коем случае не реклама, во первых не открылся, во вторых такие косяки)
два дня борюсь с одной бедой, все добить не могу, есть в этом сайте возможность продавать купоны с любой стоимость (например на суши) , именно с этим пунктом и косяк. точнее сам то по себе он отлично работает, но почему то половина страницы из контейнера выезжает, с указанной стоимостью такого не происходит, не могу докопаться до истины, помогите
вот ссылка на то как это выглядит:
Для просмотра ссылки Войди
и картинка этого же безобразия
как это выглядит со стоимостью и корректно : Для просмотра ссылки Войди
что делать, у меня фантазия начинает кончаться уже т__т
вот кусок скрипта с этим контейнером
<div id="content-deals2">
<ul class="all-deals2">
<li>
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<h1><?php echo $team['title2']; ?></h1>
<?php } else if ($_SESSION['chlang']=='en') {?>
<h1><?php echo $team['title3']; ?></h1>
<?php } else { ?>
<h1><?php echo $team['title']; ?></h1>
<?php } ?>
<?php if(preg_match('/(?i)msie [1-7]/',$_SERVER['HTTP_USER_AGENT'])) { ?>
<div style="margin-left:0px;">
<?php } ?>
<script type="text/javascript" src="Для просмотра ссылки Войдиили Зарегистрируйся">
{lang: 'bg'}
</script>
<div class="slider" id="slider">
<ul class="slides">
<li class="slide" ><img src="<?php echo team_image($team['image']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li>
<?php if($team['image1']) { ?><li class="slide"><img src="<?php echo team_image($team['image1']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image2']) { ?><li class="slide"><img src="<?php echo team_image($team['image2']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image3']) { ?><li class="slide"><img src="<?php echo team_image($team['image3']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image4']) { ?><li class="slide"><img src="<?php echo team_image($team['image4']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image5']) { ?><li class="slide"><img src="<?php echo team_image($team['image5']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image6']) { ?><li class="slide"><img src="<?php echo team_image($team['image6']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image7']) { ?><li class="slide"><img src="<?php echo team_image($team['image7']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image8']) { ?><li class="slide"><img src="<?php echo team_image($team['image8']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
</ul>
<div id="logotip"></div>
<div class="share-it">
<div class="share-it-facebook">
<iframe src="Для просмотра ссылки Войдиили Зарегистрируйся" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:320px; height:35px;" allowTransparency="true"></iframe>
</div>
<div class="share-it-google">
<glusone size="small" href="{$INI['system']['wwwprefix']}/deal/{$team['id']}"></glusone>
</div>
<div class="share-it-vkontakte">
<script type="text/javascript"><!--
document.write(VK.Share.button({url: "<?php echo $INI['system']['wwwprefix']; ?>/team.php?id=<?php echo $team['id']; ?>"},{type: "custom", text: "<img src=\"Для просмотра ссылки Войдиили Зарегистрируйся" />"}));
--></script></p>
</div>
<a href="<?php echo sharee_twitter($team); ?>" target="blanc" class="share-it-twitter" title="Twitter">
</a>
<a href="<?php echo $INI['system']['wwwprefix']; ?>/team.php?id=<?php echo $team['id']; ?>" class="share-it-odnoklassniki" target="blanc" title="Одноклассники" onclick="ODKL.Share(this);return false;" ></a>
<a href="<?php echo share_mail($team); ?>" target="blanc" class="share-it-mail" id="deal-buy-mailto" title="E-mail">
</a>
</div>
</div>
<?php if(preg_match('/(?i)msie [1-7]/',$_SERVER['HTTP_USER_AGENT'])) { ?>
</div>
<?php } ?>
<div class="facebook-right-main">
<?php include template("block_side_facebook");?>
</div>
<div class="coupon-info" id="coupon-info">
<div class="buy-coupon">
<?php if(($team['state']=='soldout')){?>
<div class="buy-coupon-inner-finished">
<div class="price"><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
</div>
<?php } else if($team['close_time']) { ?>
<div class="buy-coupon-inner-finished">
<div class="price"><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
</div>
<?php } else { ?>
<?php if ($team['team_price_2']>0) { ?>
<div class="buy-coupon-inner">
<div class="price"><p style="font-size:12px;margin-top:-10px;">oт </p><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
<div id="buy-button-popup"><a href="#?pricelist" rel="popup_name" class="poplight"></a></div>
</div>
<!-- popup price body -->
<div id="popup_name" class="popup_block2" >
<a href="#" class="close"><img src="/close_pop.png" class="btn_close" title="<?php print $lang[505];?>" alt="<?php print $lang[505];?>" /></a>
<div id="popupback">
<div id="popuptop">
<?php print $lang[496];?>
</div>
</br>
<!-- {if $team['team_price_2']>0} -->
<script>
function adjustLinks2(sender) {
var link = new String('{$INI['system']['wwwprefix']}/buy/'+ sender.value + ((sender.checked)?) + "/");
$("#main_" + sender.value).attr('href', link);
$("#gift_" + sender.value).attr('href', link + "gift");
}
</script>
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<script>
function adjustLinks(sender) {
var link = new String('{$INI['system']['wwwprefix']}/buy/'+ sender.value + ((sender.checked)?"-2":"") + "/");
$("#main_" + sender.value).attr('href', link);
$("#gift_" + sender.value).attr('href', link + "gift");
}
</script>
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price_2']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'-2/"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<!-- {/if} -->
</div>
</div>
<!-- popup price body end -->
<script>
$(document).ready(function() {
$('a.poplight[href^=#]').click(function() {
var popID = $(this).attr('rel');
var popURL = $(this).attr('href');
var query= popURL.split('?');
var dim= query[1].split('&');
var popWidth = dim[0].split('=')[1];
$('#' + popID).fadeIn().css({ 'width': Number( popWidth ) });
var popMargTop = ($('#' + popID).height() + 80) / 2;
var popMargLeft = ($('#' + popID).width() + 80) / 2;
$('#' + popID).css({
'margin-top' : -popMargTop,
'margin-left' : -popMargLeft
});
$('body').append('<div id="fade"></div>');
});
$('a.close, #fade').live('click', function() {
$('#fade , .popup_block').fadeOut(function() {
$('#fade').remove();
});
$('#fade , .popup_block2').fadeOut(function() {
$('#fade').remove();
});
return false;
});
});
</script>
<?php } else { ?>
<div class="buy-coupon-inner">
<?php if ($team['team_comission']!=0) { ?>
<div class="price"><?php echo moneyit($team['team_comission']); ?> <span><?php echo $currency; ?></span></div>
<div class="buy-button"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/"':''; ?>><?php print $lang[497];?></a></div>
</div>
<?php } else { ?>
<div class="price"><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
<div class="buy-button"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/"':''; ?>><?php print $lang[497];?></a></div>
</div>
<?php } } ?>
<!-- popup price body -->
<div id="popup_name2" class="popup_block2">
<a href="#" class="close"><img src="/close_pop.png" class="btn_close" title="Затвори" alt="Затвори" /></a>
<div id="popupback">
<div id="popuptop">
<?php print $lang[498];?>
</div>
</br>
<!-- {if $team['team_price_2']>0} -->
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="gift_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/gift"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price_2']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="gift_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'-2/gift"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<!-- {/if} -->
</div>
</div>
<!-- popup price body end -->
<?php } ?>
</div>
<?php if ($team['percentage_rebate'] != 0) { ?>
<div class="details-small">
<div class="details-small-value">
<div class="details-small-value-left">
<?php print $lang[250];?>
</div>
<div class="details-small-value-right">
<?php print $lang[499];?>
</div>
</div>
</div>
<?php } else { ?>
<?php if ($team['team_comission']!=0) { ?>
<div class="details-small-long">
<?php } else { ?>
<div class="details-small">
<?php } ?>
<div class="details-small-value">
<div class="details-small-value-left">
<?php print $lang[250];?>
</div>
<div class="details-small-value-right">
<?php echo moneyit($team['market_price']); ?> <?php echo $currency; ?>
</div>
<div class="details-small-value-left">
<?php print $lang[252];?>
</div>
<div class="details-small-value-right">
<?php $number = $discount_rate; $rounded_number= round($number); echo $rounded_number; ?>%
</div>
<div class="details-small-value-left">
<?php print $lang[500];?>
</div>
<div class="details-small-value-right">
<?php echo moneyit($discount_price); ?> <?php echo $currency; ?>
</div>
<?php if ($team['team_comission']!=0) { ?>
<div class="details-small-value-left">
<?php print $lang[501];?>
</div>
<div class="details-small-value-right">
<?php echo moneyit($team['team_comission']); ?> <?php echo $currency; ?>
</div>
<?php } ?>
</div>
</div>
<?php if($team['close_time']) { ?>
<?php } else { ?>
<?php if ($team['team_price_2']>0) { ?>
<div class="details-buy-forfriend"><a href="#?giftlist" rel="popup_name2" class="poplight"><?php print $lang[502];?></a></div>
<?php } else { ?>
<a class="details-buy-forfriend" id="gift_{$team['id']}" href="/buy/{$team['id']}/gift">
<?php print $lang[502];?>
</a>
<?php } ?>
<?php } ?>
<?php if($team['close_time']) { ?>
<div class="details-clock"></br></br>
<div class="deal-status finished">
<p><?php print $lang[503];?></p>
<p class="info"><?php echo date('Y-m-d', $team['close_time']); ?> <?php print $lang[504];?> <?php echo date('H:i:s', $team['close_time']); ?></p>
</div>
</div>
<?php } else { ?>
<div class="details-clock">
<div class="deal-status">
<div class="deal-timeleft" id="deal-timeleft" curtime="<?php echo $now; ?>000" diff="<?php echo $diff_time; ?>000">
<div class="count-down"
id="defaultCountdown<?php echo $team['id'];?>"></div>
<script type="text/javascript">
$(document).ready(function() {
var austDay<?php echo $team['id'];?> = new Date(<?php echo $team["end_time"]*1000;?>);
var days = (austDay<?php echo $team['id'];?>.getTime()-today.getTime())/(one_day);
try {
if (days > 1) {
$('#defaultCountdown<?php echo $team['id'];?>').countdown({
until: austDay<?php echo $team['id'];?>,
compact: true,
layout: ' {dnn} :' + ' {hnn}{sep}{mnn}{sep}{snn}',
description: ''
});
} else {
$('#defaultCountdown<?php echo $team['id'];?>').countdown({
until: austDay<?php echo $team['id'];?>,
compact: true,
layout: ' {dnn} :' + ' {hnn}{sep}{mnn}{sep}{snn}',
description: ''
});
}
} catch(ex) {
alert(ex);
}
});
</script>
</div>
</div>
</div>
<?php } ?>
<div class="details-buyed">
<div class="coupon-details-numbers">
<?php if($team['close_time']==0){?>
<?php if($team['state']=='none'){?>
<div id="deal-status" class="deal-people activate">
<?php if ( $team['now_number'] == 1) { ?>
<p><?php print $lang[488];?> <?php echo $team['now_number']; ?> <?php print $lang[489];?></p>
<?php } elseif ( $team['now_number'] == 0) { ?>
<p><?php print $lang[487];?></p>
<?php } else { ?>
<p><?php print $lang[490];?> <?php echo $team['now_number']; ?> <?php print $lang[491];?></p>
<?php } ?>
<div class="progress-bar">
<div class="progress-pointer"></div>
<div class="progress-filler" style="padding-left:<?php echo $bar_size-$bar_offset; ?>px;"></div>
<div class="progress-tick" style="margin-left:<?php echo $bar_size-$bar_offset; ?>px;"></div>
<div id="min" class="min">0</div><div id="max" class="max"><?php echo $team['min_number']; ?></div>
<p class="aligncenter"><?php print $lang[506];?> <strong><?php echo $team['min_number']-$team['now_number']; ?></strong><?php if ($team['min_number'] == 1) { ?> <?php print $lang[507];?><?php } else { ?> <?php print $lang[508];?><?php } ?> <?php print $lang[509];?></p>
</div>
</div>
<?php } else { ?>
<div class="deal-people">
<?php if ( $team['now_number'] == 1) { ?>
<p><?php print $lang[488];?> <?php echo $team['now_number']; ?> <?php print $lang[489];?></p>
<?php } elseif ( $team['now_number'] == 0) { ?>
<p><?php print $lang[487];?></p>
<?php } else { ?>
<p><?php print $lang[490];?> <?php echo $team['now_number']; ?> <?php print $lang[491];?></p>
<?php } ?>
</div>
<p class="active"><?php print $lang[510];?></p>
<?php } ?>
<?php } else { ?></br></br>
<div class="coupon-bought <?php echo $team['state']; ?>">
<?php if ( $team['now_number'] == 0) { ?>
<p><?php print $lang[487];?></p>
<?php } else { ?>
<p><?php print $lang[490];?> <?php echo $team['now_number']; ?> <?php print $lang[491];?></p>
<?php } ?>
<p><?php print $lang[511];?> <a href="/subscribe/"><?php print $lang[512];?></a></p>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
</ul>
<div>
<ul class="all-deals2">
<li>
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<h1><?php echo $team['title2']; ?></h1>
<?php } else if ($_SESSION['chlang']=='en') {?>
<h1><?php echo $team['title3']; ?></h1>
<?php } else { ?>
<h1><?php echo $team['title']; ?></h1>
<?php } ?>
<?php if(preg_match('/(?i)msie [1-7]/',$_SERVER['HTTP_USER_AGENT'])) { ?>
<div style="margin-left:0px;">
<?php } ?>
<script type="text/javascript" src="Для просмотра ссылки Войди
{lang: 'bg'}
</script>
<div class="slider" id="slider">
<ul class="slides">
<li class="slide" ><img src="<?php echo team_image($team['image']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li>
<?php if($team['image1']) { ?><li class="slide"><img src="<?php echo team_image($team['image1']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image2']) { ?><li class="slide"><img src="<?php echo team_image($team['image2']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image3']) { ?><li class="slide"><img src="<?php echo team_image($team['image3']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image4']) { ?><li class="slide"><img src="<?php echo team_image($team['image4']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image5']) { ?><li class="slide"><img src="<?php echo team_image($team['image5']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image6']) { ?><li class="slide"><img src="<?php echo team_image($team['image6']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image7']) { ?><li class="slide"><img src="<?php echo team_image($team['image7']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
<?php if($team['image8']) { ?><li class="slide"><img src="<?php echo team_image($team['image8']); ?>" width="480" height="272" style="-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.php);"/></li><?php } ?>
</ul>
<div id="logotip"></div>
<div class="share-it">
<div class="share-it-facebook">
<iframe src="Для просмотра ссылки Войди
</div>
<div class="share-it-google">
<glusone size="small" href="{$INI['system']['wwwprefix']}/deal/{$team['id']}"></glusone>
</div>
<div class="share-it-vkontakte">
<script type="text/javascript"><!--
document.write(VK.Share.button({url: "<?php echo $INI['system']['wwwprefix']; ?>/team.php?id=<?php echo $team['id']; ?>"},{type: "custom", text: "<img src=\"Для просмотра ссылки Войди
--></script></p>
</div>
<a href="<?php echo sharee_twitter($team); ?>" target="blanc" class="share-it-twitter" title="Twitter">
</a>
<a href="<?php echo $INI['system']['wwwprefix']; ?>/team.php?id=<?php echo $team['id']; ?>" class="share-it-odnoklassniki" target="blanc" title="Одноклассники" onclick="ODKL.Share(this);return false;" ></a>
<a href="<?php echo share_mail($team); ?>" target="blanc" class="share-it-mail" id="deal-buy-mailto" title="E-mail">
</a>
</div>
</div>
<?php if(preg_match('/(?i)msie [1-7]/',$_SERVER['HTTP_USER_AGENT'])) { ?>
</div>
<?php } ?>
<div class="facebook-right-main">
<?php include template("block_side_facebook");?>
</div>
<div class="coupon-info" id="coupon-info">
<div class="buy-coupon">
<?php if(($team['state']=='soldout')){?>
<div class="buy-coupon-inner-finished">
<div class="price"><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
</div>
<?php } else if($team['close_time']) { ?>
<div class="buy-coupon-inner-finished">
<div class="price"><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
</div>
<?php } else { ?>
<?php if ($team['team_price_2']>0) { ?>
<div class="buy-coupon-inner">
<div class="price"><p style="font-size:12px;margin-top:-10px;">oт </p><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
<div id="buy-button-popup"><a href="#?pricelist" rel="popup_name" class="poplight"></a></div>
</div>
<!-- popup price body -->
<div id="popup_name" class="popup_block2" >
<a href="#" class="close"><img src="/close_pop.png" class="btn_close" title="<?php print $lang[505];?>" alt="<?php print $lang[505];?>" /></a>
<div id="popupback">
<div id="popuptop">
<?php print $lang[496];?>
</div>
</br>
<!-- {if $team['team_price_2']>0} -->
<script>
function adjustLinks2(sender) {
var link = new String('{$INI['system']['wwwprefix']}/buy/'+ sender.value + ((sender.checked)?) + "/");
$("#main_" + sender.value).attr('href', link);
$("#gift_" + sender.value).attr('href', link + "gift");
}
</script>
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<script>
function adjustLinks(sender) {
var link = new String('{$INI['system']['wwwprefix']}/buy/'+ sender.value + ((sender.checked)?"-2":"") + "/");
$("#main_" + sender.value).attr('href', link);
$("#gift_" + sender.value).attr('href', link + "gift");
}
</script>
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price_2']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'-2/"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<!-- {/if} -->
</div>
</div>
<!-- popup price body end -->
<script>
$(document).ready(function() {
$('a.poplight[href^=#]').click(function() {
var popID = $(this).attr('rel');
var popURL = $(this).attr('href');
var query= popURL.split('?');
var dim= query[1].split('&');
var popWidth = dim[0].split('=')[1];
$('#' + popID).fadeIn().css({ 'width': Number( popWidth ) });
var popMargTop = ($('#' + popID).height() + 80) / 2;
var popMargLeft = ($('#' + popID).width() + 80) / 2;
$('#' + popID).css({
'margin-top' : -popMargTop,
'margin-left' : -popMargLeft
});
$('body').append('<div id="fade"></div>');
});
$('a.close, #fade').live('click', function() {
$('#fade , .popup_block').fadeOut(function() {
$('#fade').remove();
});
$('#fade , .popup_block2').fadeOut(function() {
$('#fade').remove();
});
return false;
});
});
</script>
<?php } else { ?>
<div class="buy-coupon-inner">
<?php if ($team['team_comission']!=0) { ?>
<div class="price"><?php echo moneyit($team['team_comission']); ?> <span><?php echo $currency; ?></span></div>
<div class="buy-button"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/"':''; ?>><?php print $lang[497];?></a></div>
</div>
<?php } else { ?>
<div class="price"><?php echo moneyit($team['team_price']); ?> <span><?php echo $currency; ?></span></div>
<div class="buy-button"><a id="main_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/"':''; ?>><?php print $lang[497];?></a></div>
</div>
<?php } } ?>
<!-- popup price body -->
<div id="popup_name2" class="popup_block2">
<a href="#" class="close"><img src="/close_pop.png" class="btn_close" title="Затвори" alt="Затвори" /></a>
<div id="popupback">
<div id="popuptop">
<?php print $lang[498];?>
</div>
</br>
<!-- {if $team['team_price_2']>0} -->
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_1_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="gift_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'/gift"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<table id='poptable' border="0">
<tbody>
<tr>
<th width="460">
<p style="color:#47792f;font-size:16px;padding-top:14px;padding-bottom:14px;min-height:30px;padding-left:14px;font-family:Helvetica Neue,Arial,Helvetica,sans-serif">
<?php if ($_SESSION['chlang']== 'bg' ) {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description2']} </label>
<?php } else if ($_SESSION['chlang']=='en') {?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description3']} </label>
<?php } else { ?>
<label for="cbsp_{$team['id'];}">{$team['team_price_2_description']} </label>
<?php } ?>
</th>
<td id='poppricetag' width="80">
<p style="color:#3F3F3F;text-align:center;font-size:17px;margin-top:-5px;"><?php echo moneyit($team['team_price_2']);?> {$currency}</p>
</td>
<td id='popbuybutton' width="100">
<div class="buy-button" style="margin-top:-1px;margin-left:14px;"><a id="gift_{$team['id']}" <?php echo $team['begin_time'] < time()?'href="/buy/'.$team['id'].'-2/gift"':''; ?>><?php print $lang[497];?></a></div>
</td>
</tr>
</tbody>
</table>
</br>
<!-- {/if} -->
</div>
</div>
<!-- popup price body end -->
<?php } ?>
</div>
<?php if ($team['percentage_rebate'] != 0) { ?>
<div class="details-small">
<div class="details-small-value">
<div class="details-small-value-left">
<?php print $lang[250];?>
</div>
<div class="details-small-value-right">
<?php print $lang[499];?>
</div>
</div>
</div>
<?php } else { ?>
<?php if ($team['team_comission']!=0) { ?>
<div class="details-small-long">
<?php } else { ?>
<div class="details-small">
<?php } ?>
<div class="details-small-value">
<div class="details-small-value-left">
<?php print $lang[250];?>
</div>
<div class="details-small-value-right">
<?php echo moneyit($team['market_price']); ?> <?php echo $currency; ?>
</div>
<div class="details-small-value-left">
<?php print $lang[252];?>
</div>
<div class="details-small-value-right">
<?php $number = $discount_rate; $rounded_number= round($number); echo $rounded_number; ?>%
</div>
<div class="details-small-value-left">
<?php print $lang[500];?>
</div>
<div class="details-small-value-right">
<?php echo moneyit($discount_price); ?> <?php echo $currency; ?>
</div>
<?php if ($team['team_comission']!=0) { ?>
<div class="details-small-value-left">
<?php print $lang[501];?>
</div>
<div class="details-small-value-right">
<?php echo moneyit($team['team_comission']); ?> <?php echo $currency; ?>
</div>
<?php } ?>
</div>
</div>
<?php if($team['close_time']) { ?>
<?php } else { ?>
<?php if ($team['team_price_2']>0) { ?>
<div class="details-buy-forfriend"><a href="#?giftlist" rel="popup_name2" class="poplight"><?php print $lang[502];?></a></div>
<?php } else { ?>
<a class="details-buy-forfriend" id="gift_{$team['id']}" href="/buy/{$team['id']}/gift">
<?php print $lang[502];?>
</a>
<?php } ?>
<?php } ?>
<?php if($team['close_time']) { ?>
<div class="details-clock"></br></br>
<div class="deal-status finished">
<p><?php print $lang[503];?></p>
<p class="info"><?php echo date('Y-m-d', $team['close_time']); ?> <?php print $lang[504];?> <?php echo date('H:i:s', $team['close_time']); ?></p>
</div>
</div>
<?php } else { ?>
<div class="details-clock">
<div class="deal-status">
<div class="deal-timeleft" id="deal-timeleft" curtime="<?php echo $now; ?>000" diff="<?php echo $diff_time; ?>000">
<div class="count-down"
id="defaultCountdown<?php echo $team['id'];?>"></div>
<script type="text/javascript">
$(document).ready(function() {
var austDay<?php echo $team['id'];?> = new Date(<?php echo $team["end_time"]*1000;?>);
var days = (austDay<?php echo $team['id'];?>.getTime()-today.getTime())/(one_day);
try {
if (days > 1) {
$('#defaultCountdown<?php echo $team['id'];?>').countdown({
until: austDay<?php echo $team['id'];?>,
compact: true,
layout: ' {dnn} :' + ' {hnn}{sep}{mnn}{sep}{snn}',
description: ''
});
} else {
$('#defaultCountdown<?php echo $team['id'];?>').countdown({
until: austDay<?php echo $team['id'];?>,
compact: true,
layout: ' {dnn} :' + ' {hnn}{sep}{mnn}{sep}{snn}',
description: ''
});
}
} catch(ex) {
alert(ex);
}
});
</script>
</div>
</div>
</div>
<?php } ?>
<div class="details-buyed">
<div class="coupon-details-numbers">
<?php if($team['close_time']==0){?>
<?php if($team['state']=='none'){?>
<div id="deal-status" class="deal-people activate">
<?php if ( $team['now_number'] == 1) { ?>
<p><?php print $lang[488];?> <?php echo $team['now_number']; ?> <?php print $lang[489];?></p>
<?php } elseif ( $team['now_number'] == 0) { ?>
<p><?php print $lang[487];?></p>
<?php } else { ?>
<p><?php print $lang[490];?> <?php echo $team['now_number']; ?> <?php print $lang[491];?></p>
<?php } ?>
<div class="progress-bar">
<div class="progress-pointer"></div>
<div class="progress-filler" style="padding-left:<?php echo $bar_size-$bar_offset; ?>px;"></div>
<div class="progress-tick" style="margin-left:<?php echo $bar_size-$bar_offset; ?>px;"></div>
<div id="min" class="min">0</div><div id="max" class="max"><?php echo $team['min_number']; ?></div>
<p class="aligncenter"><?php print $lang[506];?> <strong><?php echo $team['min_number']-$team['now_number']; ?></strong><?php if ($team['min_number'] == 1) { ?> <?php print $lang[507];?><?php } else { ?> <?php print $lang[508];?><?php } ?> <?php print $lang[509];?></p>
</div>
</div>
<?php } else { ?>
<div class="deal-people">
<?php if ( $team['now_number'] == 1) { ?>
<p><?php print $lang[488];?> <?php echo $team['now_number']; ?> <?php print $lang[489];?></p>
<?php } elseif ( $team['now_number'] == 0) { ?>
<p><?php print $lang[487];?></p>
<?php } else { ?>
<p><?php print $lang[490];?> <?php echo $team['now_number']; ?> <?php print $lang[491];?></p>
<?php } ?>
</div>
<p class="active"><?php print $lang[510];?></p>
<?php } ?>
<?php } else { ?></br></br>
<div class="coupon-bought <?php echo $team['state']; ?>">
<?php if ( $team['now_number'] == 0) { ?>
<p><?php print $lang[487];?></p>
<?php } else { ?>
<p><?php print $lang[490];?> <?php echo $team['now_number']; ?> <?php print $lang[491];?></p>
<?php } ?>
<p><?php print $lang[511];?> <a href="/subscribe/"><?php print $lang[512];?></a></p>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
</ul>
<div>
з.ы. ни в коем случае не реклама, во первых не открылся, во вторых такие косяки)