<commit_before><?php require_once "../config.php"; ?>
<!DOCTYPE html>
<html>

<head>
    <?php require_once SITEROOT."/templates/top.php"; ?>
</head>

<body>
    <noscript>
        <h3>This service requires javascript to be enabled.</h3>
        <h4>Please turn it on in your browser and refresh the page for proper operation.</h4>
    </noscript>

    <?php require_once SITEROOT."/templates/top_menu.php"; ?>

    <!--// Page title -->
    <h3>Create User Account</h3>

    <!--// 3 step sign up process: general, address, billing option -->
    <form name="signup1" id="signup1" action="./my_time.php">
        <div class="well well-lg">
            <h3>Account</h3>
            <div class="input-group input-group-lg">
                <span class="input-group-addon">Email</span>
                <input type="text"    class="form-control" placeholder="Email"          name="email"        id="email">
                <input type="text"    class="form-control" placeholder="Repeat email"   name="repeatemail" id="repeatemail">
            </div>

            <div class="input-group input-group-lg">
                <span class="input-group-addon">Password</span>
                <input type="password"    class="form-control" placeholder="Password"           name="password"         id="password">
                <input type="password"    class="form-control" placeholder="<PASSWORD> password"    name="repeatpassword"  id="repeatpassword">
            </div>
        </div>

        <div class="well well-lg">
            <h3>Phone</h3>
            <div class="input-group input-group-lg">
                <span class="input-group-addon">Phone</span>
                <input type="text"    class="form-control" length="11" placeholder="Mobile Phone" name="mobilephone">
                <input type="text"    class="form-control" length="32" placeholder="Home Phone" name="homephone">
                <input type="text"    class="form-control" length="32" placeholder="Work Phone" name="workphone">
            </div>
        </div>

        <div class="well well-lg">
            <h3>Location</h3>
            <div class="input-group input-group-lg">
                <span class="input-group-addon">Lot Number</span>
                <!--// Some lots have alphabetical characters: 44A, 65B, etc. Cant us a DDL -->
                <input type="text"    class="form-control" length="11" placeholder="0 to 850"  name="lotid">
            </div>
        </div>

        <input type="hidden" class="form-control" name="action" value="create_user">
        <?php require_once SITEROOT."/templates/form_submit.php"; ?>
    </form>

    <?php require_once SITEROOT."/templates/bottom.php"; ?>

    <!--// Add some addition methods to the valitor -->
    <script src="<?= SITEHOME; ?>global_assets/js/jquery_validate/dist/additional-methods.js"></script>

    <!--// form validation -->
    <script language="javascript">
        $("#signup1").validate({
            rules: {
                // no quoting necessary
                "email": {
                  required: true,
                  email: true,
                },
                "repeatemail": {
                  required: true,
                  email: true,
                  equalTo: "#email",
                },
                "password": {
                    required: true,
                    minlength: 8,
                },
                "repeatpassword": {
                    required: true,
                    minlength: 8,
                    equalTo: "#password",
                },
                "mobilephone": {
                    required: true,
                    phoneUS: true,
                },
                "homephone": {
                    phoneUS: true,
                },
                "altphone": {
                    phoneUS: true,
                }
            },
            messages: {
                "repeatemail": {
                    equalTo: "Email address must match.",
                },
                "repeatpassword": {
                    equalTo: "Password does not match.",
                },
                "cellphone": {
                    phoneUS: "U.S. formated phone number please.",
                },
                "homephone": {
                    phoneUS: "U.S. formated phone number please.",
                },
                "altphone": {
                    phoneUS: "U.S. formated phone number please.",
                },
            }
        });
    </script>
</body>
</html><commit_msg>Corrected a file reference error & added ajax loader to create_user view.<commit_after><?php require_once "../config.php"; ?>
<!DOCTYPE html>
<html>

<head>
    <?php require_once SITEROOT."/templates/top.php"; ?>
</head>

<body>
    <noscript>
        <h3>This service requires javascript to be enabled.</h3>
        <h4>Please turn it on in your browser and refresh the page for proper operation.</h4>
    </noscript>

    <?php require_once SITEROOT."/templates/top_menu.php"; ?>

    <!--// Page title -->
    <h3>Create User Account</h3>

    <!--// 3 step sign up process: general, address, billing option -->
    <form name="signup1" id="signup1" action="./my_time.php">
        <div class="well well-lg">
            <h3>Account</h3>
            <div class="input-group input-group-lg">
                <span class="input-group-addon">Email</span>
                <input type="text"    class="form-control" placeholder="Email"          name="email"        id="email">
                <input type="text"    class="form-control" placeholder="Repeat email"   name="repeatemail" id="repeatemail">
            </div>

            <div class="input-group input-group-lg">
                <span class="input-group-addon">Password</span>
                <input type="password"    class="form-control" placeholder="Password"           name="password"         id="password">
                <input type="password"    class="form-control" placeholder="<PASSWORD> password"    name="repeatpassword"  id="repeatpassword">
            </div>
        </div>

        <div class="well well-lg">
            <h3>Phone</h3>
            <div class="input-group input-group-lg">
                <span class="input-group-addon">Phone</span>
                <input type="text"    class="form-control" length="11" placeholder="Mobile Phone" name="mobilephone">
                <input type="text"    class="form-control" length="32" placeholder="Home Phone" name="homephone">
                <input type="text"    class="form-control" length="32" placeholder="Work Phone" name="workphone">
            </div>
        </div>

        <div class="well well-lg">
            <h3>Location</h3>
            <div class="input-group input-group-lg">
                <span class="input-group-addon">Lot Number</span>
                <!--// Some lots have alphabetical characters: 44A, 65B, etc. Cant us a DDL -->
                <input type="text"    class="form-control" length="11" placeholder="0 to 850"  name="lotid">
            </div>
        </div>

        <input type="hidden" class="form-control" name="action" value="create_user">
        <?php require_once SITEROOT."/templates/form_submit.php"; ?>
    </form>

    <?php require_once SITEROOT."/templates/bottom.php"; ?>

    <!--// Add some addition methods to the valitor -->
    <script src="<?= SITEROOT; ?>/../global_assets/js/jquery_validate/dist/additional-methods.js"></script>

    <!--// form validation -->
    <script language="javascript">
        $("#signup1").validate({
            rules: {
                // no quoting necessary
                "email": {
                  required: true,
                  email: true,
                },
                "repeatemail": {
                  required: true,
                  email: true,
                  equalTo: "#email",
                },
                "password": {
                    required: true,
                    minlength: 8,
                },
                "repeatpassword": {
                    required: true,
                    minlength: 8,
                    equalTo: "#password",
                },
                "mobilephone": {
                    required: true,
                    phoneUS: true,
                },
                "homephone": {
                    phoneUS: true,
                },
                "altphone": {
                    phoneUS: true,
                }
            },
            messages: {
                "repeatemail": {
                    equalTo: "Email address must match.",
                },
                "repeatpassword": {
                    equalTo: "Password does not match.",
                },
                "cellphone": {
                    phoneUS: "U.S. formated phone number please.",
                },
                "homephone": {
                    phoneUS: "U.S. formated phone number please.",
                },
                "altphone": {
                    phoneUS: "U.S. formated phone number please.",
                },
            }
        });
    </script>

    <?php require_once __DIR__."/templates/ajax_loader.php"; ?>

</body>
</html>
{'fraction_non_alphanumeric': 0.14091403699673558, 'fraction_numerical': 0.007399347116430903, 'mean_word_length': 1.4847256015139227, 'pattern_counts': {'":': 24, '<': 144, '<?xml version=': 0, '>': 144, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6306035', 'n_tokens_mistral': 2534, 'n_tokens_neox': 2356, 'n_words': 546}