修改数据 - 数据泄露信息管理系统
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>修改数据</title>
</head>
<body background="../../images/DNA1.jpg">
<style>
.aa {
font-family: '楷体';
font-size: 2.5rem;
position: absolute;
top: 50px;
left: 250px;
background: transparent;
text-shadow: 0 0 4px rgb(155, 116, 116),
0 0 4px rgb(155, 116, 116),
0 0 4px rgb(155, 116, 116);
}
<pre><code> .ab {
font-family: '楷体';
font-size: 2.5rem;
position: absolute;
top: 50px;
left: 250px;
background: transparent;
text-shadow: 0 0 4px rgb(155, 116, 116),
0 0 4px rgb(155, 116, 116),
0 0 4px rgb(155, 116, 116);
}
.ac {
width: 450px;
height: 500px;
margin-top: 100px;
margin-left: 100px;
border: 3px solid rgb(149, 108, 108);
border-radius: 50px;
background-color: rgb(211, 208, 206);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.ad {
display: flex;
width: 450px;
height: 500px;
margin-top: 150px;
margin-left: 550px;
border: 3px solid rgb(149, 108, 108);
border-radius: 50px;
background-color: rgb(211, 208, 206);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.abc {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-family: '楷体';
margin-top: 5px;
}
.query-menu {
width: 400px;
height: 40px;
margin-bottom: 25px;
margin-left: 30px;
align-self: flex-start;
}
.modify-data input {
width: 400px;
height: 40px;
margin-bottom: 25px;
margin-left: 30px;
}
.normal-button {
width: 200px;
height: 50px;
border-radius: 30px;
background-color: rgb(97, 151, 97);
text-align: center;
margin-top: 25px;
margin-left: 30px;
}
</style>
<div class="ac">
<div class="aa">修改数据</div>
<div class="abc">
<form action="modify.php" method="post" id="query-num-form">
<h3>修改数据</h3>
<select name="query-menu" class="query-menu">
<option value="Method">泄露原因</option>
<option value="Entity">公司名</option>
<option value="Year">泄露时间</option>
<option value="Records">泄露量</option>
</select>
<div class="modify-data">
修改数据的编号/公司名:
<input type="text" name="input1" placeholder="请输入...">
</div>
<div class="modify-data">
修改为:
<input type="text" name="input2" placeholder="请输入...">
</div>
<button type="submit" class="normal-button">提交</button>
<button type="button" onclick="window.location.href = '../index.php'" style="width:150px;height:50px;border-radius: 30px;background-color: rgb(97, 151, 97);text-align: center;margin-top: 5px;">返回上一个页面</button>
</form>
</div>
</div>
<div class="ad">
<?php
if (!$xianshi_result) {
printf("Error: %s\n", mysqli_error($link));
exit();
}
echo '<table>';
// 输出表头
echo '<tr>';
foreach ($data[0] as $key => $value) {
echo '<th>' . $key . '</th>';
}
echo '</tr>';
// 输出数据行
foreach ($data as $row) {
echo '<tr>';
foreach ($row as $value) {
echo '<td>' . $value . '</td>';
}
echo '</tr>';
}
echo '</table>';
?>
</div>
</code></pre>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/oz5N 著作权归作者所有。请勿转载和采集!