Location: PHPKode > projects > KORA > kora-2.0.0/manageControlPresets.php
<?php
/*
Copyright (2008) Matrix: Michigan State University

This file is part of KORA.

KORA 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; either version 2 of the License, or
(at your option) any later version.

KORA is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// Initial Version: Brian Beck, 2008

require_once('includes/utilities.php');
require_once('includes/header.php');


echo '<h2>'.gettext('Manage Control Presets').'</h2>';
?>
<script type="text/javascript" src="<?php echo PROTOTYPE_URL?>"></script>
<script type="text/javascript">
//<![CDATA[
function renameControlPreset(varPresetID) {
    var varNewName = $('newName' + varPresetID).value;
    new Ajax.Updater('ajax', '<?php echo baseURI.'includes/presetFunctions.php'?>', { method:'post', parameters:{action:'updateControlPresetName',source:'PresetFunctions',preset:varPresetID,name:varNewName }});
}

function setGlobal(varPresetID) {
    var varGlobal = $('global' + varPresetID).checked ? 1 : 0;
    new Ajax.Updater('ajax', '<?php echo baseURI.'includes/presetFunctions.php'?>', { method:'post', parameters:{action:'updateControlPresetGlobal',source:'PresetFunctions',preset:varPresetID,global:varGlobal }});
}

function deletePreset(varPresetID) {
    new Ajax.Updater('ajax', '<?php echo baseURI.'includes/presetFunctions.php'?>', { method:'post', parameters:{action:'deleteControlPreset',source:'PresetFunctions',preset:varPresetID }});
}
     
new Ajax.Updater('ajax', '<?php echo baseURI.'includes/presetFunctions.php'?>', { method:'post', parameters:{action:'showControlPresetDialog',source:'PresetFunctions' }} );
//]]>
</script>

<div id="ajax"></div>
<?php 
require_once('includes/footer.php');
?>
Return current item: KORA