예제 #1
0
    ?>
      <?php 
}
?>
    </dl>
    <dl class="ncg-sortord">
      <dt>排序:</dt>
      <!--<?php 
echo $lang['text_order'];
?>
-->
      <dd class="<?php 
echo empty($_GET['groupbuy_order_key']) ? 'selected' : '';
?>
"><a href="<?php 
echo dropParam(array('groupbuy_order_key', 'groupbuy_order'));
?>
"><?php 
echo $lang['text_default'];
?>
<i></i></a></dd>
      <dd <?php 
echo $_GET['groupbuy_order_key'] == '1' ? "class='selected'" : '';
?>
><a <?php 
echo $_GET['groupbuy_order_key'] == '1' ? "class='" . ($_GET['groupbuy_order'] == 1 ? 'asc' : 'desc') . "'" : '';
?>
 href="<?php 
echo $_GET['groupbuy_order_key'] == '1' && $_GET['groupbuy_order'] == '2' ? replaceParam(array('groupbuy_order_key' => '1', 'groupbuy_order' => '1')) : replaceParam(array('groupbuy_order_key' => '1', 'groupbuy_order' => '2'));
?>
"><?php 
예제 #2
0
    echo $_GET['order'] == 1 ? 'asc' : 'desc';
    ?>
"<?php 
}
?>
 title="<?php 
echo $_GET['order'] == '2' && $_GET['key'] == '3' ? $lang['store_list_click_asc'] : $lang['store_list_click_desc'];
?>
"><?php 
echo $lang['store_list_click'];
?>
<i></i></a></li>
          </ul>
        </div>
        <div class="nch-sortbar-owner">商品类型: <span><a href="<?php 
echo dropParam(array('type'));
?>
" <?php 
if (!isset($_GET['type']) || !in_array($_GET['type'], array(1, 2))) {
    ?>
class="selected"<?php 
}
?>
>
        	<i></i>全部</a></span> 
        	<span><a href="<?php 
echo replaceParam(array('type' => '1'));
?>
" <?php 
if ($_GET['type'] == 1) {
    ?>
예제 #3
0
if ($_GET['type'] == 1) {
    echo dropParam(array('type'));
} else {
    echo replaceParam(array('type' => '1'));
}
?>
" <?php 
if ($_GET['type'] == 1) {
    ?>
class="selected"<?php 
}
?>
><i></i>平台自营</a></span></div>
        <div class="nch-sortbar-owner"><span><a href="<?php 
if ($_GET['gift'] == 1) {
    echo dropParam(array('gift'));
} else {
    echo replaceParam(array('gift' => '1'));
}
?>
" <?php 
if ($_GET['gift'] == 1) {
    ?>
class="selected"<?php 
}
?>
><i></i>赠品</a></span></div>
        <div class="nch-sortbar-location">商品所在地:
          <div class="select-layer">
            <div class="holder"><em nc_type="area_name"><?php 
echo $lang['brand_index_area'];
예제 #4
0
</a></span> </p>
        </li>
        <li>
          <p class="lt">Y</p>
          <p class="lc"> <span><a href="<?php 
echo replaceParam(array('area_id' => '25'));
?>
"><?php 
echo $output['province_array'][25];
?>
</a></span> </p>
        </li>
        <li>
          <p class="lt">Z</p>
          <p class="lc"> <span><a href="<?php 
echo replaceParam(array('area_id' => '11'));
?>
"><?php 
echo $output['province_array'][11];
?>
</a></span> </p>
        </li>
      </ul>
    </dd>
  </dl>
  <p class="oreder-default"><a href="<?php 
echo dropParam(array('area_id'));
?>
">不限地区</a></p>
</div>
예제 #5
0
파일: search.php 프로젝트: noikiy/cunkou
          <div class="all-category">
            <?php 
require template('layout/home_goods_class');
?>
          </div>
        </div>
        <div class="nch-sortbar-array"> 排序方式:
          <ul>
            <li <?php 
if (!$_GET['key']) {
    ?>
class="selected"<?php 
}
?>
><a href="<?php 
echo dropParam(array('order', 'key'));
?>
"  title="<?php 
echo $lang['goods_class_index_default_sort'];
?>
"><?php 
echo $lang['goods_class_index_default'];
?>
</a></li>
            <li <?php 
if ($_GET['key'] == '1') {
    ?>
class="selected"<?php 
}
?>
><a href="<?php 
예제 #6
0
파일: search.php 프로젝트: noikiy/ejia
        <div class="nch-all-category">
          <div class="all-category">
            <?php require template('layout/home_goods_class');?>
          </div>
        </div>
        <div class="nch-sortbar-array"> 排序方式:
          <ul>
            <li <?php if(!$_GET['key']){?>class="selected"<?php }?>><a href="<?php echo dropParam(array('order', 'key'));?>"  title="<?php echo $lang['goods_class_index_default_sort'];?>"><?php echo $lang['goods_class_index_default'];?></a></li>
            <li <?php if($_GET['key'] == '1'){?>class="selected"<?php }?>><a href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '1') ? replaceParam(array('key' => '1', 'order' => '1')):replaceParam(array('key' => '1', 'order' => '2')); ?>" <?php if($_GET['key'] == '1'){?>class="<?php echo $_GET['order'] == 1 ? 'asc' : 'desc';?>"<?php }?> title="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '1')?$lang['goods_class_index_sold_asc']:$lang['goods_class_index_sold_desc']; ?>"><?php echo $lang['goods_class_index_sold'];?><i></i></a></li>
            <li <?php if($_GET['key'] == '2'){?>class="selected"<?php }?>><a href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '2') ? replaceParam(array('key' => '2', 'order' => '1')):replaceParam(array('key' => '2', 'order' => '2')); ?>" <?php if($_GET['key'] == '2'){?>class="<?php echo $_GET['order'] == 1 ? 'asc' : 'desc';?>"<?php }?> title="<?php  echo ($_GET['order'] == '2' && $_GET['key'] == '2')?$lang['goods_class_index_click_asc']:$lang['goods_class_index_click_desc']; ?>"><?php echo $lang['goods_class_index_click']?><i></i></a></li>
            <li <?php if($_GET['key'] == '3'){?>class="selected"<?php }?>><a href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '3') ? replaceParam(array('key' => '3', 'order' => '1')):replaceParam(array('key' => '3', 'order' => '2')); ?>" <?php if($_GET['key'] == '3'){?>class="<?php echo $_GET['order'] == 1 ? 'asc' : 'desc';?>"<?php }?> title="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '3')?$lang['goods_class_index_price_asc']:$lang['goods_class_index_price_desc']; ?>"><?php echo $lang['goods_class_index_price'];?><i></i></a></li>
          </ul>
        </div>
        <!--
		<div class="nch-sortbar-owner"><span><a href="<?php if ($_GET['type'] == 1) { echo dropParam(array('type'));} else { echo replaceParam(array('type' => '1'));}?>" <?php if ($_GET['type'] == 1) {?>class="selected"<?php }?>><i></i>平台自营</a></span></div>
        <div class="nch-sortbar-owner"><span><a href="<?php if ($_GET['gift'] == 1) { echo dropParam(array('gift'));} else { echo replaceParam(array('gift' => '1'));}?>" <?php if ($_GET['gift'] == 1) {?>class="selected"<?php }?>><i></i>赠品</a></span></div>
		-->
        <div class="nch-sortbar-location" style="margin-left:100px;">商品所在地:
          <div class="select-layer">
            <div class="holder"><em nc_type="area_name"><?php echo $lang['goods_class_index_area']; ?><!-- 所在地 --></em></div>
            <div class="selected"><a nc_type="area_name"><?php echo $lang['goods_class_index_area']; ?><!-- 所在地 --></a></div>
            <i class="direction"></i>
            <ul class="options">
              <?php require(BASE_TPL_PATH.'/home/goods_class_area.php');?>
            </ul>
          </div>
        </div>
      </nav>
      <!-- 商品列表循环  -->

      <div>
예제 #7
0
파일: search.php 프로젝트: noikiy/fruit
                            }
                            ?>
                             <a <?if (!$output['checked_attr']||!$flag){?>class="now-ss"<?php }?> href="<?php echo replaceParam(array('a_id' => $a_id));?>">不限</a>
                            <?php foreach ($val['value'] as $k=>$v){?>
                            <a  <?php if($output['checked_attr'][$key]){$temp=$output['checked_attr'][$key];if(in_array($v['attr_value_id'], $temp)){?>class="now-ss"<?php }}?> href="<?php $a_id = (($_GET['a_id'] != '' && $_GET['a_id'] != 0)?$_GET['a_id'].'_'.$k:$k); echo replaceParam(array('a_id' => $a_id));?>"><?php echo $v['attr_value_name'];?></a>
                            <?php }?>
                      </li>
                      <?php }?> 
                    </ul>
               </div>
          <?php }?> 
        <!-- //筛选区 -->
    <!-- 排序状态条 -->
    <div id="gallery_sortbar" class="gallery-sortbar clearfix">
      <div class="gallery-sort">
        <a href="<?php echo dropParam(array('order', 'key'));?>" class="action-sort <?php if($_GET['key']==0){?>active<?php }?>"><em>默认</em></a>
        <a class="action-sort<?php if($_GET['key']==3) echo " active";?>" href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '3') ? replaceParam(array('key' => '3', 'order' => '1')):replaceParam(array('key' => '3', 'order' => '2')); ?>" ><em>价格<span class="icon desc">*</span></em></a>
        <a class="action-sort<?php if($_GET['key']==1) echo " active";?>" href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '1') ? replaceParam(array('key' => '1', 'order' => '1')):replaceParam(array('key' => '1', 'order' => '2')); ?>"><em>销量<span class="icon">*</span></em></a>
      </div>


          
          </div>
           <?php if(empty($output['goods_list'])){?>
           <p>暂时没有数据</p>
           <?php }?>
          <?php if(!empty($output['goods_list'])){?>
    <div id="gallery_show" class="gallery-show">
      <div class="gallery-grid">
        <ul class="clearfix">
          <?php foreach($output['goods_list'] as $value){?>
예제 #8
0
      </dl>
<?php } ?>

      <!-- 价格过滤列表 -->
      <dl>
        <dt><?php echo $lang['text_price'];?>:</dt>
        <dd class="<?php echo empty($_GET['groupbuy_price'])?'selected':''?>"><a href="<?php echo dropParam(array('groupbuy_price'));?>"><?php echo $lang['text_no_limit'];?></a></dd>
        <?php if(is_array($output['price_list'])) { ?>
        <?php foreach($output['price_list'] as $groupbuy_price) { ?>
        <dd <?php echo $_GET['groupbuy_price'] == $groupbuy_price['range_id']?"class='selected'":'';?>> <a href="<?php echo replaceParam(array('groupbuy_price' => $groupbuy_price['range_id']));?>"><?php echo $groupbuy_price['range_name'];?></a> </dd>
        <?php } ?>
        <?php } ?>
      </dl>
      <dl class="ncg-sortord">
        <dt>排序:</dt>
        <dd class="<?php echo empty($_GET['groupbuy_order_key'])?'selected':''?>"><a href="<?php echo dropParam(array('groupbuy_order_key', 'groupbuy_order'))?>"><?php echo $lang['text_default'];?><i></i></a></dd>
        <dd <?php echo $_GET['groupbuy_order_key'] == '1'?"class='selected'":'';?>><a <?php echo $_GET['groupbuy_order_key'] == '1'?"class='". ($_GET['groupbuy_order'] == 1 ? 'asc' : 'desc') ."'":'';?> href="<?php echo ($_GET['groupbuy_order_key'] == '1' && $_GET['groupbuy_order'] == '2' ? replaceParam(array('groupbuy_order_key' => '1', 'groupbuy_order' => '1')) : replaceParam(array('groupbuy_order_key' => '1', 'groupbuy_order' => '2')));?>"><?php echo $lang['text_price'];?><i></i></a></dd>
        <dd <?php echo $_GET['groupbuy_order_key'] == '2'?"class='selected'":'';?>><a <?php echo $_GET['groupbuy_order_key'] == '2'?"class='". ($_GET['groupbuy_order'] == 1 ? 'asc' : 'desc') ."'":'';?> href="<?php echo ($_GET['groupbuy_order_key'] == '2' && $_GET['groupbuy_order'] == '2' ? replaceParam(array('groupbuy_order_key' => '2', 'groupbuy_order' => '1')) : replaceParam(array('groupbuy_order_key' => '2', 'groupbuy_order' => '2')));?>"><?php echo $lang['text_rebate'];?><i></i></a></dd>
        <dd <?php echo $_GET['groupbuy_order_key'] == '3'?"class='selected'":'';?>><a <?php echo $_GET['groupbuy_order_key'] == '3'?"class='". ($_GET['groupbuy_order'] == 1 ? 'asc' : 'desc') ."'":'';?> href="<?php echo ($_GET['groupbuy_order_key'] == '3' && $_GET['groupbuy_order'] == '2' ? replaceParam(array('groupbuy_order_key' => '3', 'groupbuy_order' => '1')) : replaceParam(array('groupbuy_order_key' => '3', 'groupbuy_order' => '2')));?>"><?php echo $lang['text_sale'];?><i></i></a></dd>
      </dl>
    </div>

    <?php if (!empty($output['groupbuy_list']) && is_array($output['groupbuy_list'])) { ?>
    <!-- 抢购活动列表 -->
    <div class="group-list">
      <ul>
        <?php foreach ($output['groupbuy_list'] as $groupbuy) { ?>
        <li class="<?php echo $output['current']; ?>">
          <div class="ncg-list-content"> <a title="<?php echo $groupbuy['groupbuy_name'];?>" href="<?php echo $groupbuy['groupbuy_url'];?>" class="pic-thumb" target="_blank"><img src="<?php echo gthumb($groupbuy['groupbuy_image'],'mid');?>" alt=""></a>
            <h3 class="title"><a title="<?php echo $groupbuy['groupbuy_name'];?>" href="<?php echo $groupbuy['groupbuy_url'];?>" target="_blank"><?php echo $groupbuy['groupbuy_name'];?></a></h3>
            <?php list($integer_part, $decimal_part) = explode('.', $groupbuy['groupbuy_price']);?>