diff --git a/admin/registration_list.php b/admin/registration_list.php index 14cff23..ada9d0b 100644 --- a/admin/registration_list.php +++ b/admin/registration_list.php @@ -16,8 +16,13 @@ echo "\n"; if($_GET['showstatus']=="complete") $sel="selected=\"selected\""; else $sel=""; echo "\n"; - if($_GET['showstatus']=="paymentpending") $sel="selected=\"selected\""; else $sel=""; - echo "\n"; + + //if there is no reg fee, then we dont need to show this status, because nobody will ever be in this status + if($config['regfee']>0) + { + if($_GET['showstatus']=="paymentpending") $sel="selected=\"selected\""; else $sel=""; + echo "\n"; + } if($_GET['showstatus']=="open") $sel="selected=\"selected\""; else $sel=""; echo "\n"; if($_GET['showstatus']=="new") $sel="selected=\"selected\""; else $sel=""; diff --git a/admin/registration_receivedforms.php b/admin/registration_receivedforms.php index fb01096..11b4105 100644 --- a/admin/registration_receivedforms.php +++ b/admin/registration_receivedforms.php @@ -108,17 +108,31 @@ echo mysql_Error(); echo ""; echo ""; - echo "
"; - echo ""; - echo ""; - echo ""; - echo "
"; + if($config['regfee']>0) + { - echo "
"; - echo ""; - echo ""; - echo ""; - echo "
"; + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
"; + + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
"; + } + else + { + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
"; + + + } echo "
"; echo "\n"; diff --git a/admin/reports_checkin.php b/admin/reports_checkin.php index f212949..aa40392 100644 --- a/admin/reports_checkin.php +++ b/admin/reports_checkin.php @@ -31,18 +31,22 @@ if($catr=mysql_fetch_object($catq)) $table=array(); - $table['header']=array(i18n("Paid?"),i18n("Proj #"),i18n("Project Title"),i18n("Student(s)"),i18n("Div")); - $table['widths']=array(0.5, 0.6, 3.5, 2.4, 0.5); - $table['dataalign']=array("center","left","left","left","center"); + //only show the 'paid' column if the regfee > 0. if registration is fee, then we dont care about the 'paid' column! + if($config['regfee']>0) + { + $table['header']=array(i18n("Paid?"),i18n("Proj #"),i18n("Project Title"),i18n("Student(s)"),i18n("Div")); + $table['widths']=array(0.5, 0.6, 3.5, 2.4, 0.5); + $table['dataalign']=array("center","left","left","left","center"); + } + else + { + $table['header']=array(i18n("Proj #"),i18n("Project Title"),i18n("Student(s)"),i18n("Div")); + $table['widths']=array( 0.6, 3.7, 2.7, 0.5); + $table['dataalign']=array("left","left","left","center"); + + } while($r=mysql_fetch_object($q)) { - switch($r->status) - { - case "paymentpending": $status_text="No"; break; - case "complete": $status_text=""; break; - } - $status_text=i18n($status_text); - $divq=mysql_query("SELECT division,division_shortform FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' AND id='".$r->projectdivisions_id."'"); $divr=mysql_fetch_object($divq); @@ -63,7 +67,21 @@ if($catr=mysql_fetch_object($catq)) $studnum++; } - $table['data'][]=array($status_text,$r->proj_num,$r->title,$students,i18n($divr->division_shortform)); + //only show the paid column if regfee >0 + if($config['regfee']>0) + { + switch($r->status) + { + case "paymentpending": $status_text="No"; break; + case "complete": $status_text=""; break; + } + $status_text=i18n($status_text); + + $table['data'][]=array($status_text,$r->proj_num,$r->title,$students,i18n($divr->division_shortform)); + } + else + $table['data'][]=array($r->proj_num,$r->title,$students,i18n($divr->division_shortform)); + } $pdf->addTable($table);