示例#1
0
 case "modassigntime":
     modassigntime();
     break;
     //point setting
 //point setting
 case "defpoint":
     defpoint();
     break;
 case "updatepoint":
     updatepoint();
     break;
 case "modassignpoint":
     modassignpoint();
     break;
 case "importquest":
     importquest();
     break;
 case "doimportquest":
     doimportquest();
     break;
 case "exportquest":
     exportquest();
     break;
 case "exportquestqb":
     exportquestqb();
     break;
 case "doexportquestqb":
     doexportquestqb();
     break;
 case "feedbackman":
     feedbackman();
示例#2
0
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);
    }
}