|  | {dede:config.pagesize value='30'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>挑错管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
	</head>
	<body>
		<div class="container-fluid">
			<ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
				<li class="breadcrumb-item active">挑错管理</li>
			</ol>
			<div class="card shadow-sm">
				<div class="card-header">挑错管理</div>
				<div class="card-body">
					<form name="form2">
						<div class="table-responsive">
							<table class="table table-borderless table-hover">
								<thead>
									<tr>
										<td scope="col">选择</td>
										<td scope="col">id</td>
										<td scope="col">挑错人</td>
										<td scope="col">文档名称</td>
										<td scope="col">出错类型</td>
										<td scope="col">挑错时间</td>
										<td scope="col">错误文档</td>
										<td scope="col">修改建议</td>
									</tr>
								</thead>
								<tbody>
									{dede:datalist}
									<tr>
										<td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td>
										<td>{dede:field.id/}</td>
										<td>{dede:field.mid function='username(@me)'/}</td>
										<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title/}</a></td>
										<td>{dede:field.type function='typename(@me)'/}</td>
										<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
										<td>{dede:field.errtxt/}</td>
										<td>{dede:field.oktxt/}</td>
									</tr>
									{/dede:datalist}
									<tr>
										<td colspan="8">
											<a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
											<a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
											<a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</form>
					{dede:pagelist listsize='2'/}
				</div>
			</div>
		</div>
		<script>
			function getOneItem() {
				var allSel = '';
				if (document.form2.id.value) return document.form2.id.value;
				for (i = 0; i < document.form2.id.length; i++) {
					if (document.form2.id[i].checked) {
						allSel = document.form2.id[i].value;
						break;
					}
				}
				return allSel;
			}
			function getCheckboxItem() {
				var allSel = '';
				if (document.form2.id.value) return document.form2.id.value;
				for (i = 0; i < document.form2.id.length; i++) {
					if (document.form2.id[i].checked) {
						if (allSel == "")
							allSel = document.form2.id[i].value;
						else
							allSel = allSel + "`" + document.form2.id[i].value;
					}
				}
				return allSel;
			}
			function selAll() {
				for (i = 0; i < document.form2.id.length; i++) {
					if (!document.form2.id[i].checked) {
						document.form2.id[i].checked = true;
					}
				}
			}
			function noSelAll() {
				for (i = 0; i < document.form2.id.length; i++) {
					if (document.form2.id[i].checked) {
						document.form2.id[i].checked = false;
					}
				}
			}
			function delArc(id) {
				var qstr = getCheckboxItem();
				location = "erraddsave.php?id=" + qstr + "&dopost=delete";
			}
		</script>
	</body>
</html>
 |