<div class="codetitle"> <span><a style="CURSOR: pointer" data="86983" class="copybut" id="copybut86983" onclick="doCopy('code86983')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code86983"> <br>$price=$row['price']; //原价 <br>$nowprice=$row['nowprice']; //现价 <br>$jiesheng=$price-$nowprice; //节省金额 <br>//$discount折扣计算 <br>if ( $nowprice > 0 ) <br>{ <br>$discount = round(10 / ($price / $nowprice), 1); <br>} <br>else <br>{ <br>$discount = 0; <br>} <br>if ( $discount </div> <br><br>完整代码:<br><div class="codetitle"> <span><a style="CURSOR: pointer" data="78697" class="copybut" id="copybut78697" onclick="doCopy('code78697')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code78697"> <br> <br> <br> <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br><title>寰</title> </div>