I:\Timism.org\Brainbees\Grassroots_Logic_Flow_Outline.htm

Grassroots Outline

  1. prep: Test_single_insert_ZZ
  2. For Loops=?? {
    1. fxBrainbeesTests("Submit_single_test_row","","",""); #test insert
      1. fxSignup(MemberID_insert)
    2. fxBrainbees("Insert_new_submitter_in_BB_dbTable","Votes1","","");
      1. Insert submission
      2. fxBrainbeesTests("Votes_test","Votes1",; #BBLevel=1 if ZZ
    3. if (($Submitter%(7**1)==0) and ($Submitter>0)){ #make ballot,not results
      1. $BBL+=1;
      2. fxBrainbees("Ballot_Email_and_BrainbeeToDo","Results_Grassroots","","Test_BBs.php");
        1. fxBrainbees("Ballot_Creation"
          1. (FirstRec,LastRec,Range)
          2. fxBrainbees("EmailHeader_From_To_Subject","Ballots"
          3. fxBrainbees("Ballot_Message_header","","","");
          4. fxBrainbees("Ballot_Creation_Voting_Form
          5. fxBrainbees("Email_Just_Classroom","Ballots",
        2. fxBrainbees("BrainbeesToDo_Insert" (no fx called)
      3. $BBL=1; #reset}
    4. else{
      1. mysqli_close($con); #Not enough submissions for Ballot}
    5. fxBrainbees("BrainbeesToDo; #analyze BrainbeesToDo [393]
      1. Prep [400]
      2. get $BrainbeesToDo (row_active)
      3. While rows_active=mysqi_fetch_array
        1. Actionable: Deadline or Max
        2. fxBrainbees(Results_Grassroots)
        3. if(RowCount_LastResults%(7*$BBL
          1. fxBrainbees(NextLevel_Brainbee
            1. fxBrainbees(NextLevel_Brainbee_Range_from_WinnersColumn
            2. fxBrainbees(Ballot_Creation,
            3. fxBrainbees(BrainbeesToDo_Insert,Active
            4. BBLevel=1 (reset)
    6. } end loops
    7. die(end of  file)