<?php require '../dao/ScieTechDao.php'; session_start(); $stc_student = $_SESSION['u_sid']; $sc_annual = $_REQUEST['sc_annual']; $stDao = new ScieTechDao(); $obj_arr = $stDao->getScieTechComp($stc_student, $sc_annual); echo json_encode($obj_arr);
<?php require '../dao/ScieTechDao.php'; require '../dao/SchoTypeDao.php'; session_start(); $pa_student = $_SESSION['u_sid']; $pa_name = $_REQUEST['pa_name']; $pa_journal = $_REQUEST['pa_journal']; $pa_level = $_REQUEST['pa_level']; $pa_vol = $_REQUEST['pa_vol']; $pa_ei_sci = $_REQUEST['pa_ei_sci']; $pa_team_num = $_REQUEST['pa_team_num']; $pa_team_order = $_REQUEST['pa_team_order']; $pa_time = $_REQUEST['pa_time']; $pa_discuss_score = (double) $_REQUEST['pa_discuss_score']; $sc_annual = $_REQUEST['sc_annual']; $scieTechDao = new ScieTechDao(); $id = $scieTechDao->applyPaper($pa_student, $pa_name, $pa_journal, $pa_level, $pa_vol, $pa_ei_sci, $pa_team_num, $pa_team_order, $pa_time, $pa_discuss_score); if ($id == 0) { echo false; exit; } $schoTypeDao = new SchoTypeDao(); $result = false; if ($schoTypeDao->setScieTechPaper($pa_student, $sc_annual, $pa_level, $pa_team_order, $pa_discuss_score, $pa_ei_sci, $id) > 0) { $result = true; } echo $result;
require '../dao/ScieTechDao.php'; require '../dao/SchoTypeDao.php'; session_start(); $in_student = $_SESSION['u_sid']; $in_name = $_REQUEST['in_name']; $in_account = $_REQUEST['in_account']; $in_team_num = (int) $_REQUEST['in_team_num']; $in_team_order = $_REQUEST['in_team_order']; $in_team_ratio = (double) $_REQUEST['in_team_ratio']; $in_type = $_REQUEST['in_type']; $in_time = $_REQUEST['in_time']; $in_discuss_score = (double) $_REQUEST['in_discuss_score']; $in_remark = $_REQUEST['in_remark']; $sc_annual = $_REQUEST['sc_annual']; if ($in_team_num <= 3) { $in_team_ratio = 1; $in_team_order = ""; } $scieTechDao = new ScieTechDao(); $id = $scieTechDao->applyAttention($in_student, $in_name, $in_account, $in_team_num, $in_team_order, $in_type, $in_time, $in_discuss_score, $in_remark); if ($id == 0) { echo false; exit; } $schoTypeDao = new SchoTypeDao(); $result = false; if ($schoTypeDao->setScieTechInvention($in_student, $sc_annual, $in_discuss_score, $in_team_ratio, $in_type, $id) > 0) { $result = true; } echo $result;
<?php require '../dao/ScieTechDao.php'; session_start(); $in_student = $_SESSION['u_sid']; $sc_annual = $_REQUEST['sc_annual']; $stDao = new ScieTechDao(); $obj_arr = $stDao->getInvention($in_student, $sc_annual); echo json_encode($obj_arr);
<?php require '../dao/ScieTechDao.php'; session_start(); $stp_student = $_SESSION['u_sid']; $sc_annual = $_REQUEST['sc_annual']; $stDao = new ScieTechDao(); $obj_arr = $stDao->getScieTechProject($stp_student, $sc_annual); echo json_encode($obj_arr);
<?php require '../dao/ScieTechDao.php'; session_start(); $pa_student = $_SESSION['u_sid']; $sc_annual = $_REQUEST['sc_annual']; $stDao = new ScieTechDao(); $obj_arr = $stDao->getPaper($pa_student, $sc_annual); echo json_encode($obj_arr);
require '../dao/ScieTechDao.php'; require '../dao/SchoTypeDao.php'; session_start(); $stc_student = $_SESSION['u_sid']; $stc_name = $_REQUEST['stc_name']; $stc_rate = $_REQUEST['stc_rate']; $stc_prize = $_REQUEST['stc_prize']; $stc_team_status = $_REQUEST['stc_team_status']; $stc_team_num = (int) $_REQUEST['stc_team_num']; $stc_team_order = $_REQUEST['stc_team_order']; $stc_team_ratio = (double) $_REQUEST['stc_team_ratio']; $stc_host = $_REQUEST['stc_host']; $stc_time = $_REQUEST['stc_time']; $stc_remark = $_REQUEST['stc_remark']; $sc_annual = $_REQUEST['sc_annual']; if ($stc_team_num <= 3) { $stc_team_order = ""; $stc_team_ratio = 1; } $scieTechDao = new ScieTechDao(); $id = $scieTechDao->applyScieTechComp($stc_student, $stc_name, $stc_rate, $stc_prize, $stc_team_status, $stc_team_num, $stc_team_order, $stc_host, $stc_time, $stc_remark); if ($id == 0) { echo false; exit; } $schoTypeDao = new SchoTypeDao(); $result = false; if ($schoTypeDao->setScieTechComp($stc_student, $sc_annual, $stc_rate, $stc_prize, $stc_team_ratio, $id) > 0) { $result = true; } echo $result;
<?php require '../dao/ScieTechDao.php'; require '../dao/SchoTypeDao.php'; session_start(); $stp_student = $_SESSION['u_sid']; $stp_name = $_REQUEST['stp_name']; $stp_rate = $_REQUEST['stp_rate']; $stp_prize = $_REQUEST['stp_prize']; $stp_team_num = (int) $_REQUEST['stp_team_num']; $stp_team_order = $_REQUEST['stp_team_order']; $stp_team_ratio = (double) $_REQUEST['stp_team_ratio']; $stp_time = $_REQUEST['stp_time']; $stp_remark = $_REQUEST['stp_remark']; $sc_annual = $_REQUEST['sc_annual']; if ($stp_team_num <= 3) { $stp_team_order = ""; $stp_team_ratio = 1; } $scieTechDao = new ScieTechDao(); $id = $scieTechDao->applyScieTechProject($stp_student, $stp_name, $stp_rate, $stp_prize, $stp_team_num, $stp_team_order, $stp_time, $stp_remark); if ($id == 0) { echo false; exit; } $schoTypeDao = new SchoTypeDao(); $result = false; if ($schoTypeDao->setScieTechProject($stp_student, $sc_annual, $stp_prize, $stp_team_ratio, $id) > 0) { $result = true; } echo $result;