本文整理汇总了PHP中replaceParam函数的典型用法代码示例。如果您正苦于以下问题:PHP replaceParam函数的具体用法?PHP replaceParam怎么用?PHP replaceParam使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了replaceParam函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: replaceParam
} 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'];
?>
<!-- 所在地 --></em></div>
示例2: replaceParam
?>
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) {
示例3: replaceParam
?>
</a></li>
<li class='<?php
echo $_GET['key'] == '5' ? 'selected' : '';
?>
'><a <?php
if ($_GET['key'] == '5') {
?>
class="<?php
echo $_GET['order'] == 1 ? 'asc' : 'desc';
?>
"<?php
}
?>
href="<?php
echo $_GET['key'] == '5' && $_GET['order'] == '2' ? replaceParam(array('key' => '5', 'order' => '1')) : replaceParam(array('key' => '5', 'order' => '2'));
?>
"><?php
echo $lang['show_store_all_click'];
?>
</a></li>
</ul> <div class="ncs-search">
<form id="" name="searchShop" method="get" action="index.php" >
<input type="hidden" name="act" value="show_store" />
<input type="hidden" name="op" value="goods_all" />
<input type="hidden" name="store_id" value="<?php
echo $output['store_info']['store_id'];
?>
" />
<input type="text" class="text w120" name="inkeyword" value="<?php
echo $_GET['inkeyword'];
示例4: replaceParam
" href="<?php
echo replaceParam(array('order' => '2'));
?>
">销量</a><i>.</i>
<a class="<?php
echo $_GET['order'] == '3' ? 'on' : '';
?>
" href="<?php
echo replaceParam(array('order' => '3'));
?>
">人气</a><i>.</i>
<a class="<?php
echo $_GET['order'] == '4' ? 'on' : '';
?>
" href="<?php
echo replaceParam(array('order' => '4'));
?>
">价格</a>
</div>
</div>
</div>
</div>
</div>
<div class="inner clearfix ">
<?php
foreach ($output['brand_r'] as $key => $brand_r) {
?>
<div class="product pdc_scd">
<div class="hdr">
示例5: foreach
<dt>主题分类</dt>
<dd>
<?php foreach($newCate as $v){?>
<a href="<?php echo urlShop('search','index',array('cate_id'=>$v['gc_id']))?>" <?php if($v['gc_id']==$_GET['cate_id']){?>class="on"<?php }?>><?php echo $v['gc_name']?></a>
<?php }?>
</dd></dl>
</div>
<?php }?>
<?php if(!empty($output['attr_array']) && is_array($output['attr_array'])){foreach($output['attr_array'] as $key=>$v){?>
<dl class="dl-dest" <?php if(is_array($output['checked_attr'])){foreach ($output['checked_attr'] as $attkey=>$val){if($attkey==$key){?>style="display:none;"<?php }}}?>>
<dt><?php echo($v['name'])?></dt>
<dd class="choice">
<?php foreach($v['value'] as $k=>$row){?>
<a <?php if(is_array($output['checked_attr'])){foreach ($output['checked_attr'] as $val){if($k==$val['attr_value_id']){?>class="on"<?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 $row['attr_value_name']?></a>
<?php }?>
</dd>
</dl>
<?php }}?>
<?php if(isset($output['checked_attr']) && is_array($output['checked_attr'])){?>
<dl class="change_ing noborder"><dt>您已选择</dt>
<dd>
<?php foreach ($output['checked_attr'] as $val){?>
<a href="<?php echo removeParam(array('a_id' => $val['attr_value_id']));?>" rel="nofollow" class="now_color" nctype="span_filter" title="点击可删除"><?php echo $val['attr_value_name'];?><i data-uri="<?php echo removeParam(array('a_id' => $val['attr_value_id']));?>"></i></a>
<?php }?>
</dd>
</dl>
<?php }?>
示例6: replaceParam
}
?>
>
<i></i>全部</a></span>
<span><a href="<?php
echo replaceParam(array('type' => '1'));
?>
" <?php
if ($_GET['type'] == 1) {
?>
class="selected"<?php
}
?>
>
<i></i>商城自营</a></span> <span><a href="<?php
echo replaceParam(array('type' => '2'));
?>
" <?php
if ($_GET['type'] == 2) {
?>
class="selected"<?php
}
?>
>
<i></i>商家加盟</a></span>
</div>
<div class="nch-sortbar-array">展示模式:
<ul class="tabs-nav">
<li class='selected'><a href="#" title="默认排序">列表模式</a></li>
<li><a href="#" title="默认排序">地图模式</a></li>
</ul>
示例7: foreach
?>
" onClick="set_groupbuy_area('')" ><?php
echo $lang['text_country'];
?>
</a></li>
<?php
if (is_array($output['area_list'])) {
?>
<?php
foreach ($output['area_list'] as $groupbuy_area) {
?>
<?php
if (intval($groupbuy_area['deep']) === 0) {
?>
<li><a href="<?php
echo replaceParam(array('area_id' => $groupbuy_area['area_id']));
?>
" onClick="set_groupbuy_area('<?php
echo $groupbuy_area['area_id'] . ',' . $groupbuy_area['area_name'];
?>
')" ><?php
echo $groupbuy_area['area_name'];
?>
</a></li>
<?php
}
?>
<?php
}
?>
<?php
示例8: replaceParam
</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>
示例9: alert
?>
</div>
<?php
}
?>
<?php
}
?>
</div><!---->
</div>
<script type="text/javascript">
$("#key").click(function(){
var key=$("#stkey").val();
if(key==''){
alert('请填写参数');
}else{
var url="<?php
echo replaceParam(array('keyword' => ''));
?>
";
var surl=url+key;
window.location.href=surl;
}
});
</script>
示例10: template
<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>
示例11: foreach
<div class="filter-detailc" id="addressDraw">
<dl class="location-hots">常用城市</dl>
<?php
foreach ($output['city_array'] as $k => $city) {
?>
<?php
if ($k % 4 == 0) {
?>
<dl class="location-hots" style="height: 40px">
<?php
}
?>
<dd><a href="<?php
echo replaceParam(array('area_id' => $city['area_id']));
?>
"><?php
echo $city['area_name'];
?>
</a></dd>
<?php
if ($k % 4 == 3) {
?>
</dl>
<?php
}
?>
<?php
if ($k == 15) {
break;
}
?>
示例12: replaceParam
<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){?>
<li class="goods-item first">
<div class="goods-pic">
示例13: empty
<!-- 价格过滤列表 -->
<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']);?>
<div class="item-prices"> <span class="price"><i><?php echo $lang['currency'];?></i><?php echo $integer_part;?><em>.<?php echo $decimal_part;?></em></span>
<div class="dock"><span class="limit-num"><?php echo $groupbuy['groupbuy_rebate'];?> <?php echo $lang['text_zhe'];?></span> <del class="orig-price"><?php echo $lang['currency'].$groupbuy['goods_price'];?></del></div>
<span class="sold-num"><em><?php echo $groupbuy['buy_quantity']+$groupbuy['virtual_quantity'];?></em><?php echo $lang['text_piece'];?><?php echo $lang['text_buy'];?></span><a href="<?php echo $groupbuy['groupbuy_url'];?>" target="_blank" class="buy-button"><?php echo $output['buy_button'];?></a></div>