<?php
// Include the database connection
include 'db_connection.php';
?>

<!DOCTYPE html>
<html>
<head>
    <title>Add Equity</title>
    <link rel="stylesheet" type="text/css" href="#">
    <style type="text/css">
        body {
    font-family: Arial, sans-serif;
}

h2 {
    text-align: center;
}

form {
    width: 300px;
    margin: 0 auto;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="text"], input[type="number"], input[type="date"], input[type="file"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

    </style>
</head>
<body>
    <h2>Add Equity</h2>
    <form action="process_add_equity.php" method="post">
        <label for="description">Description:</label>
        <input type="text" id="description" name="description" required>
        
        <label for="amount">Amount:</label>
        <input type="number" step="0.01" id="amount" name="amount" required>
        
        <label for="date">Date:</label>
        <input type="date" id="date" name="date" required>
        
        <input type="submit" value="Add Equity">
    </form>
</body>
</html>
