예제 #1
0
<?php

require '../dao/SpiritualDao.php';
session_start();
$user_id = $_SESSION['u_sid'];
$sc_annual = $_REQUEST['sc_annual'];
$aDao = new SpiritualDao();
$obj_arr = $aDao->getAppraisalRatio($user_id, $sc_annual);
echo json_encode($obj_arr);
예제 #2
0
<?php

require '../dao/SpiritualDao.php';
require '../dao/SchoTypeDao.php';
session_start();
$app_student = $_SESSION['u_sid'];
$app_ratio = $_REQUEST['app_ratio'];
$app_score = $_REQUEST['app_score'];
$sc_annual = $_REQUEST['sc_annual'];
$sDao = new SpiritualDao();
$id = $sDao->applyAppraisal($app_student, $app_ratio);
if ($id == 0) {
    echo false;
    exit;
}
$stDao = new SchoTypeDao();
$result = false;
if ($stDao->setSpiritualAppraisal($app_student, $sc_annual, $app_score, $id) > 0) {
    $result = true;
}
echo $result;
예제 #3
0
<?php

require '../dao/SpiritualDao.php';
require '../dao/SchoTypeDao.php';
session_start();
$spr_student = $_SESSION['u_sid'];
$spr_name = $_REQUEST['spr_name'];
$spr_item = $_REQUEST['spr_item'];
$spr_rate = $_REQUEST['spr_rate'];
$spr_time = $_REQUEST['spr_time'];
$sc_annual = $_REQUEST['sc_annual'];
$sDao = new SpiritualDao();
$id = $sDao->applySpiritualReward($spr_student, $spr_name, $spr_item, $spr_rate, $spr_time);
if ($id == 0) {
    echo false;
    exit;
}
$stDao = new SchoTypeDao();
$result = false;
if ($stDao->setSpiritualReward($spr_student, $sc_annual, $spr_name, $spr_item, $spr_rate, $id) > 0) {
    $result = true;
}
echo $result;
예제 #4
0
<?php

require '../dao/SpiritualDao.php';
session_start();
$app_student = $_SESSION['u_sid'];
$sc_annual = $_REQUEST['sc_annual'];
$sDao = new SpiritualDao();
$obj_arr = $sDao->getAppraisal($app_student, $sc_annual);
echo json_encode($obj_arr);
예제 #5
0
<?php

require '../dao/SpiritualDao.php';
require '../dao/SchoTypeDao.php';
session_start();
$do_student = $_SESSION['u_sid'];
$do_score = (double) $_REQUEST['do_score'];
$sc_annual = $_REQUEST['sc_annual'];
$sDao = new SpiritualDao();
$id = $sDao->applyDormitory($do_student, $do_score);
if ($id == 0) {
    echo false;
    exit;
}
$stDao = new SchoTypeDao();
$result = false;
if ($stDao->setSpiritualDormitory($do_student, $sc_annual, $do_score, $id) > 0) {
    $result = true;
}
echo $result;
예제 #6
0
<?php

require '../dao/SpiritualDao.php';
session_start();
$spr_student = $_SESSION['u_sid'];
$sc_annual = $_REQUEST['sc_annual'];
$sDao = new SpiritualDao();
$obj_arr = $sDao->getSpiritualReward($spr_student, $sc_annual);
echo json_encode($obj_arr);
예제 #7
0
<?php

require '../dao/SpiritualDao.php';
session_start();
$do_student = $_SESSION['u_sid'];
$sc_annual = $_REQUEST['sc_annual'];
$sDao = new SpiritualDao();
$obj_arr = $sDao->getDormitory($do_student, $sc_annual);
echo json_encode($obj_arr);