<!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">
		<script src="/static/web/js/jquery.min.js"></script>
		<script src="/static/web/js/bootstrap.min.js"></script>
		<script src="/static/web/js/admin.main.js"></script>
	</head>
	<body>
		<div class="container-fluid">
			<ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
				<li class="breadcrumb-item"><a href="ai_main.php">AI模型管理</a></li>
				<li class="breadcrumb-item"><a href="ai_edit.php?id=<?php echo $ai['id'];?>"><?php echo $ai['title'];?></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="form1" action="ai_model_edit.php" method="post" enctype="multipart/form-data">
						<input type="hidden" name="dopost" value="saveedit">
						<input type="hidden" name="aiid" value="<?php echo $myModel['aiid']?>">
						<input type="hidden" name="id" value="<?php echo $myModel['id']?>">
						<div class="table-responsive">
							<table class="table table-borderless">
								<tbody>
									<tr>
										<td width="260">所属模型</td>
										<td>id:<?php echo $ai['id'];?> <?php echo $ai['title'];?></td>
									</tr>
									<tr>
										<td width="260">Model</td>
										<td><input type="text" name="model" id="model" value="<?php echo $myModel['model']?>" class="admin-input-lg" required></td>
									</tr>
									<tr>
										<td>名称</td>
										<td><input type="text" name="title" id="title" value="<?php echo $myModel['title']?>" class="admin-input-lg" required></td>
									</tr>
									<tr>
										<td>排序</td>
										<td><input type="text" name="sortrank" id="sortrank" value="<?php echo $myModel['sortrank']?>" class="admin-input-lg" required>（由低到高）</td>
									</tr>
									<tr>
										<td>描述</td>
										<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myModel['description']?></textarea></td>
									</tr>
									<tr>
										<td colspan="2" align="center">
											<button type="submit" class="btn btn-success btn-sm">保存</button>
											<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
											<button type="button" class="btn btn-outline-success btn-sm" onclick="history.back()">返回</button>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>