}
     }
     $output_datatables_body .= "</td>";
 }
 $output_datatables_body .= "<td class='dataList'>" . $brewer_assignment . "</td>";
 if ($filter != "default") {
     if ($filter == "judges") {
         $bjcp_rank = explode(",", $row_brewer['brewerJudgeRank']);
         $display_rank = bjcp_rank($bjcp_rank[0], 1);
         $output_datatables_body .= "<td class='dataList'>" . $row_brewer['brewerJudgeID'] . "</td>";
         $output_datatables_body .= "<td class='dataList'>" . $display_rank;
         if ($row_brewer['brewerJudgeMead'] == "Y") {
             $output_datatables_body .= "<br />Certified Mead Judge";
         }
         if (!empty($bjcp_rank[1])) {
             $output_datatables_body .= designations($row_brewer['brewerJudgeRank'], $bjcp_rank[0]);
         }
         $output_datatables_body .= "</td>";
     }
     if ($filter == "judges") {
         $output_datatables_body .= "<td class='dataList'>" . rtrim($table_assign_judge, ",&nbsp;") . "</td>";
     }
     if ($filter == "stewards") {
         $output_datatables_body .= "<td class='dataList'>" . rtrim($table_assign_steward, ",&nbsp;") . "</td>";
     }
     $output_datatables_body .= "<td class='dataList'>" . judge_entries($row_brewer['uid'], 1) . "</td>";
 }
 $output_datatables_body .= "<td class='dataList' nowrap='nowrap'>" . date_created($row_brewer['uid'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], $_SESSION['prefsTimeZone'], $dbTable) . "</td>";
 if ($action != "print" && $dbTable == "default") {
     // build_action_link($icon,$base_url,$section,$go,$action,$filter,$id,$dbTable,$alt_title) {
     $output_datatables_add_link = build_action_link("book_add", $base_url, "brew", "entries", "add", $row_brewer['uid'], "default", "default", "Add an entry for " . $row_brewer['brewerFirstName'] . " " . $row_brewer['brewerLastName']);
                        $output_datatables_body .= $judge_places;
                    } else {
                        $output_datatables_body .= "&nbsp;";
                    }
                    $output_datatables_body .= "</td>";
                }
                if ($filter == "judges" || $filter == "bos") {
                    $bjcp_rank = explode(",", $row_brewer['brewerJudgeRank']);
                    $display_rank = bjcp_rank($bjcp_rank[0], 1);
                    $output_datatables_body .= "<td class=\"hidden-xs hidden-sm\">" . strtoupper($row_brewer['brewerJudgeID']) . "</td>";
                    $output_datatables_body .= "<td>" . $display_rank;
                    if ($row_brewer['brewerJudgeMead'] == "Y") {
                        $output_datatables_body .= "<br /><em>Certified Mead Judge</em>";
                    }
                    if (!empty($bjcp_rank[1])) {
                        $output_datatables_body .= "<em>" . designations($row_brewer['brewerJudgeRank'], $bjcp_rank[0]) . "</em>";
                    }
                    $output_datatables_body .= "</td>";
                }
                if ($filter == "judges" || $filter == "stewards") {
                    $output_datatables_body .= "<td class=\"hidden-xs hidden-sm\">" . $output_location . "</td>";
                    $output_datatables_body .= "<td class=\"hidden-xs hidden-sm\">" . judge_entries($row_brewer['uid'], 1) . "</td>";
                }
                $output_datatables_body .= "</tr>";
            } while ($row_brewer = mysql_fetch_assoc($brewer));
        }
        // end if ($totalRows_brewer > 0)
    }
    // end if (($totalRows_brewer > 0) && ((($action == "update") && ($filter != "default") && ($bid != "default")) || ($action == "assign")))
}
// *****************************************************************************
    $table_body1 .= "<div class=\"col-lg-3 col-md-3 col-sm-4 col-xs-4\"><strong>Assigned As</strong></div>";
    $table_body1 .= "<div class=\"col-lg-9 col-md-9 col-sm-8 col-xs-8\">" . $brewer_assignment . "</div>";
    $table_body1 .= "</div>";
}
if (in_array("Judge", $assignment_array)) {
    $table_body1 .= "<div class=\"row bcoem-account-info hidden-print\">";
    $table_body1 .= "<div class=\"col-lg-3 col-md-3 col-sm-4 col-xs-4\"><strong>&nbsp;</strong></div>";
    $table_body1 .= "<div class=\"col-lg-9 col-md-9 col-sm-8 col-xs-8\">Print your judging scoresheet labels: <a href=\"" . $base_url . "output/labels.output.php?section=admin&amp;go=participants&amp;action=judging_labels&amp;id=" . $_SESSION['brewerID'] . "&amp;psort=5160\" data-toggle=\"tooltip\" title=\"Avery 5160\">Letter</a> or <a href=\"" . $base_url . "output/labels.output.php?section=admin&amp;go=participants&amp;action=judging_labels&amp;id=" . $_SESSION['brewerID'] . "&amp;psort=3422\" data-toggle=\"tooltip\" title=\"Avery 3422\">A4</a></div>";
    $table_body1 .= "</div>";
}
// end if (in_array("Judge",$assignment_array)) && ($action != "print"))
if ($_SESSION['brewerJudge'] == "Y") {
    $bjcp_rank = explode(",", $row_brewer['brewerJudgeRank']);
    $display_rank = bjcp_rank($bjcp_rank[0], 2);
    if (!empty($bjcp_rank[1])) {
        $display_rank .= designations($row_brewer['brewerJudgeRank'], $bjcp_rank[0]);
    }
    $table_body1 .= "<div class=\"row bcoem-account-info\">";
    $table_body1 .= "<div class=\"col-lg-3 col-md-3 col-sm-4 col-xs-4\"><strong>BJCP ID</strong></div>";
    $table_body1 .= "<div class=\"col-lg-9 col-md-9 col-sm-8 col-xs-8\">";
    if ($_SESSION['brewerJudgeID'] > "0") {
        $table_body1 .= $_SESSION['brewerJudgeID'];
    } else {
        $table_body1 .= "N/A";
    }
    $table_body1 .= "</div>";
    $table_body1 .= "</div>";
    $table_body1 .= "<div class=\"row bcoem-account-info\">";
    $table_body1 .= "<div class=\"col-lg-3 col-md-3 col-sm-4 col-xs-4\"><strong>Designations</strong></div>";
    $table_body1 .= "<div class=\"col-lg-9 col-md-9 col-sm-8 col-xs-8\">";
    if ($_SESSION['brewerJudgeRank'] != "") {
        $row_brewer_info['brewerLastName']."^".
        $row_brewer_info['brewerJudgeLikes']."^".
        $row_brewer_info['brewerJudgeDislikes']."^".
        $row_brewer_info['brewerJudgeMead']."^".
        $row_brewer_info['brewerJudgeRank']."^".
        $row_brewer_info['brewerJudgeID']."^".
        $row_brewer_info['brewerStewardLocation']."^".
        $row_brewer_info['brewerJudgeLocation'];
        */
        $bjcp_rank = explode(",", $judge_info[5]);
        $display_rank = bjcp_rank($bjcp_rank[0], 1);
        if ($judge_info[4] == "Y") {
            $display_rank .= "<br /><em>Certified Mead Judge</em>";
        }
        if (!empty($bjcp_rank[1])) {
            $display_rank .= "<em>" . designations($judge_info[5], $bjcp_rank[0]) . "</em>";
        }
        if ($filter == "stewards") {
            $locations = explode(",", $judge_info[7]);
        } else {
            $locations = explode(",", $judge_info[8]);
        }
        if (in_array($table_location, $locations)) {
            ?>
	<tr> 
    	<td nowrap="nowrap">
		<?php 
            echo $judge_info[1] . ", " . $judge_info[0];
            /*
            echo "<br>Likes: ".$judge_info[2];
            echo "<br>Dislikes: ".$judge_info[3];
示例#5
0
<?php

$factory->define(Banijya\User::class, function ($faker) {
    return ['name' => $faker->name, 'employee_id' => $faker->unique()->numberBetween(1091, 21999), 'mobile' => '984' . $faker->unique()->numberBetween(1111111, 9999999), 'dob' => $faker->dateTimeBetween($startDate = '-40 years', $endDate = '-20 years'), 'designation' => designations(array_rand(designations(), 1)), 'current_branch' => branches(array_rand(branches(), 1)), 'email' => $faker->email, 'password' => 'kabir', 'settings' => ['email_notification' => 'on'], 'remember_token' => str_random(10)];
});
$factory->define(Banijya\Post::class, function ($faker) {
    return ['body' => $faker->sentence(), 'user_id' => factory(Banijya\User::class)->create()->id];
});
$factory->define(Banijya\Conversation::class, function ($faker) {
    return ['last_activity' => $faker->dateTimeBetween($startDate = '-5 years', $endDate = '-1 week')];
});
$factory->define(Banijya\Message::class, function ($faker) {
    return ['body' => $faker->sentence()];
});
$factory->define(Banijya\Comment::class, function ($faker) use($factory) {
    return ['body' => $faker->sentence()];
});