Guest User

Untitled

a guest
Dec 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <?php
  2. foreach ( $items as $walor ) {
  3. echo '<tr class="zmiana'.$walor['tendencja'].'" title="'. $walor['data'] .'">';
  4. echo '<td class="symbol"><strong>' . $walor['symbol'] . '</strong></td>';
  5. if($walor['ask'] != false){
  6. echo '<td class="ask" title="ask">' . $walor['ask'] . '</td>';
  7. }
  8. /*
  9. if($walor['ask_chg_perc'] != false){
  10. echo '<td class="ask_chg_perc" title="ask_chg_perc">' . $walor['ask_chg_perc'] . '</td>';
  11. }
  12. */
  13. if($walor['bid'] != false){
  14. echo '<td class="bid" title="bid">' . $walor['bid'] . '</td>';
  15. }
  16. /*
  17. if($walor['bid_chg_perc'] != false){
  18. echo '<td class="bid_chg_perc" title="bid_chg_perc">' . $walor['bid_chg_perc'] . '</td>';
  19. }
  20. */
  21. if($walor['kurs_sredni'] != false){
  22. echo '<td class="kurs" title="kurs średni">' . $walor['kurs_sredni'] . '</td>';
  23. }
  24. if($walor['kurs'] != false){
  25. echo '<td class="kurs" title="kurs">' . $walor['kurs'] . '</td>';
  26. }
  27. if($walor['chg_perc'] != false){
  28. echo '<td class="tendencja">' . $walor['chg_perc'] . '% <span class="ico">'. ($walor['tendencja']==0?'-':''). ($walor['tendencja']==1?'&#x2191;':'') . ($walor['tendencja']==-1?'&#x2193;':'') . '</span></td>';
  29. }
  30. if($walor['zmiana_procentowa'] != false){
  31. echo '<td class="tendencja">' . $walor['zmiana_procentowa'] . '% <span class="ico">'. ($walor['tendencja']==0?'-':''). ($walor['tendencja']==1?'&#x2191;':'') . ($walor['tendencja']==-1?'&#x2193;':'') . '</span></td>';
  32. }
  33. echo '</tr>';
  34. }
  35. echo '</table> <!-- ';
Add Comment
Please, Sign In to add comment