<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<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>
		<form name="form1" action="content_att.php" method="post">
			<input type="hidden" name="dopost" value="save">
			<table align="center" class="table maintable my-3">
				<tr>
					<td bgcolor="#f8fafb" colspan="3">文档自定义属性</td>
				</tr>
				<tr>
					<td colspan="3">
						<div class="alert alert-info mb-0">自定义属性说明：文档发布时选择属性后arclist标签加上flag='自定义属性'，例：{dede:arclist flag='h,c'}h,c表示组合属性头条和推荐</div>
					</td>
				</tr>
				<tr bgcolor="#f8f9fa" align="center">
					<td width="6%">id</td>
					<td width="16%">排序</td>
					<td align="left">属性</td>
				</tr>
				<?php
				$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
				$dsql->Execute();
				$k=0;
				while($row = $dsql->GetObject())
				{
					$k++;
				?>
				<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
				<tr align="center">
					<td><?php echo $row->att;?></td>
					<td><input type="text" name="sortid_<?php echo $k?>" value="<?php echo $row->sortid;?>"  id="sortid_<?php echo $k?>" class="admin-input-xs"></td>
					<td align="left"><input type="text" name="attname_<?php echo $k?>" value="<?php echo $row->attname;?>" id="attname_<?php echo $k?>" class="admin-input-sm"></td>
				</tr>
				<?php }?>
				<input type="hidden" name="idend" value="<?php echo $k?>">
				<tr>
					<td colspan="3" bgcolor="#f8fafb" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
				</tr>
			</table>
		</form>
	</body>
</html>