temp.txt case "Ballot_Creation_All": #Creates body of ballot for 'Ballots' to send (Get and list row items) fxBrainbeesTests("Log_Recording","Record","Create_All 222","Submit Deadline: Email Ballots",""); if ($Defaults) echo "222 Log QC $CaveRed"; $Label="Basic"; $fxBkup=$fx; #if ($Defaults) {echo "295 table $CaseRed";} fxBrainbees("Reset_database_dbTable","dbTable",""); #fxCommon("COMMENT_of_Table","DetailsGet","",$dbTable); #Standard Common Values $databaseBkup=$database; $dbTableBkup=$dbTable; $Defaults.=$fx; if (substr_count($Defaults,$fx)) { echo "
";
}
#fxBrainbees("Select SubmittersOrWinners","","");
$fx=$fxBkup;
$CallingCase=$SF;
$BallotCount="0";
$EmailList=array_fill(1,7,"");
$EmailsSent="0";
fxBrainbees("NextEmail","Existing","");
echo "321 Status: $Status ... NextEmail: $NextEmail "; switch ($Status) { case "F": #mid-Case Ballot_Div7 #echo "330 use case F Status: $Status ?F? ***************************** "; $BBAction="FinalBallots"; echo "339 Final Ballot $CaseRed"; #fxCommon("COMMENT_of_Table","DetailsGet","",$dbTable); $fx=fxBkup; $TitleCue="Final"; $NumOfBallotItems="7"; $VoteMax="7"; $flSuffix="Final7"; $flLabel="Final7"; $ClassroomSize="7"; $Classrooms="1"; break; case "R": #mid-Case Ballot_Div7 echo "353 Runoff $CaseRed"; fxCommon("COMMENT_of_Table","DetailsGet","",$dbTable); $TitleCue="Runoff"; $NumOfBallotItems="2"; $VoteMax="1"; $flSuffix="Runoff"; $flLabel="Runoff"; $ClassroomSize="2"; $Classroom="1"; echo "349 exit Final parameters "; break; default: #0,1,2,3,4,etc if ($Defaults) echo "348 default ballot "; $Defaults.="Table"; if (substr_count($Defaults,"Table")) {echo "310 ClassroomsWinnersRow: "; print_r($ClassroomsWinnersRow); echo " ";}
$TitleCue="Basic Divide by 7";
$NumOfBallotItems="7";
$flSuffix="Ballot"; #
$flLabel="Divide by 7";
$ClassroomSize="7";
$Classrooms=$RowCount/$ClassroomSize;
$Classrooms=ceil($Classrooms);
$VoteMax="7"; #6,7,2
#if ($Arg2=="1stBallot")
}
fxBrainbees("Reset_database_dbTable","dbTable","");
fxCommon("HostServer",$database,$dbTable,"");
echo ("288 QC point: $ Classrooms:$Classrooms $CaseRed");
$Classrooms=strlen($ClassSizes);
echo "290 ClassSizes: $ClassSizes ... Classrooms: $Classrooms |
"; } $Label="Basic"; if ($BBL=="2") echo ("374 revu ballot, end of $CaseRed"); fxBrainbees("Process_Update",$Frequency,"Vote"); break; #case Ballot Creation_All