123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <title>调查数据展示</title>
- <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
- <script src="../script/lib/layui/layui.js"></script>
- </head>
- <body>
-
- <div class="layui-container">
- <blockquote class="layui-elem-quote">产品:<{$product.name}> 用户:<{$userinfo.username}><{if(isset($userinfo.mobile) && $userinfo.mobile):}> (<{$userinfo.mobile}>)<{endif}></blockquote>
- <div class="layui-progress layui-progress-big" lay-showPercent="yes">
- <div class="layui-progress-bar layui-bg-blue" lay-percent="<{$page}>"></div>
- </div>
- <{loop($question):}>
- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
- <legend>第<{$k}>页</legend>
- </fieldset>
- <div class="layui-collapse" lay-filter="test">
- <{loop($v):}>
- <div class="layui-colla-item">
- <h2 class="layui-colla-title"><{$v1['name']}></h2>
- <div class="layui-colla-content layui-show">
- <{if(isset($v1['content'])):}>
- <{loop($v1['content']):}>
- <blockquote class="layui-elem-quote layui-quote-nm" <{if(isset($v2['checked'])):}>style="border-color: #1f25e2;"<{endif}>><{if($v2['pic']):}><{$v2['title']}><{if(isset($v2['desc']) && $v2['desc']):}>(<{$v2['desc']}>)<{endif}><br /><img src="<{$v2['pic']}>" style="width:150px;" /><{else:}><{$v2['title']}><{endif}> <{if(isset($v2['checked']) && !is_numeric($v2['checked'])):}><{$v2['checked']}><{endif}></blockquote>
- <{endloop}>
- <{else:}>
- <{if(isset($v1['answer'])):}>
- <p><{$v1['answer']}></p>
- <{else:}>
- <p>未作答</p>
- <{endif}>
- <{endif}>
- </div>
- </div>
- <{endloop}>
- </div>
- <{endloop}>
- </div>
- <script>
- layui.use(['element', 'layer', 'jquery'], function(){
- var element = layui.element;
- var layer = layui.layer;
- var $ = layui.jquery;
- layer.ready(function() {
- $(".dever-img").each(function()
- {
- layer.photos({
- photos: '#' + $(this).attr('id')
- });
- });
- });
- });
- </script>
- </body>
- </html>
|