log_info.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .test-paper {
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. }
  9. .test-paper-title {
  10. font-size: 24px;
  11. font-weight: bold;
  12. }
  13. .test-paper-user {
  14. font-size: 14px;
  15. margin-left: 20px;
  16. }
  17. .title-text {
  18. font-size: 16px;
  19. font-weight: 600;
  20. }
  21. </style>
  22. </style>
  23. <div class="row">
  24. <div class="col-sm-12">
  25. <div class="ibox float-e-margins">
  26. <div class="ibox-content">
  27. {if !empty($info['article_paper_name']) && !empty($info['user_name'])}
  28. <div class="test-paper">
  29. <p class="test-paper-title">{$info['article_paper_name']}</p>
  30. <p class="test-paper-user">答题人:{$info['user_name']}</p>
  31. </div>
  32. {/if}
  33. {foreach $list as $key => $value}
  34. <div>
  35. <p class="title-text">
  36. {$key+1}、{$value['title']}
  37. {if $value['type']==0}
  38. (单选)
  39. {/if}
  40. {if $value['type']==1}
  41. (多选)
  42. {/if}
  43. </p>
  44. {foreach $value['options'] as $key=>$val}
  45. <label style="margin-right: 20px;">{$val['id']}. {$val['text']}</label>
  46. {/foreach}
  47. {if $value['type']==0}
  48. <span class='text-success' style="display: block">正确答案:
  49. {foreach $value['options'] as $key=>$val}
  50. {if $val['answer'] == 1}
  51. <span class='text-success'>{$val['id']}</span>
  52. {/if}
  53. {/foreach}
  54. </span>
  55. {/if}
  56. {if $value['type']==1}
  57. <span class='text-success' style="display: block">正确答案:
  58. {foreach $value['options'] as $key=>$val}
  59. {if $val['answer'] == 1}
  60. <span class='text-success'>{$val['id']}</span>
  61. {/if}
  62. {/foreach}
  63. </span>
  64. {/if}
  65. <p class="text">
  66. 你的答案:<span>{$value['answer']}</span>
  67. </p>
  68. </div>
  69. {/foreach}
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. {/block}
  75. {block name="script"}
  76. <script>
  77. </script>
  78. {/block}