/**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     PlanificationActivity::setDataOperationBusiness($instanceDataBase);
     PlanificationActivity::getBusiness();
     PlanificationActivity::getDescriptionBusiness();
 }
                             </div>               
                           </div>
                           <?php 
            }
            ?>
  
                     </div>
</div>

<div id="div_general_2">
                &nbsp;&nbsp;<B>2013</B>
                <div id="div_button_2">
                    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="clase"><img src="view/img/icons/top.png"/></a></div>
                <div id="div_container_2" >                   
            <?php 
            $activity = new PlanificationActivity($registry[$nameDataBase]);
            if ($_SESSION['pk_id_role'] == ROLE_TITULAR) {
                $list = $activity->getListActivityByHolder($_SESSION['pk_id_holder']);
            }
            if ($_SESSION['pk_id_role'] == ROLE_PROFESOR) {
                $list = $activity->getListActivityByTeacherCourseHard($_SESSION['PK_ID_COURSE_HARD'], $_SESSION['pk_id_person']);
            }
            if ($_SESSION['pk_id_role'] == ROLE_ESTUDIANTE) {
                $list = $activity->getListActivityByStudentCourseHard($_SESSION['PK_ID_COURSE_HARD']);
            }
            foreach ($list as $item) {
                ?>
     
                         &nbsp;&nbsp;&nbsp;&nbsp;<div style=" width:100%; margin-bottom: 5px;   ">
                         <div class="activity type">                         
                         <table width="100%" >            
示例#3
0
        
    });
</script>  

<?php 
$action = 'INSERT';
if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'EDIT') {
    $action = $_GET['ACTION'];
}
$preview_flag = 0;
$pk_id_student = 0;
if ($_GET['ACTION'] == 'EDIT' && isset($_GET['pk_id_planification_activity'])) {
    $data = array();
    $pk_id_actvity = $_GET['pk_id_planification_activity'];
    $act = new PlanificationActivity($registry[$nameDataBase]);
    $datax = $act->getListPlanificationActivity($pk_id_actvity);
    $data = $datax[0];
}
$matterCourse = new AssignHCourseHardMatterTeacher($registry[$nameDataBase]);
?>

<form id="course_data_form" method="POST" action="?page=course/take_care_admin&ACTION=INSERT&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;
?>