<?php
//print_r($_POST);
//$filter = ['id' => $_GET['econid']];
//print_r($user);
if(isset($_GET['id'])){
    $filter = ['id'=> $_GET['id']];
    $partner = $auth->getApiDataFilter("get/product",$filter);
    print_r($filter);
}
//$partners = $auth->getApiDataFilter("get/machine/full", $filter);
?>
<div class="row card">
    <div class="col-12 text-center">
        <button type="button" class="btn btn-block bg-gradient-success btn-lg savedata">Mentés</button>
    </div>
</div>
<form id="sendForm" class="row" method="POST">
    <div class="col-lg-6 col-sm-12">
        <div class="card">
            <div class="card-header">
                <h4>Cég információk</h4>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Cégnév</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyName" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Székhely</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyLocation" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Telephely</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyLocation2" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Telefonszám</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyTel" type="text"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>E-mail</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyEmail" type="email"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Fax</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyFax" type="email"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Adószám</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="companyVat" type="text"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-sm-12">
        <div class="card">
            <div class="card-header">
                <h4>Kapcsolattartási adatok</h4>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Név</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="contactName" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Telefonszám</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="contactTel" type="text"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>E-mail</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="contactEmail" type="email"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-sm-12">
        <div class="card">
            <div class="card-header">
                <h4>I. Növénytermesztési besorolás</h4>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Konvencionális növénytermesztő </h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="konvencionalis_novenytermeszto"  type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Ökológiai növénytermesztő</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="okologiai_novenytermeszto" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Konvencionális és ökológiai növénytermesztő</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="konvencionalis_es_okologiai_novenytermeszto" type="number"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-sm-12">
        <div class="card">
            <div class="card-header">
                <h4>II. Növénytermesztési besorolás</h4>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Szántóföldi növénytermesztő </h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="szantofoldi_novenytermeszto"  type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Szabadföldi zöldségtermesztő</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="szabadfoldi_zoldsegtermeszto" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Szőlőtermesztő </h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="szolotermeszto" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Gyümölcstermesztő  </h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="gyumolcstermeszto" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Fóliás vagy üvegházi kertészet</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="folias_vagy_uveghazi_kerteszet" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Palántanevelés</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="palantaneveles" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Dísznövény  </h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="disznoveny" type="number"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Egyéb</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">

                        <input value="" class="form-control" name="egyeb" type="number"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<?php
addJS("edit.js");
?>