<div ng-controller="StartedPapersListCtrl" class="wrapper" cg-busy="{promise:loading, backdrop:true, message:loadingMsg}">
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="form-inline">
			<button class="btn btn-default" ng-if="curUserRole.code=='processManagement'" ng-click="toImpStartPapers()">
				<i class="glyphicon glyphicon-plus"> 批量导入</i>
			</button>
			<table class="table table-striped">
				<thead>
					<tr>
						<th>序号</th>
						<th>试卷名称</th>
						<th>课程</th>
						<th>启用时间</th>
					</tr>										
				</thead>
				<tbody>
					<tr ng-repeat="row in pageModel.array">
						<td>{{$index+1}}</td>
						<td>{{row.paperName}}</td>
						<td>{{row.courseCode}} - {{row.courseName}}</td>
						<td>{{row.startTime | date:'yyyy-MM'}}</td>
					</tr>
				</tbody>

			</table>
			<div>
			<form id="downloadForm" action="#"></form>
			</div>
			<nav ng-if="pageModel.totalPage > 1">
				<ul class="pagination">
					<li class="{{pageModel.curPage == 1 ? 'disabled' : ''}}" ng-click="goPage(pageModel.curPage - 1)">
						<a aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
			      	</li>
				    <li ng-repeat="i in [9,8,7,6,5,4,3,2,1]" ng-if="pageModel.curPage - i > 0" ng-click="goPage(pageModel.curPage - i)">
				    	<a>{{pageModel.curPage - i}}</a>
			    	</li>
				    <li class="active"><a href="#">{{pageModel.curPage}}</a></li>
				    <li ng-repeat="i in [1,2,3,4,5,6,7,8,9]" ng-if="pageModel.curPage + i <= pageModel.totalPage" ng-click="goPage(pageModel.curPage + i)">
				    	<a>{{pageModel.curPage + i}}</a>
			    	</li>
				    <li class="{{pageModel.curPage == pageModel.totalPage ? 'disabled' : ''}}" ng-click="goPage(pageModel.curPage + 1)">
				      	<a aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
				    </li>
				</ul>
			</div>
		</div>
	</div>
</div>