/**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     AssignStudentCourseHard::setDataOperationBusiness($instanceDataBase);
     AssignStudentCourseHard::getBusiness();
     AssignStudentCourseHard::getDescriptionBusiness();
 }
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'];
?>
&pk_id_matter_task=<?php 
echo $_GET['pk_id_matter_task'];
?>
&fk_id_assign_student_course_hd=<?php 
echo $fk_id_assign_student_course_hd;
}
$preview_flag = 0;
$pk_id_student = 0;
if ($_GET['ACTION'] == 'EDIT' && isset($_GET['pk_id_planification_activity'])) {
    $proceso_editar = false;
    $data = array();
    $pk_id_actvity = $_GET['pk_id_planification_activity'];
    $attclass = new AttendanceClass($registry[$nameDataBase]);
    $data = $attclass->getListAttendanceClassByActivity($pk_id_actvity);
    if (count($data) > 0) {
        $proceso_editar = true;
    } else {
        $proceso_editar = false;
    }
}
$studentCourse = new AssignStudentCourseHard($registry[$nameDataBase]);
$list = $studentCourse->getListByCourseHard($_GET['PK_ID_COURSE_HARD']);
?>

<form id="course_data_form" method="POST" action="?page=course/take_care_admin&ACTION=INSERT&ENTITY=REGISTER&pk_id_actvity=<?php 
echo $pk_id_actvity;
?>
&PK_ID_COURSE_HARD=<?php 
echo $_GET['PK_ID_COURSE_HARD'];
?>
" enctype="multipart/form-data" >
<table class="form">

    <input type="hidden" name="ACTION" value="<?php 
echo $action;
?>