Subversion Repositories VORC

Rev

Rev 203 | Rev 217 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 203 Rev 208
Line 243... Line 243...
243
  my $orderby = shift;
243
  my $orderby = shift;
244
  my $curpage = shift; $curpage = 1 unless $curpage;
244
  my $curpage = shift; $curpage = 1 unless $curpage;
245
  my $pagelimit = shift // "All";
245
  my $pagelimit = shift // "All";
Line 246... Line 246...
246
  
246
  
247
  my $selected = '*';
247
  my $selected = '*';
248
  if ($table eq "v_class") {
248
  if ($table eq "v_class_new") {
249
    foreach (@{$whereClause}) {
249
    foreach (@{$whereClause}) {
250
      /^RCid = \d+$/ and $table = "v_class_signup";
250
      /^RCid = \d+$/ and $table = "v_class_signup_new";
Line 251... Line 251...
251
    }
251
    }
252
    
252
    
Line 498... Line 498...
498
  }
498
  }
Line 499... Line 499...
499
  
499
  
500
  # "Shift Include" shows a checkbox to include a users shifts at the top of the page
500
  # "Shift Include" shows a checkbox to include a users shifts at the top of the page
501
  my $SIChecked;
501
  my $SIChecked;
502
  if ($showMyShiftsOption) {
502
  if ($showMyShiftsOption) {
503
    my $things = $DBTABLE eq "v_class" ? "classes" : "shifts";
503
    my $things = $DBTABLE eq "v_class_new" ? "classes" : "shifts";
504
    if ($FORM{shiftinclude}) {
504
    if ($FORM{shiftinclude}) {
505
      $SIChecked = "Show my $things: ".$h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", checked=>[], onClick=>'submit();' });
505
      $SIChecked = "Show my $things: ".$h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", checked=>[], onClick=>'submit();' });
506
    } else {
506
    } else {
507
      $SIChecked = "Show my $things: ".$h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", onClick=>'submit();' });
507
      $SIChecked = "Show my $things: ".$h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", onClick=>'submit();' });