|
@@ -58,7 +58,7 @@ class Demo extends Api
|
|
|
$jishu = rand(100,99999);
|
|
|
|
|
|
$z = 0;
|
|
|
- echo "<style>table{border-collapse: collapse;border:1px solid #ccc;font-size: 14px} tbody{font-size: 12px} th,td{padding: 2px}</style>";
|
|
|
+ echo "<style>table{border-collapse: collapse;border:1px solid #ccc;font-size: 14px} tbody{font-size: 12px} th,td{padding: 2px} tr:hover{background: #ebf1e7} .bg{background: #e5f5dd}</style>";
|
|
|
echo "<table border='1px'><thead>
|
|
|
<tr>
|
|
|
<th>期数</th>
|
|
@@ -80,7 +80,8 @@ class Demo extends Api
|
|
|
$ff402 = bcdiv($ff40,'2',2);
|
|
|
$xf = bcmul($jishu,'10',2);
|
|
|
$z = bcadd($z,$ff402,2);
|
|
|
- echo "<tr><td>{$i}</td><td>{$xf}</td><td>{$jishu}</td><td>{$sj5b}</td><td>{$sj5b}</td><td>{$ff40}</td><td>{$ff402}</td><td>{$ff402}</td><td>{$z}</td></tr>";
|
|
|
+ $class = $i%2 == 1 ? 'bg' : '';
|
|
|
+ echo "<tr class='{$class}'><td>{$i}</td><td>{$xf}</td><td>{$jishu}</td><td>{$sj5b}</td><td>{$sj5b}</td><td>{$ff40}</td><td>{$ff402}</td><td>{$ff402}</td><td>{$z}</td></tr>";
|
|
|
//$arr[] = "第{$i}期————消费:{$xf}元—————让利:{$jishu}元—————商家5倍积分:{$sj5b}—————用户5倍积分:{$sj5b}—————发放40%1期:{$ff40}—————商家得:{$ff402}—————用户得:{$ff402}————总得:{$z}";
|
|
|
$jishu = bcmul($jishu,'1.15',2);
|
|
|
}
|