代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<div class="container" style="margin: 0px auto;width: 400px;">
<table class="table table-bordered">
<thead>
<tr>
<th>选手号</th>
<th>分数</th>
</tr>
</thead>
<tbody>
<?php
include_once("conn.php");
$query = "select * from user";
$pdotest->query('set names utf8');
$result=$pdotest->query($query);
$result->setFetchMode(PDO::FETCH_ASSOC);
$i=0;
while($row=$result->fetch()){
$i++;
echo "<tr>";
echo "<th>".$row['id']."</th>";
echo "<th><input type='number' name='socre'><button class='btn' id=".$row['id']." name=".$i.">确认修改</buttton></th>";
echo "</tr>";
}
?>
</tbody>
</table>
<div style="text-align: center;">
<button type="button" class="btn btn-default">评分完成</button>
</div>
</div>
</body>
<!-- <script type="text/javascript">
$(document).ready(function(){
$(".btn").bind("click",function(){
var id=$(this).attr('id');
// alert(id);
});
});
$ajax({
type: 'POST',
url: 'insert.php',
data:
})
</script> -->
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。