} $graph->Stroke(); exit; } else { if ($_REQUEST['act'] == 'duty') { $student_code = empty($_SESSION['student_code']) ? '' : trim($_SESSION['student_code']); //学生学号 $sdate = empty($_REQUEST['search_sdate']) ? '' : trim($_REQUEST['search_sdate']); //起始日期 $edate = empty($_REQUEST['search_edate']) ? '' : trim($_REQUEST['search_edate']); //截止日期 $list = get_dutys($class_code, $student_code, "", $sdate, $edate, " d.date_ ", " d.date_ "); if (count($list) < 1) { die("目前没有数据!"); } $student_name = get_student_name($class_code, $student_code); $title = $student_code . "-" . $student_name . "同学日常规范打分走势图"; $X = array(); //横轴 $datas = array(); foreach ($list as $k => $v) { $X[] = $v["date_"] . "日"; $datas[] = $v["score"]; } // print_r($X);echo '<br>'; // print_r($datas);echo '<br>'; // die("test"); require ROOT_PATH . 'data/jpgraph/jpgraph_line.php'; require ROOT_PATH . 'data/jpgraph/jpgraph_scatter.php'; // Setup the graph $graph = new Graph($graph_width, $graph_height, "auto");
<th><div class="text-center">Teacher Type</div></th> <th><div class="text-center">Duration</div></th> <th><div class="text-center">Day</div></th> <th><div class="text-center">Semester</div></th> <th><div class="text-center">Year</div></th> <th><div class="text-center">Instrument</div></th> <th><div class="text-center">Number of Lessons</div></th> <th><div class="text-center">Tuition Due</div></th> <th><div class="text-center">Tuition Paid</div></th> <th><div class="text-center">Tuition Owed</div></th> '; echo '</tr></thead>'; echo '<tbody>'; //fill in rows with data while ($row = mysql_fetch_assoc($results)) { $tmp_student_name = get_student_name($row['student']); // call to get student names $student_name = mysql_fetch_assoc($tmp_student_name); $tmp_teacher_name = get_teacher_name($row['teacher']); // call to get teacher names $teacher_name = mysql_fetch_assoc($tmp_teacher_name); $tmp_payment = get_payment(0, $row['lesson_key']); $payment = 0; while ($rows = mysql_fetch_assoc($tmp_payment)) { $payment = $payment + $rows['amount_paid']; } $payment_due = $row['tuition_due'] - $payment; echo '<tr> <td><div class="text-center"><a href="#" onclick="Confirm.render(\'Delete Lesson?\',\'delete_lesson\',\'', $row['lesson_key'], '\')"> <img class="table-icon" src="./res/image/rm-record.png"> </a></div></td>
</div><!-- /.row --> <div class="row"> <div class="col-md-12"> <div class="box box-success"> <div class="box-header with-border"> <h3 class="box-title">Average Scores</h3> </div> <div class="box-body"> <div class="chart"> <canvas id="barChart" style="height:350px"></canvas> </div> <div class="legend-box"> <h3 style="text-align:center;"><?php echo get_student_name($student_id); ?> Average = <span style="background-color:#c1c7d1;"> </span> Class Average = <span style="background-color:#00A65A;"> </span></h3> </div> </div> </div> </div> <div class="col-md-6"> <div class="box box-solid bg-teal-gradient"> <div class="box-header"> <i class="fa fa-th"></i>
var_dump($section_ids); foreach ($section_ids as $section_id) { $school_id = _get_sch_id_by_section($section_id); if (is_hw_uploaded($section_id, $date)) { $home_work = _frame_hw($section_id, $date); send_hw_msg($school_id, $phone, $section_id, $home_work); } else { // get section id - array_push($section_arr, $section_id); } } // end of foreach // send msg to parents : if section!-"" , update hold, inset section ,send msg to parents if (count($section_arr) != 0) { $sec = implode(',', $section_arr); $hold = 1; $is_send = 0; _update_onhold_section($missed_call_id, $sec, $hold, $is_send); $school_id = _get_sch_id_by_section($section_id); $student_name = get_student_name($phone, $sec); $home_work = " Dear Parents,Homework msg will be sent as soon as it is uploaded for " . $student_name . ".Thank YOU. "; send_hw_msg($school_id, $phone, $section_id, $home_work); } else { _update_missed_call_stat($missed_call_id); } } // end of else not on hold } // end of while } // end of while infinite loop
<?php require_once '../model/database.php'; require_once '../model/parents_db.php'; require_once '../model/students_db.php'; require_once '../model/teachers_db.php'; date_default_timezone_set('America/New_York'); $time_zone = date_default_timezone_get(); $formatting = 'Y'; $current_date_object = new DateTime(); $current_date_f = $current_date_object->format($formatting); if ($_SESSION['type'] == "student") { $userName = get_student_name($user); } else { if ($_SESSION['type'] == "teacher") { $userName = get_teacher_name($user); } else { if ($_SESSION['type'] == "parent") { $userName = get_parent_name($user); } else { if ($_SESSION['type'] == "admin") { $userName = "******"; } } } } ?> <footer> <br/><br/>