Example #1
0
<?php

$page_title = '' . $portal_config['activities_navigation_word'] . '';
if (in_array('create', $GLOBALS['portal_config']['available_actions'])) {
    echo '
	<h2>Creation</h2>
	
	<p>Activities used in the ITSI project are created using a system called <strong><a href="/diy/home/" target="_blank">Do-It-Yourself</a></strong>.</p>
	
	<h3>Make your own activity</h3>
	
	<p><a href="/diy/new/" target="_blank">' . portal_icon('add') . '</a> <a href="/diy/new/" target="_blank">Create a new activity</a> in the <strong>Do-It-Yourself</strong> site</p>
	
	';
}
if (in_array('copy', $GLOBALS['portal_config']['available_actions'])) {
    echo '
	
	<h3>Copy an existing activity</h3>
	
	<p>Click on the copy icon ' . portal_icon('copy') . ' next to an activity name to make your own customized version of it.</p>
	
	';
}
echo portal_generate_activity_grid(array(), array(), 'full');
Example #2
0
		</ul>
		
		';
        // mystery_redirect('/');
        // exit;
    } else {
        $errors = array('Another class is already using that <strong>Sign Up Word</strong>.  Please choose another.');
        echo portal_generate_error_page($errors);
    }
} else {
    $class_info = portal_web_output_filter($class_info);
    // generate accomations if applicable
    $accommodations = '<p><em>These settings apply for the whole class.  You can change settings for particular students on the class roster page.</em></p>' . portal_generate_class_accommodations($id_param);
    // generate the activity grid
    $activity_grid = portal_generate_activity_grid($class_info['activities'], $class_info['diy_activities'], 'setup');
    $total_activity_count = count($class_info['activities']) + count($class_info['diy_activities']);
    $section_counts = array();
    /*
    $all_activities = array_merge($class_info['activities'], $class_info['diy_activities']);
    foreach ($all_activities as $activity) {
    	$section_counts[] += 1;
    }
    */
    // generate the form
    echo '
	<form action="/class/' . $_PORTAL['activity'] . '/' . $id_param . '/process/" method="post">
	
	<h1>' . $page_title . '</h1>
	
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
Example #3
0
<?php

$page_title = '' . $portal_config['activities_navigation_word'] . ' Preview';
$activity_grid = portal_generate_activity_grid(array(), array(), 'preview');
echo '
<h2>' . $portal_config['activities_navigation_word'] . '</h2>

	' . $activity_grid . '

';