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 "

298 $fx
database: $database ... dbTable: $dbTable
"; } #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
"; for($Classroom=1; $Classroom<=$Classrooms; $Classroom++) { $EmailList=array_fill(1,7,""); #else run $ClassroomSize=substr($ClassSizes,($Classroom-"1"),1); echo "293 ClassSizes: $ClassSizes ... Classroom: $Classroom ... ClassSize: $ClassroomSize
"; fxBrainBees("Ballot_Items_Creation","",""); fxBrainbees("Ballot_for_Classroom",$flSuffix.$post_Suffix,""); #Case Ballot_ DivBy7 #break; } #die ("299 die qc"); #end Fill Arrays for one Classroom #if ($EmailTestfile=="Y") {fxBrainbees("EmailListFile","Close","Ballot");} #global flName, flSuffix, Arg1=Results/Ballot #echo "462 pre update $CaseRed"; #if ($BBL>"1") fxBrainbees("Update_dbTable_and_ToDoTable","Winners",""); #Ballot Creation All if (substr_count($Defaults,$fx)) { echo " 398 End of Ballot Creation All ... need to nullify all variables if testing so are retrieved live in Results

"; } $Label="Basic"; if ($BBL=="2") echo ("374 revu ballot, end of $CaseRed"); fxBrainbees("Process_Update",$Frequency,"Vote"); break; #case Ballot Creation_All