Exemplo n.º 1
0
// Disallow subsites to download and install the remote modules from update.atutor.ca
if ($this->enable_remote_installation === true) {
    ?>
<fieldset>
    <legend><?php 
    echo _AT('filter');
    ?>
</legend>
    <div class="input-form">
    <div class="row">
    <?php 
    echo _AT('old_module_notes');
    ?>
    </div>
<?php 
    echo select_atversion();
    ?>
</div>
</fieldset>
<form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
" method="post" name="form">
<table class="data" summary="">
<thead>
	<tr>
		<th scope="col">&nbsp;</th>
		<th scope="col"><?php 
    echo _AT('module_name');
    ?>
</th>
Exemplo n.º 2
0
rsort($sort_versions);
// Add $module_list_array as the last parameter, to sort by the common key
// Sorts by original $module_list_array by reference, then returns true|false
$sort_by_version = array_multisort($version, SORT_DESC, $module_list_array);
// Create menu for filter ATutor versions
function select_atversion()
{
    global $sort_versions;
    $menu = '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
    $menu .= '<select name="atversions">';
    $menu .= '<option value="0">' . _AT("all") . '</option>';
    foreach ($sort_versions as $version) {
        if ($version == VERSION) {
            $menu .= '<option value="' . $version . '" selected="selected">' . $version . '</option>';
        } else {
            $menu .= '<option value="' . $version . '" >' . $version . '</option>';
        }
    }
    $menu .= '</select>';
    $menu .= '<input type="submit"  value="' . _AT('filter') . '"/></form>';
    return $menu;
}
$savant->assign('atversions', select_atversion());
$savant->assign('enable_upload', $enable_upload);
$savant->assign('enable_remote_installation', $enable_remote_installtion);
$savant->assign('keys', $keys);
$savant->assign('module_list', $module_list);
$savant->assign('installed_mods', $installed_mods);
$savant->assign('module_list_array', $module_list_array);
$savant->display('admin/modules/install_modules.tmpl.php');
require AT_INCLUDE_PATH . 'footer.inc.php';