Show
Ignore:
Timestamp:
10/06/09 09:36:59 (13 years ago)
Author:
kovell
Message:

Fixes: headers for uncached page set correctly, summary additions evaluated with isset instead of intval, ctr_id and scl_id explicitly set as int. unused pages removed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/campaigns.php

    r396 r459  
    66switch ($_GET['view']) 
    77{ 
    8     case '': 
    9         $activelist = new ContractList(); 
    10         $activelist->setCampaigns(true); 
    11         $activelist->setActive('yes'); 
    12         $page->setTitle('Active campaigns'); 
    13         $table = new ContractListTable($activelist); 
    14         $table->paginate(10, $_GET['page']); 
    15         $html .= $table->generate(); 
    16         break; 
    17     case 'past': 
    18         $pastlist = new ContractList(); 
    19         $pastlist->setCampaigns(true); 
    20         $pastlist->setActive('no'); 
    21         $page->setTitle('Past campaigns'); 
    22         $table = new ContractListTable($pastlist); 
    23         $table->paginate(10, $_GET['page']); 
    24         $html .= $table->generate(); 
    25         break; 
     8        case '': 
     9                $activelist = new ContractList(); 
     10                $activelist->setCampaigns(true); 
     11                $activelist->setActive('yes'); 
     12                $page->setTitle('Active campaigns'); 
     13                $table = new ContractListTable($activelist); 
     14                $table->paginate(10, intval($_GET['page'])); 
     15                $html .= $table->generate(); 
     16                break; 
     17        case 'past': 
     18                $pastlist = new ContractList(); 
     19                $pastlist->setCampaigns(true); 
     20                $pastlist->setActive('no'); 
     21                $page->setTitle('Past campaigns'); 
     22                $table = new ContractListTable($pastlist); 
     23                $table->paginate(10, intval($_GET['page'])); 
     24                $html .= $table->generate(); 
     25                break; 
    2626} 
    2727