Exemplo n.º 1
0
 function tabled_forum_explode_nodesFN($depth, $id_parent, $id_profile, $order, $id_student, $mode = 'standard')
 {
     // returns an html list
     $lObj = new Ilist();
     if ($order == 'chrono') {
         $data = $this->forum_explode_nodes_iterativeFN($depth, $id_parent, $id_profile, $order, $id_student, $mode);
         $lObj->initList('1', '1', 1);
     } else {
         // = 'struct'
         $data = $this->forum_explode_nodesFN($depth, $id_parent, $id_profile, $order, $id_student, $mode);
         $lObj->initList(0, '', 1);
     }
     $lObj->setList($data);
     $tabled_index = $lObj->getList();
     return $tabled_index;
 }
Exemplo n.º 2
0
 function setList($data)
 {
     if (gettype($data) != 'array') {
         $this->error = translateFN("Il formato dei dati non è valido");
     } else {
         $str = $this->start_tag;
         foreach ($data as $riga) {
             if (is_array($riga)) {
                 $lObj = new Ilist();
                 $lObj->initList($this->ordered, $this->type, $this->startvalue);
                 $lObj->setList($riga);
                 $str .= $lObj->getList();
             } else {
                 if ($this->type) {
                     $str .= "<li class=\"" . $this->style . "_li\" type=" . $this->type . ">{$riga}</li>\n";
                 } else {
                     $str .= "<li>{$riga}</li>\n";
                 }
             }
         }
         $str .= $this->end_tag;
         $this->data = $str;
     }
 }
Exemplo n.º 3
0
        $row = array(translateFN('Nome') => $nome, translateFN('Titolo') => $titolo, translateFN('Data') => $data, translateFN('Path') => $media_path, translateFN('Naviga') => "<a href=\"../browsing/view.php?id_course={$id_course}&id_node=" . $id_course . "_" . $id_nodo_iniziale . "\"><img src=\"img/timon.png\" border=0></a>", translateFN('Report') => "<a href=\"author_report.php?id_course={$id_course}\"><img src=\"img/report.png\" border=0></a>", translateFN('Aggiungi') => "<a href=\"addnode.php?id_course={$id_course}\"><img src=\"img/_nodo.png\" border=0></a>");
        array_push($course_dataHa, $row);
    }
    $caption = translateFN("Corsi inviati e attivi il") . " {$ymdhms}";
    $tObj = BaseHtmlLib::tableElement('id:authorTable, class:doDataTable', array_keys(reset($course_dataHa)), $course_dataHa, null, $caption);
    $tObj->setAttribute('class', 'default_table doDataTable');
    $total_course_data = $tObj->getHtml();
    $optionsAr['onload_func'] = 'initDoc();';
    $layout_dataAr['CSS_filename'] = array(JQUERY_UI_CSS, JQUERY_DATATABLE_CSS);
    $layout_dataAr['JS_filename'] = array(JQUERY, JQUERY_UI, JQUERY_DATATABLE, JQUERY_DATATABLE_DATE, JQUERY_NO_CONFLICT);
}
if (isset($err_msg)) {
    $total_course_data = translateFN("Nessun corso assegnato all'autore.");
}
// menu' table
$lObj = new Ilist();
$data = array(crea_link(translateFN('report'), 'author_report.php'), crea_link(translateFN('modifica il tuo profilo'), "edit_author.php?id={$sess_id_user}"));
$lObj->setList($data);
$menu_ha = $lObj->getList();
//$banner = include ("$root_dir/include/banner.inc.php");
$title = translateFN('Home Autore');
//if (empty($user_messages)) {
//  $user_messages = translateFN('Non ci sono nuovi messaggi');
//}
// SERVICE:  BANNER
$banner = (include ROOT_DIR . '/include/banner.inc.php');
$content_dataAr = array('course_title' => translateFN('Lista dei servizi'), 'banner' => $banner, 'menu' => $menu_ha, 'status' => $msg, 'user_name' => $user_name, 'user_type' => $user_type, 'help' => $help, 'form' => $total_course_data, 'edit_profile' => $userObj->getEditProfilePage(), 'agenda' => $user_agenda->getHtml(), 'messages' => $user_messages->getHtml());
/**
 * Sends data to the rendering engine
 */
ARE::render($layout_dataAr, $content_dataAr, null, isset($optionsAr) ? $optionsAr : null);