123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <!DOCTYPE html>
- <html lang="en">
- <?php $server = Yii::app()->request->hostInfo;?>
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>写作指导-教师版</title>
- <link rel="stylesheet" href="<?php echo $server.'/css/english_writing/css/base.css'; ?>" />
- <link rel="stylesheet" href="<?php echo $server.'/css/english_writing/css/reset.css'; ?>" />
- <link rel="stylesheet" href="<?php echo $server.'/css/english_writing/css/WritingGuide.css'; ?>" />
- </head>
- <body>
- <div class="pdf">
- <div class="header">
- <div class="header-top">
- <h1><?php
- if($third){
- $temp_title = '';
- if(isset($third['third_content']) && $third['third_content']){
- foreach($third['third_content'] as $content_v){
- if(isset($content_v['title']) && $content_v['title']){
- $temp_title = $content_v['title'];
- }
- }
- }
- echo $temp_title;
- }else{
- echo isset($writing['topicList']['sr_name']) ? $writing['topicList']['sr_name'] : '';
- }
- ?>
- </h1>
- </div>
- <div class="header-bottom">
- <div class="step">写作指导</div>
- <div class="name">
- <?php
- if($third){
- echo '第三方写作';
- }else{
- echo isset($writing['topicList']['child']['sr_name']) ? $writing['topicList']['child']['sr_name'] : '';
- }
- ?>
- </div>
- </div>
- </div>
- <?php if($writing){
- if(isset($writing['dataList']) && $writing['dataList']){
- ?>
- <div class="content">
- <?php foreach($writing['dataList'] as $key=>$dataList){ ?>
- <div class="section">
- <!---------------------------------1级栏目BEGIN----------------------------------->
- <?php if((isset($dataList['check']) && $dataList['check']) || !isset($dataList['check'])){ ?>
- <div class="section-title">
- <div class="section-label">
- <img class="bg-img" src="<?php echo $server; ?>/images/english_writing/lable1-bg.png" alt="">
- <img class="section-labe-icon" src="<?php echo $server; ?>/images/english_writing/lable1-icon.png" alt="">
- <span> <?php echo ($key+1).' '.$dataList['title']; ?></span>
- </div>
- <?php if($dataList['is_write']){ ?>
- <div class="title-number">
- <span>题目编号:</span>
- <i><?php echo $writing['topic_no']; ?></i>
- </div>
- <?php } ?>
- </div>
- <?php if($dataList['content']){?>
- <article class="article">
- <?php echo $dataList['content']; ?>
- </article>
- <?php }?>
- <?php if($dataList['answer']){?>
- <p style="color: red;">答案:</p>
- <article class="article">
- <?php echo $dataList['answer']; ?>
- </article>
- <?php }?>
- <?php }?>
- <!---------------------------------1级栏目END----------------------------------->
- <div class="section-content">
- <div class="topic">
- <!---------------------------------2级栏目BEGIN----------------------------------->
- <?php if(isset($dataList['child']) && $dataList['child']){
- foreach($dataList['child'] as $second_key => $second_val){
- if((isset($second_val['check']) && $second_val['check']) || !isset($second_val['check'])){
- ?>
- <div class="topic-title">
- <div class="topic-label">
- <img class="topic-labe-icon" src="<?php echo $server; ?>/images/english_writing/start.png" alt="">
- <span><?php echo ($key+1).'.'.($second_key+1).' '.$second_val['title']?></span>
- </div>
- <?php if($second_val['is_write']){ ?>
- <div class="title-number">
- <span>题目编号:</span>
- <i><?php echo $writing['topic_no']; ?></i>
- </div>
- <?php }?>
- </div>
- <?php if($second_val['content']){?>
- <article class="article">
- <?php echo $second_val['content']; ?>
- </article>
- <?php }?>
- <?php if($second_val['answer']){?>
- <p style="color: red;">答案:</p>
- <article class="article">
- <?php echo $second_val['answer']; ?>
- </article>
- <?php }?>
- <?php }?>
- <!---------------------------------3级栏目BEGIN----------------------------------->
- <?php if(isset($second_val['child']) && $second_val['child']){
- foreach($second_val['child'] as $third_key => $third_val){
- if((isset($third_val['check']) && $third_val['check']) || !isset($third_val['check'])){
- ?>
- <div class="topic-content">
- <div class="unit">
- <div class="unit-title">
- <div class="unit-label">
- <img class="unit-labe-icon" src="<?php echo $server; ?>/images/english_writing/feather-bg.png" alt="">
- <span><?php echo ($key+1).'.'.($second_key+1).'.'.($third_key+1).' '.$third_val['title']?></span>
- </div>
- <?php if($third_val['is_write']){ ?>
- <div class="title-number">
- <span>题目编号:</span>
- <i><?php echo $writing['topic_no']; ?></i>
- </div>
- <?php }?>
- </div>
- <?php if($third_val['content']){?>
- <div class="unit-content">
- <article class="article">
- <?php echo $third_val['content']; ?>
- </article>
- </div>
- <?php }?>
- <?php if($third_val['answer']){?>
- <p style="color: red;">答案:</p>
- <div class="unit-content">
- <article class="article">
- <?php echo $third_val['answer']; ?>
- </article>
- </div>
- <?php }?>
- </div>
- </div>
- <?php }?>
- <?php }?>
- <?php }?>
- <!---------------------------------3级栏目END----------------------------------->
- <?php } ?>
- <?php }?>
- <!---------------------------------2级栏目END----------------------------------->
- </div>
- </div>
- </div>
- <?php }?>
- </div>
- <?php
- }
- }else{
- ?>
- <div class="content">
- <div class="section">
- <!---------------------------------1级栏目BEGIN----------------------------------->
- <div class="section-title">
- <div class="section-label">
- <img class="bg-img" src="<?php echo $server; ?>/images/english_writing/lable1-bg.png" alt="">
- <img class="section-labe-icon" src="<?php echo $server; ?>/images/english_writing/lable1-icon.png" alt="">
- <span> 第三方写作 </span>
- </div>
- <div class="title-number">
- <span>题目编号:</span>
- <i><?php echo $third['topic_no']; ?></i>
- </div>
- </div>
- <div class="section-content">
- <?php if(isset($third['third_content']) && $third['third_content']):?>
- <?php
- $temp_type_list = array();
- if(count($third['third_content']) > 1){
- $temp_type_list = array(1=>'书面表达',2=>'读后续写');
- }
- ?>
- <?php foreach($third['third_content'] as $thid_content):?>
- <div class="topic">
- <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>
- <?php if(isset($thid_content['img_requirement_list']) && $thid_content['img_requirement_list']){?>
- <article class="article">
- <?php echo $thid_content['img_requirement_list']; ?>
- </article>
- <?php }?>
- <?php if(isset($thid_content['essay_list']) && $thid_content['essay_list']){?>
- <div class="topic-answer-title">【答案】</div>
- <article class="article">
- <?php echo $thid_content['essay_list']; ?>
- </article>
- <?php }?>
- </div>
- <?php endforeach;?>
- <?php else:?>
- <div class="topic">
- <?php if($third['img_requirement_list']){?>
- <article class="article">
- <?php echo $third['img_requirement_list']; ?>
- </article>
- <?php }?>
- <?php if($third['essay_list']){?>
- <div class="topic-answer-title">【答案】</div>
- <article class="article">
- <?php echo $third['essay_list']; ?>
- </article>
- <?php }?>
- </div>
- <?php endif;?>
- </div>
- </div>
- </div>
- <?php
- }
- ?>
- </div>
- </body>
- </html>
|