Esempio n. 1
0
<?php

include 'includes/header.php';
$task = new DBTask();
$taskAll = $task->findAll();
$dbtaskSubmit = new DBTaskSubmit();
$taskSubmit = new TaskSubmit();
$submitData = $dbtaskSubmit->findAll();
$student = new DBStudent();
$stu = $student->findAll();
//var_dump($submitData);
?>
<link rel="stylesheet" type="text/css" href="css/table/component.css">
<link rel="stylesheet" type="text/css" href="css/grade.css">  
<div id="modal" class="modal fade" role="dialog" aria-labelledby="newEventModal">
      <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
              <h4 class="modal-title" id="ModalLabel">任务权重</h4>
            </div>
            <div class="modal-body">
            <div class="task-box row">
                <div class="col-md-10 col-md-offset-1">
                    <p>为各个作业分配0-10的权重</p>
                    <?php 
if ($taskAll) {
    foreach ($taskAll as $key => $value) {
        # code...
        ?>
                    <div class="tasks">
Esempio n. 2
0
 public function findMaterailStudent($taskID)
 {
     $db = new DBTaskSubmit();
     return $db->findByAnd(array('task_id'), array('='), array($taskID));
 }
Esempio n. 3
0
 function submitByTaskId($taskId)
 {
     $dbsubmit = new DBTaskSubmit();
     return $dbsubmit->findByAnd(array('task_id'), array('='), array($taskId));
 }