7 Star 0 Fork 0

王冰炜/PracticalProject

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
grade.php 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
Ender29 提交于 5年前 . third
<!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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang-bingwei/practical-project.git
git@gitee.com:wang-bingwei/practical-project.git
wang-bingwei
practical-project
PracticalProject
master

搜索帮助