// get the short name to distinguish different netpublishes from different courses $tabrows[] = new tabobject($netpublishcm->id, 'move.php?id=' . $netpublishcm->id . '&article=' . $articleid . '&sesskey=' . $USER->sesskey, $courseshortname . ': ' . $netpublishcm->name); } $tabs[] = $tabrows; $table = new stdClass(); $table->head = array(""); $table->align = array("left"); $table->wrap = array(""); $table->width = "20%"; $table->size = array("*"); $table->data = array(); foreach ($sections as $section) { $cnt = 0; $table->data[] = array('<strong>' . $section->fullname . '</section>'); $table->data[] = array(netpublish_print_move_here($cm->id, $articleid, $cnt, $section->id)); if ($articles = netpublish_get_articles($section->id, $netpublish->id)) { foreach ($articles as $article) { if ($article->id == $articleid) { continue; } $cnt++; $table->data[] = array(" " . stripslashes($article->title)); $table->data[] = array(netpublish_print_move_here($cm->id, $articleid, $cnt, $section->id)); } } } // all of the printing print_heading_with_help(get_string('movingarticle', 'netpublish') . ": {$movingarticle->title}", 'movingarticle', 'netpublish'); print_tabs($tabs, $cm->id); echo '<p>'; print_table($table);
include_once 'tabs_edit.php'; } // The code here include_once 'themes/' . $mod->netpublishtheme; if (!empty($mod->titleimage)) { $magtheme['headerimage'] = $mod->titleimage; } // Main Magazine FrontPage HEADER image if (!empty($magtheme['headerimage'])) { echo "<div class=\"magazineheader\" ><img src=\"" . $magtheme['headerimage'] . "\" ><div class=\"netpublish-title\">{$mod->title}</div></div>"; } //if ($magtheme['frontpagecolums'] == 1 ) if ($mod->frontpagecolumns == 1) { echo "<style>.netpublish-article {padding:5px 40px 5px 5px; width:660px;} </style>"; } //if ($magtheme['frontpagecolums'] == 2 ) if ($mod->frontpagecolumns == 2) { echo "<style>.netpublish-article {padding: 5px; width:350px;} </style>"; } // get articles of section 0; $articles = netpublish_get_articles($section, $cm->instance, $mod->fullpage); $strnoarticles = ''; if (empty($articles)) { $strnoarticles = '<p style="text-align: center; font-weight: bold;">' . get_string("noarticles", "netpublish") . '</p>'; } print_simple_box_start('', '100%'); echo "<style>.box {width:100%; background-image: url(" . $magtheme['backgroundimage'] . ");} </style>"; include_once 'view.html.php'; print_simple_box_end(); /// Finish the page print_footer($course);