<?php
include "../../root.class.php";
$html = new html();
$html->add_styles_page();

?>

<form action="add_stock.php?stock_take_id=<?php echo $_GET['stock_take_id']; ?>" method="post" class="form_down">
    <h1>ADD STOCK</h1>
    <label>TYPE</label>
    <select id="stock_type" required name="stock_type" class="inputs">
        <option></option>
        <option value="0">STOCK</option>
        <option value="1">NON STOCK</option>
        <option value="2">UNITS</option>
    </select>
    <label>CATEGORY</label>
    <?php echo $html->select_html_from_db('stock_categories', 'record_id', 'name', "1", 'category_id', 'category_id', 'inputs','','','required'); ?>
    <label>DESCRIPTION</label>
    <textarea name="description" required class="inputs"></textarea>
    <label>QTY</label>
    <input type="number" name="qty" value="0" class="inputs">

    <?php echo $html->submit_btn("submit", 'SAVE', 'stock()', 'select_button'); ?>

</form>
<script>

</script>
<?php

?>