12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .test-paper {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .test-paper-title {
- font-size: 24px;
- font-weight: bold;
- }
- .test-paper-user {
- font-size: 14px;
- margin-left: 20px;
- }
- .title-text {
- font-size: 16px;
- font-weight: 600;
- }
- </style>
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- {if !empty($info['article_paper_name']) && !empty($info['user_name'])}
- <div class="test-paper">
- <p class="test-paper-title">{$info['article_paper_name']}</p>
- <p class="test-paper-user">答题人:{$info['user_name']}</p>
- </div>
- {/if}
- {foreach $list as $key => $value}
- <div>
- <p class="title-text">
- {$key+1}、{$value['title']}
- {if $value['type']==0}
- (单选)
- {/if}
- {if $value['type']==1}
- (多选)
- {/if}
- </p>
- {foreach $value['options'] as $key=>$val}
- <label style="margin-right: 20px;">{$val['id']}. {$val['text']}</label>
- {/foreach}
- {if $value['type']==0}
- <span class='text-success' style="display: block">正确答案:
- {foreach $value['options'] as $key=>$val}
- {if $val['answer'] == 1}
- <span class='text-success'>{$val['id']}</span>
- {/if}
- {/foreach}
- </span>
- {/if}
- {if $value['type']==1}
- <span class='text-success' style="display: block">正确答案:
- {foreach $value['options'] as $key=>$val}
- {if $val['answer'] == 1}
- <span class='text-success'>{$val['id']}</span>
- {/if}
- {/foreach}
- </span>
- {/if}
- <p class="text">
- 你的答案:<span>{$value['answer']}</span>
- </p>
- </div>
- {/foreach}
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- </script>
- {/block}
|