12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:x="urn:schemas-microsoft-com:office:excel"
- xmlns="http://www.w3.org/TR/REC-html40">
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <meta http-equiv="Content-type" content="text/html;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>
-
- <{loop($product):}>
- <fieldset class="layui-elem-field layui-field-title">
- <legend><{$v['name']}></legend>
- </fieldset>
- <table class="layui-table">
- <colgroup>
- <col width="150">
- <col width="200">
- <col>
- </colgroup>
- <thead>
- <tr>
- <{loop($v['question']):}>
- <th><{$v1['name']}></th>
- <{endloop}>
- </tr>
- </thead>
- <tbody>
- <{foreach($v['order'] as $ko => $vo):}>
- <tr height="80">
- <{loop($v['question']):}>
- <td>
- <{if(isset($vo['answer'][$v2['id']]) && $vo['answer'][$v2['id']]):}>
- <{if(isset($v2['content']) && $v2['content']):}>
- <{foreach(explode(',', $vo['answer'][$v2['id']]) as $ko1 => $vo1):}>
- <{if(isset($v2['content'][$vo1]['ctype'])):}>
- <{if($v2['content'][$vo1]['ctype'][0] == 2):}>
- <{$vo1}>
- <{else:}>
- <{if($v2['content'][$vo1]['pic']):}>
- <a class="dever-img" id="answer_<{$v1['id']}>_<{$v2['id']}>_<{$ko1}>"><img src="<{$v2['content'][$vo1]['pic']}>" layer-src="<{$v2['content'][$vo1]['pic']}>" height="80"/> </a>
- <{else:}>
- <{$v2['content'][$vo1]['title']}>
- <{endif;}>
- <{endif;}>
- <{endif;}>
- <{endforeach}>
- <{else:}>
- <{if(strstr($vo['answer'][$v2['id']], 'http')):}>
- <a class="dever-img" id="answer_<{$v1['id']}>_<{$v2['id']}>"><img src="<{$vo['answer'][$v2['id']]}>" layer-src="<{$vo['answer'][$v2['id']]}>" height="80"/></a>
- <{else:}>
- <{$vo['answer'][$v2['id']]}>
- <{endif;}>
- <{endif;}>
- <{endif;}>
- </td>
- <{endloop}>
- </tr>
- <{endforeach}>
- </tbody>
- </table>
- <{endloop}>
- <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>
|