movequest(); break; case "movedown": movequestion('down'); break; case "moveup": movequestion('up'); break; case "fixsequence": fixQuestSequence(); break; case "addquest": addquest(); break; case "modquest": modquest(); break; case "delquest": delquest(); break; //modality setting //modality setting case "defmodality": defmodality(); break; case "updatemodality": updatemodality(); break; //time setting //time setting case "deftime":
function questbankDispatch($op) { require_once _lib_ . '/lib.urlmanager.php'; $url =& UrlManager::getInstance(); $url->setStdQuery('modname=quest_bank&op=main'); if (isset($_POST['undo'])) { $op = 'main'; } if (isset($_POST['import_quest'])) { $op = 'importquest'; } if (isset($_POST['export_quest'])) { $op = 'exportquest'; } switch ($op) { case "addquest": addquest($url); break; case "modquest": modquest($url); break; case "importquest": importquest($url); break; case "doimportquest": doimportquest($url); break; case "exportquest": exportquest($url); break; case "main": default: questbank($url); } }