english_writing_teacher.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <?php $server = Yii::app()->request->hostInfo;?>
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>写作指导-教师版</title>
  9. <link rel="stylesheet" href="<?php echo $server.'/css/english_writing/css/base.css'; ?>" />
  10. <link rel="stylesheet" href="<?php echo $server.'/css/english_writing/css/reset.css'; ?>" />
  11. <link rel="stylesheet" href="<?php echo $server.'/css/english_writing/css/WritingGuide.css'; ?>" />
  12. </head>
  13. <body>
  14. <div class="pdf">
  15. <div class="header">
  16. <div class="header-top">
  17. <h1><?php
  18. if($third){
  19. $temp_title = '';
  20. if(isset($third['third_content']) && $third['third_content']){
  21. foreach($third['third_content'] as $content_v){
  22. if(isset($content_v['title']) && $content_v['title']){
  23. $temp_title = $content_v['title'];
  24. }
  25. }
  26. }
  27. echo $temp_title;
  28. }else{
  29. echo isset($writing['topicList']['sr_name']) ? $writing['topicList']['sr_name'] : '';
  30. }
  31. ?>
  32. </h1>
  33. </div>
  34. <div class="header-bottom">
  35. <div class="step">写作指导</div>
  36. <div class="name">
  37. <?php
  38. if($third){
  39. echo '第三方写作';
  40. }else{
  41. echo isset($writing['topicList']['child']['sr_name']) ? $writing['topicList']['child']['sr_name'] : '';
  42. }
  43. ?>
  44. </div>
  45. </div>
  46. </div>
  47. <?php if($writing){
  48. if(isset($writing['dataList']) && $writing['dataList']){
  49. ?>
  50. <div class="content">
  51. <?php foreach($writing['dataList'] as $key=>$dataList){ ?>
  52. <div class="section">
  53. <!---------------------------------1级栏目BEGIN----------------------------------->
  54. <?php if((isset($dataList['check']) && $dataList['check']) || !isset($dataList['check'])){ ?>
  55. <div class="section-title">
  56. <div class="section-label">
  57. <img class="bg-img" src="<?php echo $server; ?>/images/english_writing/lable1-bg.png" alt="">
  58. <img class="section-labe-icon" src="<?php echo $server; ?>/images/english_writing/lable1-icon.png" alt="">
  59. <span> <?php echo ($key+1).' '.$dataList['title']; ?></span>
  60. </div>
  61. <?php if($dataList['is_write']){ ?>
  62. <div class="title-number">
  63. <span>题目编号:</span>
  64. <i><?php echo $writing['topic_no']; ?></i>
  65. </div>
  66. <?php } ?>
  67. </div>
  68. <?php if($dataList['content']){?>
  69. <article class="article">
  70. <?php echo $dataList['content']; ?>
  71. </article>
  72. <?php }?>
  73. <?php if($dataList['answer']){?>
  74. <p style="color: red;">答案:</p>
  75. <article class="article">
  76. <?php echo $dataList['answer']; ?>
  77. </article>
  78. <?php }?>
  79. <?php }?>
  80. <!---------------------------------1级栏目END----------------------------------->
  81. <div class="section-content">
  82. <div class="topic">
  83. <!---------------------------------2级栏目BEGIN----------------------------------->
  84. <?php if(isset($dataList['child']) && $dataList['child']){
  85. foreach($dataList['child'] as $second_key => $second_val){
  86. if((isset($second_val['check']) && $second_val['check']) || !isset($second_val['check'])){
  87. ?>
  88. <div class="topic-title">
  89. <div class="topic-label">
  90. <img class="topic-labe-icon" src="<?php echo $server; ?>/images/english_writing/start.png" alt="">
  91. <span><?php echo ($key+1).'.'.($second_key+1).' '.$second_val['title']?></span>
  92. </div>
  93. <?php if($second_val['is_write']){ ?>
  94. <div class="title-number">
  95. <span>题目编号:</span>
  96. <i><?php echo $writing['topic_no']; ?></i>
  97. </div>
  98. <?php }?>
  99. </div>
  100. <?php if($second_val['content']){?>
  101. <article class="article">
  102. <?php echo $second_val['content']; ?>
  103. </article>
  104. <?php }?>
  105. <?php if($second_val['answer']){?>
  106. <p style="color: red;">答案:</p>
  107. <article class="article">
  108. <?php echo $second_val['answer']; ?>
  109. </article>
  110. <?php }?>
  111. <?php }?>
  112. <!---------------------------------3级栏目BEGIN----------------------------------->
  113. <?php if(isset($second_val['child']) && $second_val['child']){
  114. foreach($second_val['child'] as $third_key => $third_val){
  115. if((isset($third_val['check']) && $third_val['check']) || !isset($third_val['check'])){
  116. ?>
  117. <div class="topic-content">
  118. <div class="unit">
  119. <div class="unit-title">
  120. <div class="unit-label">
  121. <img class="unit-labe-icon" src="<?php echo $server; ?>/images/english_writing/feather-bg.png" alt="">
  122. <span><?php echo ($key+1).'.'.($second_key+1).'.'.($third_key+1).' '.$third_val['title']?></span>
  123. </div>
  124. <?php if($third_val['is_write']){ ?>
  125. <div class="title-number">
  126. <span>题目编号:</span>
  127. <i><?php echo $writing['topic_no']; ?></i>
  128. </div>
  129. <?php }?>
  130. </div>
  131. <?php if($third_val['content']){?>
  132. <div class="unit-content">
  133. <article class="article">
  134. <?php echo $third_val['content']; ?>
  135. </article>
  136. </div>
  137. <?php }?>
  138. <?php if($third_val['answer']){?>
  139. <p style="color: red;">答案:</p>
  140. <div class="unit-content">
  141. <article class="article">
  142. <?php echo $third_val['answer']; ?>
  143. </article>
  144. </div>
  145. <?php }?>
  146. </div>
  147. </div>
  148. <?php }?>
  149. <?php }?>
  150. <?php }?>
  151. <!---------------------------------3级栏目END----------------------------------->
  152. <?php } ?>
  153. <?php }?>
  154. <!---------------------------------2级栏目END----------------------------------->
  155. </div>
  156. </div>
  157. </div>
  158. <?php }?>
  159. </div>
  160. <?php
  161. }
  162. }else{
  163. ?>
  164. <div class="content">
  165. <div class="section">
  166. <!---------------------------------1级栏目BEGIN----------------------------------->
  167. <div class="section-title">
  168. <div class="section-label">
  169. <img class="bg-img" src="<?php echo $server; ?>/images/english_writing/lable1-bg.png" alt="">
  170. <img class="section-labe-icon" src="<?php echo $server; ?>/images/english_writing/lable1-icon.png" alt="">
  171. <span> 第三方写作 </span>
  172. </div>
  173. <div class="title-number">
  174. <span>题目编号:</span>
  175. <i><?php echo $third['topic_no']; ?></i>
  176. </div>
  177. </div>
  178. <div class="section-content">
  179. <?php if(isset($third['third_content']) && $third['third_content']):?>
  180. <?php
  181. $temp_type_list = array();
  182. if(count($third['third_content']) > 1){
  183. $temp_type_list = array(1=>'书面表达',2=>'读后续写');
  184. }
  185. ?>
  186. <?php foreach($third['third_content'] as $thid_content):?>
  187. <div class="topic">
  188. <div class="two-topic-title"><?php echo isset($thid_content['type_list']) && $thid_content['type_list'] && isset($temp_type_list[$thid_content['type_list']])?$temp_type_list[$thid_content['type_list']]:'';?></div>
  189. <?php if(isset($thid_content['img_requirement_list']) && $thid_content['img_requirement_list']){?>
  190. <article class="article">
  191. <?php echo $thid_content['img_requirement_list']; ?>
  192. </article>
  193. <?php }?>
  194. <?php if(isset($thid_content['essay_list']) && $thid_content['essay_list']){?>
  195. <div class="topic-answer-title">【答案】</div>
  196. <article class="article">
  197. <?php echo $thid_content['essay_list']; ?>
  198. </article>
  199. <?php }?>
  200. </div>
  201. <?php endforeach;?>
  202. <?php else:?>
  203. <div class="topic">
  204. <?php if($third['img_requirement_list']){?>
  205. <article class="article">
  206. <?php echo $third['img_requirement_list']; ?>
  207. </article>
  208. <?php }?>
  209. <?php if($third['essay_list']){?>
  210. <div class="topic-answer-title">【答案】</div>
  211. <article class="article">
  212. <?php echo $third['essay_list']; ?>
  213. </article>
  214. <?php }?>
  215. </div>
  216. <?php endif;?>
  217. </div>
  218. </div>
  219. </div>
  220. <?php
  221. }
  222. ?>
  223. </div>
  224. </body>
  225. </html>