123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>好题本</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo.'/css/math_htb/reset.css';?>">
- <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo.'/css/math_htb/base_new.css';?>">
- <link href="<?php echo Yii::app()->request->hostInfo.'/css/math_htb/math_good_topic.css';?>" rel="stylesheet">
- <style>
- /* 背景图片-水印 -开始 */
- .pdf-b5 {
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/math_htb/watermark.png';?>);
- background-repeat: repeat-y;
- background-size: 100%;
- }
- /* 背景图片-水印 -结束 */
- .edition-title{
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition.png';?> ) no-repeat;
- }
- .edition-title-two{
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-two.png';?> ) no-repeat;
- }
- .edition-title .text{
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-one.png';?> ) repeat-x;
- }
- .edition-title-two .text{
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-c.png';?> ) repeat-x;
- }
- .edition-title-three{
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-three.png';?> ) no-repeat;
- }
- </style>
- </head>
- <body>
- <!--好题本主要内容-->
- <?php
- $_node_id_arr = $node_id_arr;
- if (!function_exists('getHtmlContent')) {
- function getHtmlContent($_node_id_arr,&$_htb_text_arr,&$topic_info_arr,&$topic_method_use,&$method_video){
- foreach ($_node_id_arr as $node_arr) {
- include('level.php');
- if (isset($node_arr['children']) && is_array($node_arr['children']) && $node_arr['children']) {
- getHtmlContent($node_arr['children'],$_htb_text_arr,$topic_info_arr,$topic_method_use,$method_video);
- }
- }
- }
- }
- if (!function_exists('getHtmlAnswer')) {
- function getHtmlAnswer($_node_id_arr,&$_htb_text_arr,&$topic_info_arr){
- foreach ($_node_id_arr as $node_arr) {
- include('htb_anwser.php');
- if (isset($node_arr['children']) && is_array($node_arr['children']) && $node_arr['children']) {
- getHtmlAnswer($node_arr['children'],$_htb_text_arr,$topic_info_arr);
- }
- }
- }
- }
- ?>
- <div class="pdf-b5">
- <div class="pdf-content">
- <p class="paper-title"><?php echo $htb_set_name;?></p>
- <!-- 版本 -->
- <?php getHtmlContent($node_id_arr,$htb_text_arr,$topic_info_arr,$topic_method_use,$method_video);?>
- <div style="page-break-after: always;"></div>
- <!--好题本答案解析-->
- <div class="standard-answer">
- <div class="standard-answer-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/img-standard-answer-title.png';?>" alt="答案解析">
- </div>
- <?php getHtmlAnswer($node_id_arr,$htb_text_arr,$topic_info_arr);?>
- </div>
- </div>
- </div>
- </body>
- </html>
|