123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <!--==================================================答题卡======================================================-->
- <?php if($checkCard && $check_card){ ?>
- <div class="card card-teach">
- <div class="page first-page">
- <div class="card-head">
- <div class="card-title">Test for Expression Intensive Training (词汇集训检测卡)</div>
- <div class="head-bottom">
- <span><?php echo $card_title; ?></span>
- </div>
- </div>
- <div class="content bd">
- <ol class="word-list flex">
- <?php
- $i=1;
- $card_no=1;
- $card_no_array = array(1=>'一',2=>'二',3=>'三',4=>'四',);
- foreach($check_card as $wordType=>$wordInfo) {
- if ($wordType==1) { ?>
- <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、单词-汉译英</li>
- <?php foreach ($check_card[1] as $val) {
- if ($val) { ?>
- <li class="word-li two">
- <?php foreach ($val as $v) { ?>
- <div class="words-item">
- <div class="words">
- <i><?php echo !$v['is_derivative'] ? $i . '.' : '→'; ?></i><span><?php echo $v['new_mean'] ?></span>
- </div>
- <div class="four-line-grid">
- <div class="line">
- <span class="write"><?php echo $v['content'] ?></span>
- </div>
- </div>
- </div>
- <?php
- if (!$v['is_derivative']) {
- $i++;
- }
- }
- ?>
- </li>
- <?php
- }
- }
- $card_no++;
- }
- ?>
- <?php if ($wordType==2) { ?>
- <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、单词-英译汉</li>
- <?php foreach ($check_card[2] as $val) {
- if ($val) { ?>
- <li class="word-li two han">
- <?php foreach ($val as $v) { ?>
- <div class="words-item">
- <div class="words">
- <i><?php echo !$v['is_derivative'] ? $i . '.' : '→'; ?></i><span><?php echo $v['content'] ?></span>
- </div>
- <div class="four-line-grid">
- <div class="line">
- <span class="write"><?php echo $v['mean'] ?></span>
- </div>
- </div>
- </div>
- <?php
- if (!$v['is_derivative']) {
- $i++;
- }
- }
- ?>
- </li>
- <?php
- }
- }
- $card_no++;
- }
- ?>
- <?php if ($wordType==3) { ?>
- <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、短语-汉译英</li>
- <?php foreach ($check_card[3] as $val) { ?>
- <li class="word-li long ">
- <div class="words-item">
- <div class="words">
- <i><?php echo $i; ?>.</i><span><?php echo $val['mean'] ?></span>
- </div>
- <div class="four-line-grid">
- <div class="line">
- <span class="write"><?php echo $val['content'] ?></span>
- </div>
- </div>
- </div>
- </li>
- <?php
- $i++;
- }
- $card_no++;
- }
- ?>
- <?php if ($wordType==4) { ?>
- <li class="word-li type-title"><?php echo $card_no_array[$card_no]; ?>、短语-英译汉</li>
- <?php foreach ($check_card[4] as $val) { ?>
- <li class="word-li long han">
- <div class="words-item">
- <div class="words">
- <i><?php echo $i; ?>.</i><span><?php echo $val['content'] ?></span>
- </div>
- <div class="four-line-grid">
- <div class="line">
- <span class="write"><?php echo $val['mean'] ?></span>
- </div>
- </div>
- </div>
- </li>
- <?php
- $i++;
- }
- $card_no++;
- }
- }
- ?>
- </ol>
- </div>
- </div>
- <div class="break" style="page-break-after: always;"></div>
- <div class="page">
- <div class="content bd">
- <ol class="word-list flex"></ol>
- </div>
- </div>
- </div>
- <div class="break" style="page-break-after: always;"></div>
- <?php } ?>
|