|
楼主 |
发表于 2018-9-8 15:48:56
|
显示全部楼层
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Correct1 extends CI_Controller {
/*加载试卷*/
public function index(){
$this->load->view('index/correct.html');
}
}
这是控制器的,我已经改到最简了。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>批阅试卷 -@ACAT</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() .'style/index' ?>/css/correct.css">
</head>
<body>
<div class="logo">
<img src="<?php echo base_url() .'style/index/' ?>images/home/logo.png">
</div>
<div class="nav1">
<input type="submit" value="返回上一层" onclick="location.href='<?php echo site_url('index/test/test_add_html') ?>'">
<input type="submit" value="返回主页面" onclick="location.href='<?php echo site_url('index/home') ?>'">
</div>
<div class="nav">
<form method="POST" action="<?php echo site_url('index/category/cate_mod') ?>">
<!-- <label>姓名:<?php $this->load->library('session');
$inf=$this->session->userdata('name');
echo $inf; ?></label>
<label>学号:<?php $this->load->library('session');
$inf=$this->session->userdata('id');
echo $inf; ?></label>
<label>专业:<?php $this->load->library('session');
$inf=$this->session->userdata('major');
echo $inf; ?></label>
<label>方向:<?php $this->load->library('session');
$inf=$this->session->userdata('group');
echo $inf; ?></label>
<br><br>
-->
<div class ="content">
<!--<?php foreach($test as $paper): ?>
题目:· <?php echo $paper[0][0]['sub_que']?>
<!-- <br><br>
<!-- 考生答案: <?php echo $paper[0][0]['sub_ans'][]?>
<br><br>
参考答案: <?php echo $paper[0][0]['sub_ans']?>
<br><br>
<?php endforeach;?> -->
这块是最开始的前端代码,我也都注销掉了
</div>
<br><br><br><br><br><br><br><br><br>
<div class="footer">
<input type="button" value="重新批阅" name="" >
<br><br>
<input type="submit" value="批阅下一卷" name="" >
</div>
</form>
</div>
<br><br><br><br><br><br><br><br><br>
<br><br>
</body>
</html> |
|