Esempio n. 1
0
function startParse()
{
    $teacherSchedule = get_teacher_schedule("file/TKB.xls");
    $studentSchedule = get_student_schedule("file/SDD.xls", $teacherSchedule);
    clear_data();
    foreach ($teacherSchedule as $s) {
        dal_insert_schedule($s);
    }
    foreach ($studentSchedule as $s) {
        dal_insert_schedule($s);
    }
    echo "Parse OK!";
}
Esempio n. 2
0
<meta charset="UTF-8">
<?php 
require_once 'Excel/reader.php';
require_once '../../fuway-core/db.php';
require_once '../../fuway-core/dal.php';
require_once 'parserTeacher.php';
require_once 'parserStudent.php';
$teacherSchedule = get_teacher_schedule("TKB.xls");
$studentSchedule = get_student_schedule("01_Fall 2014_SDD chuyen nganh_Block1&6W1_start 09_09_2014_update 11_09_2014.xls", $teacherSchedule);
echo count($teacherSchedule) . "<br/>";
//print_r($teacherSchedule);
echo count($studentSchedule) . "<br/>";
//print_r($studentSchedule);
/*date_default_timezone_set('UTC');
$time_stamp = "1410393600";
echo date("Y-m-d",$time_stamp);*/