collection.php 980 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. foreach ($page->collection as $collection){
  3. $monster_src = $collection->monster->image;
  4. $star_src = $path["img"]["layout"] . "icon/star.png";
  5. if ($collection->awaken == 1){
  6. $monster_src = $collection->monster->image_aw;
  7. $star_src = $path["img"]["layout"] . "icon/star_aw.png";
  8. }
  9. ?>
  10. <div class='monster'>
  11. <a href='javascript:selectMonster(<?=$collection->id?>);'>
  12. <span class='stars'>
  13. <?php
  14. for ($i = 0; $i < $collection->stars; $i ++){
  15. ?>
  16. <img class='star' src='<?=$star_src?>'/>
  17. <?php
  18. }
  19. ?>
  20. </span>
  21. <img class='monster border_<?=$collection->monster->element?>' src='<?=$monster_src?>'/>
  22. <span class='level'>
  23. Lv. <?=$collection->level?>
  24. </span>
  25. </a>
  26. </div>
  27. <?php
  28. } // foreach ($page->fusion as $fusion)
  29. ?>