donglu953744 2018-11-29 10:44
浏览 19

在php的<input>中添加postfix

I wanted to add a currency postfix into the input slider using this code:

 if($service_finder_options['search-price']) {
     $html .= '
         <div class="col-md-6  col-sm-6">
             <h5 class="sf-tilte">'.esc_html__('Filter by Price Interval','service-finder').':</h5> 
             <input name="price" type="text" class="sf-price-filter span2" value="" data-slider-min="'.esc_attr($minpricerange).''esc_html__('AED', 'service-finder').'" data-slider-max="'.esc_attr($maxpricerange).''esc_html__('AED', 'service-finder').'" data-slider-step="5" data-slider-value="[0,0]"/>
             <b class="sf-minimum-price">'.service_finder_money_format($minpricerange).'</b>
             <b class="sf-maximum-price">'.service_finder_money_format($maxpricerange).'</b>
         </div>
     ';
 }

This code outputs the price range slider. But it is not working, It is suppose to output 'AED' in front of 'minprice' & 'maxprice'. If I remove the 'esc_html__('AED', 'service-finder').' , then it works.Please help me use the right code to display AED text in front range value. I am beginner at this, so please don't be harsh.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?