Пример #1
0
	<div id="details_view" class="fluid-horizontal-order" style="width: 98%; margin-top: -5px; float: left; ">
<?php 				// create table container divided into two columns for the placement of modules
	if(authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN) && is_array($this->home_links)){		// display enabled course tool
		foreach ($this->home_links as $link){ 
?>
		<div class="home_box" id="<?php echo str_replace('/', '-', substr($link['url'], strlen($_base_path))); ?>"> 
<?php print_sublinks($link); 						// display each module ?>
		</div>
<?php
		} // end of foreach 
	}  // end of inner if 
	else {
		if (is_array($this->home_links)) {
			foreach ($this->home_links as $link){?>
		<div class="home_box">
<?php print_sublinks($link); ?>
		</div>
<?php			}  // end of foreach
		}// end of inner inner if
	} ?>

	</div> 
	<br style="clear:both;" />&nbsp;
<?php
} // end of if

if ($this->announcements): ?>
	<br style="clear:both;" />
<h2 class="page-title"><?php echo _AT('announcements'); ?></h2>
	<?php foreach ($this->announcements as $item): ?>
		<div class="news">
Пример #2
0
        ?>
"> 
        <?php 
        // display each module
        print_sublinks($link);
        ?>
		</div>
<?php 
    }
} else {
    if (is_array($this->home_links)) {
        foreach ($this->home_links as $link) {
            ?>
		        <div class="home_box">
                <?php 
            print_sublinks($link);
            ?>
		        </div>
<?php 
        }
    }
}
?>
	</div> 
	<br style="clear:both;" />&nbsp;
	
<?php 
if ($this->announcements) {
    global $system_courses;
    ?>