<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $res = array('data' => ''); $list = array('data' => array()); if (isset($_GET['group_ID'])) { $_POST['Account'] = $_SESSION['Account']; $_POST['group_ID'] = $_GET['group_ID']; $aso = $api->excute($_GET['controller'], $_GET['method']); if ($aso['success'] == false) { $_SESSION['errno'] = $res['data']; header('location:/school/404.php'); } $list = $api->excute('studentAssocation', 'showMember'); if ($list['success'] == false) { $_SESSION['errno'] = $list['data']; header('location:/school/404.php'); } } $_POST['Account'] = $_SESSION['Account']; $res = $api->excute('studentAssocation', 'showStudentAssocation'); if ($res['success'] == false) { $_SESSION['errno'] = $res['data']; header('location:/school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; session_start(); $api = new APICaller(); $controller = $_GET['type'] . 'Award'; $_POST['Award_time'] = $_POST['applyYear'] . $_POST['applyTerm']; $result = $api->excute($controller, 'addAward'); if ($result['success'] != 1) { echo $result['data']; exit; } if ($_GET['type'] == 'student') { header('location:/school/student/stu_pride.php'); } else { header('location:/school/teacher/tea_medal.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $list = array(); $stu = array(); $api = new APICaller(); if (isset($_GET['Course_year_term'])) { $_POST['Course_year_term'] = $_GET['Course_year_term']; $result = $api->excute('course', 'showTeacherYearCourse'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } $list = $result['data']; } if (isset($_GET['Course_ID'])) { $_POST['Course_ID'] = $_GET['Course_ID']; $result = $api->excute('course', 'studentList'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } $stu = $result['data']; } if (isset($_GET['count'])) { $_POST['Course_ID'] = $_GET['Course_ID']; for ($i = 0; $i < $_GET['count']; $i++) { $_POST['Stu_ID'] = $_POST['Stu_ID' . $i]; $_POST['Score'] = $_POST['stu_grade' . $i]; $result = $api->excute('course', 'updateStudentScore'); if ($result['success'] != 1) {
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $year = $_GET['year'] . $_GET['term']; $_POST['Course_year_term'] = $year; $api = new APICaller(); $result = $api->excute('course', 'showStudentYearCourseTable'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } $num = 0; $id = array(); foreach ($result['data'] as $tmp) { $id[$num] = $tmp['Course_ID']; $time = $tmp['Teach_time']; $day = substr($time, 0, 1); $subday = substr($time, 1, 1); $result['data'][$num]['day'] = intval($day); $result['data'][$num]['subday'] = intval($subday) / 2 + 1; $num++; } $res = array(); for ($i = 1; $i <= 6; $i++) { $res[$i] = array(); for ($j = 1; $j <= 7; $j++) { $res[$i][$j] = '<td></td>'; } } foreach ($result['data'] as $tmp) { $res[$tmp['subday']][$tmp['day']] = '<td>' . $tmp['Course'] . '<br>' . $tmp['Classroom'] . '</td>';
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['id'])) { $_POST['Req_id'] = $_GET['id']; $_POST['Verify_statue'] = $_GET['Verify_statue']; $tmp = $api->excute($_GET['controller'], $_GET['method']); if ($tmp['success'] != 1) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } } $result = $api->excute('fund', 'showNonVerifyFund'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } //exit();
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['controller'])) { $_POST['Account'] = $_SESSION['Account']; $result = $api->excute($_GET['controller'], $_GET['method']); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } } $result = $api->excute('staff', 'showInfo'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['id'])) { $_POST['Award_ID'] = $_GET['id']; $_POST['Verify_statue'] = $_GET['Verify_statue']; $tmp = $api->excute($_GET['controller'], $_GET['method']); if ($tmp['success'] != 1) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } } $tea = $api->excute('teacherAward', 'teacherAwardList'); if ($tea['success'] != 1) { $_SESSION['errno'] = $tea['data']; header('location:/school/404.php'); } $stu = $api->excute('studentAward', 'studentAwardList'); if ($stu['success'] != 1) { $_SESSION['errno'] = $stu['data']; header('location:/school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $result = $api->excute('classUnion', 'classLeader'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } $class_name = $result['data']['Class_name']; $class_id = $result['data']['Class_ID']; $num = $result['data']['count']; $position = '无'; $power = 0; for ($i = 0; $i < $num; $i++) { if ($result['data'][$i]['Stu_ID'] == $_SESSION['Account']) { $position = $result['data'][$i]['Position']; $power = $result['data'][$i]['Power']; } } $power = 2;
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; session_start(); $api = new APICaller(); $result; $count = $_POST['count']; $_POST['Eva_stu_id'] = $_SESSION['Account']; for ($i = 0; $i < $count; $i++) { $_POST['Eva_course_id'] = $_POST['Course_ID' . $i]; $_POST['Score'] = $_POST['Score' . $i]; $_POST['Context'] = $_POST['Context' . $i]; $result = $api->excute('evaluate', 'addEvaluateItem'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } } header('location:/school/student/stu_evaluate.php');
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $year = $_GET['year'] . $_GET['term']; $_POST['Course_year_term'] = $year; $api = new APICaller(); $detail = array(); $num = 0; $result = $api->excute('course', 'showStudentYearCourseTable'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } foreach ($result['data'] as $tmp) { $_POST['Course_ID'] = $tmp['Course_ID']; $detail[$num] = $api->excute('course', 'showDetailCourse'); if ($detail[$num]['success'] != 1) { $_SESSION['errno'] = $detail[$num]['data']; header('location:/school/404.php'); } $detail[$num] = $detail[$num]['data'][0]; $num++; } for ($i = 0; $i < $num; $i++) { $collapse = 'collapse' . $i; $res = '<div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#courseDetail" href="#' . $collapse . '"> ' . $detail[$i]['Course'] . ' </a>
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; session_start(); $api = new APICaller(); $_POST['Course_year_term'] = $_GET['Course_year_term']; $result = $api->excute('score', 'showScore'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } echo json_encode($result);
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $tea = array(); $com = array(); $pro = array(); $result = $api->excute('teacher', 'getAuthority'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } $power = $result['data'][0]['Authority']; if (isset($_GET['controller'])) { $result = $api->excute($_GET['controller'], $_GET['method']); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } } if (isset($_GET['page'])) { $i = $_GET['page']; if ($i == '1') { $tmp = $api->excute('teacher', 'committeeList'); if ($tmp['success'] != 1) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } $com = $tmp['data']; } if ($i == '2') {
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $type = $_SESSION['Type']; if ($type == 'student') { $message = $api->excute('message', 'studentmessage'); if ($message['success'] == false) { $_SESSION['errno'] = $message['data']; header('location:/school/404.php'); } }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['controller'])) { $tmp = $api->excute($_GET['controller'], $_GET['method']); if ($tmp['success'] != 1) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } } $result = $api->excute('classUnion', 'showClassList'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['controller'])) { $tmp = $api->excute($_GET['controller'], $_GET['method']); if ($tmp['success'] != 1) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } } $result = $api->excute('studentAssocation', 'studentAssocationList'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $year = $_GET['year'] . $_GET['term']; $_POST['Course_year_term'] = $year; $api = new APICaller(); $result = $api->excute('course', 'showTeacherYearCourse'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); } $num = 0; $id = array(); foreach ($result['data'] as $tmp) { $id[$num] = $tmp['Course_ID']; $time = $tmp['Teach_time']; $day = substr($time, 0, 1); $subday = substr($time, 1, 1); $result['data'][$num]['day'] = intval($day); $result['data'][$num]['subday'] = intval($subday) / 2 + 1; $num++; } $res = array(); for ($i = 1; $i <= 6; $i++) { $res[$i] = array(); for ($j = 1; $j <= 7; $j++) { $res[$i][$j] = '<td></td>'; } } foreach ($result['data'] as $tmp) { $res[$tmp['subday']][$tmp['day']] = '<td>' . $tmp['Course'] . '<br>' . $tmp['Classroom'] . '</td>';
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $year = $_GET['year'] . $_GET['term']; $_POST['Course_year_term'] = $year; $api = new APICaller(); $detail = array(); $num = 0; $select = $api->excute('course', 'showStudentYearCourseTable'); $id = array(); if ($select['success'] != 1) { echo $select['data']; exit; } foreach ($select['data'] as $tmp) { array_push($id, $tmp['Course_ID']); } $choose = $api->excute('course', 'showYearCourse'); if ($choose['success'] != 1) { echo $choose['data']; exit; } $i = 0; foreach ($choose['data'] as $tmp) { if (!in_array($tmp['Course_ID'], $id)) { $time = '星期' . substr($tmp['Teach_time'], 0, 1) . ' 第' . substr($tmp['Teach_time'], 1, 2) . '节'; $collapse = 'collapse' . $i; $res = '<div class="panel panel-default"> <div class="panel-heading"> <span class="panel-title"> <a data-toggle="collapse" data-parent="#courseChoose" href="#' . $collapse . '">
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['controller'])) { if (isset($_GET['id'])) { $_POST['Sta_ID'] = $_GET['id']; } else { $_POST['Account'] = $_SESSION['Account']; } $aso = $api->excute($_GET['controller'], $_GET['method']); if ($aso['success'] == false) { $_SESSION['errno'] = $aso['data']; header('location:/school/404.php'); } } $_POST['Account'] = $_SESSION['Account']; $result = $api->excute('staff', 'staffList'); if ($result['success'] == false) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); }
<?php $message = array(); $log = array(); $mylog = array(); $member = array('data' => array()); if (isset($_GET['controller'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $_POST['Res_group_id'] = $_GET['Res_group_id']; $message = array(); $tmp = $api->excute($_GET['controller'], $_GET['method']); if ($tmp['success'] == false) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } $type = $_GET['type']; $id; if ($type == 'teacher') { $id = 'Tea_ID'; $member = $api->excute('researchGroup', 'showGroupMember'); if ($member['success'] == false) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } } else { $id = 'Stu_ID'; } foreach ($tmp['data'] as $t) { if ($t[$id] == $_SESSION['Account']) { array_push($mylog, $t);
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $result = $api->excute('evaluate', 'showCourseEvaluate'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); if (isset($_GET['controller'])) { $tmp = $api->excute($_GET['controller'], $_GET['method']); if ($tmp['success'] != 1) { $_SESSION['errno'] = $tmp['data']; header('location:/school/404.php'); } } $result = $api->excute('course', 'showCourseList'); if ($result['success'] != 1) { $_SESSION['errno'] = $result['data']; header('location:/school/404.php'); }
<?php session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $result = $api->excute('account', 'login'); if ($result['success'] == true) { $_SESSION['Account'] = $_POST['ID']; $_SESSION['Type'] = $_POST['Type']; switch ($_SESSION['Type']) { case 'student': header('location:/school/student/stu_info.php'); break; case 'teacher': header('location:/school/teacher/tea_info.php'); break; case 'staff': $tmp = $api->excute('staff', 'position'); $_SESSION['Position'] = $tmp['data'][0]['Position']; header('location:/school/employee/emp_info.php'); break; } } else { $_SESSION['errno'] = $result['data']; header('location: /school/404.php'); }
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/school/service/APICaller.php'; $api = new APICaller(); $_POST['Award_time'] = $_GET['year'] . $_GET['term']; $controller = $_GET['type'] . 'Award'; $result = $api->excute($controller, 'showYearAward'); if ($result['success'] != 1) { echo $result['data']; exit; } $num = count($result['data']); for ($i = 0; $i < $num; $i++) { $collapse = 'collapse' . $i; echo '<div class="panel panel-warning"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#courseDetail" href=#' . $collapse . '> ' . $result['data'][$i]['Award_name'] . ' </a> <span class="badge pull-right">' . $result['data'][$i]['Verify_statue'] . '</span> </h4> </div> <div id=' . $collapse . ' class="panel-collapse collapse"> <div class="panel-body"> <p>申请时间:' . $result['data'][$i]['Award_time'] . '</p> <p>审核状态:' . $result['data'][$i]['Verify_statue'] . '</p> <p>荣誉描述:' . $result['data'][$i]['Award_intro'] . '</p> </div> </div> </div>';