$pdays = $this->pdays; $number_of_days_per_program = count($pdays); // how many points and how much time has a program $getsum_points_and_time = $this->getsum_points_and_time; // we divide the time in HOURS and MINUTES $total_hours_per_program = floor($getsum_points_and_time[0]->s_time / 60); $total_minutes_per_program = $getsum_points_and_time[0]->s_time % 60; $configs = $this->getConfigSettings; $full_image_size = $configs[0]->prog_fullpx; $full_image_proportional = $configs[0]->prog_f_prop; $thumb_image_size = $configs[0]->prog_thumbpx; $thumb_image_proportional = $configs[0]->prog_t_prop; //echo '<font color="red">'.$program->freetrial.'</font>'; // if it's not a registered user we redirect him to REGISTER page $my = JFactory::getUser(); $program_bought = guruModelguruProgram::find_if_rogram_was_bought($my->id, $program->id); if ($my->id < 1) { header("Location: index.php?option=com_user&task=register#content"); } $document = JFactory::getDocument(); $document->setTitle($program->metatitle); $document->setMetaData('keywords', $program->metakwd); $document->setMetaData('description', $program->metadesc); ?> <h2><?php echo $program->name; ?> </h2> <table class="" cellpadding="0" cellspacing="5" border="0"> <tr>