9 Star 0 Fork 0

清水雷鸣/CUMTCTF-Platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
radio.php 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
define("_needlogin", "1");
define("_access", "1");
include_once("include/db.config.php");?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<meta charset="utf-8"/>
<?php include("include/head.php"); ?>
<link rel="stylesheet" href="./source/radio.css"/>
<body>
<?php include("include/nav.php");
if(!isset($end)){ $results['radio']=json_decode($results['radio']);
?>
<form action="challenge_radio.php" method="post" id="form">
<div class="container" id="con">
<p><?= $_SESSION['num'] ?>.<?= $results['content'] ?></p>
<div class="input">
<?php foreach($results['radio'] as $key =>$value){ ?>
<input type="radio" name="<?= $results['id'] ?>" value="<?php echo chr(97+$key); ?>"/><span><?= $value; ?></span><br/>
<?php } ?>
<!-- <input type="radio" name="--><?//= $results['id'] ?><!--" value="b"/><span>--><?//= $results['radio']['1']; ?><!--</span><br/>-->
<!-- <input type="radio" name="--><?//= $results['id'] ?><!--" value="c"/><span>--><?//= $results['radio']['2']; ?><!--</span><br/>-->
<!-- <input type="radio" name="--><?//= $results['id'] ?><!--" value="d"/><span>--><?//= $results['radio']['3']; ?><!--</span><br/>-->
</div>
<br/>
<button type="submit" value="提交" class="radius" id="alert-box" name="submit"/>提交</button>
</div>
</form>
<button class="radius" id="reset">点击重做</button>
<?php }else{ ?>
<h2>您的分数为<?= $_SESSION['mark'] ?></h2>
<h3>请不要随意刷新页面,避免造成绩丢失</h3>
<button class="radius" id="reset">点击重做</button>
<?php } ?>
<?php //include("include/script.php"); ?>
<script src="./source/jquery.js"language="JavaScript"></script>
<script src="./source/radio.js" language="JavaScript"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/godFather/CUMTCTF-Platform.git
git@gitee.com:godFather/CUMTCTF-Platform.git
godFather
CUMTCTF-Platform
CUMTCTF-Platform
master

搜索帮助