awardnamelist.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/14
  6. * Time: 下午3:24
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/wx/jc.js");
  10. ?>
  11. <style>
  12. .lucky_list{
  13. /*overflow-y:auto;*/
  14. width:800px;
  15. /*height:560px;*/
  16. padding:20px;
  17. /*position: relative;*/
  18. margin:0 auto;
  19. background-color: rgba(255, 255, 255, 0.2);
  20. -webkit-border-radius: 10px;
  21. -moz-border-radius: 10px;
  22. border-radius: 10px;
  23. }
  24. /*!*签到墙样式*!*/
  25. .wx_box {display:inline-block;padding:8px 5px;width:100px;height:100px}
  26. .wx_img img {width:100%;height:100%}
  27. .wx_title {text-align:center;}
  28. </style>
  29. <div id="demonstrate" class="lucky_list">
  30. <?php foreach ($model as $key=>$val){ ?>
  31. <div>
  32. <p style="background-color: #66a8cc;padding: 5px 0 0 0;"> 时间:<?php echo date('Y-m-d H:i:s',$model[$key][0]['update_at'] ) ?> <span>
  33. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 人数: <?php echo count($model[$key]) ?>
  34. </span> &nbsp; &nbsp; &nbsp; <button onclick="clearjc(<?php echo $key ?>,<?php echo $model[$key][0]['jc'] ?>)">清除奖次</button>
  35. </p>
  36. <?php foreach ($model[$key] as $val){ ?>
  37. <div class="wx_box">
  38. <div class="wx_img"><img src="<?php echo $val['photo'] ?>" alt=""></div>
  39. <div class="wx_title">
  40. <p><?php echo $val['name'] ?></p>
  41. <p><?php echo $val['rand'] ?></p>
  42. </div>
  43. </div>
  44. <?php } ?>
  45. </div>
  46. <?php } ?>
  47. <!-- <div class="wx_box">-->
  48. <!-- <div class="wx_img"><img src="/img/tmp/111.jpg" alt=""></div>-->
  49. <!-- <div class="wx_title">-->
  50. <!-- <p>夏天的风</p>-->
  51. <!-- <p>5504</p>-->
  52. <!-- </div>-->
  53. <!-- </div>-->
  54. </div>