photo.php 717 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->loop('#photo_list .photo_list', 'manage/database.list_photo', array
  9. (
  10. '.dever-img' => array
  11. (
  12. 'id' => 'dever-img-<{$v.id}>',
  13. 'img|$v.pic' => array
  14. (
  15. 'layer-src' => '$v1.src',
  16. 'alt' => '$v1.name',
  17. 'src' => '$v1.show',
  18. 'style' => '<{if($v1.index == 0):}>display:block<{else:}>display:none<{endif;}>',
  19. ),
  20. ),
  21. '.dever-desc' => '$v.desc',
  22. '.dever-button' => '$v.button',
  23. ))
  24. # 分页
  25. ->fetch('#page','<{Dever::page("current")}>')
  26. # 将上边fetch的都显示出来
  27. ->display();