diff options
| author | Adam Soltys <[email protected]> | 2012-10-10 17:42:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-10-10 17:42:07 -0700 |
| commit | 2466d865492cec347c586f55a27d4f3ab6692a80 (patch) | |
| tree | 1711919ea793635da92aab642aaf132a86533dd0 /report.php | |
| parent | cfc8a0439d69b2bc2fb7060d1dc24fa365d6f80c (diff) | |
| download | coinos-server-2466d865492cec347c586f55a27d4f3ab6692a80.tar.gz coinos-server-2466d865492cec347c586f55a27d4f3ab6692a80.zip | |
Fix formatting
Diffstat (limited to 'report.php')
| -rw-r--r-- | report.php | 32 |
1 files changed, 15 insertions, 17 deletions
@@ -14,6 +14,7 @@ </head> <body> <div id="container"> + Date: <input id="date" name="date" type="text" /> <table> <tr> <th>Date</th> @@ -25,14 +26,14 @@ <? $row = 1; if (($handle = fopen("transactions.csv", "r")) !== FALSE) { - $total_amount = 0; - $total_value = 0; - while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { - $num = count($data); - $row++; - $value = $data[2] * $data[3]; - $total_amount += $data[2]; - $total_value += $value; + $total_amount = 0; + $total_value = 0; + while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { + $num = count($data); + $row++; + $value = $data[2] * $data[3]; + $total_amount += $data[2]; + $total_value += $value; ?> <tr> <td><? echo $data[1] . "<br />\n"; ?></td> @@ -41,16 +42,13 @@ if (($handle = fopen("transactions.csv", "r")) !== FALSE) { <td><? echo $data[2] . "<br />\n"; ?></td> <td>$<? echo $value . "<br />\n"; ?></td> </tr> -<? - } -} -?> +<? }} ?> </table> -<br /> -<b> - Total BTC: <? echo $total_amount . "<br />\n"; ?> - Total CAD: <? echo $total_value . "<br />\n"; ?> -</b> + <br /> + <b> + Total BTC: <? echo $total_amount . "<br />\n"; ?> + Total CAD: <? echo $total_value . "<br />\n"; ?> + </b> </div> </body> </html> |
