コード例 #1
0
ファイル: index.php プロジェクト: vicentborja/ATutor
	
});

function remove_module(module)
{
	jQuery.post("' . AT_BASE_HREF . 'move_module.php", { "remove":module, "from":"course_index" }, function(data) {});
	jQuery("div[id=\\""+module.replace(/\\//g,"-")+"\\"]").remove();
}
//-->
</script>
	
';
}
require AT_INCLUDE_PATH . 'header.inc.php';
/* the "home" links: */
$home_links = get_home_navigation();
$savant->assign('home_links', $home_links);
/* the news announcements: */
$news = array();
$num_pages = 1;
$page = isset($_GET['p']) ? intval($_GET['p']) : 1;
if (!$page) {
    $page = 1;
}
$module =& $moduleFactory->getModule(AT_MODULE_DIR_STANDARD . '/announcements');
if (!$module->isEnabled()) {
    $result = FALSE;
    $news = array();
} else {
    $sql = "SELECT COUNT(*) AS cnt FROM " . TABLE_PREFIX . "news WHERE course_id={$course_id}";
    $result = mysql_query($sql, $db);
コード例 #2
0
ファイル: index.php プロジェクト: genaromendezl/ATutor
		    hover: "draggable_selected"
		}
});

});

function remove_module(module)
{
	jQuery.post("' . AT_BASE_HREF . 'move_module.php", { "remove":module, "from":"student_tools" }, function(data) {});
	jQuery("div[id=\\""+module.replace(/\\//g,"-")+"\\"]").hide("slow");
}

</script>
	
';
}
require AT_INCLUDE_PATH . 'header.inc.php';
$home_links = array();
if ($fha_student_tools[0] != "") {
    //query reading the type of home viewable. 0: icon view   1: detail view
    $savant->assign('view_mode', $home_view);
    $savant->assign('home_links', get_home_navigation($fha_student_tools));
}
$savant->assign('num_pages', 0);
$savant->assign('current_page', 0);
$savant->display('index.tmpl.php');
?>


<?php 
require AT_INCLUDE_PATH . 'footer.inc.php';
コード例 #3
0
require(AT_INCLUDE_PATH.'header.inc.php');

if ($current_tab == 0 || $current_tab == 3) 
{
    $simple = true;
    if ($_POST['complexeditor'] == '1') {
        $simple = false;
    }
    load_editor($simple, false, "none");    
}

// Generate the last content tool elements
//loading toolbar for insert discussion topic or web link into the content
if ($current_tab == 0){
    if(authenticate(AT_PRIV_CONTENT,AT_PRIV_RETURN)){
        $home_links = get_home_navigation();                        //vengono lette le caratteristiche di ogni modulo attivato nella home page.
        $main_links = get_main_navigation($current_page);           //vengono lette le caratteristiche di ogni modulo attivo nel main navigation

        $num = count($main_links);                                  //necessario elminare il primo e l'utlimo elemento poichè sono rispettivamente "Home" e "Manage"
        unset($main_links[0]);                                      //"Home" label
        unset($main_links[$num-1]);                                 //"Manage" label

        $all_tools = $home_links;                                   //$all_tools represent a merge between $home_links and main_links without repetitions.
        $check=false;
        foreach($main_links as $main) {
            foreach($home_links as $home) {
                if($home['title'] == $main['title']) {
                    $check=true;
                    break;
                }
            }
コード例 #4
0
ファイル: sitemap.php プロジェクト: genaromendezl/ATutor
                    }
                    echo '<img src="images/' . $rtl . 'tree/tree_horizontal.gif" alt="" class="img-size-tree" />';
                    echo ' <a href="' . url_rewrite('mods/_standard/forums/forum/index.php?fid=' . $row['forum_id']) . '">' . AT_print($row['title'], 'forums.title') . '</a>';
                }
            }
        } else {
            print_one_menu_item(_AT('no_forums'));
        }
    }
    // display the turned-on student tools
    if (substr($module, -23) == 'student_tools/index.php') {
        $student_tools = StudentToolsUtil::getStudentTools($_SESSION['course_id']);
        if (count($student_tools) == 0) {
            print_one_menu_item(_AT("no_student_tools"));
        } else {
            foreach (get_home_navigation($student_tools) as $link) {
                $text = '<a href="' . $link['url'] . '">' . $link['title'] . '</a>';
                print_one_menu_item($text);
            }
        }
    }
}
echo '<br /><img src="images/' . $rtl . 'tree/tree_split.gif" alt="" class="img-size-tree" /> <a href="' . url_rewrite('search.php') . '">' . _AT('search') . '</a><br />';
echo '<img src="images/' . $rtl . 'tree/tree_split.gif" alt="" class="img-size-tree" /> <a href="help/">' . _AT('help') . '</a><br />';
echo '<img src="images/' . $rtl . 'tree/tree_end.gif" alt="" class="img-size-tree" /> ' . _AT('content') . '<br />';
$contentManager->printSiteMapMenu();
echo '</p>';
?>
</div>

<?php