예제 #1
0
 function ContentManager(&$db, $course_id)
 {
     global $rtl;
     $this->db = $db;
     $this->course_id = intval($course_id);
     // Look for tree icons for displaying content navigation from theme image folder,
     // if the icon is not there, look up in atutor root image folder
     $this->tree_collapse_icon = find_image($rtl . 'tree/tree_collapse.gif', '');
     $this->tree_expand_icon = find_image($rtl . 'tree/tree_expand.gif', '');
     $this->tree_vertline_icon = find_image($rtl . 'tree/tree_vertline.gif', '');
     $this->tree_horizontal_icon = find_image($rtl . 'tree/tree_horizontal.gif', '');
     $this->tree_split_icon = find_image($rtl . 'tree/tree_split.gif', '');
     $this->tree_disabled_icon = find_image($rtl . 'tree/tree_disabled.gif', '');
     $this->tree_end_icon = find_image($rtl . 'tree/tree_end.gif', '');
     $this->tree_space_icon = find_image($rtl . 'tree/tree_space.gif', '');
 }
예제 #2
0
/* http://atutor.ca                                                     */
/*                                                                      */
/* This program is free software. You can redistribute it and/or        */
/* modify it under the terms of the GNU General Public License          */
/* as published by the Free Software Foundation.                        */
/************************************************************************/
// $Id: $
//
// This file is essentially a javascript file, but needs to be terminated with
// a .php extension so that php calls can be used within it. Please put pure javascript
// in ATutor.js
// Look for tree icons for displaying content navigation from theme image folder,
// if the icon is not there, look up in atutor root image folder
global $rtl;
$tree_collapse_icon = AT_BASE_HREF . find_image($rtl . 'tree/tree_collapse.gif', '');
$tree_expand_icon = AT_BASE_HREF . find_image($rtl . 'tree/tree_expand.gif', '');
?>
ATutor = ATutor || {};
ATutor.course = ATutor.course || {};

(function () {

    ATutor.base_href = "<?php 
echo AT_print(AT_BASE_HREF, 'url.base');
?>
";
    ATutor.customized_data_dir = "<?php 
echo AT_print(AT_CUSTOMIZED_DATA_DIR, 'url.base');
?>
";
    ATutor.course.show = "<?php 
예제 #3
0
 $content = format_content($content, $content_row['formatting'], $glossary);
 $content_array = get_content_table($content);
 // Create the array of alternative information for generating the AFA tool bar
 $alt_infos = array();
 $pause_image = find_image("pause.png");
 if ($has_text_alternative) {
     $alt_infos['has_text_alternative'] = array('3', _AT('apply_text_alternatives'), _AT('stop_apply_text_alternatives'), $pause_image, find_image('text_alternative.png'));
 }
 if ($has_audio_alternative) {
     $alt_infos['has_audio_alternative'] = array('1', _AT('apply_audio_alternatives'), _AT('stop_apply_audio_alternatives'), $pause_image, find_image('audio_alternative.png'));
 }
 if ($has_visual_alternative) {
     $alt_infos['has_visual_alternative'] = array('4', _AT('apply_visual_alternatives'), _AT('stop_apply_visual_alternatives'), $pause_image, find_image('visual_alternative.png'));
 }
 if ($has_sign_lang_alternative) {
     $alt_infos['has_sign_lang_alternative'] = array('2', _AT('apply_sign_lang_alternatives'), _AT('stop_apply_sign_lang_alternatives'), $pause_image, find_image('sign_lang_alternative.png'));
 }
 $savant->assign('content_table', $content_array[0]);
 $savant->assign('body', stripslashes($content_array[1]));
 $savant->assign('cid', $cid);
 $savant->assign('alt_infos', $alt_infos);
 //assign test pages if there are tests associated with this content page
 if (!empty($content_test_ids)) {
     $savant->assign('test_message', $content_row['test_message']);
     $savant->assign('test_ids', $content_test_ids);
 } else {
     $savant->assign('test_message', '');
     $savant->assign('test_ids', array());
 }
 /*TODO***************BOLOGNA***************REMOVE ME**********/
 //assign forum pages if there are forums associated with this content page
예제 #4
0
    $_GET["backgroundcolor"] = "#f5f5f5";
}
if (!isset($_GET["design"])) {
    $_GET["design"] = "breit";
}
?>


document.write('<div class="panel panel-default"><div class="panel-heading"><b>Schachbundesliga News</b></div><div class="panel-body"><div class="row"><div class="col-xs-12"><ul class="demo">');
<?php 
$xml = simplexml_load_file("http://schachbundesliga.de/aktuell.xml") or die("Fehler: Feed konnte nicht geladen werden");
for ($i = 0; $i <= 5; $i++) {
    $title = $xml->channel->item[$i]->title;
    $link = $xml->channel->item[$i]->link;
    $description = $xml->channel->item[$i]->description;
    $bild = find_image($description);
    $beschreibung = find_description($description);
    ?>
document.write('<li class="news-item"><table cellpadding="4" class="newstable">');
<?php 
    if ($_GET["design"] == "schmal") {
        ?>
document.write('<tr><td style="text-align:center;"><a href="<?php 
        echo $link;
        ?>
"><img src="<?php 
        echo $bild;
        ?>
" width="150" /></a></td></tr><tr><td style="background-color:<?php 
        echo $_GET["headlinecolor"];
        ?>