<div ng-controller="HomeCurUserReportCtrl" class="m-t">
<div  cg-busy="{promise:reportLoading,message:'正在加载...'}" class="row m-l m-r animated zoomIn am-short" style="clear: left">
<div class="pull-left m-r-sm" style="width:200px;height:150px;" ng-repeat="m in menus">
	<a ui-sref="{{m.state}}" class="text-3x  bg-white font-thin lter text-infoer m-b-xl text-center block panel wrapper" >      
      <i class="{{m.icon}}" ></i>
      <span class="block text-lg">
      	{{m.title}}
      	<span class="badge" ng-if="m.state == 'task.myTasks'">{{todoTaskCount}}/{{totalTaskCount}}</span>
      </span>
    </a>
</div>
</div>
	<div class="row m-l m-r animated zoomIn am-short" style="clear: left" ng-if="isQuesAuditor">
		<div style="border-bottom: solid 1px #c3c3c3;">审题报表</div>
		<table class="table table-striped">
			<thead>
				<tr>
					<th>序号</th>
					<th>负责的课程</th>
					<th>当前草稿数量</th>
					<th>审核通过的题量</th>
					<th>审核拒绝的数量</th>
					<th>审核题量总计</th>
				</tr>								
			</thead>
			<tbody>
				<tr ng-repeat="row in statMyAuditJobArr">
					<td><span ng-if="row.courseId!=null">{{$index+1}}</span></td>
					<td>{{row.courseName}}</td>
					<td>{{row.draftNum}}</td>
					<td>{{row.approvedNum}}</td>
					<td>{{row.rejectedNum}}</td>
					<td>{{row.statTotalNum}}</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="row m-l m-r animated zoomIn am-short" style="clear: left" ng-if="isQuesInputer">
		<div style="border-bottom: solid 1px #c3c3c3;">录题报表</div>
		<table class="table table-striped">
			<thead>
				<tr>
					<th>序号</th>
					<th>负责的课程</th>
					<th>已录入的数量</th>
				</tr>								
			</thead>
			<tbody>
				<tr ng-repeat="row in statMyInputJobArr">
					<td><span ng-if="row.courseId!=null">{{$index+1}}</span></td>
					<td>{{row.courseName}}</td>
					<td>{{row.inputNum}}</td>
				</tr>
			</tbody>
		</table>
	</div>

	<div class="row m-l m-r animated zoomIn am-short" style="clear: left" >
		<div style="border-bottom: solid 1px #c3c3c3;">试卷更正管理</div>
		<div ng-controller="CorrigendumListCtrl" class="wrapper">
			<div class="panel panel-default">
				<div class="panel-body">
					<div class="form-inline">
						<!--				<button ui-sref="corrigendum.add" class="btn btn-default">-->
						<!--					<i class="glyphicon glyphicon-plus"> 添加课程更正</i>-->
						<!--				</button>-->

						<div class="input-group col-md-3">
							<div class="input-group-addon"><i class="glyphicon glyphicon-search"></i></div>
							<input type="text" class="form-control" ng-model="search.keyword" placeholder="课程代码或名称"
								   ng-change="goPage(1)"/>
						</div>
						<select class="form-control" ng-model="search.batch" ng-change="goPage(1)">
							<option value="">所有</option>
							<option value="{{b}}" ng-selected="search.batch == b" ng-repeat="b in batchs">{{b}}
							</option>
						</select>
					</div>
					<table class="table table-striped">
						<thead>
						<tr>
							<th nowrap="nowrap" class="col-md-1">考次</th>
							<th nowrap="nowrap" class="col-md-1">课程代码</th>
							<th nowrap="nowrap" class="col-md-3">课程名称</th>
							<!--						<th nowrap="nowrap" class="col-md-1">更正内容</th>-->
							<th nowrap="nowrap" class="col-md-1">涉及省份数量</th>
<!--							<th nowrap="nowrap" class="col-md-4">操作</th>-->
						</tr>
						</thead>
						<tbody>
						<tr ng-repeat="row in pageModel.array">
							<td>{{row.batch}}</td>
							<td><a ng-click="detail(row.id)">{{row.courseCode}}</a></td>
							<td><a ng-click="detail(row.id)">{{row.courseName}}</a></td>
							<!--						<td ng-bind-html="row.content"></td>-->
							<td>{{row.num}}</td>
<!--							<td>-->
<!--								<button ng-click="edit(row.id)" class="btn btn-default btn-xs">-->
<!--									<i class="glyphicon glyphicon-edit">编辑</i>-->
<!--								</button>-->
<!--								<button ng-click="delete(row.id)" class="btn btn-danger btn-xs">-->
<!--									<i class="glyphicon glyphicon-trash">删除</i>-->
<!--								</button>-->
<!--							</td>-->
						</tr>
						</tbody>

					</table>
					<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>
					</nav>
				</div>

			</div>
		</div>
	</div>
</div>

    
