<th>折扣</th> </tr> <tr> <td><?php echo $currency; echo moneyit($team['market_price']); ?> </td> <td><?php echo $currency; echo moneyit($team['team_price']); ?> </td> <td><?php echo team_discount($team); ?> </td> </tr> </table> <?php } ?> <?php if ($team['close_time']) { ?> <div class="deal-box deal-timeleft deal-off" id="deal-timeleft" curtime="<?php echo $now; ?> 000" diff="$<?php echo $one['end_time'] - $now;
/* refer */ if ($_rid = strval($_GET['r'])) { $_rid = udecode($_rid); $_user = Table::Fetch('user',$_rid,'email'); if($_user) cookieset('_rid', abs(intval($_user['id']))); redirect( WEB_ROOT . "/team.php?id={$id}"); } $teamcity = Table::Fetch('category', $team['city_id']); $city = $teamcity ? $teamcity : $city; $city = $city ? $city : array('id'=>0, 'name'=>'全部'); $pagetitle = $team['title']; $discount_price = $team['market_price'] - $team['team_price']; $discount_rate = team_discount($team); $left = array(); $now = time(); /**team review 设置开始**/ if($team['is_review']=='Y' && $team['r_number']==0){ $team['r_number'] = Table::Count('order', array('team_id'=>$id, 'state'=>'pay')); $temp_good = Table::Count('order', array('team_id'=>$id, 'state'=>'pay', 'comment_grade'=>'good')); $temp_none = Table::Count('order', array('team_id'=>$id, 'state'=>'pay', 'comment_grade'=>'none')); $temp_bad = Table::Count('order', array('team_id'=>$id, 'state'=>'pay', 'comment_grade'=>'bad')); $temp = $temp_good + $temp_none*0.9 + $temp_bad*0.5; $team['r_satisfaction'] = number_format($temp*100/$team['r_number'],1); $team['r_score'] = number_format($team['r_satisfaction']/20, 1); } /**team review 设置结束**/
<?php if(empty($teams)){?> <?php } else { ?> <div class="box box-b" > <div class="partner-title-2" > <h1>热卖商品</h1> </div> <ul class="partner-deals-list" style="padding-top:10px; "> <?php if(is_array($teams)){foreach($teams AS $index=>$one) { ?> <?php if($one['ppzc']==0){?> <li class="alt<?php if($index%3==2)echo "2";; ?>"> <div class="pic"> <a href="/team.php?id=<?php echo $one['id']; ?>" title="<?php echo $one['title']; ?>" target="_blank"><img alt="点击查看详情" src="<?php echo team_image($one['image']); ?>" width="285" height="170" align="middle" /></a> </div> <h4><b class="mlt_zs_mh"><?php echo team_discount($one); ?>折</b> <a href="/team.php?id=<?php echo $one['id']; ?>" title="<?php echo $one['title']; ?>" target="_blank"><?php echo mb_strimwidth($one['title'],0,66,'...'); ?></a></h4> <div class="info" > <p class="detail"> <em <?php if($one['state']=='soldout'){?> class="price price-453E44 num" <?php } else if($one['close_time']) { ?> class="price price-453E44 num" <?php } else { ?> class="price price-D9008D num" <?php }?>><?php echo $currency; ?><?php echo moneyit($one['team_price']); ?></em> <span class="bypast">原价 <span class="num"><span><?php echo $currency; ?></span><?php echo moneyit($one['market_price']); ?></span></span> </p> <p class="total"> <?php if($one['state']=='soldout'){?> <span class="partner-buy-hs">卖光了</span>
$teams = DB::LimitQuery('team', array('condition' => $condition)); $oa = array(); $si = array('site_name' => $INI['system']['sitename'], 'site_title' => $INI['system']['sitetitle'], 'site_url' => $INI['system']['wwwprefix']); foreach ($teams as $one) { $city = Table::Fetch('category', $one['city_id']); $group = Table::Fetch('category', $one['group_id']); team_state($one); $o = array(); $o['id'] = $one['id']; $o['large_image_url'] = team_image($one['image']); $o['small_image_url'] = team_image($one['image'], true); $o['title'] = $one['title']; $o['product'] = $one['product']; $o['team_price'] = $one['team_price']; $o['market_price'] = $one['market_price']; $o['rebate'] = team_discount($one); $o['start_date'] = date('c', $one['begin_time']); $o['end_date'] = date('c', $one['end_time']); $o['state'] = $one['state']; $o['tipped'] = $one['reach_time'] > 0; $o['tipped_date'] = date('c', $one['reach_time']); $o['tipping_point'] = abs(intval($one['min_number'])); $o['current_point'] = abs(intval($one['now_number'])); $co = array(); $co['limited_quantity'] = $one['per_number'] > 0; $co['maximum_purchase'] = abs(intval($one['per_number'])); $co['expiration_date'] = date('c', $one['expire_time']); $o['conditions'] = $co; $o['city'] = $city['name']; $o['group'] = $group['name']; $oa[$one['id']] = $o;
<tr> <td align="center"> <span> <s><?php echo $currency; ?><?php echo moneyit($team['market_price']); ?></s> </span> </td> <td width="100" align="center"> <span><?php echo team_discount($team); ?></span> </td> <td width="100" align="center"> <span><?php echo $team['now_number']; ?>人</span> </td> </tr> </table> </td>
<?php include template("wap_header");?> <h2><a href="index.php">今日主推</a> | <a href="now.php">正在团购</a> | 往期团购</h2> <?php if(is_array($teams)){foreach($teams AS $team) { ?> <p><?php echo ++$index; ?>. <a href="team.php?id=<?php echo $team['id']; ?>"><?php echo $team['title']; ?></a></p> <p>现价:<?php echo $currency; ?><?php echo moneyit($team['team_price']); ?> , 原价:<?php echo $currency; ?><?php echo moneyit($team['market_price']); ?> , 折扣:<?php echo team_discount($team); ?>折 , 节省:<?php echo $currency; ?><?php echo moneyit($team['market_price']-$team['team_price']); ?></p> <p><a href="team.php?id=<?php echo $team['id']; ?>"><img src="<?php echo team_image($team['image'], true); ?>" width="200" height="120" /></a></p> <?php }}?> <?php echo $pagestring; ?> <?php include template("wap_footer");?>
</div> <table class="deal-discount"> <tr> <th>原价</th> <th width="2" rowspan="2" valign="top"><img src="/static/css/i/deal-discount_th.gif" /></th> <th>折扣</th> <th width="2" rowspan="2" valign="top"><img src="/static/css/i/deal-discount_th.gif" /></th> <th>节省</th> </tr> <tr> <td style="text-decoration: line-through; font-size:14px;"><?php echo $currency; ?><?php echo moneyit($team['market_price']); ?></td> <td style="font-size:14px; color:#D9028E"><?php echo team_discount($team); ?></td> <td style="font-size:14px;"><?php echo $currency; ?><?php echo $discount_price; ?></td> </tr> </table> <?php if($team['close_time']==0){?> <?php if($team['state']=='none'){?> <div class="deal-box deal-status" id="deal-status" style="padding-top: 8px;_padding-top:6px;_padding-right:7px;" > <p class="deal-buy-tip-top" style=" padding-top:35px; padding-bottom:20px;"><?php if(($team['is_lottery']=='0')){?><strong style=" color:#66B024; font-family:'微软雅黑','黑体',arial,sans-serif;font-weight: bold; font-size:26px;">来抢购第一单</strong > <?php }?></p>
<div class="" > <div class="sbox-content look-history" > <?php if($allView){?> <ul class="w_hotlist"> <?php if(is_array($allView)){foreach($allView AS $index=>$aone) { ?> <a title="<?php echo $aone['product']; ?>,<?php echo $aone['team_quyu']; ?>" href="/team.php?id=<?php echo $aone['id']; ?>" target="_blank"> <div class="imgdv COOKIE-fl"><img src="<?php echo team_image($aone['image'],true); ?>" width="80" height="48"></div> <div class="nametitle COOKIE-fl" ><?php echo $aone['product']; ?>,<?php echo $aone['team_quyu']; ?></div> <div class="price COOKIE-fl"><span class="team_price">¥<?php echo moneyit($aone['team_price']); ?></span><span class="discount">(<?php echo team_discount($aone); ?>折)</span></div> <div class="cl"></div> </a> <?php }}?> <span class="qc"> <a class="clear-look-history COOKIE-fl" style="background-color:#FFF;cursor:pointer;"> 清空最近浏览记录</a> </span> </ul> <?php } else { ?> <div class='text COOKIE-fl'> <span>暂无浏览记录</span>
?> " width="200" height="121"></a> </div> <div class="info"> <p class="total"><strong class="count"><?php echo $one['now_number']; ?> </strong>人购买</p> <p class="price">原价:<strong class="old"><span class="money"><?php echo $currency; ?> </span><?php echo moneyit($one['market_price']); ?> </strong><br />折扣:<strong class="discount"><?php echo team_discount($one); ?> 折</strong><br />现价:<strong><span class="money"><?php echo $currency; ?> </span><?php echo moneyit($one['team_price']); ?> </strong><br />节省:<strong><span class="money"><?php echo $currency; ?> </span><?php echo moneyit($one['market_price'] - $one['team_price']); ?> </strong><br /></p> </div>
</script> <div class="sbox-content look-history-view"> <?php if($allView){?> <ul class="h-hotlist"> <?php if(is_array($allView)){foreach($allView AS $index=>$aone) { ?> <li id="history-list" onMouseOver="document.all.menulayer_<?php echo $index; ?>.style.display=''" onMouseOut="document.all.menulayer_<?php echo $index; ?>.style.display='none'"> <h5 class="h-title"><a href="/team.php?id=<?php echo $aone['id']; ?>" target="_blank"><?php echo $aone['product']; ?>,<?php echo $aone['team_quyu']; ?></a></h5> <div class="h-info"> <a title="<?php echo $aone['product']; ?>,<?php echo $aone['team_quyu']; ?>" href="/team.php?id=<?php echo $aone['id']; ?>" target="_blank"><img src="<?php echo team_image($aone['image'],true); ?>" width="80" height="48"></a> <p class="h-price"> <em class="h-aone-1">¥<?php echo moneyit($aone['team_price']); ?></em> <span class="h-aone-2"> (<?php echo team_discount($aone); ?>折)</span> </p> <p class="h-buy-default plz-deal-team"></p> <p id="menulayer_<?php echo $index; ?>" class="h-buy-activating" style="display:none;"> <span class="h-qg"><a class="h-block plz-deal-team" href="#" title="立即抢购"></a></span> <span class="h-gwl"><a class="h-block plz-deal-team" href="#" title="加入购物篮"></a></span> <span class="h-sc"><a class="h-block plz-deal-team" href="#" title="收藏本单"></a></span> </p> </div> </li> <div class="cl"></div> <?php }}?> <div class="h-clear"> <a class="clear-look-history COOKIE-fl">清空</a> </div> <?php } else { ?>
<title>【<?php echo $partner['title']; ?>】<?php echo $partner['title']; ?><?php echo $team['team_jybt']; ?><?php echo $team['team_quyu']; ?> | 青年优品,余姚团购,米粒网,慈溪团购</title><?php } else { ?> <title><?php echo $pagetitle; ?> | <?php echo $INI['system']['sitename']; ?><?php echo $INI['system']['sitetitle']; ?></title><?php }?><?php if($seo_description){?> <meta name="description" content="<?php echo $seo_description; ?>" /><?php } else if($team) { ?> <meta name="description" content="<?php echo $partner['title']; ?>! 原价<?php echo moneyit($team['market_price']); ?>元,现<?php echo team_discount($team); ?>折!仅售<?php echo moneyit($team['team_price']); ?>元的<?php echo $partner['title']; ?><?php echo $team['team_jybt']; ?>" /><?php } else { ?> <meta name="description" content="<?php echo $INI['system']['description']; ?>" /><?php }?><?php if($seo_keyword){?> <meta name="keywords" content="<?php echo $seo_keyword; ?>" /><?php } else if($team) { ?> <meta name="keywords" content="<?php echo $partner['title']; ?>团购,<?php echo $team['team_quyu']; ?><?php echo $partner['title']; ?>团购" /><?php } else if($request_uri=='index') { ?>
<?php }?> <?php if($team['team_wblj']){?> <?php } else { ?> <?php if($team['state']=='soldout'){?> <li class="goto-mgl" > <span>卖光了</span> </li> <?php } else { ?> <li class="goto"> <a href="<?php if($team['team_wblj']){?><?php echo $team['team_wblj']; ?><?php } else { ?>/team.php?id=<?php echo $team['id']; ?><?php }?>" target="_blank"><span class="zkf"><?php echo team_discount($team); ?></span><span class="zkf2">折</span></a> </li> <?php }?> <?php }?> </ul> <?php }}?> <?php if($one['recom'] ){?> <div class="index_box_partner"> <ul>
</table></div></ul> <?php } else if($now < $team['begin_time']) { ?> <ul class="deal-price"><strong <?php if($team['team_price'] > 9999){?>class="digits5"<?php }?>><em><?php echo $currency; ?></em><?php echo moneyit($team['team_price']); ?></strong><span><a href="<?php echo $team['begin_time']<time()?'/team/buy.php?id='.$team['id'] : 'javascript: alert(\'秒杀还未开始...\')'; ?>"><img src="http://www.milituan.net/static/theme/milituan/css/i/button-deal-jjks.gif" /></a></span><div class="yuanjia" ><table width="240" border="0" cellpadding="0" cellspacing="0"> <tr> <td>原价:<?php echo $currency; ?><?php echo moneyit($team['market_price']); ?></td> <td>折扣:<?php echo team_discount($team); ?></td> <td>节省:<?php echo $currency; ?><?php echo $discount_price; ?></td> </tr> </table></div> </ul> <?php } else { ?> <ul class="deal-price"><strong <?php if($team['team_price'] > 9999){?>class="digits5"<?php }?>><em><?php echo $currency; ?></em><?php echo moneyit($team['team_price']); ?></strong><span><a href="<?php echo $team['begin_time']<time()?'/team/buy.php?id='.$team['id'] : 'javascript: alert(\'秒杀还未开始...\')'; ?>"><img src="http://www.milituan.net/static/theme/milituan/css/i/button-deal-ms.gif" /></a></span><div class="yuanjia" ><table width="240" border="0" cellpadding="0" cellspacing="0"> <tr> <td>原价:<?php echo $currency; ?><?php echo moneyit($team['market_price']); ?></td> <td>折扣:<?php echo team_discount($team); ?></td> <td>节省:<?php echo $currency; ?><?php echo $discount_price; ?></td> </tr> </table></div> </ul> <?php }?> </div> <!--开始--> <div class="xl_sj"> <span><?php if($team['close_time']==0){?><?php if($team['state']=='none'){?>赶快来秒杀第一单吧!<?php } else { ?> <strong><?php echo $team['now_number']; ?></strong> 人已购买<?php if($team['max_number']&&$team['max_number']>$team['now_number']){?>,本单仅剩最后<strong style="color:#CC0000">(<?php echo $team['max_number']-$team['now_number']; ?>)</strong>份,欲购从速 <?php }?> <?php if($team['max_number'] == 0>$team['now_number']||$team['max_number']==0){?>,还可继续秒杀, 数量有限 下单后赶快付款哦<?php }?> <?php }?> <?php } else { ?>
<div class="<?php echo $one['picclass']; ?>"></div> <a href="/team.php?id=<?php echo $one['id']; ?>" target="_blank"><img alt="<?php echo $one['title']; ?>" src="<?php echo team_image($one['image']); ?>" width="280" height="238"></a> </div> <div class="pt_ctop"> <ul> <li><strong><?php echo $currency; ?><?php echo moneyit($one['team_price']); ?></strong></li> <li><span><a href="/team.php?id=<?php echo $one['id']; ?>" target="_blank"><img src="../../static/theme/milituan/css/i/sc-qkk.gif"></a></span></li> </ul> </div> <div class="pt_cbot"> <ul> <li>原价:<?php echo $currency; ?><?php echo moneyit($one['market_price']); ?></li> <li>折扣:<?php echo team_discount($one); ?></li> <li class="pt_cbotx"><span><?php echo $one['now_number']; ?></span>人购买</li> </ul> </div> </li> <?php }}?> </ul> <div><?php echo $pagestring; ?></div> </div> </div> </div> </div>
$option_city = option_category('city'); $option_group = option_category('group'); $oa = array(); $oa['provider'] = $INI['system']['sitename']; $oa['version'] = '1.0'; $oa['dataServiceId'] = '1_1'; $item = array(); $item['keyword'] = "{$INI['system']['sitename']} {$team['product']}"; $item['url'] = "{$INI['system']['wwwprefix']}/team.php?id={$team['id']}"; $item['creator'] = $_SERVER['HTTP_HOST']; $item['title'] = "{$INI['system']['sitename']} {$team['product']}"; $item['publishdate'] = date('Y-m-d', $team['begin_time']); $item['imageaddress1'] = team_image($team['image'], true); $item['imagealt1'] = $team['title']; $item['imagelink1'] = "{$INI['system']['wwwprefix']}/team.php?id={$team['id']}"; $item['content1'] = $team['product']; $item['linktext1'] = $team['title']; $item['linktarget1'] = "{$INI['system']['wwwprefix']}/team.php?id={$team['id']}"; $item['content2'] = "{$team['market_price']}元"; $item['content3'] = "{$team['team_price']}元"; $item['content4'] = team_discount($team) . "折"; $item['content5'] = $option_group[$team['group_id']]; $item['content6'] = $city ? $city['name'] : '全国'; $item['content7'] = $team['now_number']; $item['linktext2'] = $INI['system']['sitename']; $item['linktarget2'] = $INI['system']['wwwprefix']; $item['content8'] = date('Y-m-d H:i:s', $team['begin_time']); $item['content9'] = date('Y-m-d H:i:s', $team['end_time']); $item['valid'] = '1'; $oa['datalist']['item'] = $item; Output::XmlCustom($oa, 'sdd', 'GBK');