1 Star 0 Fork 0

白菜酱 / SoftCupRankingSystem

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
do_editexam.php 705 Bytes
Copy Edit Raw Blame History
rexskz authored 2014-08-11 21:48 . 修正了页面包含的逻辑问题
<?php
if (!defined("IN_SCRS")) exit();
if (!isset($_GET['id'])) {
relocate("javascript:window.history.go(-1)");
die();
}
$item = get_topic_items($_GET['id']);
foreach ($item as $e) {
$user->delete_item($e['item_id']);
}
$exam = array("topicname" => $_POST['title'], "comment" => $_POST['desc']);
$user->change_topic($_GET['id'], $exam);
$length = isset($_POST['point_title']) ? count($_POST['point_title']) : 0;
for ($i = 0; $i < $length; $i++) {
$item = array(
"topic_id" => $_GET['id'],
"itemname" => $_POST['point_title'][$i],
"maxscore" => $_POST['point_score'][$i],
"comment" => $_POST['point_desc'][$i]
);
$user->add_item($item);
}
relocate("?action=manexam");
?>
PHP
1
https://gitee.com/xm1994/SoftCupRankingSystem.git
git@gitee.com:xm1994/SoftCupRankingSystem.git
xm1994
SoftCupRankingSystem
SoftCupRankingSystem
master

Search