card.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!--==================================================答题卡======================================================-->
  2. <?php if($checkCard && $check_card){ ?>
  3. <div class="card card-teach">
  4. <div class="page first-page">
  5. <div class="card-head">
  6. <div class="card-title">Test for Expression Intensive Training (词汇集训检测卡)</div>
  7. <div class="head-bottom">
  8. <span><?php echo $card_title; ?></span>
  9. </div>
  10. </div>
  11. <div class="content bd">
  12. <ol class="word-list flex">
  13. <?php
  14. $i=1;
  15. $card_no=1;
  16. $card_no_array = array(1=>'一',2=>'二',3=>'三',4=>'四',);
  17. foreach($check_card as $wordType=>$wordInfo) {
  18. if ($wordType==1) { ?>
  19. <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、单词-汉译英</li>
  20. <?php foreach ($check_card[1] as $val) {
  21. if ($val) { ?>
  22. <li class="word-li two">
  23. <?php foreach ($val as $v) { ?>
  24. <div class="words-item">
  25. <div class="words">
  26. <i><?php echo !$v['is_derivative'] ? $i . '.' : '→'; ?></i><span><?php echo $v['new_mean'] ?></span>
  27. </div>
  28. <div class="four-line-grid">
  29. <div class="line">
  30. <span class="write"><?php echo $v['content'] ?></span>
  31. </div>
  32. </div>
  33. </div>
  34. <?php
  35. if (!$v['is_derivative']) {
  36. $i++;
  37. }
  38. }
  39. ?>
  40. </li>
  41. <?php
  42. }
  43. }
  44. $card_no++;
  45. }
  46. ?>
  47. <?php if ($wordType==2) { ?>
  48. <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、单词-英译汉</li>
  49. <?php foreach ($check_card[2] as $val) {
  50. if ($val) { ?>
  51. <li class="word-li two han">
  52. <?php foreach ($val as $v) { ?>
  53. <div class="words-item">
  54. <div class="words">
  55. <i><?php echo !$v['is_derivative'] ? $i . '.' : '→'; ?></i><span><?php echo $v['content'] ?></span>
  56. </div>
  57. <div class="four-line-grid">
  58. <div class="line">
  59. <span class="write"><?php echo $v['mean'] ?></span>
  60. </div>
  61. </div>
  62. </div>
  63. <?php
  64. if (!$v['is_derivative']) {
  65. $i++;
  66. }
  67. }
  68. ?>
  69. </li>
  70. <?php
  71. }
  72. }
  73. $card_no++;
  74. }
  75. ?>
  76. <?php if ($wordType==3) { ?>
  77. <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、短语-汉译英</li>
  78. <?php foreach ($check_card[3] as $val) { ?>
  79. <li class="word-li long ">
  80. <div class="words-item">
  81. <div class="words">
  82. <i><?php echo $i; ?>.</i><span><?php echo $val['mean'] ?></span>
  83. </div>
  84. <div class="four-line-grid">
  85. <div class="line">
  86. <span class="write"><?php echo $val['content'] ?></span>
  87. </div>
  88. </div>
  89. </div>
  90. </li>
  91. <?php
  92. $i++;
  93. }
  94. $card_no++;
  95. }
  96. ?>
  97. <?php if ($wordType==4) { ?>
  98. <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、短语-英译汉</li>
  99. <?php foreach ($check_card[4] as $val) { ?>
  100. <li class="word-li long han">
  101. <div class="words-item">
  102. <div class="words">
  103. <i><?php echo $i; ?>.</i><span><?php echo $val['content'] ?></span>
  104. </div>
  105. <div class="four-line-grid">
  106. <div class="line">
  107. <span class="write"><?php echo $val['mean'] ?></span>
  108. </div>
  109. </div>
  110. </div>
  111. </li>
  112. <?php
  113. $i++;
  114. }
  115. $card_no++;
  116. }
  117. }
  118. ?>
  119. </ol>
  120. </div>
  121. </div>
  122. <div class="break" style="page-break-after: always;"></div>
  123. <div class="page">
  124. <div class="content bd">
  125. <ol class="word-list flex"></ol>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="break" style="page-break-after: always;"></div>
  130. <?php } ?>