Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Include the database connection file
- include_once("config.php");
- // include("common_functions.php");
- // Fetch active operators
- $active_operators = mysqli_query($mysqli, "SELECT * FROM operators WHERE status='Active' ORDER BY name");
- function build_oper_pulldown () {
- echo "<select name='selname'>";
- while ($operator = $active_operators->fetch_array(MYSQLI_ASSOC)) {
- echo '<option value="' .$operator['seq_nmbr'] . '">' . $operator['fname'] . "\n";
- }
- echo "</select>\n";
- }
- ?>
- <html>
- <head>
- <title>OUAL Operator Training Information</title>
- <link rel="stylesheet" href="styles.css" />
- </head>
- <body>
- <h1>EAL Personnel Information</h1>
- <h2>Operator Training Information</h2>
- <br/>
- <p>I want to:
- <ol>
- <form method=post name="add_operator" action="add_user.php">
- <li>Add completed training certification for operator
- <?php
- echo "<select name='selname'>";
- while ($operator = $active_operators->fetch_array(MYSQLI_ASSOC)) {
- echo '<option value="' .$operator['seq_nmbr'] . '">' . $operator['fname'] . "\n";
- }
- echo "</select>\n";
- ?>
- <button type=submot name="add_operator" value="add_operator">
- (Select name and press here)
- </button>
- </li>
- </form>
- <form method=post name="delete" action="delete_certification.php">
- <li>Delete
- <?php
- build_oper_pulldown();
- ?>
- </form>
- </ol>
- </p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement