<commit_before><!--
	Application: CMK Marketing Customer Management System
	Module: Add Client Information Page

	Developers: <NAME>, <NAME>, <NAME>
	Brief Description: Quick page to let the user add a new client to the database.
-->

<!DOCTYPE html>
<html>

<!-- Header Info -->
<head>
    <meta charset="UTF-8">
    <title>Add New Client</title>
    <link rel="shortcut icon" href="/favicon.ico">

    <!-- Personal CSS -->
    <link rel="stylesheet" href="/css/main.css">

    <!-- General CDN Additions -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
            integrity="<KEY>"
            crossorigin="anonymous"></script>

    <!-- Bootstrap CDN Additions -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
          integrity="<KEY>" crossorigin="anonymous">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"
            integrity="<KEY>"
            crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"
            integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ"
            crossorigin="anonymous"></script>
</head>


<!-- Page Content -->
<body>
<?php include '../include/navbar.html'; ?>

<form name="form" action="" method="post">
    <div class="container">
        <div class="row">
            <!-- Left Column -->
            <div id="left-column" class="col-md-5 my-4">
                <div class="card mb-4">
                    <div class="card-body">
                        <input type="text" name="Companyname" class="form-control" id="company-name" placeholder="Enter Name">
                    </div>

                    <img class="card-img-top" src="/img/no-image.jpg" alt="Company Image" width="100%" height="auto">

                    <div class="card-body">
                        <h4 class="card-title">Description</h4>
                        <textarea class="form-control" name="company-description" id="company-description"
                                  rows="3"></textarea>
                    </div>
                </div>

            </div>


            <!-- Right Column -->
            <div id="right-column" class="col-md-7 my-4">
                <!-- Main Contact Info -->
                <div class="sidebar">
                    <h4 class="sidebar-header">Main Contact Info</h4>

                    <div class="sidebar-content">
                        <ul id="client-info" class="list-group">
                            <li class="client-name list-group-item">
                                <img src="../img/icons/person.png" alt="Person Icon" width="24" height="24">
                                <input type="text" class="form-control" name="contact-name" id="contact-name"
                                       placeholder="Enter Name">
                            </li>
                            <li class="client-phone list-group-item">
                                <img src="../img/icons/phone.png" alt="Phone Icon" width="24" height="24">
                                <input type="phone" class="form-control" name="contact-number" id="contact-number"
                                       placeholder="Enter Phone Number">
                            </li>
                            <li class="client-email list-group-item">
                                <img src="../img/icons/mail.png" alt="Mail Icon" width="24" height="24">
                                <input type="email" class="form-control" name="contact-email" id="contact-email"
                                       placeholder="Enter Email">
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
</form>
<button type="submit" class="btn btn-primary btn-md btn-block green-button">Add Client Info</button>

<?php
require_once $_SERVER["DOCUMENT_ROOT"] . "/clients/modCompany.php";
$array = array(
    "Companyname" => $_POST['Companyname'],
    "Status" => "1",
    "Contactname" => $_POST['contact-name'],
    "Description" => $_POST['company-description'],
    "Email" => $_POST['contact-email'],
    "Image_URL" => "Companyname.jpg",
    "Phone" => $_POST['contact-number'],
);
addCompany($array);
?>

</body>

</html>
<commit_msg>Put Add Client Button Back in Form<commit_after><!--
	Application: CMK Marketing Customer Management System
	Module: Add Client Information Page

	Developers: <NAME>, <NAME>, <NAME>
	Brief Description: Quick page to let the user add a new client to the database.
-->

<!DOCTYPE html>
<html>

<!-- Header Info -->
<head>
    <meta charset="UTF-8">
    <title>Add New Client</title>
    <link rel="shortcut icon" href="/favicon.ico">

    <!-- Personal CSS -->
    <link rel="stylesheet" href="/css/main.css">

    <!-- General CDN Additions -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
            integrity="<KEY>"
            crossorigin="anonymous"></script>

    <!-- Bootstrap CDN Additions -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
          integrity="<KEY>" crossorigin="anonymous">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"
            integrity="<KEY>"
            crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"
            integrity="<KEY>"
            crossorigin="anonymous"></script>
</head>


<!-- Page Content -->
<body>
<?php include '../include/navbar.html'; ?>

<form name="form" action="" method="post">
    <div class="container">
        <div class="row">
            <!-- Left Column -->
            <div id="left-column" class="col-md-5 my-4">
                <div class="card mb-4">
                    <div class="card-body">
                        <input type="text" name="Companyname" class="form-control" id="company-name" placeholder="Enter Name">
                    </div>

                    <img class="card-img-top" src="/img/no-image.jpg" alt="Company Image" width="100%" height="auto">

                    <div class="card-body">
                        <h4 class="card-title">Description</h4>
                        <textarea class="form-control" name="company-description" id="company-description"
                                  rows="3"></textarea>
                    </div>
                </div>

				<button type="submit" class="btn btn-primary btn-md btn-block green-button">Add Client Info</button>
            </div>


            <!-- Right Column -->
            <div id="right-column" class="col-md-7 my-4">
                <!-- Main Contact Info -->
                <div class="sidebar">
                    <h4 class="sidebar-header">Main Contact Info</h4>

                    <div class="sidebar-content">
                        <ul id="client-info" class="list-group">
                            <li class="client-name list-group-item">
                                <img src="../img/icons/person.png" alt="Person Icon" width="24" height="24">
                                <input type="text" class="form-control" name="contact-name" id="contact-name"
                                       placeholder="Enter Name">
                            </li>
                            <li class="client-phone list-group-item">
                                <img src="../img/icons/phone.png" alt="Phone Icon" width="24" height="24">
                                <input type="phone" class="form-control" name="contact-number" id="contact-number"
                                       placeholder="Enter Phone Number">
                            </li>
                            <li class="client-email list-group-item">
                                <img src="../img/icons/mail.png" alt="Mail Icon" width="24" height="24">
                                <input type="email" class="form-control" name="contact-email" id="contact-email"
                                       placeholder="Enter Email">
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
</form>

<?php
	require_once $_SERVER["DOCUMENT_ROOT"] . "/clients/modCompany.php";
	$array = array(
	    "Companyname" => $_POST['Companyname'],
	    "Status" => "1",
	    "Contactname" => $_POST['contact-name'],
	    "Description" => $_POST['company-description'],
	    "Email" => $_POST['contact-email'],
	    "Image_URL" => "Companyname.jpg",
	    "Phone" => $_POST['contact-number'],
	);
	addCompany($array);
?>

</body>

</html>

{'fraction_non_alphanumeric': 0.15947028711328734, 'fraction_numerical': 0.01046071667037614, 'mean_word_length': 1.6147803316846088, 'pattern_counts': {'":': 0, '<': 160, '<?xml version=': 0, '>': 174, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2232290', 'n_tokens_mistral': 2602, 'n_tokens_neox': 2403, 'n_words': 478}