switch ($action) {
    case '':
        handle_main();
        break;
    case 'abort_batch':
        handle_abort_batch();
        break;
    case 'abort_batch_confirm':
        handle_abort_batch_confirm();
        break;
    case 'create_action':
        handle_create_action();
        break;
    case 'create_form':
        handle_create_form();
        break;
    case 'query_batch':
        handle_query_batch();
        break;
    case 'query_job':
        handle_query_job();
        break;
    case 'retire_batch':
        handle_retire_batch();
        break;
    case 'retire_batch_confirm':
        handle_retire_batch_confirm();
        break;
    default:
        error_page('no such action');
}
示例#2
0
$action = get_str('action', true);
switch ($action) {
    case '':
        handle_main($user);
        break;
    case 'abort_batch':
        handle_abort_batch($user);
        break;
    case 'abort_batch_confirm':
        handle_abort_batch_confirm();
        break;
    case 'admin':
        handle_admin($user);
        break;
    case 'query_batch':
        handle_query_batch($user);
        break;
    case 'query_job':
        handle_query_job($user);
        break;
    case 'retire_batch':
        handle_retire_batch($user);
        break;
    case 'retire_batch_confirm':
        handle_retire_batch_confirm();
        break;
    case 'show_all':
        handle_show_all($user);
        break;
    default:
        error_page("no such action {$action}");