{x2;include:header}
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="pages">
            {x2;include:examnav}
			<div class="content">
				<div class="col-xs-3" style="width: 20%">
					<div class="content-box padding">
                        {x2;include:menu}
					</div>
				</div>
				<div class="col-xs-9 nopadding" style="width: 80%">
					{x2;tree:$sections,section,sid}
					{x2;if:$basic['basicknows'][v:section['sectionid']]}
					<div class="content-box padding">
						<h2 class="title">{x2;v:section['section']}</h2>
						<ul class="list-unstyled list-txt">
                            {x2;tree:$basic['basicknows'][v:section['sectionid']],know,kid}
							<li class="border">
								{x2;$knows[v:know]['knows']}
								<span class="tool pull-right">
									{x2;if:array_sum($knows[v:know]['knowsnumber'])}
									{x2;if:$record[v:know]}
									<a class="btn btn-default" href="index.php?exam-app-lesson-paper&knowsid={x2;v:know}">继续练习</a>
                                    {x2;else}
									<a class="btn btn-default" href="index.php?exam-app-lesson-paper&knowsid={x2;v:know}">开始练习</a>
									{x2;endif}
									{x2;else}
									<a class="btn btn-default" href="javascript:;">暂无试题</a>
									{x2;endif}
								</span>
								<span class="tool pull-right">
									<span>共 {x2;eval: echo array_sum($knows[v:know]['knowsnumber'])} 题{x2;if:$record[v:know]}，上次做到第 {x2;$record[v:know]['exernumber']} 题{x2;endif}</span>
								</span>
							</li>
                            {x2;endtree}
						</ul>
					</div>
					{x2;endif}
                    {x2;endtree}
				</div>

			</div>
            {x2;include:footer}
		</div>
	</div>
</div>
</body>
</html>