<?php

/*===
    function: build_choice: void -> void
    purpose: expects nothing, and outputs a form with two radio buttons
        and a submit button, to select whether user would like
        information about a department or its employees

    by: Sharon Tuttle
    last modified: 2026-04-21
===*/

function build_choice()
{
    ?>
    <form id="dept_or_empl_form" method="post"
	  action="<?= htmlentities($_SERVER["PHP_SELF"],
                                   ENT_QUOTES) ?>">
        <fieldset>
        <legend> Info about the Department or its Employees? </legend>
 
        <input type="radio" name="dept_or_empls" id="dept_option" value="dept" 
            checked="checked" />
        <label for="dept_option"> Department </label> 

        <input type="radio" name="dept_or_empls" id="empl_option" value="empl" />
        <label for="empl_option"> Employees </label>
	
        </fieldset>
	
        <div class="submit_part">
            <input type="submit" value="Submit" />
        </div>
    </form>
    <?php
}

?>