示例#1
0
        break;
    case 'cancel':
        cancelEditBanner();
        break;
    case 'save':
    case 'resethits':
        saveBanner($task);
        break;
    case 'edit':
        editBanner($cid[0], $option);
        break;
    case 'editA':
        editBanner($id, $option);
        break;
    case 'remove':
        removeBanner($cid);
        break;
    case 'publish':
        publishBanner($cid, 1);
        break;
    case 'unpublish':
        publishBanner($cid, 0);
        break;
    default:
        viewBanners($option);
        break;
}
function viewBanners($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
    $limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit);
示例#2
0
        // BANNER EVENTS
    // BANNER EVENTS
    case "new":
        editBanner(null, $option);
        break;
    case "cancel":
        cancelEditBanner($option);
        break;
    case "save":
        saveBanner($option);
        break;
    case "edit":
        editBanner($cid[0], $option);
        break;
    case "remove":
        removeBanner($cid, $option);
        break;
    case "publish":
        publishBanner($cid, 1, $option);
        break;
    case "unpublish":
        publishBanner($cid, 0, $option);
        break;
    default:
        viewBanners($option);
        break;
}
function viewBanners($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
    $limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit);