Пример #1
0
 /**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     MatterTask::setDataOperationBusiness($instanceDataBase);
     MatterTask::getBusiness();
     MatterTask::getDescriptionBusiness();
 }
});
});    
</script>  

<?php 
$action = 'INSERT';
if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'EDIT') {
    $action = $_GET['ACTION'];
}
$preview_flag = 1;
// solo lectura de la tarea
$pk_id_student = 0;
$data = array();
if ($_GET['ACTION'] == 'EDIT' && isset($_GET['pk_id_matter_task'])) {
    $pk_id_matter_task = $_GET['pk_id_matter_task'];
    $matter = new MatterTask($registry[$nameDataBase]);
    $datax = $matter->getListMatterTask($pk_id_matter_task);
    if (count($datax) > 0) {
        $data = $datax[0];
    }
}
$studentCourse = new AssignStudentCourseHard($registry[$nameDataBase]);
$data_shc = array($_GET['PK_ID_COURSE_HARD'], $_SESSION['pk_id_student']);
$fk_id_assign_student_course_hd = $studentCourse->getIdStudentCourseHard($data_shc);
?>

<form id="course_data_form" method="POST" action="?page=course/take_care_admin&ACTION=<?php 
echo $action;
?>
&PK_ID_COURSE_HARD=<?php 
echo $_GET['PK_ID_COURSE_HARD'];
        ?>
</p></th>                                                
                                <th  width="80px"><p><?php 
        echo 'DESCRIPCION';
        ?>
</p></th>                                                        
                                <th  width="80px">
   
                                </th>                                               
                    </tr>
                    </thead>
                <tbody>
                            <?php 
        if ($_SESSION['pk_id_role'] == ROLE_PROFESOR || $_SESSION['pk_id_role'] == ROLE_ESTUDIANTE) {
            $task_list = array();
            $task = new MatterTask($registry[$nameDataBase]);
            $task_list = $task->getListMatterTaskByActivity($item['pk_id_planification_activity']);
            foreach ($task_list as $item_task) {
                ?>
                            <tr class="odd gradeX">
                                <td> &nbsp;<?php 
                echo $item_task['title_task'];
                ?>
</td>
                                <td> &nbsp;<?php 
                echo $item_task['description_task'];
                ?>
</td>
                                <td style="width: 16%; ">                                                 
                                    <span style="float:right;">                                                                                                                                               
                                            <?php