<!DOCTYPE html>
<html lang="ro-RO">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <title>Anunturi mica publicitate - Anuțuri presa scrisă - Rofusion Advertising Srl</title>
    <link href="css/materialize.css" type="text/css" rel="stylesheet">
    <link href="css/styleadd.css" type="text/css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>

<div class="navbar-fixed">
    <nav role="navigation">
        <div class="container">
            <div class="row">
                <div class="nav-wrapper">
                    <a href="/" class="brand-logo" title="Anunturi mica publicitate"><img src="img/logo.svg"
                                                                                          alt="Anunturi mica publicitate"></a>
                </div>
            </div>
        </div>
    </nav>
</div>

<div class="section loginForm">
    <div class="container">
        <div class="row">
            <div class="col s12">
                <?php
                if (!empty($errors)) {
                    ?>
                    <strong class="error">Date incorecte</strong>
                    <?php
                }
                ?>
                <form action="/inregistrare" method="POST" id="registerForm">
                    <div class="col s6">
                        <div class="card">
                            <div class="card-content login-card-content">
                                <div class="row">
                                    <div class="input-field col s12">
                                        <input placeholder="Nume" id="name" name="lastName" type="text"
                                               data-sanitize="trim upper"
                                               data-validation="required length custom"
                                               data-validation-regexp="^([A-Za-zăîâșțĂÎÂȘȚ \-]+)$"
                                               data-validation-length="3-20"
                                               data-suggestions="White, Green, Blue, Black, Brown"
                                               data-validation-error-msg="Numele trebuie să conțină doar litere (min 3, max 20 caractere)"
                                        />
                                        <label for="lastName">Nume</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="Prenume" id="surname" name="firstName" type="text"
                                               data-sanitize="trim upper"
                                               data-validation="required length custom"
                                               data-validation-regexp="^([A-Za-zăîâșțĂÎÂȘȚ \-]+)$"
                                               data-validation-length="3-20"
                                               data-validation-error-msg="Prenumele trebuie să conțină doar litere (min 3, max 20 caractere)"
                                        />
                                        <label for="firstName">Prenume</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="Adresa" id="address" name="address" type="text"
                                               data-sanitize="trim"
                                               data-validation="required length alphanumeric"
                                               data-validation-allowing=" -.ăîâșțĂÎÂȘȚ"
                                               data-validation-length="10-100"
                                               data-validation-error-msg="Adresa trebuie să conțină litere, cifre și caractere speciale (min 10, max 100 caractere)"
                                        />
                                        <label for="address">Adresa</label>
                                    </div>

                                    <div class="input-field col s12">
                                        <input placeholder="Telefon" id="phone" name="phone" type="text"
                                               data-sanitize="trim"
                                               data-validation="required length number"
                                               data-validation-length="9-15"
                                               data-validation-error-msg="Telefonul trebuie să conțină doar cifre (min 9, max 15 caractere)"
                                        />
                                        <label for="phone">Telefon</label>
                                    </div>

                                    <div class="input-field col s12">
                                        <input placeholder="CNP" id="cnp" name="nin" type="text"
                                               data-sanitize="trim"
                                               data-validation="length number"
                                               data-validation-length="13"
                                               data-validation-error-msg="CNP-ul trebuie să conțină doar cifre (13 caractere)"
                                        />
                                        <label for="nin">CNP</label>
                                    </div>

                                    <div class="input-field col s12">
                                        <input placeholder="Email" id="email" name="email" type="email"
                                               data-sanitize="trim lower"
                                               data-validation="required length email alphanumeric"
                                               data-validation-allowing="@-_."
                                               data-validation-length="5-100"
                                               data-validation-error-msg="Email-ul trebuie să conțină doar litere, cifre și @ - _ . (min 7, max 100 caractere)"
                                        />
                                        <label for="email">Email</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="Parola" name="password" id="password" type="password"/>
                                        <label for="password">Parola</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="Parola" name="confirm_password" id="confirm_password"
                                               type="password"/>
                                        <label for="password">Confirmare parola</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col s6">
                        <div class="card">
                            <div class="card-content login-card-content">
                                <div class="row">
                                    <div class="input-field col s12">
                                        <input placeholder="Denumire companie" id="companyName" name="companyName"
                                               type="text"
                                               data-sanitize="trim"
                                               data-validation="length alphanumeric"
                                               data-validation-length="3-100"
                                               data-validation-allowing=" -.ăîâșțĂÎÂȘȚ"
                                               data-validation-error-msg="Trebuie să conțină doar caractere alfanumerice (min 3, max 100 caractere)"
                                        />
                                        <label for="companyName">Denumire companie</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="C.U.I" id="cui" name="cui" type="text"
                                               data-sanitize="trim upper"
                                               data-validation="custom"
                                               data-validation-regexp="^(RO)?[0-9]{2,10}$"
                                               data-validation-error-msg="CUI-ul trebuie să conțină doar cifre și secvența RO (min 2, max 10 caractere)"
                                        />
                                        <label for="cui">C.U.I</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="Nr.Reg.Com." id="regCom" name="regCom" type="text"
                                               data-sanitize="trim upper"
                                               data-validation="length alphanumeric"
                                               data-validation-allowing="/"
                                               data-validation-length="10-15"
                                               data-validation-error-msg="Nr.Reg.Com. trebuie să conțină doar litere, cifre și / (min 10, max 15 caractere)"
                                        />
                                        <label for="regCom">Nr.Reg.Com.</label>
                                    </div>
                                    <div class="input-field col s12">
                                        <input placeholder="Adresa companie" id="comAddress" name="comaddress"
                                               type="text"
                                               data-sanitize="trim upper"
                                               data-validation="length alphanumeric"
                                               data-validation-allowing=" -.ăîâșțĂÎÂȘȚ"
                                               data-validation-length="10-100"
                                               data-validation-error-msg="Adresa trebuie să conțină doar litere (min 10, max 100 caractere)"
                                        />
                                        <label for="comAddress">Adresa companie</label>
                                    </div>

                                    <div class="input-field col s12">
                                        <input placeholder="Cont bancar" id="bankAccount" name="bankAccount"
                                               type="text"
                                               data-sanitize="trim upper"
                                               data-validation="length alphanumeric"
                                               data-validation-length="24"
                                               data-validation-error-msg="Cont Bancar trebuie să conțină doar litere, cifre și / (24 caractere)"
                                        />
                                        <label for="bankAccount">Cont bancar</label>
                                    </div>

                                    <div class="input-field col s12">
                                        <input placeholder="Banca" id="bankName" name="bankName" type="text"
                                               data-sanitize="trim upper"
                                               data-validation="length alphanumeric"
                                               data-validation-allowing=" -.ăîâșțĂÎÂȘȚ"
                                               data-validation-length="3-50"
                                               data-validation-error-msg="Numele băncii trebuie să conțină doar litere (min 3, max 50 caractere)"
                                        />
                                        <label for="bankName">Banca</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <button style="margin-top:20px;margin-left:10px" class="btn waves-effect waves-light" type="submit"
                            name="action">
                        Trimite
                        <i class="material-icons right">send</i>
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>

<footer class="page-footer default_color scrollspy">
    <div class="container">
        <div class="row">
            <div class="col l6 s12">
                <h5 class="white-text">Rofusion Advertising Srl</h5>
                <p class="white-text text-lighten-4">Anunturi mica publicitate<br>Anuțuri presa scrisă</p>
                <ul>
                    <li><a href="termeni-si-conditii-mica24.html" class="white-text" title="Termeni și Condiții">Termeni
                            și Condiții</a></li>
                </ul>
            </div>
            <div class="col l6 s12 right-align">
                <h5 class="white-text" id="contact">Contact</h5>
                <ul class="white-text">
                    <li>Bd. Ion Mihalache nr. 140 S<br>Sector 1, București</li>
                    <li>Telefon</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="footer-copyright z-depth-1">
        <div class="container">
            <b>&copy; Rofusion Advertising Srl</b>
            <span class="right">dezvoltat de <a href="http://www.activemall.ro" class="white-text" target="_blank"
                                                title="activemall.ro">activemall.ro</a></span>
        </div>
    </div>
</footer>

<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="/js/form-validator/jquery.form-validator.min.js"></script>
<script src="/js/jquery.filer.min.js"></script>
<script src="/js/materialize.js"></script>
<script src="/js/modernizr.js"></script>
<script src="/js/register.js"></script>
</body>
</html>
