123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?php
- $use_version = '';
- if(isset(Yii::app()->session['coachInfo']->use_version))
- {
- $use_version = Yii::app()->session['coachInfo']->use_version;
- }else
- {
- $use_version = Yii::app()->session['coachInfo']['use_version'];
- }
- if(!$use_version)
- {
- $use_version = 100;
- }
- $version_number = implode('',explode('.',$use_version));
- $_num = '';
- if(strlen($version_number)<7)
- {
- for($i=0;$i<7-strlen($version_number);$i++)
- {
- $_num.='0';
- }
- }
- $version_number=(int)$version_number.$_num;
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>试题编辑</title>
- <link rel="stylesheet" type="text/css" href="/css/base.css">
- <script type="text/javascript" src="/js/jquery.min.js"></script>
- <script src="/js/layer/layer.js"></script>
- <style type="text/css">
- <?php if($version_number<2250000):?>
- /*.main-content-inner{*/
- /*display: block;*/
- /*width: 1000px;*/
- /*height: 520px;*/
- /*}*/
- /*.footer{*/
- /*margin-top:-20px;*/
- /*width: auto;*/
- /*text-align: center;*/
- /*}*/
- <?php else:?>
- /*.main-content-inner{*/
- /*display: block;*/
- /*width: 780px;*/
- /*height: 500px;*/
- /*}*/
- /*.footer{*/
- /*margin-top:-10px;*/
- /*width: auto;*/
- /*text-align: center;*/
- /*}*/
- <?php endif;?>
- .title{
- font-weight: bold;
- font-size: 16px;
- padding:0 0 0 15px;
- line-height: 30px;
- height: 30px;
- /*color:#fff;*/
- /*background-color: #0e8e54;*/
- }
- .content{
- padding:10px 15px;
- height:80%;
- overflow: auto;
- word-wrap:break-word;
- }
- .button{
- width:100px;
- height:35px;
- border:1px solid #2977ff;
- background:#2977ff;
- color:#fff;
- font-size:14px;
- cursor:pointer;
- line-height: 35px;
- display: inline-block;
- }
- .close-tips{
- padding-right: 20px;
- cursor: pointer;
- }
- .atta{display: inline-block;margin-left:20px;cursor: pointer}
- .red-tips{
- color: red;
- }
- </style>
- </head>
- <body>
- <div class="main-content-inner">
- <div class="title"><?php echo $title?></div>
- <div class="content">
- <?php echo $content?>
- <?php echo $files?>
- </div>
- <!--
- <div class="footer">
- <span class="button closeWindow">我知道了</span>
- </div>
- -->
- </div>
- </body>
- </html>
- <script>
- $(function(){
- $('.closeWindow').click(function(){
- evaluationClient.CallLocalFunc("close_window","")
- });
- $('.content').on('click','.atta',function(){
- url=$(this).attr('href');
- title=$(this).attr('title');
- window.location.href='<?php echo $this->createUrl('notification/download')?>?url='+url+'&title='+title;
- })
- })
- </script>
|