<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Equipment tracker</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
    #ui-timepicker-div dl{ text-align: left; }
    #ui-timepicker-div dl dt{ height: 25px; }
    #ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; }
</style>
<?php include '../header.php'; ?>
<script type="text/javascript">
    $(document).ready($(function() {
        $('#pickup_datetime').datetimepicker({
                ampm: false
        });
        $('#due_datetime').datetimepicker({
                ampm: false
        });
        $('#t_adv').click(function(){
                $('#adv').fadeIn("slow");
       });
    }));
</script>
</head>
<body>
<h1>Sign out equipment</h1>
<form method="post" action="et-so.php">
<fieldset>
<legend>Item</legend>
<p><label for="item_name">Name:</label><input type="text" size="50" name="item_name" id="item_name" /></p>
<p><label for="pickup_datetime">Pickup date/time:</label><input type="text" size="20" name="pickup_datetime" id="pickup_datetime" /></p>
<p><label for="due_datetime">Due date/time:</label><input type="text" size="20" name="due_datetime" id="due_datetime" /><span id="t_adv">Advanced...</span></p>
<p id="adv"><label for="repetition"># of weekly repetitions:</label><input type="text" size="20" name="repetition" id="repetition" /></p>
</fieldset>
<fieldset>
<legend>Borrower</legend>
<p><label for="borrower_name">Name:</label><input type="text" size="50" name="borrower_name" id="borrower_name" /></p>
<p><label for="borrower_netid">Net ID:</label><input type="text" size="10" name="borrower_netid" id="borrower_netid" /></p>
</fieldset>
<p><input type="submit" /></p>
</form>
<?php include 'footer.php' ?>
</body>
</html><commit_msg>Use a select menu for object names on loan out page<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Equipment tracker</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
    #ui-timepicker-div dl{ text-align: left; }
    #ui-timepicker-div dl dt{ height: 25px; }
    #ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; }
</style>
<?php include '../header.php'; ?>
<script type="text/javascript">
    $(document).ready($(function() {
        $('#pickup_datetime').datetimepicker({
                ampm: false
        });
        $('#due_datetime').datetimepicker({
                ampm: false
        });
        $('#t_adv').click(function(){
                $('#adv').fadeIn("slow");
       });
    }));
</script>
</head>
<body>
<h1>Sign out equipment</h1>
<form method="post" action="et-so.php">
<fieldset>
<legend>Item</legend>
<p><label for="item_name">Name:</label><select name="item_name" id="item_name">
    <?php
    include '../config.php';
    include '../db.php';

    $fdb = new FlatFileDB($db_filename, $table_sep, $cell_sep);
    foreach ($fdb->getTable($objects_table) as $object) {
         echo '<option value="' . $object[0] . '">'.$object[0].'</option>';
    }
    ?>
</select></p>
<p><label for="pickup_datetime">Pickup date/time:</label><input type="text" size="20" name="pickup_datetime" id="pickup_datetime" /></p>
<p><label for="due_datetime">Due date/time:</label><input type="text" size="20" name="due_datetime" id="due_datetime" /><span id="t_adv">Advanced...</span></p>
<p id="adv"><label for="repetition"># of weekly repetitions:</label><input type="text" size="20" name="repetition" id="repetition" /></p>
</fieldset>
<fieldset>
<legend>Borrower</legend>
<p><label for="borrower_name">Name:</label><input type="text" size="50" name="borrower_name" id="borrower_name" /></p>
<p><label for="borrower_netid">Net ID:</label><input type="text" size="10" name="borrower_netid" id="borrower_netid" /></p>
</fieldset>
<p><input type="submit" /></p>
</form>
<?php include 'footer.php' ?>
</body>
</html>
{'fraction_non_alphanumeric': 0.22816832887375335, 'fraction_numerical': 0.017027487229384578, 'mean_word_length': 4.396325459317585, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 134, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5961207', 'n_tokens_mistral': 1541, 'n_tokens_neox': 1440, 'n_words': 274}