head.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/magic_word/base.css';?>" />
  10. <link rel="stylesheet" href="<?php echo $server.'/css/magic_word/reset.css';?>" />
  11. <link rel="stylesheet" href="<?php echo $server.'/css/magic_word/card.css';?>" />
  12. <link rel="stylesheet" href="<?php echo $server.'/css/magic_word/ev.css';?>" />
  13. <style>
  14. .title {
  15. background: url(<?php echo $server.'/images/magic_word/title-bg.png';?>) no-repeat;
  16. background-size: 100% 100%;
  17. }
  18. .modular-title {
  19. background: url(<?php echo $server.'/images/magic_word/lable1-bg.png';?>) no-repeat;
  20. background-size: 100% 100%;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <?php
  26. $wordReview = $product_setting['training']['wordReview']; //词汇回顾
  27. $wordExplain = $product_setting['training']['wordExplain']; //词汇精讲
  28. $translate = $product_setting['training']['practiceExact']['translate']; //英汉互译(中译英、英译中)
  29. $wordApply = $product_setting['training']['practiceExact']['wordApply']; //词汇运用
  30. $discourse = $product_setting['training']['practiceExact']['discourse']; //语篇训练
  31. $checkCard = $product_setting['checkCard']; //词汇检测卡
  32. $wrongPractice = $product_setting['wrongPractice']; //错词再练
  33. #=====================================词汇宝精简版字段BEGIN=====================================================
  34. $wordSpell = (!isset($product_setting['training']['practiceExact']['wordSpell']) || (isset($product_setting['training']['practiceExact']['wordSpell']) && $product_setting['training']['practiceExact']['wordSpell'])) ? 1 : 0 ; //单词拼写
  35. $sentenceFill = (!isset($product_setting['training']['practiceExact']['sentenceFill']) || (isset($product_setting['training']['practiceExact']['sentenceFill']) && $product_setting['training']['practiceExact']['sentenceFill'])) ? 1 : 0; //单句语法填空
  36. $sentenceTranslate = (!isset($product_setting['training']['practiceExact']['sentenceTranslate']) || (isset($product_setting['training']['practiceExact']['sentenceTranslate']) && $product_setting['training']['practiceExact']['sentenceTranslate'])) ? 1 : 0; //单句翻译
  37. #=====================================词汇宝精简版字段END=====================================================
  38. $title_no = array(1=>'Ⅰ',2=>'Ⅱ',3=>'Ⅲ',4=>'Ⅳ');
  39. $title_m_no = array(1=>'一',2=>'二',3=>'三',4=>'四');
  40. $flag_no = 1;
  41. $flag_m_no = 1;
  42. $translate_type = array(1=>' Chinese and English Translation (英汉互译)',2=>'English into Chinese (英译中)',3=>'Chinese into English (中译英)');
  43. ?>